hanchenye-llvm-project/clang/test/FixIt
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
..
atomic-property.m
auto-fixit.m
bridge-in-non-arc.m Use some heuristics so that when a fixit removes a source range, we try 2012-12-20 21:05:53 +00:00
dereference-addressof.c
fixit-autoreleasepool.m
fixit-c90.c Remove useless 'XPASS: *' from tests 2013-01-25 22:20:24 +00:00
fixit-cxx0x.cpp Provide a fixit for constexpr non-static data members. 2013-01-30 01:22:18 +00:00
fixit-cxx11-attributes.cpp Add fixit hints for misplaced C++11 attributes around class specifiers. 2013-01-07 16:57:11 +00:00
fixit-cxx11-compat.cpp
fixit-errors-1.c Remove useless 'XPASS: *' from tests 2013-01-25 22:20:24 +00:00
fixit-errors.c This test actually passes, just add the missing expected-error 2013-01-25 22:08:24 +00:00
fixit-function-call.cpp
fixit-include.c Per discussion in http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120917/064551.html 2012-09-27 01:42:07 +00:00
fixit-include.h
fixit-interface-as-param.m
fixit-missing-method-return-type.m
fixit-missing-self-in-block.m objective-C arc: Warn under arc about a use of an ivar inside a block 2012-10-03 17:55:29 +00:00
fixit-newline-style.c Fix an assertion failure printing the unused-label fixit in files using CRLF line endings. <rdar://problem/12639047>. 2012-11-14 01:28:38 +00:00
fixit-objc-message-comma-separator.m
fixit-objc-message.m
fixit-objc.m objective-C: remove use of 'ivar' in favor of 2012-09-24 22:00:36 +00:00
fixit-pmem.cpp
fixit-recompile.c
fixit-recursive-block.c
fixit-static-object-decl.m
fixit-suffix.c
fixit-unicode.c Test fix-it ranges for Unicode characters. 2013-01-24 21:19:51 +00:00
fixit-unrecoverable.c
fixit-unrecoverable.cpp
fixit-vexing-parse-cxx0x.cpp
fixit-vexing-parse.cpp Improvements to vexing-parse warnings. Make the no-parameters case more 2012-07-30 21:30:52 +00:00
fixit.c If a comma operator is followed by a token which unambiguously indicates the 2012-09-18 00:52:05 +00:00
fixit.cpp Provide a fixit when taking the address of an unqualified member function. 2012-10-11 22:55:07 +00:00
format-darwin.m Format strings: correct signedness if already correcting width (%d,%u). 2013-01-17 18:47:16 +00:00
format-no-fixit.m
format.m Format strings: don't ever convert %+d to %lu. 2013-01-17 22:34:10 +00:00
format.mm Format strings: offer a cast to 'unichar' for %C in Objective-C contexts. 2012-12-05 18:44:49 +00:00
messages.cpp
no-fixit.cpp Provide a fixit when taking the address of an unqualified member function. 2012-10-11 22:55:07 +00:00
no-macro-fixit.c
no-typo.c
objc-literals.m
typo-crash.cpp
typo-crash.m
typo.c Migrate test from grep to -fdiagnostics-parseable-fixits 2013-01-25 21:41:29 +00:00
typo.cpp Fix typo correction of one qualified name to another. 2012-10-12 20:00:44 +00:00
typo.m