diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-03-26 15:18:01 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-03-29 14:28:17 +0200 |
commit | 60db5736604583fe99dde3c25412d97f9b77489d (patch) | |
tree | 2f5bf1342086232de0570500fd440a98eb12cb96 /tests/auto/cplusplus/preprocessor/data/empty-macro.cpp | |
parent | 159058d9eb7ab233f94cc6a0a5b0e7e8f691a041 (diff) | |
download | qt-creator-60db5736604583fe99dde3c25412d97f9b77489d.tar.gz |
[C++] Rewrite of the preprocessor.
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>
Diffstat (limited to 'tests/auto/cplusplus/preprocessor/data/empty-macro.cpp')
-rw-r--r-- | tests/auto/cplusplus/preprocessor/data/empty-macro.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/cplusplus/preprocessor/data/empty-macro.cpp b/tests/auto/cplusplus/preprocessor/data/empty-macro.cpp new file mode 100644 index 0000000000..d6ef56c60e --- /dev/null +++ b/tests/auto/cplusplus/preprocessor/data/empty-macro.cpp @@ -0,0 +1,5 @@ +#define EMPTY_MACRO + +class EMPTY_MACRO Foo { +}; + |