summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't warn about functions redeclared without the dllimport attribute whenTed Kremenek2010-02-211-1/+5
| | | | | | -fms-extensions is enabled. Fixes <rdar://problem/7669559>. llvm-svn: 96721
* Start supporting declaration of ivars in @implementationFariborz Jahanian2010-02-191-1/+20
| | | | | | blocks. WIP. llvm-svn: 96696
* Add the CK_UnusedFunctionPointer component kind for unused function pointers.Anders Carlsson2010-02-191-3/+34
| | | | llvm-svn: 96695
* Issue extended diagnostic when property dot-syntax is used and Fariborz Jahanian2010-02-191-4/+7
| | | | | | there is a setter but no getter (part of radar 7664555). llvm-svn: 96687
* Only parse C++0x attribute specifiers in declarators when in C++0xDouglas Gregor2010-02-191-1/+1
| | | | | | | mode. This allows us to detect invalid VLAs in Objective-C++ mode. This should be the last of <rdar://problem/7660386>. llvm-svn: 96679
* Implement C++ name lookup for instance variables of Objective-C classesDouglas Gregor2010-02-191-7/+30
| | | | | | | | | | | | from an instance method. Previously, we were following the Objective-C name lookup rules for ivars, which are of course completely different from and incompatible with the Objective-C++ rules. For the record, the Objective-C++ rules are the sane ones. This is another part of <rdar://problem/7660386>. llvm-svn: 96677
* Make Sema::ActOnClassMessage robust when name lookup for the receiverDouglas Gregor2010-02-191-8/+8
| | | | | | | name finds something other than a TypedefDecl or an ObjCInterfaceDecl. This is a small part of <rdar://problem/7660386>. llvm-svn: 96676
* More refactoring around constructor/destructor code generation.John McCall2010-02-194-182/+178
| | | | | | | | | | | | Fix some bugs with function-try-blocks and simplify normal try-block code generation. This implementation excludes a deleting destructor's call to operator delete() from the function-try-block, which I believe is correct but which I can't find straightforward support for at a moment's glance. llvm-svn: 96670
* Dump this-adjustments for destructors as well.Anders Carlsson2010-02-191-10/+27
| | | | llvm-svn: 96660
* Enable -mconstructor-aliases by default on non-darwin platforms.John McCall2010-02-191-0/+5
| | | | | | The linker bug holding this back is Darwin-specific. llvm-svn: 96655
* Revert: "Change InitListExpr to allocate the array for holding references"Ted Kremenek2010-02-195-83/+47
| | | | | | | | This was causing buildbot breakage. This reverts commit d46e952cc8cb8d9eed8657d9a0b267910a0f745a. llvm-svn: 96652
* Add a missing break. Cocoa.h can now be merged twice into the same AST contextDouglas Gregor2010-02-191-0/+1
| | | | llvm-svn: 96650
* Re-introduce the ctor/dtor alias optimization, this time hidden behind aJohn McCall2010-02-194-23/+146
| | | | | | command-line option which defaults off. llvm-svn: 96649
* AST import for CStyleCastExpr. With this, we can import Cocoa.h into an ↵Douglas Gregor2010-02-191-0/+20
| | | | | | empty context llvm-svn: 96648
* AST import for sizeof and alignof expressionsDouglas Gregor2010-02-191-0/+25
| | | | llvm-svn: 96647
* AST import for DeclRefExprsDouglas Gregor2010-02-191-0/+25
| | | | llvm-svn: 96646
* AST import of parenthesized expressions, unary operators, binaryDouglas Gregor2010-02-191-0/+74
| | | | | | operators, and compound assignment operators. llvm-svn: 96643
* Change InitListExpr to allocate the array for holding referencesTed Kremenek2010-02-195-47/+83
| | | | | | | | | | | | | | | | to initializer expressions in an array allocated using ASTContext. This plugs a memory leak when ASTContext uses a BumpPtrAllocator to allocate memory for AST nodes. In my mind this isn't an ideal solution; it would be nice to have a general "vector"-like class that allocates memory using ASTContext, but whose guts could be separated from the methods of InitListExpr itself. I haven't gone and taken this approach yet because it isn't clear yet if we'll eventually want an alternate solution for recylcing memory using by InitListExprs as we are constructing the ASTs. llvm-svn: 96642
* Use a little binary header in serialized diagnostics to help the ↵Douglas Gregor2010-02-191-3/+26
| | | | | | deserializer skip over noise in the stream llvm-svn: 96641
* Patch removes IVars list from ObjCInterfaceDecl andFariborz Jahanian2010-02-197-18/+22
| | | | | | 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-181-3/+3
| | | | | | 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-181-1/+1
| | | | | | try to address the msvc failures. llvm-svn: 96624
* Allow GNU attributes to appear in an Objective-C method declarationTed Kremenek2010-02-181-4/+10
| | | | | | | 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 the ctor/dtor alias optimization for now; the buildbots can detectJohn McCall2010-02-183-142/+26
| | | | | | some failure here that I can't. llvm-svn: 96612
* Fixed a crash specific to blocks in c++ uncovered by an internalFariborz Jahanian2010-02-181-1/+3
| | | | | | test suite. llvm-svn: 96608
* Make deleting and complete dtor variants defer to other dtor variants byJohn McCall2010-02-182-48/+93
| | | | | | | | 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
* Attempt to fix the 32-bit test failures.Anders Carlsson2010-02-181-1/+1
| | | | llvm-svn: 96595
* Rework how CIndex handles diagnostics. Rather than using a callback,Douglas Gregor2010-02-183-150/+231
| | | | | | | | | | | | | | | | | | 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-181-2/+10
| | | | llvm-svn: 96590
* More work on vcall offsets.Anders Carlsson2010-02-181-4/+61
| | | | llvm-svn: 96587
* 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
* Also don't warn about force_align_arg_pointer on function typedefs. (This willCharles Davis2010-02-181-1/+2
| | | | | | | 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-181-2/+7
| | | | | | | - 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
* Extract out function-body code generation into its own method. No functionalityJohn McCall2010-02-183-111/+98
| | | | | | change. llvm-svn: 96564
* Change the behavior of ibaction attributes to be attached to methods, not ivars.Ted Kremenek2010-02-181-16/+25
| | | | llvm-svn: 96562
* AST import for character literalsDouglas Gregor2010-02-181-0/+11
| | | | llvm-svn: 96557
* AST import for forward declarations of Objective-C protocolsDouglas Gregor2010-02-181-0/+45
| | | | llvm-svn: 96555
* Implement import of forward declarations of Objective-C classesDouglas Gregor2010-02-181-1/+42
| | | | llvm-svn: 96554
* Allow redefinitions of extern inline functions in GNU89 mode, just as GCCCharles Davis2010-02-181-2/+18
| | | | | | does. Fixes PR5253. llvm-svn: 96553
* AST import of Objective-C categories.Douglas Gregor2010-02-181-4/+85
| | | | llvm-svn: 96551
* __typeof should be able to handle block pointer types whenFariborz Jahanian2010-02-181-1/+1
| | | | | | rewriting. Fixes radar 7659483. llvm-svn: 96549
* Don't diagnose overflow in case statements when the conversion is aDouglas Gregor2010-02-181-3/+3
| | | | | | | 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-181-2/+16
| | | | | | 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
OpenPOWER on IntegriCloud