summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression from r185450.Eli Friedman2013-07-052-4/+14
| | | | | | | | As it turns out, the NoFunction bit for local class mangling needed to be propagated into more places. r185450 turned what used to be an incorrect mangling into an assertion. llvm-svn: 185713
* Objective-C: diagnose when synthesizing an ivar ofFariborz Jahanian2013-07-054-2/+14
| | | | | | abstract class type. // rdar://14261999 llvm-svn: 185710
* Add a test case for r185707/PR16547.Benjamin Kramer2013-07-051-0/+8
| | | | llvm-svn: 185708
* Fix PR16547.Rafael Espindola2013-07-051-2/+3
| | | | | | | | | | | We should not be asking unique_file to prepend the system temporary directory when creating the html report. Unfortunately I don't think we can test this with the current infrastructure since unique_file ignores MakeAbsolute if the directory is already absolute and the paths provided by lit are. I will take a quick look at making this api a bit less error prone. llvm-svn: 185707
* We don't need to check for windows' error codes in here.Rafael Espindola2013-07-051-3/+1
| | | | | | | The operator== calls equivalent which calls default_error_condition which handles windows to posix conversion. llvm-svn: 185702
* Fix formatting for allocation of new pointer variables.Daniel Jasper2013-07-052-1/+6
| | | | | | | | | | | | Before: T **t = new T * ; T **q = new T * (); After: T **t = new T *; T **q = new T *(); llvm-svn: 185699
* Improve detection for preventing certain kind of formatting patterns.Daniel Jasper2013-07-052-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a better implementation of r183097. The main purpose is to prevent certain constructs to be formatted "like a block of text". Before: aaaaaaaaaaaaa< aaaaaaaaaa, aaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>* aaaa = new aaaaaaaaaaaaa< aaaaaaaaaa, aaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>(bbbbbbbbbbbbbbbbbbbbbbbb); aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb] = (*cccccccccccccccc)[ dddddddddddddddddddddddddddddddddddddddddddddddddddddddd]; After: aaaaaaaaaaaaa<aaaaaaaaaa, aaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>* aaaa = new aaaaaaaaaaaaa<aaaaaaaaaa, aaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>( bbbbbbbbbbbbbbbbbbbbbbbb); aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb] = (*cccccccccccccccc)[ dddddddddddddddddddddddddddddddddddddddddddddddddddddddd]; llvm-svn: 185687
* Don't break after a "(" following a binary operator.Daniel Jasper2013-07-052-4/+13
| | | | | | | | | | | | | | | | Additionally, allow breaking after c-style casts, but with a high penalty. Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa *foo = ( aaaaaaaaaaaaaaaaa *)bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa *foo = (aaaaaaaaaaaaaaaaa *) bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; This fixes llvm.org/PR16049. llvm-svn: 185685
* Sema: Call IgnoreParens fewer times in CheckAddressOfOperandDavid Majnemer2013-07-051-4/+4
| | | | llvm-svn: 185684
* Use typedef for Densemap contraining SmallVector passed to a function to ↵Craig Topper2013-07-051-6/+4
| | | | | | avoid repeating SmallVector size. llvm-svn: 185683
* Add typedefs for Densemaps containing SmallVectors to avoid repeating the ↵Craig Topper2013-07-054-12/+15
| | | | | | SmallVector size when creating iterators for the DenseMap. llvm-svn: 185682
* Use the new --crash option in commands that are expected to crash.Rafael Espindola2013-07-052-2/+2
| | | | llvm-svn: 185679
* Add some more documentation on how to navigate from a LambdaExpr::CaptureJames Dennett2013-07-042-5/+10
| | | | | | to the associated FieldDecl. llvm-svn: 185674
* Minor documentation cleanupJames Dennett2013-07-041-10/+13
| | | | llvm-svn: 185672
* Add test for r185584.Roman Divacky2013-07-041-0/+1
| | | | llvm-svn: 185668
* Require a shell for this test.Rafael Espindola2013-07-041-0/+3
| | | | | | | Some versions of python will expand the glob used in the test, others wont, causing the test to fail when run with LIT_USE_INTERNAL_SHELL=1. llvm-svn: 185653
* Add 'not' to commands that are expected to fail.Rafael Espindola2013-07-04133-262/+262
| | | | | | | This is at least good documentation, but also opens the possibility of using pipefail. llvm-svn: 185652
* Looks like {{.*}} doesn't match the empty string. Fix test.Rafael Espindola2013-07-041-1/+1
| | | | llvm-svn: 185650
* Relax pattern to accept a signext on ppc64.Rafael Espindola2013-07-041-1/+1
| | | | llvm-svn: 185649
* Replace 'grep foo | count 0' with 'not grep foo'.Rafael Espindola2013-07-0418-31/+31
| | | | | | This avoids depending on pipefail not being used. llvm-svn: 185648
* Remove test for the old debug format which was XFAILed since 2009.Rafael Espindola2013-07-041-18/+0
| | | | llvm-svn: 185647
* Convert test to FileCheck.Rafael Espindola2013-07-041-27/+27
| | | | llvm-svn: 185645
* Add missing expected-warning.Rafael Espindola2013-07-041-1/+1
| | | | llvm-svn: 185644
* Remove more unused uses of -verify.Rafael Espindola2013-07-042-3/+3
| | | | llvm-svn: 185643
* Remove unused -verify.Rafael Espindola2013-07-041-1/+1
| | | | llvm-svn: 185641
* Fixed typo: NoneComment -> NonComment, no other changes.Alexander Kornienko2013-07-043-26/+26
| | | | llvm-svn: 185640
* clang -cc1 has no -fno-unit-at-a-time or -funit-at-a-time. Fix test.Rafael Espindola2013-07-041-2/+1
| | | | llvm-svn: 185639
* Use a clang -cc1 option instead of -m32 and remove tcl quotes.Rafael Espindola2013-07-041-1/+1
| | | | llvm-svn: 185637
* Remove tcl quotes.Rafael Espindola2013-07-041-1/+1
| | | | llvm-svn: 185636
* Convert test to FileCheck.Rafael Espindola2013-07-041-3/+5
| | | | llvm-svn: 185635
* Replace void with int to make this a valid C++ file.Rafael Espindola2013-07-041-4/+4
| | | | | | | | The test was passing because clang would still print the ast before exiting with an error. Since that didn't seem to be the intent of the test, I change the test instead of adding 'not' to the command line. llvm-svn: 185634
* Remove old test.Rafael Espindola2013-07-041-55/+0
| | | | | | | It was trivially passing because of the tcl quotes and we have better datalayout tests. llvm-svn: 185630
* Remove old test.Rafael Espindola2013-07-041-10/+0
| | | | | | | It was not clear what was being tested and the test was trivially passing by getting grep confused with tcl quotes. llvm-svn: 185629
* Clang has no nested function support. Delete this test.Rafael Espindola2013-07-041-3/+0
| | | | llvm-svn: 185628
* Use SmallVectorImpl::const_iterator instead of SmallVector to avoid ↵Craig Topper2013-07-041-2/+2
| | | | | | specifying the vector size. llvm-svn: 185623
* Added AlwaysBreakBeforeMultilineStrings option.Alexander Kornienko2013-07-044-0/+44
| | | | | | | | | | | | | | | | | Summary: Always breaking before multiline strings can help format complex expressions containing multiline strings more consistently, and avoid consuming too much horizontal space. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1097 llvm-svn: 185622
* Add test for PR4997. This has been fixed for a while.Richard Smith2013-07-041-0/+1
| | | | llvm-svn: 185614
* Testcase for PR14130, which was probably fixed by r183859.Richard Smith2013-07-041-0/+8
| | | | llvm-svn: 185613
* Add a space between closing template '>' to unbreak build.Craig Topper2013-07-041-1/+1
| | | | llvm-svn: 185611
* Use SmallVectorImpl instead of SmallVector for iterators and references to ↵Craig Topper2013-07-0430-75/+75
| | | | | | avoid specifying the vector size unnecessarily. llvm-svn: 185610
* [analyzer] Suppress reports reported in std::listAnna Zaks2013-07-043-8/+46
| | | | | | | | | | | The motivation is to suppresses false use-after-free reports that occur when calling std::list::pop_front() or std::list::pop_back() twice. The analyzer does not reason about the internal invariants of the list implementation, so just do not report any of warnings in std::list. Fixes radar://14317928. llvm-svn: 185609
* [analyzer] Make sure that inlined defensive checks work on div by zero.Anna Zaks2013-07-043-5/+46
| | | | | | | This suppresses a false positive in std::hash_map. Fixes radar://14255587. llvm-svn: 185608
* Part of PR15673: If a function template has a default argument in whichRichard Smith2013-07-044-6/+62
| | | | | | | | | substitution failed, report that as a substitution failure rather than pretending that there was no default argument. The test cases in PR15673 have exposed some pre-existing poor diagnostics here. llvm-svn: 185604
* Improve -Wlogical-not-parentheses to catch when the not is applied to an enum.Richard Trieu2013-07-042-1/+68
| | | | llvm-svn: 185602
* [ObjectiveC migrator] relax the rules for setter/getterFariborz Jahanian2013-07-041-3/+8
| | | | | | | types when deciding on validity of a property inclusion. // rdar://14345082 llvm-svn: 185599
* PR16480: Reimplement token-caching for constructor initializer lists. ThisRichard Smith2013-07-043-63/+217
| | | | | | | | | | | | | | | previously didn't work if a mem-initializer-id had a template argument which contained parentheses or braces. We now implement a simple rule: just look for a ') {' or '} {' that is not nested. The '{' is assumed to start the function-body. There are still two cases which we misparse, where the ') {' comes from a compound literal or from a lambda. The former case is not valid C++, and the latter will probably not be valid C++ once DR1607 is resolved, so these seem to be of low value, and we do not regress on them with this change. EDG and g++ also misparse both of these cases. llvm-svn: 185598
* Minor refactoring of my last patch.Fariborz Jahanian2013-07-031-22/+20
| | | | llvm-svn: 185593
* [ObjectiveC Migration]: Provide knobs for Fariborz Jahanian2013-07-031-2/+49
| | | | | | | | migrating setter/getter methods to an eventual property declaraiton. This is wip. // rdar://14345082 llvm-svn: 185591
* Check LongDoubleFormat instead of just Width as this is PowerPC specific.Roman Divacky2013-07-031-1/+2
| | | | llvm-svn: 185584
* [PowerPC] FreeBSD does not require f128 in its data layout string.Bill Schmidt2013-07-031-1/+1
| | | | | | Long double is 64 bits on FreeBSD PPC, so the f128 entry is superfluous. llvm-svn: 185582
OpenPOWER on IntegriCloud