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 clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
ParseAST.cpp Fix indent. 2012-12-21 19:43:33 +00:00
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 Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
ParsePragma.h Permanently end the whole "pragma got handled by the parser too early" 2012-10-04 02:36:51 +00:00
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 Use LLVM_DELETED_FUNCTION in place of 'DO NOT IMPLEMENT' comments. 2012-09-15 20:20:27 +00:00