llvm-project/clang/test
Serge Pavlov 07c0f04e08 Fixed warnings on redefine keywords and reserved ids.
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
2014-12-18 11:14:21 +00:00
..
ARCMT Objective-C SDK modernizer. When modernizing an enum to 2014-12-10 18:25:24 +00:00
ASTMerge
Analysis [CallGraph] Make sure the edges are not missed due to re-declarations 2014-12-17 00:34:07 +00:00
CXX Adding a -Wunused-value warning for expressions with side effects used in an unevaluated expression context, such as sizeof(), or decltype(). Also adds a similar warning when the expression passed to typeid() *is* evaluated, since it is equally likely that the user would expect the expression operand to be unevaluated in that case. 2014-12-17 21:57:17 +00:00
CodeCompletion
CodeGen Fix for PR21915: assert on multidimensional VLA in function arguments. 2014-12-18 06:54:53 +00:00
CodeGenCUDA IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
CodeGenCXX Fix for PR21915: assert on multidimensional VLA in function arguments. 2014-12-18 06:54:53 +00:00
CodeGenObjC IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
CodeGenObjCXX Have the driver and the target code agree on what the default ABI 2014-12-05 01:06:59 +00:00
CodeGenOpenCL IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
Coverage clang/test/Coverage/html-diagnostics.c: Use find(1) to avoid globbing. 2014-11-04 13:05:10 +00:00
CoverageMapping InstrProf: Don't emit coverage for uninstantiated templates 2014-11-18 00:34:46 +00:00
Driver Change -save-temps to emit unoptimized bitcode files. 2014-12-18 06:08:26 +00:00
FixIt Wire up delayed typo correction to DiagnoseEmptyLookup and set up 2014-11-20 22:06:40 +00:00
Format Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
Frontend Destroy the diagnostic client first in ~DiagnosticEngine 2014-12-17 20:23:11 +00:00
Headers [PowerPC] Add VSX builtins for vec_div 2014-11-14 12:10:51 +00:00
Index Teach compile_commands.json test that windows-gnu is the new name for mingw32. 2014-12-17 11:04:07 +00:00
Integration
Layout Test case B: fixed check rule 2014-10-21 08:16:42 +00:00
Lexer MSVC: A wide string literal from L#macro_arg in a macro 2014-12-15 04:18:11 +00:00
Misc ASTDumper: print whether a function is constexpr 2014-12-05 22:38:57 +00:00
Modules This test does not pass for -target i686-pc-windows-gnu (-mingw32) 2014-12-17 20:12:29 +00:00
OpenMP [OPENMP] Bugfix for processing of global variables in OpenMP regions. 2014-12-16 07:00:22 +00:00
PCH Do not warn on keyword undef 2014-12-12 06:37:55 +00:00
Parser Parse: Don't parse after the eof has been consumed 2014-12-18 09:57:31 +00:00
Preprocessor Fixed warnings on redefine keywords and reserved ids. 2014-12-18 11:14:21 +00:00
Profile IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
Rewriter Objective-C modern rewriter. Patch to fix a rewriting bug 2014-10-28 23:46:58 +00:00
Sema Adding a -Wunused-value warning for expressions with side effects used in an unevaluated expression context, such as sizeof(), or decltype(). Also adds a similar warning when the expression passed to typeid() *is* evaluated, since it is equally likely that the user would expect the expression operand to be unevaluated in that case. 2014-12-17 21:57:17 +00:00
SemaCUDA Consider calls from implict host device functions as valid in SemaCUDA. 2014-12-16 20:12:38 +00:00
SemaCXX Fix diagnostic for static methods referencing fields from using decls 2014-12-18 00:42:51 +00:00
SemaObjC [Objective-C]. Modern property getters have side-effects. 2014-12-18 00:30:54 +00:00
SemaObjCXX Adding a -Wunused-value warning for expressions with side effects used in an unevaluated expression context, such as sizeof(), or decltype(). Also adds a similar warning when the expression passed to typeid() *is* evaluated, since it is equally likely that the user would expect the expression operand to be unevaluated in that case. 2014-12-17 21:57:17 +00:00
SemaOpenCL Workaround attribute ordering issue with kernel only attributes 2014-12-05 18:03:58 +00:00
SemaTemplate [c++1z] Fixes for generalized non-type template argument support: check for 2014-12-17 20:42:37 +00:00
TableGen
Tooling Remove "REQUIRES:shell" from tests. They work for me. 2014-11-04 13:41:33 +00:00
Unit Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming. 2014-07-04 05:11:55 +00:00
VFS IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
.clang-format
CMakeLists.txt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Makefile Fix makefile for debuginfo-tests execution. 2014-10-17 23:50:47 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Teach lit.cfg to recognize -windows-gnu in addition to -mingw32. 2014-12-17 09:55:15 +00:00
lit.site.cfg.in Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
make_test_dirs.pl