summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro-reserved-cxx11.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Tests] Add explicit -std=lang option to a number of tests.Yunzhong Gao2015-08-011-0/+1
| | | | | | | | | | | This patch should not change the test results, but it is useful if clang's default C++ language is ever changed from gnu++98. Patch by: Charles Li http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150727/134667.html llvm-svn: 243819
* Fixed warnings on redefine keywords and reserved ids.Serge Pavlov2014-12-181-0/+7
Repared support for warnings -Wkeyword-macro and -Wreserved-id-macro. The warning -Wkeyword-macro now is not issued in patterns that are used in configuration scripts: #define inline also for 'const', 'extern' and 'static'. If macro repalcement is identical to macro name, the warning also is not issued: #define volatile volatile And finally if macro replacement is also a keyword identical to the replaced one but decorated with leading/trailing underscores: #define inline __inline #define inline __inline__ #define inline _inline // in MSVC compatibility mode Warning -Wreserved-id-macro is off by default, it could help catching things like: #undef __cplusplus llvm-svn: 224512
OpenPOWER on IntegriCloud