summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* C++: do not strip trailing newlines in the preprocessor output.Erik Verbruggen2013-05-301-1/+0
| | | | | | | | | | | | | 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>
* [C++] Rewrite of the preprocessor.Erik Verbruggen2012-03-291-0/+13
This rewrite fixes a couple of issues with the pre-processor. It now supports: - macros in macro bodies - stringification of parameters [cpp.stringize] - the concatenation operator [cpp.concat] - #include MACRO_HERE - defined() inside macro bodies used in pp-conditions. Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>