summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/no-warn-in-system-macro.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix isInSystemMacro in presence of macro and pasted tokenSerge Guelton2019-05-161-1/+6
| | | | | | | | | | | When a warning is raised from the expansion of a system macro that involves pasted token, there was still situations were they were not skipped, as showcased by this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1472437 Differential Revision: https://reviews.llvm.org/D59413 llvm-svn: 360885
* Fix isInSystemMacro to handle pasted macrosSerge Guelton2019-02-011-0/+13
Token pasted by the preprocessor (through ##) have a Spelling pointing to scratch buffer. As a result they are not recognized at system macro, even though the pasting happened in a system macro. Fix that by looking into the parent macro if the original lookup finds a scratch buffer. Differential Revision: https://reviews.llvm.org/D55782 This effectively fixes https://bugs.llvm.org/show_bug.cgi?id=35268, llvm-svn: 352838
OpenPOWER on IntegriCloud