summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* When we encounter a '==' in a context expecting a '=', assume the user made ↵Argyrios Kyrtzidis2010-10-081-0/+12
| | | | | | | | | | | | | a typo: t.c:1:7: error: invalid '==' at end of declaration; did you mean '='? int x == 0; ^~ = Implements rdar://8488464. llvm-svn: 116035
* Better diagnostic for superfluous scope specifier inside a class definition ↵Francois Pichet2010-10-011-0/+5
| | | | | | | | | | | for member functions. + Fixit. Example: class A { void A::foo(); //warning: extra qualification on member 'foo' }; llvm-svn: 115347
* add a fixit when 'main' does ot return 'int'; review welcomeGabor Greif2010-09-081-0/+6
| | | | llvm-svn: 113324
* Improve diagnostic and recovery when missing a comma between base orDouglas Gregor2010-09-071-0/+9
| | | | | | member initializers in a C++ constructor. Fixes <rdar://problem/7796492>. llvm-svn: 113199
* Teach clang -fixit to modify files in-place, or -fixit=suffix to create newNick Lewycky2010-04-241-3/+5
| | | | | | files with the additional suffix in the middle. llvm-svn: 102230
* Thread a Scope pointer into BuildRecoveryCallExpr to help typoDouglas Gregor2010-04-141-0/+9
| | | | | | | correction find names when a call failed. Fixes <rdar://problem/7853795>. llvm-svn: 101278
* When a declaration of a function is missing an exception specificationDouglas Gregor2010-03-241-0/+3
| | | | | | | | | | | | | | | | | | | | | that was present in a prior declaration, emit a warning rather than a hard error (which we did before, and still do with mismatched exception specifications). Moreover, provide a fix-it hint with the throw() clause that should be added, e.g., t.C:10:7: warning: 'operator new' is missing exception specification 'throw(std::bad_alloc)' void *operator new(unsigned long sz) ^ throw(std::bad_alloc) As part of this, disable the warning when we're missing an exception specification on operator new, operator new[], operator delete, or operator delete[] when exceptions are turned off (-fno-exceptions). Fixes PR5957. llvm-svn: 99388
* Make this fix-it test case actually fail when there is a problem; addDouglas Gregor2010-02-011-8/+9
| | | | | | | a test for access declarations and remove a (broken) test for removal of default arguments. llvm-svn: 95032
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Update FixIt tests to make it more obvious they use a separate mode.Daniel Dunbar2009-11-141-1/+1
| | | | llvm-svn: 88758
* 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
* Move the fix-it tests into their own subdirectoryDouglas Gregor2009-04-021-0/+29
llvm-svn: 68325
OpenPOWER on IntegriCloud