llvm/clang/lib/Parse
Nathan James 5616c5b866
[clang] Tweaked fixit for static assert with no message
If a static assert has a message as the right side of an and condition, suggest a fix it of replacing the '&&' to ','.

`static_assert(cond && "Failed Cond")` -> `static_assert(cond, "Failed cond")`

This use case comes up when lazily replacing asserts with static asserts.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D89065
2021-02-22 17:43:53 +00:00
..
CMakeLists.txt
ParseAST.cpp
ParseCXXInlineMethods.cpp [NFC, Refactor] Modernize enum FunctionDefinitionKind (DeclSpech.h) into a scoped enum 2020-11-21 09:49:52 -06:00
ParseDecl.cpp [OpenCL] Introduce new language options for OpenCL keywords. 2021-02-05 11:18:48 +03:00
ParseDeclCXX.cpp [clang] Tweaked fixit for static assert with no message 2021-02-22 17:43:53 +00:00
ParseExpr.cpp Print source location in the error message when parens are missing around sizeof typename and the expression is inside macro expansion 2020-12-16 12:03:31 -08:00
ParseExprCXX.cpp Parse different attribute syntaxes in arbitrary order 2021-01-27 15:30:15 -05:00
ParseInit.cpp [CodeComplete] Guess type for designated initializers 2021-02-04 22:14:49 +01:00
ParseObjc.cpp Parse different attribute syntaxes in arbitrary order 2021-01-27 15:30:15 -05:00
ParseOpenMP.cpp [OpenMP] Implement '#pragma omp tile', by Michael Kruse (@Meinersbur). 2021-02-16 09:45:07 -08:00
ParsePragma.cpp [OpenCL] Refactor of targets OpenCL option settings 2021-01-25 19:50:23 +03:00
Parser.cpp [NFC, Refactor] Modernize enum FunctionDefinitionKind (DeclSpech.h) into a scoped enum 2020-11-21 09:49:52 -06:00
ParseStmt.cpp [Attr] Apply GNU-style attributes to expression statements 2021-02-11 16:44:41 +03:00
ParseStmtAsm.cpp [Parser] ParseMicrosoftAsmStatement - Replace bit '|' operator with logical '||' operator. (PR47071) 2020-10-05 14:23:28 +01:00
ParseTemplate.cpp PR45699: Fix crash if an unexpanded parameter pack appears in a 2020-12-03 15:26:06 -08:00
ParseTentative.cpp [clang] Add a new nullability annotation for swift async: _Nullable_result 2020-12-07 17:19:20 -05:00