summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement AST import support for class template specializations.Douglas Gregor2010-12-011-35/+363
| | | | llvm-svn: 120523
* When unknown method is sent to a receiver ofFariborz Jahanian2010-12-011-1/+3
| | | | | | | 'Class' type, disgnostic should refere to a class method. Fixes // rdar://8592156 llvm-svn: 120517
* A CGRecordLayout object persists. Since its contained types mayJohn McCall2010-11-301-4/+5
| | | | | | | refer to opaque types, they must be held via PATypeHolders. I'm not sure why this hasn't blown up before. llvm-svn: 120491
* CGRecordLayoutBuilder does not need to be exported from this module.John McCall2010-11-301-3/+1
| | | | llvm-svn: 120489
* Declaring local static in global blockFariborz Jahanian2010-11-301-3/+13
| | | | | | | literal declaration caused crash in CodeGen. This patch fixes it. pr8707 llvm-svn: 120486
* Follow through references to catch returned stack addresses, local blocks, ↵Argyrios Kyrtzidis2010-11-301-50/+127
| | | | | | | | | | | | label addresses or references to temporaries, e.g: const int& g2() { int s1; int &s2 = s1; // expected-note {{binding reference variable 's2' here}} return s2; // expected-warning {{reference to stack memory associated with local variable 's1' returned}} } llvm-svn: 120483
* Implement basic AST importing and merging support for class templateDouglas Gregor2010-11-301-5/+359
| | | | | | declarations. llvm-svn: 120448
* Eliminate more pointless default statementsDouglas Gregor2010-11-301-5/+16
| | | | llvm-svn: 120446
* L-value to r-value conversion is not ready for prime-time.John McCall2010-11-306-97/+43
| | | | llvm-svn: 120433
* Such function decls,as objc's objc_msgSend, builtins in Fariborz Jahanian2010-11-305-27/+25
| | | | | | | | | a specific language. We are adding such language info. by extensing Builtins.def and via a language flag added to LIBBUILTIN/BUILTIN and check for that when deciding a name is builtin or not. Implements //rdar://8689273. llvm-svn: 120429
* Introduce an r-value to l-value cast kind. I'm not promising anythingJohn McCall2010-11-306-43/+97
| | | | | | about the reliability of this yet. llvm-svn: 120422
* Make the dumper safe against null declaration names.John McCall2010-11-301-0/+3
| | | | llvm-svn: 120421
* Take John McCall's suggestion and fix this silly gcc warnings in a way thatNick Lewycky2010-11-301-0/+2
| | | | | | Doug isn't likely to rip back out. llvm-svn: 120409
* I hate pointless default statementsDouglas Gregor2010-11-301-1/+0
| | | | llvm-svn: 120402
* Harden CGDebugInfo::CreateType() a bit for cases where we couldn't generate ↵Douglas Gregor2010-11-301-1/+9
| | | | | | type info for its component types llvm-svn: 120401
* When using a precompiled preamble with detailed preprocessing records,Douglas Gregor2010-11-304-40/+149
| | | | | | | | | | trap the serialized preprocessing records (macro definitions, macro instantiations, macro definitions) from the generation of the precompiled preamble, then replay those when walking the list of preprocessed entities. This eliminates a bug where clang_getCursor() wasn't able to find preprocessed-entity cursors in the preamble. llvm-svn: 120396
* When loading a precompiled preamble, use the file ID of theDouglas Gregor2010-11-302-2/+17
| | | | | | | | | | | | precompiled preamble as the "main" source file's file ID within the source manager. This makes compiling with a precompiled preamble produce the same source locations as when compiling without the precompiled preamble; prior to this change, we ended up with different file IDs for source locations within the precompiled preamble vs. those after the precompiled preamble, even for entities (e.g., preprocessing entities) in the same file. llvm-svn: 120390
* Fix bug in r120299 spotted by dgregor.Nico Weber2010-11-301-3/+3
| | | | llvm-svn: 120389
* Fix another case of giving the wrong value kind to a dependent cast toJohn McCall2010-11-301-1/+4
| | | | | | a non-dependent type. llvm-svn: 120384
* Add a default clause to avoid this GCC warning:Nick Lewycky2010-11-301-0/+1
| | | | | | Type.cpp:1000: warning: control reaches end of non-void function llvm-svn: 120376
* Revert r120331 since it causes spurious warnings and a possible assertion ↵Argyrios Kyrtzidis2010-11-291-27/+3
| | | | | | hit when self-host. llvm-svn: 120351
* Incomplete enum types not to be treated as integer typeFariborz Jahanian2010-11-291-4/+12
| | | | | | | when checking for integer signed/unsigned-ness. PR8694, // rdar://8707031 llvm-svn: 120345
* Emit warnings if we are returning a reference to a local temporary.Argyrios Kyrtzidis2010-11-291-3/+27
| | | | | | The issue was brought to our attention by Matthieu Monrocq. llvm-svn: 120331
* Always use a function's decl context when building default arguments. Fixes ↵Nico Weber2010-11-291-4/+12
| | | | | | http://http://llvm.org/pr8479. llvm-svn: 120299
* Merge System into Support.Michael J. Spencer2010-11-2925-33/+33
| | | | llvm-svn: 120297
* Revert r120063, it was wrong.John McCall2010-11-291-2/+2
| | | | llvm-svn: 120296
* I hate default statementsDouglas Gregor2010-11-291-1/+0
| | | | llvm-svn: 120293
* When performing code completion within ASTUnit, allocate the ↵Douglas Gregor2010-11-291-6/+6
| | | | | | AugmentedCodeCompleteConsumer on the heap, so it's always cleaned up properly llvm-svn: 120290
* Teach the ASTImporter how to create CXXMethodDecls. Somehow, this case was ↵Douglas Gregor2010-11-291-0/+7
| | | | | | missed previously llvm-svn: 120289
* Don't store the maximum alignment, we can trivially compute it.Anders Carlsson2010-11-281-12/+21
| | | | llvm-svn: 120268
* Revert parts of r120266 that I did not mean to commitNico Weber2010-11-281-12/+4
| | | | llvm-svn: 120267
* Minor whitespace and comment fixes. No functionality change.Nico Weber2010-11-284-7/+15
| | | | llvm-svn: 120266
* More work on laying out virtual bases.Anders Carlsson2010-11-281-9/+46
| | | | llvm-svn: 120257
* BuildVirtualCall doesn't need to take a reference to a pointer.Anders Carlsson2010-11-282-2/+2
| | | | llvm-svn: 120252
* Make the destructor be the 'vtable anchor' of the CGCXXABI class.Anders Carlsson2010-11-282-4/+2
| | | | llvm-svn: 120251
* Move CGCXXABI functions to CGCXXABI.cppAnders Carlsson2010-11-282-157/+155
| | | | llvm-svn: 120250
* Add a CGCXXABI.cpp file.Anders Carlsson2010-11-282-0/+19
| | | | llvm-svn: 120249
* Look through parentheses when deciding whether an expr is a temporary ↵Anders Carlsson2010-11-281-4/+4
| | | | | | object. Fixes PR8683. llvm-svn: 120247
* Add GCC 4.4.5 for Gentoo, and order them in a more sensible way. This allowsChandler Carruth2010-11-281-13/+15
| | | | | | | | Gentoo systems with multiple versions to pick up the newest one first. This is especially important with Gentoo because some of the older versions are left on systems in strange states. llvm-svn: 120238
* Add missing else.Rafael Espindola2010-11-281-1/+1
| | | | llvm-svn: 120231
* Allow access to non-static members without an object in sizeof expressions, ↵Sebastian Redl2010-11-261-2/+22
| | | | | | in C++0x. Patch by Jakub Wieczorek. llvm-svn: 120182
* For internal consistency's sake, compute the value kind of a dependent castJohn McCall2010-11-261-0/+3
| | | | | | based on the known properties of the casted-to type. Fixes a crash on spirit. llvm-svn: 120180
* Do not use StripCasts() in this context.Zhongxing Xu2010-11-261-2/+5
| | | | llvm-svn: 120178
* Should not use StripCasts() in this context.Zhongxing Xu2010-11-261-7/+4
| | | | llvm-svn: 120177
* Rename CXXObjectRegion to CXXTempObjectRegion.Zhongxing Xu2010-11-265-16/+17
| | | | llvm-svn: 120176
* Regionstore: support derived-to-base cast by creating a CXXBaseObjectRegion.Zhongxing Xu2010-11-263-3/+52
| | | | llvm-svn: 120173
* Add a fixme.Zhongxing Xu2010-11-261-0/+1
| | | | llvm-svn: 120172
* Add C++ header path for openSUSE 11.4.Rafael Espindola2010-11-251-0/+7
| | | | | | Patch by İsmail Dönmez. llvm-svn: 120154
* Hide a bunch of symbols.Benjamin Kramer2010-11-253-33/+35
| | | | llvm-svn: 120153
* For CFGAutomaticObjDtor, the type may be reference type, e.g., const A &c = A();Zhongxing Xu2010-11-251-10/+17
| | | | | | Also apply some new coding style. llvm-svn: 120144
OpenPOWER on IntegriCloud