summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Patch fixes a lookup bug in c++'s anonymous union memberFariborz Jahanian2010-01-221-1/+7
| | | | | | lookup. Fixes radar 7562438. llvm-svn: 94191
* No need to canonicalize the type and use dyn_cast. Also, correctly diagnose ↵Anders Carlsson2010-01-221-12/+10
| | | | | | trying to override a function returning an lvalue reference with a function overriding an rvalue reference. llvm-svn: 94183
* Eliminate some Clang warningsDouglas Gregor2010-01-222-9/+9
| | | | llvm-svn: 94177
* Simplify code.Benjamin Kramer2010-01-221-18/+8
| | | | llvm-svn: 94175
* Fix an obvious goof that caused us to only see the top level of return typesChandler Carruth2010-01-221-4/+4
| | | | | | | | | 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-29/+38
| | | | llvm-svn: 94163
* Process cast according to the cast kind. Prepare for more specific cast Zhongxing Xu2010-01-221-17/+47
| | | | | | handling (for C++). No functionality change for now. llvm-svn: 94153
* Driver/Darwin: Update tool chain to use static clang_rt libraries provided byDaniel Dunbar2010-01-221-10/+48
| | | | | | | | | | | | | | | | | | | | compiler-rt. This tool chain now works on x86 and ARM, but isn't the x86 default yet. This drastically cleans up the linker invocation, old invocation: -- "/Developer/usr/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.6.0" "-weak_reference_mismatches" "non-weak" "-o" "a.out" "-lcrt1.10.6.o" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64" "-L/usr/lib/i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.." "t.o" "-lSystem" "-lgcc" -- New invocation: -- # For 10.6: "/usr/bin/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.6.0" "-o" "a.out" "-lcrt1.10.6.o" "t.o" "-lSystem" # For 10.4: "/usr/bin/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.4" "-o" "a.out" "-lcrt1.o" "t.o" "-lSystem" "-lgcc_s.10.4" "/Volumes/Data/ddunbar/llvm.obj.64/Debug/lib/clang/1.1/lib/darwin/libclang_rt.10.4.a" -- llvm-svn: 94150
* Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,Daniel Dunbar2010-01-221-2/+1
| | | | | | not always added. llvm-svn: 94149
* Update debugging code.Mike Stump2010-01-221-16/+18
| | | | llvm-svn: 94145
* Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" archDaniel Dunbar2010-01-223-68/+73
| | | | | | name being used in an driver invocation. llvm-svn: 94139
* Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going toDaniel Dunbar2010-01-222-18/+5
| | | | | | diverge from gcc anyway. llvm-svn: 94138
* Use raw_ostream instead of cstdio.Daniel Dunbar2010-01-221-19/+21
| | | | llvm-svn: 94136
* Create function, block, and template parameters in the context of theJohn McCall2010-01-225-11/+20
| | | | | | | | | translation unit. This is temporary for function and block parameters; template parameters can just stay this way, since Templates aren't DeclContexts. This gives us the nice property that everything created in a record DC should have access in C++. llvm-svn: 94122
* revert my patch for rdar://7520940 that warns when a published headerChris Lattner2010-01-223-18/+4
| | | | | | | is #included with "foo.h" style syntax instead of framework syntax. It produced too much noise. llvm-svn: 94120
* Wire up the new range reporting for unreachable code.Mike Stump2010-01-211-6/+16
| | | | llvm-svn: 94118
* Improve unreachable code warnings with respect to dead member andMike Stump2010-01-211-0/+12
| | | | | | dead array references. llvm-svn: 94115
* Improve unreachable code warnings for with respect to dead functional casts ↵Mike Stump2010-01-211-0/+5
| | | | | | in C++. llvm-svn: 94106
* Improve unreachable code warnings for with respect to c-style casts.Mike Stump2010-01-211-0/+5
| | | | llvm-svn: 94094
* Improve unreachable code warnings for with respect to ? :.Mike Stump2010-01-211-4/+15
| | | | llvm-svn: 94093
* Allocate the 'Protocols' array in ObjCInterfaceType andTed Kremenek2010-01-212-2/+42
| | | | | | | | ObjCObjectPointerType using the allocator associated with ASTContext. Not only does this fix a memory leak, but it also makes these arrays BumpPtrAllocated (in the typical case). llvm-svn: 94090
* Patch to implement rewriting of properties.Fariborz Jahanian2010-01-215-5/+13
| | | | | | Fixes radar 7562952. llvm-svn: 94087
* Improve unreachable code warnings for with respect to compoundMike Stump2010-01-211-0/+6
| | | | | | assignments. llvm-svn: 94086
* Improve unreachable code warnings with respect to dead binary andMike Stump2010-01-212-7/+22
| | | | | | unary operators. llvm-svn: 94084
* Update to use llvm/utils/GetSourceVersion to detect version number, instead ofDaniel Dunbar2010-01-211-1/+1
| | | | | | assuming SVN. This should be fixed to not necessarily be an integer. llvm-svn: 94081
* Move the VTT related code into its own file, CGVTT.cppAnders Carlsson2010-01-213-378/+399
| | | | llvm-svn: 94079
* Teach code-completion to deal with calls to functions without prototypes.Douglas Gregor2010-01-211-15/+21
| | | | llvm-svn: 94076
* Speed up compilation by avoiding generating exceptional edges fromMike Stump2010-01-214-13/+75
| | | | | | | | | | | | | 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
* Move some recent checking code into SemaChecking instead.Mike Stump2010-01-212-429/+430
| | | | llvm-svn: 94067
* Avoid instantiating std::sort to save on compiler size.Mike Stump2010-01-211-11/+5
| | | | llvm-svn: 94065
* When checking for unreachable code, we can trivially avoid checkingMike Stump2010-01-211-9/+15
| | | | | | | for unreachable loops if all the blocks are already marked live by this point. llvm-svn: 94064
* When checking for unreachable blocks, we can trivially avoid extraMike Stump2010-01-211-3/+11
| | | | | | work, if we know we already marked all blocks as live. llvm-svn: 94063
* Add infrastructure to add base initializers and member initializers toMike Stump2010-01-212-5/+13
| | | | | | the CFG. WIP. llvm-svn: 94062
* Fixes comments.Fariborz Jahanian2010-01-211-2/+2
| | | | llvm-svn: 94053
* Also allow cast of block pointer type toFariborz Jahanian2010-01-211-0/+7
| | | | | | | pointer to an any object. Another variation of radar 7562285. llvm-svn: 94052
* A Decl->getName() is not unique. However, the debug info descriptors Devang Patel2010-01-201-1/+8
| | | | | | | | | | are uniqued. The debug info descriptor describing record's context is necessary to keep two Decl's descriptor unique if their name match. There is more work to do to create descriptors for DeclContext. As a temp. step use type's name in FwdDecl. llvm-svn: 94050
* In objective-c++ land, a block pointer is another object pointer.Fariborz Jahanian2010-01-201-1/+9
| | | | | | | So, casting a generic object pointer ('id' or 'Class') to the block pointer is allowed. Fixes radar 7562285. llvm-svn: 94045
* First pass at collecting access-specifier information along inheritance paths.John McCall2010-01-206-9/+60
| | | | | | | | Triggers lots of assertions about missing access information; fix them. Will actually consume this information soon. llvm-svn: 94038
* Settled rule on warning on unimplemented property inFariborz Jahanian2010-01-201-2/+28
| | | | | | | | category implementation when some implementations are missing in the primary class implementation. (fixes radar 6505200). llvm-svn: 94014
* reduce redundant are'sChris Lattner2010-01-201-1/+1
| | | | llvm-svn: 94009
* Improve performance of warning when not implementing a required Fariborz Jahanian2010-01-201-13/+13
| | | | | | | property of a protocol (my previous patch). No change in functionality. (radar 7544809). llvm-svn: 94005
* Make some helper functions static.Benjamin Kramer2010-01-201-5/+5
| | | | llvm-svn: 94004
* Don't store a Twine temporary, it's unsafe.Benjamin Kramer2010-01-201-4/+6
| | | | llvm-svn: 94003
* Correct comments.Zhongxing Xu2010-01-201-1/+1
| | | | llvm-svn: 93999
* Move the MacroBuilder utilitiy to its own header. Update references.Chandler Carruth2010-01-202-0/+2
| | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982
* Fix an invalid Twine use spotty by abbeyj, it isn't safe to use TwineDaniel Dunbar2010-01-201-1/+4
| | | | | | | temporaries (this is one reason I'm nervous about propagating their use beyond particularly performance critical places). llvm-svn: 93981
* Actually remove the include that r93974 made unnecessary.Chandler Carruth2010-01-201-1/+0
| | | | llvm-svn: 93975
* Add a missing case for DeclContext printer.Zhongxing Xu2010-01-201-0/+5
| | | | llvm-svn: 93973
* Driver: Lift clang resource directory computation to the Driver object.Daniel Dunbar2010-01-202-9/+9
| | | | llvm-svn: 93971
* clang/Darwin: Update for rename of 10.4 static runtime library.Daniel Dunbar2010-01-201-1/+1
| | | | llvm-svn: 93970
OpenPOWER on IntegriCloud