summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt
Commit message (Collapse)AuthorAgeFilesLines
...
* When trying to assign a regular string literal to an Objective-C 'id' type ↵Anders Carlsson2009-11-101-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or a pointer to an NSString, emit a code insertion hint that turns it into an Objective-C string. For example: @class NSString; @interface Test + (void)test:(NSString *)string; @end void g(NSString *a); void f() { NSString *a = "Foo"; g("Foo"); [Test test:"Foo"]; } will produce t.m:10:17: warning: incompatible pointer types initializing 'char [4]', expected 'NSString *' NSString *a = "Foo"; ^~~~~ @ t.m:11:5: warning: incompatible pointer types passing 'char [4]', expected 'NSString *' g("Foo"); ^~~~~ @ t.m:12:14: warning: incompatible pointer types sending 'char [4]', expected 'NSString *' [Test test:"Foo"]; ^~~~~ @ 3 diagnostics generated. llvm-svn: 86665
* If a function with a default argument is redefined and the new function also ↵Anders Carlsson2009-11-101-0/+9
| | | | | | has a defualt argument then add a fixit hint that removes the default argument. Fixes PR5444. llvm-svn: 86659
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-1/+1
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Rework the fix-it hint for code likeDouglas Gregor2009-11-061-0/+10
| | | | | | | | | | | get_origin->x where get_origin is actually a function and the user has forgotten the parentheses. Instead of giving a lame note for the fix-it, give a full-fledge error, early, then build the call expression to try to recover. llvm-svn: 86238
* Add 'fixit' hint on mis-use of pointer-to-memberFariborz Jahanian2009-10-261-0/+23
| | | | | | binary operators. llvm-svn: 85153
* Update test case; I'm confused why this wasn't failing on the buildbotDaniel Dunbar2009-05-161-1/+1
| | | | | | though? llvm-svn: 71955
* Fixed the Fix-It hints for comparison against a string literal. Thanks, Chris!Douglas Gregor2009-04-061-2/+2
| | | | llvm-svn: 68454
* add fixit advice to an archiac ObjC issue.Chris Lattner2009-04-031-0/+8
| | | | llvm-svn: 68395
* Move the rest of the fixit tests to the FixIt area.Mike Stump2009-04-021-0/+13
| | | | llvm-svn: 68349
* Add a new command-line option "-fixit-at=file:line:column" that onlyDouglas Gregor2009-04-021-0/+5
| | | | | | | applies fix-its to error messages that occur at that specific location in the program. llvm-svn: 68342
* Move the fix-it tests into their own subdirectoryDouglas Gregor2009-04-024-0/+79
llvm-svn: 68325
OpenPOWER on IntegriCloud