hanchenye-llvm-project/clang/lib/Parse
David Blaikie 35506f8202 Provide a fixit for constexpr non-static data members.
If the member has an initializer, assume it was probably intended to be static
and suggest/recover with that.

If the member doesn't have an initializer, assume it was probably intended to
be const instead of constexpr and suggest that.

(if the attempt to apply these changes fails, don't make any suggestion &
produce the same diagnostic experience as before. The only case where this can
come up that I know of is with a mutable constexpr with an initializer, since
mutable is incompatible with static (but it's already incompatible with
const anyway))

llvm-svn: 173873
2013-01-30 01:22:18 +00:00
..
CMakeLists.txt
Makefile
ParseAST.cpp
ParseCXXInlineMethods.cpp Finish semantic analysis for [[carries_dependency]] attribute. 2013-01-28 22:42:45 +00:00
ParseDecl.cpp Downgrade 'attribute ignored when parsing type' from error to warning, to match 2013-01-29 10:02:16 +00:00
ParseDeclCXX.cpp Provide a fixit for constexpr non-static data members. 2013-01-30 01:22:18 +00:00
ParseExpr.cpp Produce a diagnostic if alignas is applied to an expression. Neither C11 nor 2013-01-29 10:18:18 +00:00
ParseExprCXX.cpp Finish semantic analysis for [[carries_dependency]] attribute. 2013-01-28 22:42:45 +00:00
ParseInit.cpp s/CPlusPlus0x/CPlusPlus11/g 2013-01-02 11:42:31 +00:00
ParseObjc.cpp Finish semantic analysis for [[carries_dependency]] attribute. 2013-01-28 22:42:45 +00:00
ParsePragma.cpp
ParsePragma.h
ParseStmt.cpp Implement C++11 [dcl.align]p1 and C11 6.7.5/2 rules for alignas and _Alignas. 2013-01-29 09:02:09 +00:00
ParseTemplate.cpp PR14918: Don't confuse braced-init-lists after template variable declarations 2013-01-15 06:49:38 +00:00
ParseTentative.cpp Implement OpenCL event_t as Clang builtin type, including event_t related OpenCL restrictions (OpenCL 1.2 spec 6.9) 2013-01-20 12:31:11 +00:00
Parser.cpp Finish semantic analysis for [[carries_dependency]] attribute. 2013-01-28 22:42:45 +00:00
RAIIObjectsForParser.h