summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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