summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpppreprocessor.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-05-30 15:03:54 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2013-05-30 16:42:29 +0200
commitf2631ad031d936fb2a2e2ceeec39ff870bd9f6c8 (patch)
treedaddae32cf31cb640f1b69929f8dc24d120c646c /src/plugins/cpptools/cpppreprocessor.cpp
parent271a96b19a17083d2cd7d2350aa83d3c11b462d3 (diff)
downloadqt-creator-f2631ad031d936fb2a2e2ceeec39ff870bd9f6c8.tar.gz
C++: do not strip trailing newlines in the preprocessor output.
Doing so resulted in an incorrect position for the EOF token when the preprocessed output would be parsed. That in turn leads to incorrect insertion positions for refactoring actions. This is especially true when a file contains only preprocessor directives: the EOF token would point to line 1 column 1, which is usually not the place where code should be inserted. Change-Id: I7d359aa7a6c04bc52c8b873fd49ad6afc3a77319 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/cpptools/cpppreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions