summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro_arg_directive.c
Commit message (Collapse)AuthorAgeFilesLines
* Print a note to the called macro when diagnosing err_embedded_directiveNico Weber2019-02-141-2/+2
| | | | | | | | Fixes PR40713, see there for the motivation for this. Differential Revision: https://reviews.llvm.org/D58161 llvm-svn: 354009
* Lex: Don't let annotation tokens get into macro expansionDavid Majnemer2014-12-281-0/+5
| | | | | | | | | | We'd let annotation tokens from '#pragma pack' and the like get inside a function-like macro. This would lead to terror and mayhem; stop the madness early. This fixes PR22037. llvm-svn: 224896
* Make preprocessor act in a GCC-compatible fashion when a macro is redefinedRichard Smith2012-08-301-0/+7
| | | | | | | | within its own argument list. The original definition is used for the immediate expansion, but the new definition is used for any subsequent occurences within the argument list or after the expansion. llvm-svn: 162906
* Don't allow #include (and its friends #import, #include_next andRichard Smith2011-12-161-0/+20
#__include_macros) in the arguments of a function-style macro. Directives in the arguments of such macros have undefined behaviour, and GCC does not correctly support these cases. In some situations, this can lead to better diagnostics. llvm-svn: 146765
OpenPOWER on IntegriCloud