llvm-project/clang/lib/Parse
Richard Smith 0e00a95b4f Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace.
For example:

    #define FOO(x) (x)
    FOO({});

... forms a statement-expression after macro expansion. This warning
applies to '({' and '})' delimiting statement-expressions, '[[' and ']]'
delimiting attributes, and '::*' introducing a pointer-to-member.

The warning for forming these compound tokens across macro expansions
(or across files!) is enabled by default; the warning for whitespace
within the tokens is not, but is included in -Wall.

Differential Revision: https://reviews.llvm.org/D86751
2020-08-28 13:35:50 -07:00
..
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
ParseAST.cpp [Support] Add TimeTraceScope constructor without detail arg 2019-12-11 14:32:21 +00:00
ParseCXXInlineMethods.cpp DR458: Search template parameter scopes in the right order. 2020-06-23 17:14:33 -07:00
ParseDecl.cpp Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace. 2020-08-28 13:35:50 -07:00
ParseDeclCXX.cpp Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace. 2020-08-28 13:35:50 -07:00
ParseExpr.cpp Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace. 2020-08-28 13:35:50 -07:00
ParseExprCXX.cpp [clang] Provide a more specific diagnostic for a misplaced lambda capture-default. 2020-07-18 20:35:16 +01:00
ParseInit.cpp [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
ParseObjc.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
ParseOpenMP.cpp [OPENMP]Redesign of OMPExecutableDirective/OMPDeclarativeDirective representation. 2020-08-06 12:25:19 -04:00
ParsePragma.cpp Reland D81869 "Modify FPFeatures to use delta not absolute settings" 2020-06-27 01:34:57 -07:00
ParseStmt.cpp Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace. 2020-08-28 13:35:50 -07:00
ParseStmtAsm.cpp Fix some typos (unkown -> unknown); NFC 2020-07-02 06:41:05 -04:00
ParseTemplate.cpp DR458: Search template parameter scopes in the right order. 2020-06-23 17:14:33 -07:00
ParseTentative.cpp Don't form a 'context-independent expr' reference to a member during 2020-07-27 19:38:22 -07:00
Parser.cpp Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace. 2020-08-28 13:35:50 -07:00