summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Silence a control reaches end of function warning. Patch by EneaMike Stump2010-01-181-0/+1
| | | | | | Zaffanella. llvm-svn: 93743
* Mostly renaming some methods and updating comments toFariborz Jahanian2010-01-182-31/+40
| | | | | | | reflect what these methods are actually doing. One method template for future work. No change in functionality. llvm-svn: 93742
* Make CMake's clang++ installation respect DESTDIR, based on a patch byDouglas Gregor2010-01-181-1/+1
| | | | | | Ingmar Vanhassel. Fixes PR6046. llvm-svn: 93741
* Improve source-location information for builtin TypeLocs, from EneaDouglas Gregor2010-01-189-48/+333
| | | | | | Zaffanella (with a couple of my tweaks). llvm-svn: 93733
* Don't build/install clang++ in CLANG_IS_PRODUCTION build mode yet.Daniel Dunbar2010-01-181-0/+2
| | | | llvm-svn: 93732
* Fix -Asserts warning.Daniel Dunbar2010-01-181-2/+1
| | | | llvm-svn: 93731
* Fix race condition in creating objdir.Daniel Dunbar2010-01-181-4/+2
| | | | llvm-svn: 93730
* Encoding calling conventions in the type system, from Charles Davis!Douglas Gregor2010-01-186-42/+127
| | | | llvm-svn: 93726
* More VTT builder fixes. With these fixes we now correctly handle the very ↵Anders Carlsson2010-01-182-5/+62
| | | | | | complex VTT example from the Itanium ABI spec. llvm-svn: 93725
* Add support for computing size in elements for symbolic regions obtained fromZhongxing Xu2010-01-186-12/+47
| | | | | | malloc(). llvm-svn: 93722
* Move some common code into BuildVTT.Anders Carlsson2010-01-181-6/+3
| | | | llvm-svn: 93710
* Fix a bunch of VTT layout bugs, add simple tests for VTT layout.Anders Carlsson2010-01-183-11/+50
| | | | llvm-svn: 93709
* Add test case for pr6069.Zhongxing Xu2010-01-181-0/+6
| | | | llvm-svn: 93708
* Update virt.cpp for changes to the LLVM asm printer (?) This test should ↵Anders Carlsson2010-01-181-2/+2
| | | | | | really be all LLVM IR... llvm-svn: 93707
* If the symbol has not been tracked, do not free it. This is possible when freeZhongxing Xu2010-01-181-1/+6
| | | | | | is called on a pointer that does not get its value directly from malloc. llvm-svn: 93706
* Minor VTT builder cleanup, no functionality change.Anders Carlsson2010-01-171-14/+12
| | | | llvm-svn: 93696
* Get the ctor vtable address points directly from the VTT builder.Anders Carlsson2010-01-171-2/+12
| | | | llvm-svn: 93681
* PR6055: fix FreeBSD c++ include path. patch by Roman DivackyNuno Lopes2010-01-171-1/+1
| | | | llvm-svn: 93668
* Introduce a second queue of "local" pending implicit instantiation,Douglas Gregor2010-01-164-11/+61
| | | | | | | | | | which are instantiations of the member functions of local classes. These implicit instantiations have to occur at the same time as---and in the same local instantiation scope as---the enclosing function, since the member functions of the local class can refer to locals within the enclosing function. This should really, really fix PR5764. llvm-svn: 93666
* Add PCH support for CXXStaticCastExpr, CXXDynamicCastExpr, ↵Sam Weinig2010-01-166-1/+173
| | | | | | CXXReinterpretCastExpr, CXXConstCastExpr and CXXFunctionalCastExpr. llvm-svn: 93658
* While determining when to parse inline member functions of a class,Douglas Gregor2010-01-162-8/+47
| | | | | | | | | | | | distinguish between nested classes (whose member functions cannot be parsed until the innermost non-nested class is complete) and local classes (that are defined within a function but are not necessarily nested). The upshot of this change, which fixes PR5764, is that the bodies of member functions of local (non-nested) classes need to be parsed when the local class is complete (and no later), since they may refer to function-local static variables, typedefs, enums, etc. llvm-svn: 93653
* When we are instantiating a member function of a local class, be sureDouglas Gregor2010-01-164-9/+33
| | | | | | | | | to merge the local instantiation scope with the outer local instantiation scope, so that we can instantiate declarations from the function owning the local class. Fixes an assert while instantiating Boost.MPL's BOOST_MPL_ASSERT_MSG. llvm-svn: 93651
* Fix a rewriting crash and correct rewriting of __blockFariborz Jahanian2010-01-162-7/+29
| | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650
* Improve the test for unused-expression warnings slightlyDouglas Gregor2010-01-161-0/+9
| | | | llvm-svn: 93644
* Partial fix for PR6022, where we were complaining when a friendDouglas Gregor2010-01-162-2/+19
| | | | | | | | function template declared within a class template did not match a function in another scope. We really need to rework how friends-in-templates are semantically checked. llvm-svn: 93642
* Give ObjCClassRef cursors a sane representation, which is encapsulatedDouglas Gregor2010-01-168-47/+48
| | | | | | | | | in CXCursor.cpp. With this sane representation, fix the class reference that is part of Objective-C category declarations so that the cursor's location matches up with the reference, not the class being referred to. llvm-svn: 93640
* Improve location information for Objective-C category declarations. WeDouglas Gregor2010-01-166-17/+39
| | | | | | | | | | | | | previously only had a single location (the @ in @interface); now we know where the @ is (for the start of the declaration), where the class name is (that's the normal "location" now for diagnostics), and where the category name is. Also, eliminated the redundant "end" location, since ObjCContainerDecl already has better @end information. The only XFAIL'd test is temporary; will un-XFAIL-it once I've taught CIndex how to use the new locations. llvm-svn: 93639
* Use a sane encoding for CXCursor_ObjCProtocolRef, using the actualDouglas Gregor2010-01-166-34/+57
| | | | | | | source locations where the protocols were referenced rather than the location of some random enclosing declaration. llvm-svn: 93637
* Keep track of the source locations for each protocol reference inDouglas Gregor2010-01-1610-44/+179
| | | | | | | | Objective-C classes, protocol definitions, forward protocol declarations, and categories. This information isn't actually used yet; that's coming next. llvm-svn: 93636
* Give CXCursor_ObjCSuperClassRef a sane encoding, which is only knownDouglas Gregor2010-01-164-14/+46
| | | | | | to CXCursor.cpp. llvm-svn: 93634
* Fix a use of uninitialized memory in overload diagnostics.John McCall2010-01-161-1/+4
| | | | llvm-svn: 93629
* Add mapping from ObjCPropertDecl to CXCursorKind.Ted Kremenek2010-01-161-0/+1
| | | | llvm-svn: 93623
* Remove 'default' case in switch statement in clang_getCursorKindSpelling(). ↵Ted Kremenek2010-01-162-23/+25
| | | | | | This identified a missing case (warned by the compiler) and identified that CXCursor_FirstDecl didn't actually correspond to the first decl. llvm-svn: 93622
* Remove TranslateKind and centralize Decl -> CXCursorKind in GetCursorKind(). ↵Ted Kremenek2010-01-168-79/+75
| | | | | | This revealed a bunch of inconsistencies in how CXCursorKinds were being computed. llvm-svn: 93618
* Add codgen for BI__builtin_llvm_memory_barrier.Tanya Lattner2010-01-161-0/+12
| | | | llvm-svn: 93611
* The codegen for these builtins was removed long ago, but their definitions ↵Tanya Lattner2010-01-161-6/+0
| | | | | | remained. Removing them totally. llvm-svn: 93607
* Fix crash generating debug info for constructor for anonymous struct.Eli Friedman2010-01-162-1/+7
| | | | llvm-svn: 93601
* Migrate Decl* -> cursorkind logic into CXCursor.cpp, and drastically tighten ↵Ted Kremenek2010-01-163-69/+53
| | | | | | TUVisitor. llvm-svn: 93599
* Make the AST explicitly represent the cast of the first operand of a Eli Friedman2010-01-162-3/+16
| | | | | | pointer-to-member operator. llvm-svn: 93592
* Remove unused code.Ted Kremenek2010-01-151-36/+0
| | | | llvm-svn: 93586
* Refactor USR logic for EnumDecls and RecordDecls so that both handle ↵Ted Kremenek2010-01-151-15/+16
| | | | | | 'anonymous' declarations in the same way. llvm-svn: 93585
* Generalize handling for unreachable code warnings to all binary operators.Mike Stump2010-01-152-20/+17
| | | | llvm-svn: 93584
* Candidates with arity mismatches are extra-special non-viable and need toJohn McCall2010-01-151-16/+32
| | | | | | | | stand at the back of the line. Thanks to Oliver Hunt for reminding me to do this. llvm-svn: 93583
* Refine location reporting for unreachable code warnings for comma expressions.Mike Stump2010-01-152-12/+101
| | | | llvm-svn: 93574
* USR generation: look at the typedef of an anonymous struct (if any) when ↵Ted Kremenek2010-01-151-2/+6
| | | | | | trying to generate a USR. llvm-svn: 93572
* define __weak to null in rewritten source for Fariborz Jahanian2010-01-151-0/+1
| | | | | | -fms-extensions as well. llvm-svn: 93569
* Make CXCursor's data opaque.Douglas Gregor2010-01-155-48/+82
| | | | llvm-svn: 93561
* Make LookupResult::resolveKind() robust against NotFoundInCurrentInstantiation.John McCall2010-01-151-1/+1
| | | | | | Fixes PR 6049. llvm-svn: 93557
* Add CXCursor.[h,cpp]. These files will centralize the logic for ↵Ted Kremenek2010-01-154-12/+63
| | | | | | creating/probing CXCursors. llvm-svn: 93547
* Fix a couple bugs in copy assignment operator synthesis.Eli Friedman2010-01-152-19/+25
| | | | llvm-svn: 93546
OpenPOWER on IntegriCloud