summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Add 'previous declaration is here' note for param redefinition Chris Lattner2010-02-225-8/+9
| | | | | | | | | | | | | errors, e.g.: t.c:1:21: error: redefinition of parameter 'x' int test(int x, int x); ^ t.c:1:14: note: previous declaration is here int test(int x, int x); ^ llvm-svn: 96769
* Eliminate the default arguments to ASTContext::getFunctionType(),Douglas Gregor2010-02-2111-42/+114
| | | | | | | | fixing up a few callers that thought they were propagating NoReturn information but were in fact saying something about exception specifications. llvm-svn: 96766
* Spell string.h correctly.Daniel Dunbar2010-02-211-1/+1
| | | | llvm-svn: 96765
* Add missing include, noticed by ace2001ac on IRC.Daniel Dunbar2010-02-211-0/+1
| | | | llvm-svn: 96764
* Remove unused includes.Daniel Dunbar2010-02-211-2/+0
| | | | llvm-svn: 96760
* De-XFAIL some win32 tests that are now passingDouglas Gregor2010-02-215-5/+0
| | | | llvm-svn: 96759
* Attempt to fix the MSVC9 failure with c-indext-test, where the CIndex DLLDouglas Gregor2010-02-212-1/+7
| | | | | | | | and the c-index-test executable end up getting different copies of stderr, causing non-deterministic ordering of output. Fixed by flushing the file after printing a diagnostic (only on Windows). llvm-svn: 96754
* Implement support for parsing pseudo-destructor expression with a ↵Douglas Gregor2010-02-2111-49/+121
| | | | | | | | | | | | nested-name-specifier, e.g., typedef int Int; int *p; p->Int::~Int(); This weakens the invariant that the only types in nested-name-specifiers are tag types (restricted to class types in C++98/03). However, we weaken this invariant as little as possible, accepting arbitrary types in nested-name-specifiers only when we're in a member access expression that looks like a pseudo-destructor expression. llvm-svn: 96743
* A constructor template cannot be used to copy to an object of the same class ↵Douglas Gregor2010-02-211-1/+2
| | | | | | type (per C++ [class.copy]p3). Make sure that includes copies that involve a derived-to-base conversion. Fixes PR6141. llvm-svn: 96742
* Implement AST import for C++ member functions, including constructors, ↵Douglas Gregor2010-02-211-5/+47
| | | | | | destructors, and conversions. Unfortunately, this cannot be tested yet, since we don't have C++ PCH support. llvm-svn: 96741
* Implement AST importing for C++ namespaces.Douglas Gregor2010-02-211-1/+67
| | | | llvm-svn: 96740
* Collect the code that imports all of the members of a declaration context ↵Douglas Gregor2010-02-211-27/+14
| | | | | | into a single function, ImportDeclContext. Use it rather than explicit loops. No functionality change. llvm-svn: 96739
* Implement PCH support for C++ namespaces.Douglas Gregor2010-02-214-3/+33
| | | | llvm-svn: 96738
* Commiting a revert from dgregor of a bit of destructor logic until we canChandler Carruth2010-02-212-18/+12
| | | | | | | figure out how not to break lots of code using this. See PR6358 and PR6359 for motivating examples. FIXME's left in the code and the test. llvm-svn: 96733
* Make Decl::isOutOfLine() virtual, and use that to determine when definitionsChandler Carruth2010-02-215-15/+41
| | | | | | | are for out of line declarations more easily. This simplifies the logic and handles the case of out-of-line class definitions correctly. Fixes PR6107. llvm-svn: 96729
* Clang really intends to reject attribute 'warn_unused_result' on Objective-C ↵Ted Kremenek2010-02-212-1/+9
| | | | | | | | | methods, but instead it crashes on them. We might extend this attribute to work on methods, but for now fix the crasher. Addresses <rdar://problem/7670939>. llvm-svn: 96723
* Don't emit a warning about a dllimport attribute being used in a typedefTed Kremenek2010-02-212-2/+23
| | | | | | when -fms-extensions is specified. Fixes <rdar://problem/7653870>. llvm-svn: 96722
* Don't warn about functions redeclared without the dllimport attribute whenTed Kremenek2010-02-212-1/+24
| | | | | | -fms-extensions is enabled. Fixes <rdar://problem/7669559>. llvm-svn: 96721
* Start supporting declaration of ivars in @implementationFariborz Jahanian2010-02-193-1/+48
| | | | | | 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-193-6/+11
| | | | | | there is a setter but no getter (part of radar 7664555). llvm-svn: 96687
* Simplify the CIndex fix-it API, now that we have half-open CXSourceRanges.Douglas Gregor2010-02-194-185/+70
| | | | llvm-svn: 96685
* Fix link.Ted Kremenek2010-02-191-1/+1
| | | | llvm-svn: 96684
* Update front page to mention Xcode integration.Ted Kremenek2010-02-191-11/+36
| | | | llvm-svn: 96682
* Expose "Key features" paragraph.Ted Kremenek2010-02-191-3/+2
| | | | llvm-svn: 96681
* Only parse C++0x attribute specifiers in declarators when in C++0xDouglas Gregor2010-02-192-1/+13
| | | | | | | 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-192-8/+48
| | | | | | | | | | | | 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-192-8/+20
| | | | | | | 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-195-183/+226
| | | | | | | | | | | | 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
* Label examples.Ted Kremenek2010-02-191-3/+7
| | | | llvm-svn: 96668
* Fix link.Ted Kremenek2010-02-191-1/+1
| | | | llvm-svn: 96667
* Simplify menu.Ted Kremenek2010-02-191-3/+1
| | | | llvm-svn: 96666
* Tweak menu.Ted Kremenek2010-02-191-5/+3
| | | | llvm-svn: 96665
* Add section on using the analyzer within Xcode.Ted Kremenek2010-02-194-23/+240
| | | | llvm-svn: 96664
* Dump this-adjustments for destructors as well.Anders Carlsson2010-02-191-10/+27
| | | | llvm-svn: 96660
* Add another test from the ABI spec.Anders Carlsson2010-02-191-0/+49
| | | | llvm-svn: 96659
* Add new intro about running scan-build.Ted Kremenek2010-02-192-11/+42
| | | | llvm-svn: 96658
* 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-196-105/+60
| | | | | | | | This was causing buildbot breakage. This reverts commit d46e952cc8cb8d9eed8657d9a0b267910a0f745a. llvm-svn: 96652
* Remove this test for now.Fariborz Jahanian2010-02-191-17/+0
| | | | llvm-svn: 96651
* 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-199-31/+158
| | | | | | 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-193-2/+24
| | | | | | empty context llvm-svn: 96648
* AST import for sizeof and alignof expressionsDouglas Gregor2010-02-193-2/+29
| | | | llvm-svn: 96647
* AST import for DeclRefExprsDouglas Gregor2010-02-193-2/+29
| | | | llvm-svn: 96646
* XFAIL until I can fugure out how test check for a pattern whenFariborz Jahanian2010-02-191-0/+1
| | | | | | clang is built optimized. llvm-svn: 96645
* XFAIL some of the c-index-test tests on Windows, where they are failing ↵Douglas Gregor2010-02-196-1/+6
| | | | | | inexplicably llvm-svn: 96644
* AST import of parenthesized expressions, unary operators, binaryDouglas Gregor2010-02-193-2/+80
| | | | | | operators, and compound assignment operators. llvm-svn: 96643
* Change InitListExpr to allocate the array for holding referencesTed Kremenek2010-02-196-60/+105
| | | | | | | | | | | | | | | | 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
OpenPOWER on IntegriCloud