summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Enhance test to check on expected rewritten output.Fariborz Jahanian2010-01-241-1/+4
| | | | llvm-svn: 94368
* Fix a pretty bad bug where if a constructor (or conversion function) was ↵Anders Carlsson2010-01-241-0/+39
| | | | | | marked as 'explicit', but then defined out-of-line, we would not treat it as being explicit. llvm-svn: 94366
* Implement [dcl.fct.spec]p6.Anders Carlsson2010-01-241-3/+6
| | | | llvm-svn: 94365
* Land test case.Anders Carlsson2010-01-241-0/+13
| | | | llvm-svn: 94362
* Mangle static variables with an extra name to distinguish them from ↵Alexis Hunt2010-01-244-9/+17
| | | | | | | | non-static variables in the same TU. Fixes PR5966 for real this time; also reverts r92911, which had a incorrect fix. llvm-svn: 94352
* fix PR6034, a crash on invalid where the switch stack would get Chris Lattner2010-01-241-0/+8
| | | | | | unbalanced. llvm-svn: 94347
* disable this test, it is failing sporadically.Chris Lattner2010-01-241-2/+6
| | | | llvm-svn: 94344
* Fix a nasty bug where temporaries weren't marked as being conditional in ↵Anders Carlsson2010-01-241-1/+31
| | | | | | some cases. llvm-svn: 94341
* Use new initialization code when dealing with [dcl.init.aggr]p12. This fixes ↵Anders Carlsson2010-01-241-1/+28
| | | | | | the bug where array elements and member initializers weren't copied correctly. llvm-svn: 94340
* Use the new init code for member subobjects.Anders Carlsson2010-01-233-2/+5
| | | | llvm-svn: 94329
* Switch some array initialization over to the new init code.Anders Carlsson2010-01-231-0/+3
| | | | llvm-svn: 94327
* Insulate these from changes to the default for -Wunreachable-code.Mike Stump2010-01-2314-32/+32
| | | | llvm-svn: 94326
* Baby steps towards migrating the InitListChecker over to the new ↵Anders Carlsson2010-01-231-0/+4
| | | | | | initialization code. Pass an InitializedEntity pointer through to most init checker functions. Right now, it's ignored everywhere except when initializing vectors in C++. llvm-svn: 94325
* Adjust testcase for recent AsmPrinter changes, sigh.Benjamin Kramer2010-01-231-34/+34
| | | | llvm-svn: 94307
* Adjust testcase for recent DWARF printer changes.Benjamin Kramer2010-01-231-1/+1
| | | | llvm-svn: 94306
* Produce a special diagnostic when users call a function with an argument ofJohn McCall2010-01-231-0/+14
| | | | | | | | | | | | | | | | incomplete type (or a pointer/reference to such). The causes of this problem are different enough to justify a different "design" for the diagnostic. Most notably, it doesn't give an operand index: it's usually pretty obvious which operand is the problem, it adds a lot of clutter to mention it, and the fix is usually in a different part of the file anyway. This is yet another diagnostic that should really have an analogue in the non-overloaded case --- which should be much easier to write because of the weaker space constraints. llvm-svn: 94303
* Fix the EntityKind order so that all entity kinds that can be copied (using ↵Anders Carlsson2010-01-231-1/+1
| | | | | | copy constructors) come first. Also, fix a bug where EK_New was left out of the err_init_conversion_failed diagnostic (It is now reported as 'new value'). Please review Doug :) llvm-svn: 94289
* Implement elementary access control.John McCall2010-01-232-4/+155
| | | | llvm-svn: 94268
* Teach the cursor visitor to recurse into the type information ofDouglas Gregor2010-01-231-0/+13
| | | | | | explicit casts, sizeof, alignof, and compound literals. llvm-svn: 94265
* Fix a FIXME, this test folds to a constant now.Daniel Dunbar2010-01-231-6/+3
| | | | llvm-svn: 94263
* Extend clang_createTranslationUnitFromSourceFile() to support creatingDouglas Gregor2010-01-233-0/+21
| | | | | | translation units that include unsaved files. llvm-svn: 94258
* outside a method, 'super' should resolve in a normal name look upFariborz Jahanian2010-01-221-0/+7
| | | | | | to mimic gcc's behavior. Fixes radar 7400691. llvm-svn: 94246
* Fixup the rest of the testcases to grep the .ll file instead of the .sMike Stump2010-01-221-263/+22
| | | | | | file, and add FIXMEs to the remaining broken tests. llvm-svn: 94238
* Fixes test.Fariborz Jahanian2010-01-221-2/+2
| | | | llvm-svn: 94236
* Convert more testcases to checking the .ll file instead of the .s file.Mike Stump2010-01-221-269/+105
| | | | llvm-svn: 94229
* ui64, etc. are valid VS suffixes.Fariborz Jahanian2010-01-221-1/+14
| | | | | | Fixes radar 7562363. llvm-svn: 94224
* Eliminate index-test; all of its tested functionality is now in c-index-test.Douglas Gregor2010-01-226-186/+0
| | | | llvm-svn: 94211
* Be sure to select primary bases among the nearly empties in preorder,Mike Stump2010-01-221-0/+39
| | | | | | | not just among the direct bases. Before we where missing nearly empties that were bases of virtual base classes. llvm-svn: 94208
* Teach CIndex's cursor visitor to restrict its traversal to a specificDouglas Gregor2010-01-227-332/+66
| | | | | | | | | | | | | | region of interest (if provided). Implement clang_getCursor() in terms of this traversal rather than using the Index library; the unified cursor visitor is more complete, and will be The Way Forward. Minor other tweaks needed to make this work: - Extend Preprocessor::getLocForEndOfToken() to accept an offset from the end, making it easy to move to the last character in the token (rather than just past the end of the token). - In Lexer::MeasureTokenLength(), the length of whitespace is zero. llvm-svn: 94200
* Patch fixes a lookup bug in c++'s anonymous union memberFariborz Jahanian2010-01-221-0/+10
| | | | | | lookup. Fixes radar 7562438. llvm-svn: 94191
* No need to canonicalize the type and use dyn_cast. Also, correctly diagnose ↵Anders Carlsson2010-01-221-1/+40
| | | | | | trying to override a function returning an lvalue reference with a function overriding an rvalue reference. llvm-svn: 94183
* Fix an obvious goof that caused us to only see the top level of return typesChandler Carruth2010-01-221-0/+17
| | | | | | | | | when checking for covariance. Added some fun test cases, fixes PR6110. This felt obvious enough to just commit. ;] Let me know if anything needs tweaking. llvm-svn: 94173
* Ensure we output all non-virtual base vtables. Fixes PR5890.Mike Stump2010-01-221-0/+14
| | | | llvm-svn: 94163
* Teach the cursor visitor to walk all of the C and Objective-CDouglas Gregor2010-01-221-0/+13
| | | | | | | | declarations that have enough source information to make such a walk useful. This includes walking into variable initializers and enum constants, the types behind typedefs, etc. llvm-svn: 94124
* revert my patch for rdar://7520940 that warns when a published headerChris Lattner2010-01-223-14/+0
| | | | | | | is #included with "foo.h" style syntax instead of framework syntax. It produced too much noise. llvm-svn: 94120
* Teach the cursor visitor to walk statements and expressions, includingDouglas Gregor2010-01-211-0/+12
| | | | | | a few important subkinds. Now we're cookin' with gas! llvm-svn: 94116
* Improve unreachable code warnings with respect to dead member andMike Stump2010-01-212-0/+34
| | | | | | dead array references. llvm-svn: 94115
* Improve unreachable code warnings for with respect to dead functional casts ↵Mike Stump2010-01-211-1/+4
| | | | | | in C++. llvm-svn: 94106
* Improve unreachable code warnings for with respect to c-style casts.Mike Stump2010-01-211-0/+3
| | | | llvm-svn: 94094
* Improve unreachable code warnings for with respect to ? :.Mike Stump2010-01-212-0/+7
| | | | llvm-svn: 94093
* Revert r94073, it fails in Release-Asserts builds.Benjamin Kramer2010-01-211-66/+66
| | | | llvm-svn: 94089
* Patch to implement rewriting of properties.Fariborz Jahanian2010-01-211-0/+3
| | | | | | Fixes radar 7562952. llvm-svn: 94087
* Improve unreachable code warnings for with respect to compoundMike Stump2010-01-211-0/+5
| | | | | | assignments. llvm-svn: 94086
* Teach the cursor visitor to walk into a variety of different TypeLocDouglas Gregor2010-01-211-2/+5
| | | | | | kinds, so that we see referenced types, protocols, classes, etc. llvm-svn: 94085
* Improve unreachable code warnings with respect to dead binary andMike Stump2010-01-212-5/+18
| | | | | | unary operators. llvm-svn: 94084
* Introduce type references into the C API, capturing references toDouglas Gregor2010-01-212-1/+2
| | | | | | typedefs only (for now). llvm-svn: 94078
* Teach code-completion to deal with calls to functions without prototypes.Douglas Gregor2010-01-211-0/+15
| | | | llvm-svn: 94076
* Speed up compilation by avoiding generating exceptional edges fromMike Stump2010-01-211-0/+35
| | | | | | | | | | | | | CallExprs as those edges help cause a n^2 explosion in the number of destructor calls. Other consumers, such as static analysis, that would like to have more a more complete CFG can select the inclusion of those edges as CFG build time. This also fixes up the two compilation users of CFGs to be tolerant of having or not having those edges. All catch code is assumed be to live if we didn't generate the exceptional edges for CallExprs. llvm-svn: 94074
* Match branch labels with the trailing colon so we don't accidentally match ↵Benjamin Kramer2010-01-211-66/+66
| | | | | | something else. llvm-svn: 94073
* Also allow cast of block pointer type toFariborz Jahanian2010-01-211-0/+19
| | | | | | | pointer to an any object. Another variation of radar 7562285. llvm-svn: 94052
OpenPOWER on IntegriCloud