clang/test/FixIt
Alexander Shaposhnikov b813e9608d [Sema] Add fixit for unused lambda captures
This diff adds a fixit to suggest removing unused lambda captures 
in the appropriate diagnostic.

Patch by Andrew Comminos!

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D48845


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337148 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-16 07:23:47 +00:00
..
Inputs [Sema] Put nullability fix-it after the end of the pointer. 2017-09-28 23:18:49 +00:00
atomic-property.m Stop back-patching 'readonly' Objective-C properties with 'readwrite' ones. 2015-11-03 01:15:46 +00:00
auto-fixit.m
auto-isa-fixit.m Objective-C: Provide fixit hints when warning 2013-04-02 18:57:54 +00:00
bridge-cast-in-arc.mm Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
bridge-in-non-arc.m Objective-C arc [qui]. Don't issue the bridge cast 2013-04-02 23:48:59 +00:00
dereference-addressof.c
fixit-add-synthesize-to-property.m Add a fixit for -Wobjc-protocol-property-synthesis 2017-07-03 10:12:24 +00:00
fixit-autoreleasepool.m Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
fixit-availability.c unguarded availability: add a fixit for the "annotate '...' 2017-07-26 13:58:02 +00:00
fixit-availability.mm Unguarded availability diagnoser should use TraverseStmt instead of 2017-08-17 14:22:27 +00:00
fixit-c90.c Remove useless 'XPASS: *' from tests 2013-01-25 22:20:24 +00:00
fixit-class-method-messaging.m Objective-C [qoi]. Provide fix-it hint when sending 2014-08-19 23:39:17 +00:00
fixit-cxx0x.cpp [c++2a] Implement P0409R2 - Allow lambda capture [=,this] (by hamzasood) 2017-08-19 03:43:07 +00:00
fixit-cxx1y-compat.cpp C++1y is now C++14! 2014-08-19 15:55:55 +00:00
fixit-cxx11-attributes.cpp Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
fixit-cxx11-compat.cpp Implement C++11 [lex.ext]p10 for string and character literals: a ud-suffix not 2012-03-08 02:39:21 +00:00
fixit-eof-space.c [edit] Don't hit an assert when trying to delete a trailing space at EOF 2015-03-29 18:07:29 +00:00
fixit-errors-1.c Fix test to actually check the FixIt-applied code 2013-11-03 01:50:38 +00:00
fixit-errors.c Set the default C standard to C99 when targeting the PS4. 2016-04-27 19:53:03 +00:00
fixit-format-darwin.m [clang] Enable printf check for CFIndex 2017-06-26 23:02:27 +00:00
fixit-format-ios-nopedantic.m [Sema] -Wformat-pedantic only for NSInteger/NSUInteger %zu/%zi on Darwin 2018-06-22 21:54:40 +00:00
fixit-format-ios.m [Sema] -Wformat-pedantic only for NSInteger/NSUInteger %zu/%zi on Darwin 2018-06-22 21:54:40 +00:00
fixit-function-call.cpp
fixit-include.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
fixit-include.h Normalize line endings 2014-03-02 18:46:05 +00:00
fixit-interface-as-param.m FixIt: use getLocForEndOfToken to insert fix-it after a type name. 2016-06-02 00:11:03 +00:00
fixit-large-file.cpp [fixit] Use overwriteChangedFiles() to deal with Windows mapped files 2015-06-17 17:47:30 +00:00
fixit-missing-method-return-type.m Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared. 2012-04-06 18:12:22 +00:00
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-multiple-selector-warnings.m Objective-C. When we use @selector(save:), etc. there may be more 2014-06-24 17:02:19 +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-nsstring-compare.m objc: Provide correct fixit instruction when two mismatched 2013-02-01 20:04:49 +00:00
fixit-nullability-declspec.cpp Replace __double_underscored type nullability qualifiers with _Uppercase_underscored 2015-06-24 22:02:08 +00:00
fixit-objc-arc.m Objective-C. After providing a fix-it for a 2013-12-18 21:04:43 +00:00
fixit-objc-bridge-related-attr.m Objective-C. Provide fixit's for objc_bride_related 2013-12-10 17:08:13 +00:00
fixit-objc-bridge-related-property.m ObjectiveC. Provide a property-dot syntax for fixit 2013-12-10 23:18:06 +00:00
fixit-objc-bridge-related.m Add a bunch of missing "CHECK" colons in tests. NFC. 2015-03-14 01:10:19 +00:00
fixit-objc-message-comma-separator.m Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
fixit-objc-message.m
fixit-objc.m ObjC Class Property: diagnostics when accessing a class property using instance. 2016-06-28 23:01:49 +00:00
fixit-pmem.cpp
fixit-pragma-attribute.c Add #pragma clang attribute 2017-04-18 14:33:39 +00:00
fixit-pragma-attribute.cpp Add #pragma clang attribute 2017-04-18 14:33:39 +00:00
fixit-pragma-pack.c -Wpragma-pack: add an additional note and fixit when warning 2017-07-31 13:37:50 +00:00
fixit-recompile.c Introduce 3 new fixit options: 2012-01-26 02:40:48 +00:00
fixit-recursive-block.c Unify warnings/errors from "maybe you meant" to "did you mean". 2015-04-02 22:10:06 +00:00
fixit-static-object-decl.m Unify return type checking for functions and ObjC methods. Move all the 2013-06-14 21:14:10 +00:00
fixit-suffix.c
fixit-typedef-instead-of-typename-typo.cpp [Parser][FixIt] Better diagnostics for "typedef" instead of "typename" typo 2018-02-08 14:37:58 +00:00
fixit-unicode-with-utf8-output.c check-clang: Introduce the feature "utf8-capable-terminal". 2014-02-06 07:15:59 +00:00
fixit-unicode.c Test for correct usage of columnWidth in clang fixit hints. 2013-09-11 18:10:30 +00:00
fixit-uninit.c Testcase I forgot to svn add in r191057. 2013-09-20 02:48:08 +00:00
fixit-unrecoverable.c
fixit-unrecoverable.cpp Wire up delayed typo correction to DiagnoseEmptyLookup and set up 2014-11-20 22:06:40 +00:00
fixit-unused-lambda-capture.cpp [Sema] Add fixit for unused lambda captures 2018-07-16 07:23:47 +00:00
fixit-vexing-parse-cxx0x.cpp Use character literals for vexing initialization fixit hints. 2012-03-18 02:56:47 +00:00
fixit-vexing-parse.cpp Add a "vexing parse" warning for ambiguity between a variable declaration and a 2017-09-29 23:57:25 +00:00
fixit.c [clang] Cleanup fixit.c 2017-06-09 22:20:52 +00:00
fixit.cpp Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
format-darwin.m [clang] Enable printf check for CFIndex 2017-06-26 23:02:27 +00:00
format-no-fixit.m Suggest '%@' for Objective-C objects in ObjC format strings. 2012-05-30 21:53:13 +00:00
format.m [clang] Add getUnsignedPointerDiffType method 2017-09-28 23:11:31 +00:00
format.mm Special case '%C' handling in ObjC format strings to handle integer literals that can represent unicode characters 2013-10-15 05:25:17 +00:00
messages.cpp Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
multiarg-selector-fixit.m Objective-C [qoi]. Patch to not do Fix-It for fixing 2014-08-12 22:16:41 +00:00
no-diagnostics-fixit-info.c Add a test for -fno-diagnostics-fixit-info 2013-12-17 01:19:19 +00:00
no-fixit.cpp [Sema] Improve the error diagnostic for dot destructor calls on pointer objects 2017-01-20 15:38:58 +00:00
no-macro-fixit.c
no-typo.c
nullability.mm [Sema] Put nullability fix-it after the end of the pointer. 2017-09-28 23:18:49 +00:00
objc-literals.m Now that -Wobjc-literal-compare is a warning, put the fixit on a note. 2012-07-17 17:46:40 +00:00
property-access-fixit.m Objective-C [qoi]. Issue warning and fixit if property-dot syntax 2014-08-08 22:33:24 +00:00
selector-fixit.m Objective-C [qoi]: privide typo correction for selectors 2013-06-18 15:31:36 +00:00
typo-crash.cpp Implement [class.friend]p11's special name lookup rules for friend declarations 2013-08-09 04:35:01 +00:00
typo-crash.m
typo-location-bugs.cpp Use the real CXXScopeSpec when setting the correction SourceRange. 2015-01-28 00:46:09 +00:00
typo-using.cpp Teach typo correction to look inside of classes like it does namespaces. 2013-09-26 19:10:29 +00:00
typo.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
typo.cpp Attempt typo correction for function calls with the wrong number of arguments. 2013-07-08 23:13:44 +00:00
typo.m Add the Pure attribute to C99 builtin functions from ctype.h. This is a corrected version of r266199 with test case fixes. 2016-05-04 21:08:13 +00:00