Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Patch removes IVars list from ObjCInterfaceDecl and | Fariborz Jahanian | 2010-02-19 | 10 | -30/+47 | |
| | | | | | | instead relies on their DeclContext for iteration, etc. llvm-svn: 96638 | |||||
* | remove unused function & enumerations | Blaine Garst | 2010-02-19 | 2 | -39/+2 | |
| | | | | llvm-svn: 96635 | |||||
* | Teach ASTUnit to keep track of temporary files, then delete them when | Douglas Gregor | 2010-02-18 | 4 | -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 to | Douglas Gregor | 2010-02-18 | 10 | -136/+296 | |
| | | | | | | try to address the msvc failures. llvm-svn: 96624 | |||||
* | Allow GNU attributes to appear in an Objective-C method declaration | Ted Kremenek | 2010-02-18 | 2 | -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 Kremenek | 2010-02-18 | 1 | -14/+14 | |
| | | | | | | This reverts commit 4383e04c75731f8695b8355783f9966ac56b0926. llvm-svn: 96622 | |||||
* | Revert "Tidy up order of switch statement. No functionality change." | Ted Kremenek | 2010-02-18 | 1 | -20/+24 | |
| | | | | | | This reverts commit 95575005fc6409df98e6e079caf324308f62171b. llvm-svn: 96620 | |||||
* | Revert my CIndex diagnostic changes (r96603, 96606, 96607), which were | Douglas Gregor | 2010-02-18 | 8 | -275/+123 | |
| | | | | | | breaking the msvc9 builder for unknown reasons. llvm-svn: 96618 | |||||
* | Revert the ctor/dtor alias optimization for now; the buildbots can detect | John McCall | 2010-02-18 | 10 | -156/+44 | |
| | | | | | | some failure here that I can't. llvm-svn: 96612 | |||||
* | Fixed a crash specific to blocks in c++ uncovered by an internal | Fariborz Jahanian | 2010-02-18 | 2 | -1/+38 | |
| | | | | | | test suite. llvm-svn: 96608 | |||||
* | Introduce debugging/testing hook clang_enableStackTraces() into | Douglas Gregor | 2010-02-18 | 4 | -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(), and | Douglas Gregor | 2010-02-18 | 5 | -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 by | John McCall | 2010-02-18 | 4 | -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 some | Douglas Gregor | 2010-02-18 | 5 | -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 Kremenek | 2010-02-18 | 1 | -24/+20 | |
| | | | | llvm-svn: 96602 | |||||
* | Sort visitor methods so we can easily tell what's implemented. | Ted Kremenek | 2010-02-18 | 1 | -14/+14 | |
| | | | | llvm-svn: 96600 | |||||
* | Change cursor behavior for attributes to have them visited as part of recursing | Ted Kremenek | 2010-02-18 | 2 | -8/+2 | |
| | | | | | | to the children of a Decl. llvm-svn: 96599 | |||||
* | Attempt to fix the 32-bit test failures. | Anders Carlsson | 2010-02-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 96595 | |||||
* | tests: Tweak %clangxx definition to something which should be more portable. | Daniel Dunbar | 2010-02-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 96593 | |||||
* | Rework how CIndex handles diagnostics. Rather than using a callback, | Douglas Gregor | 2010-02-18 | 13 | -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 Carlsson | 2010-02-18 | 2 | -2/+44 | |
| | | | | llvm-svn: 96590 | |||||
* | Add another class from cxx-vtable-ex.html | Anders Carlsson | 2010-02-18 | 1 | -1/+25 | |
| | | | | llvm-svn: 96588 | |||||
* | More work on vcall offsets. | Anders Carlsson | 2010-02-18 | 2 | -4/+86 | |
| | | | | llvm-svn: 96587 | |||||
* | Add tests from the Itanium C++ ABI spec. | Anders Carlsson | 2010-02-18 | 1 | -0/+25 | |
| | | | | llvm-svn: 96586 | |||||
* | Start stubbing out vcall offset handling. | Anders Carlsson | 2010-02-18 | 1 | -10/+60 | |
| | | | | llvm-svn: 96585 | |||||
* | Store the base offset of the final overrider in the OverriderInfo struct, to ↵ | Anders Carlsson | 2010-02-18 | 1 | -1/+6 | |
| | | | | | | be used for vcall offsets. llvm-svn: 96582 | |||||
* | Remove some dead code. | Anders Carlsson | 2010-02-18 | 1 | -13/+0 | |
| | | | | llvm-svn: 96581 | |||||
* | Try to fix the auroraux buildbot. I suspect it has a "#define SEC" somewhere. | Benjamin Kramer | 2010-02-18 | 1 | -6/+6 | |
| | | | | llvm-svn: 96577 | |||||
* | Add basic cursor traversal for attributes. We currently don't have source | Ted Kremenek | 2010-02-18 | 2 | -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 will | Charles Davis | 2010-02-18 | 2 | -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 Davis | 2010-02-18 | 2 | -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 statement | Douglas Gregor | 2010-02-18 | 1 | -1/+3 | |
| | | | | llvm-svn: 96567 | |||||
* | Teach CMake to put the CIndex header into the Xcode/MSVC project | Douglas Gregor | 2010-02-18 | 1 | -0/+1 | |
| | | | | llvm-svn: 96566 | |||||
* | Extract out function-body code generation into its own method. No functionality | John McCall | 2010-02-18 | 3 | -111/+98 | |
| | | | | | | change. llvm-svn: 96564 | |||||
* | Start adding cursor kinds for attributes, with first exposing | Ted Kremenek | 2010-02-18 | 4 | -3/+40 | |
| | | | | | | IBActionAttr and IBOutletAttr respectively. llvm-svn: 96563 | |||||
* | Change the behavior of ibaction attributes to be attached to methods, not ivars. | Ted Kremenek | 2010-02-18 | 2 | -18/+29 | |
| | | | | llvm-svn: 96562 | |||||
* | AST import for character literals | Douglas Gregor | 2010-02-18 | 4 | -0/+25 | |
| | | | | llvm-svn: 96557 | |||||
* | AST import for forward declarations of Objective-C protocols | Douglas Gregor | 2010-02-18 | 3 | -0/+57 | |
| | | | | llvm-svn: 96555 | |||||
* | Implement import of forward declarations of Objective-C classes | Douglas Gregor | 2010-02-18 | 3 | -1/+52 | |
| | | | | llvm-svn: 96554 | |||||
* | Allow redefinitions of extern inline functions in GNU89 mode, just as GCC | Charles Davis | 2010-02-18 | 3 | -3/+60 | |
| | | | | | | does. Fixes PR5253. llvm-svn: 96553 | |||||
* | AST import of Objective-C categories. | Douglas Gregor | 2010-02-18 | 4 | -4/+146 | |
| | | | | llvm-svn: 96551 | |||||
* | __typeof should be able to handle block pointer types when | Fariborz Jahanian | 2010-02-18 | 2 | -1/+7 | |
| | | | | | | rewriting. Fixes radar 7659483. llvm-svn: 96549 | |||||
* | Don't diagnose overflow in case statements when the conversion is a | Douglas Gregor | 2010-02-18 | 2 | -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_retained | Ted Kremenek | 2010-02-18 | 2 | -2/+38 | |
| | | | | | | in the static analyzer. llvm-svn: 96539 | |||||
* | Add __has_feature support for attributes ns_returns_not_retained | Ted Kremenek | 2010-02-18 | 1 | -1/+3 | |
| | | | | | | and cf_returns_not_retained. llvm-svn: 96538 | |||||
* | Sort @includes. | Ted Kremenek | 2010-02-18 | 1 | -11/+11 | |
| | | | | llvm-svn: 96537 | |||||
* | Sort cases. | Ted Kremenek | 2010-02-18 | 1 | -2/+2 | |
| | | | | llvm-svn: 96536 | |||||
* | Add 'ns_returns_not_retained' and 'cf_returns_not_retained' attributes to | Ted Kremenek | 2010-02-18 | 7 | -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 enum | Douglas Gregor | 2010-02-17 | 3 | -2/+20 | |
| | | | | | | types. Fixes <rdar://problem/7643909>. llvm-svn: 96531 | |||||
* | Hook the "overflow converting case value to switch condition type" | Douglas Gregor | 2010-02-17 | 1 | -1/+2 | |
| | | | | | | warning into -Wswitch. llvm-svn: 96529 |