summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Patch removes IVars list from ObjCInterfaceDecl andFariborz Jahanian2010-02-1910-30/+47
| | | | | | instead relies on their DeclContext for iteration, etc. llvm-svn: 96638
* remove unused function & enumerationsBlaine Garst2010-02-192-39/+2
| | | | llvm-svn: 96635
* Teach ASTUnit to keep track of temporary files, then delete them whenDouglas Gregor2010-02-184-17/+41
| | | | | | the ASTUnit itself is destroyed. Fixes <rdar://problem/7649385>. llvm-svn: 96628
* Re-apply my diagnostics-capture patch for CIndex, with some tweaks toDouglas Gregor2010-02-1810-136/+296
| | | | | | try to address the msvc failures. llvm-svn: 96624
* Allow GNU attributes to appear in an Objective-C method declarationTed Kremenek2010-02-182-5/+15
| | | | | | | before the selector name (but after the return type). Among other things, this allows IBAction to be implemented with an attribute. llvm-svn: 96623
* Revert "Sort visitor methods so we can easily tell what's implemented."Ted Kremenek2010-02-181-14/+14
| | | | | | This reverts commit 4383e04c75731f8695b8355783f9966ac56b0926. llvm-svn: 96622
* Revert "Tidy up order of switch statement. No functionality change."Ted Kremenek2010-02-181-20/+24
| | | | | | This reverts commit 95575005fc6409df98e6e079caf324308f62171b. llvm-svn: 96620
* Revert my CIndex diagnostic changes (r96603, 96606, 96607), which wereDouglas Gregor2010-02-188-275/+123
| | | | | | breaking the msvc9 builder for unknown reasons. llvm-svn: 96618
* Revert the ctor/dtor alias optimization for now; the buildbots can detectJohn McCall2010-02-1810-156/+44
| | | | | | some failure here that I can't. llvm-svn: 96612
* Fixed a crash specific to blocks in c++ uncovered by an internalFariborz Jahanian2010-02-182-1/+38
| | | | | | test suite. llvm-svn: 96608
* Introduce debugging/testing hook clang_enableStackTraces() intoDouglas Gregor2010-02-184-2/+9
| | | | | | | CIndex, so that c-index-test to use it to call lvm::sys::PrintStackTraceOnErrorSignal(). llvm-svn: 96607
* Resurrect the displayDiagnostics parameter to clang_createIndex(), andDouglas Gregor2010-02-185-18/+59
| | | | | | | display captured diagnostics when we can't return an invalid CXTranslationUnit. llvm-svn: 96606
* Make deleting and complete dtor variants defer to other dtor variants byJohn McCall2010-02-184-54/+131
| | | | | | | | calling them as subroutines. This triggers whenever the alias optimization doesn't, i.e. when the dtor has linkonce linkage or there are virtual bases or it's the deleting dtor. llvm-svn: 96605
* Introduce CIndex API functions for displaying a diagnostic, with someDouglas Gregor2010-02-185-104/+208
| | | | | | | | | | | knobs to control formatting. Eventually, I'd like to merge the implementation of this code with the TextDiagnosticPrinter, so that it's easy for CIndex clients to produce beautiful diagnostics like the clang compiler does. Use this new function to display diagnostics within c-index-test. llvm-svn: 96603
* Tidy up order of switch statement. No functionality change.Ted Kremenek2010-02-181-24/+20
| | | | llvm-svn: 96602
* Sort visitor methods so we can easily tell what's implemented.Ted Kremenek2010-02-181-14/+14
| | | | llvm-svn: 96600
* Change cursor behavior for attributes to have them visited as part of recursingTed Kremenek2010-02-182-8/+2
| | | | | | to the children of a Decl. llvm-svn: 96599
* Attempt to fix the 32-bit test failures.Anders Carlsson2010-02-181-1/+1
| | | | llvm-svn: 96595
* tests: Tweak %clangxx definition to something which should be more portable.Daniel Dunbar2010-02-181-1/+1
| | | | llvm-svn: 96593
* Rework how CIndex handles diagnostics. Rather than using a callback,Douglas Gregor2010-02-1813-356/+504
| | | | | | | | | | | | | | | | | | we attach diagnostics to translation units and code-completion results, so they can be queried at any time. To facilitate this, the new StoredDiagnostic class stores a diagnostic in a serializable/deserializable form, and ASTUnit knows how to capture diagnostics in this stored form. CIndex's CXDiagnostic is a thin wrapper around StoredDiagnostic, providing a C interface to stored or de-serialized diagnostics. I've XFAIL'd one test case temporarily, because currently we end up storing diagnostics in an ASTUnit that's never returned to the user (because it contains errors). I'll introduce a temporary fix for this soon; the real fix will be to allow us to return and query invalid ASTs. llvm-svn: 96592
* Fix another bug and add another class.Anders Carlsson2010-02-182-2/+44
| | | | llvm-svn: 96590
* Add another class from cxx-vtable-ex.htmlAnders Carlsson2010-02-181-1/+25
| | | | llvm-svn: 96588
* More work on vcall offsets.Anders Carlsson2010-02-182-4/+86
| | | | llvm-svn: 96587
* Add tests from the Itanium C++ ABI spec.Anders Carlsson2010-02-181-0/+25
| | | | llvm-svn: 96586
* Start stubbing out vcall offset handling.Anders Carlsson2010-02-181-10/+60
| | | | llvm-svn: 96585
* Store the base offset of the final overrider in the OverriderInfo struct, to ↵Anders Carlsson2010-02-181-1/+6
| | | | | | be used for vcall offsets. llvm-svn: 96582
* Remove some dead code.Anders Carlsson2010-02-181-13/+0
| | | | llvm-svn: 96581
* Try to fix the auroraux buildbot. I suspect it has a "#define SEC" somewhere.Benjamin Kramer2010-02-181-6/+6
| | | | llvm-svn: 96577
* Add basic cursor traversal for attributes. We currently don't have sourceTed Kremenek2010-02-182-74/+79
| | | | | | ranges for Attr objects, so lookup by cursor location currently doesn't work. llvm-svn: 96571
* Also don't warn about force_align_arg_pointer on function typedefs. (This willCharles Davis2010-02-182-1/+4
| | | | | | | break if you declare an actual function using that typedef. Come to think of it, maybe I should make this part of the type.) llvm-svn: 96570
* Two fixes related to force_align_arg_pointer:Charles Davis2010-02-182-2/+8
| | | | | | | - Also recognize __force_align_arg_pointer__. - Don't warn if it's used on a function pointer typedef. llvm-svn: 96568
* Add some spacing in the code-completion results for a return statementDouglas Gregor2010-02-181-1/+3
| | | | llvm-svn: 96567
* Teach CMake to put the CIndex header into the Xcode/MSVC projectDouglas Gregor2010-02-181-0/+1
| | | | llvm-svn: 96566
* Extract out function-body code generation into its own method. No functionalityJohn McCall2010-02-183-111/+98
| | | | | | change. llvm-svn: 96564
* Start adding cursor kinds for attributes, with first exposingTed Kremenek2010-02-184-3/+40
| | | | | | IBActionAttr and IBOutletAttr respectively. llvm-svn: 96563
* Change the behavior of ibaction attributes to be attached to methods, not ivars.Ted Kremenek2010-02-182-18/+29
| | | | llvm-svn: 96562
* AST import for character literalsDouglas Gregor2010-02-184-0/+25
| | | | llvm-svn: 96557
* AST import for forward declarations of Objective-C protocolsDouglas Gregor2010-02-183-0/+57
| | | | llvm-svn: 96555
* Implement import of forward declarations of Objective-C classesDouglas Gregor2010-02-183-1/+52
| | | | llvm-svn: 96554
* Allow redefinitions of extern inline functions in GNU89 mode, just as GCCCharles Davis2010-02-183-3/+60
| | | | | | does. Fixes PR5253. llvm-svn: 96553
* AST import of Objective-C categories.Douglas Gregor2010-02-184-4/+146
| | | | llvm-svn: 96551
* __typeof should be able to handle block pointer types whenFariborz Jahanian2010-02-182-1/+7
| | | | | | rewriting. Fixes radar 7659483. llvm-svn: 96549
* Don't diagnose overflow in case statements when the conversion is aDouglas Gregor2010-02-182-3/+17
| | | | | | | signed<->unsigned conversion with the same bit width. Fixes <rdar://problem/7658121>. llvm-svn: 96545
* Recognize attributes ns_returns_not_retained and cf_returns_not_retainedTed Kremenek2010-02-182-2/+38
| | | | | | in the static analyzer. llvm-svn: 96539
* Add __has_feature support for attributes ns_returns_not_retainedTed Kremenek2010-02-181-1/+3
| | | | | | and cf_returns_not_retained. llvm-svn: 96538
* Sort @includes.Ted Kremenek2010-02-181-11/+11
| | | | llvm-svn: 96537
* Sort cases.Ted Kremenek2010-02-181-2/+2
| | | | llvm-svn: 96536
* Add 'ns_returns_not_retained' and 'cf_returns_not_retained' attributes toTed Kremenek2010-02-187-28/+50
| | | | | | | match 'ns_returns_retained' and 'cf_returns_retained' respectively. These are not yet hooked up to the static analyzer. llvm-svn: 96535
* For -Wswitch-enum warnings, be sure to look through typedefs of enumDouglas Gregor2010-02-173-2/+20
| | | | | | types. Fixes <rdar://problem/7643909>. llvm-svn: 96531
* Hook the "overflow converting case value to switch condition type"Douglas Gregor2010-02-171-1/+2
| | | | | | warning into -Wswitch. llvm-svn: 96529
OpenPOWER on IntegriCloud