llvm-project/clang/lib/Parse
Bruno Ricci 32db24a7f2
[clang] Provide a more specific diagnostic for a misplaced lambda capture-default.
Currently a capture-default which is not the first element in the lambda-capture
is diagnosed with a generic expected variable name or 'this' in lambda capture
list, which is true but not very helpful.

If we don't have already parsed a capture-default then a lone "&" or "=" is
likely to be a misplaced capture-default, so diagnose it as such.

Differential Revision: https://reviews.llvm.org/D83681

Reviewed By: aaron.ballman
2020-07-18 20:35:16 +01: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 [CodeComplete] Add code completion after function equals 2020-07-01 12:51:25 +08:00
ParseDeclCXX.cpp [CodeComplete] Add code completion after function equals 2020-07-01 12:51:25 +08:00
ParseExpr.cpp [OPENMP50] extend array section for stride (Parsing/Sema/AST) 2020-07-09 13:28:51 -05: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] Add firstprivate as a default data-sharing attribute to clang 2020-07-12 23:01:40 -05:00
ParsePragma.cpp Reland D81869 "Modify FPFeatures to use delta not absolute settings" 2020-06-27 01:34:57 -07:00
ParseStmt.cpp Summary: [clang] Provide a way for WhileStmt to report the location of its LParen and RParen. 2020-07-10 21:31:16 -04: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 [clang] Include type specifiers in typo correction when checking isCXXDeclarationSpecifiers. 2020-07-13 12:05:09 +02:00
Parser.cpp Handle delayed-template-parsing functions imported into a non-dtp TU 2020-06-12 16:09:38 +02:00