Skip to content
Snippets Groups Projects
Commit f2631ad0 authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Erik Verbruggen
Browse files

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: default avatarhjk <hjk121@nokiamail.com>
parent 271a96b1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment