summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Rename all 'AssumeXXX' methods in libCheckerTed Kremenek2010-12-0123-127/+128
| | | | | | to 'assumeXXX'. llvm-svn: 120614
* 80-col fixups.Eric Christopher2010-12-011-21/+38
| | | | llvm-svn: 120613
* Optimized IR for vec_splatAnton Yartsev2010-12-011-16/+32
| | | | llvm-svn: 120610
* Rename all 'EvalXXX' methods in libChecker toTed Kremenek2010-12-0123-283/+283
| | | | | | 'evalXXX'. llvm-svn: 120609
* Improve our handling of cv-qualifiers in Objective-C pointerDouglas Gregor2010-12-011-29/+30
| | | | | | | | | | | | | | | conversions. Previously, we would end up collapsing qualification conversions into the Objective-C pointer conversion step, including (possibly) stripping qualifiers that shouldn't be removed. This generalizes BuildSimilarlyQualifiedPointerType() to also work on Objective-C object pointers, then eliminates the (redundant, not totally correct) BuildSimilarlyQualifiedObjCObjectPointerType() function. Fixes <rdar://problem/8714395>. llvm-svn: 120607
* Rename 'SValuator' to 'SValBuilder'. The new nameTed Kremenek2010-12-0118-74/+74
| | | | | | reflects what the class actually does. llvm-svn: 120605
* Not content to implement just "extern" explicit templateDouglas Gregor2010-12-011-4/+30
| | | | | | | | | instantiations, GCC also supports "inline" and "static" explicit template instantiations. Parse and warn about such constructs, but don't implement the semantics of either "inline" or "static". They don't seem to be widely used. llvm-svn: 120599
* Serialization: support for CUDA language extensionsPeter Collingbourne2010-12-012-0/+3
| | | | llvm-svn: 120588
* After parsing a ':' in an enum-specifier within class context,Douglas Gregor2010-12-012-4/+160
| | | | | | | | | | disambiguate between an expression (for a bit-field width) and a type (for a fixed underlying type). Since the disambiguation can be expensive (due to tentative parsing), we perform a simplistic disambiguation based on one-token lookahead before going into the full-blown tentative parsing. Based on a patch by Daniel Wallin. llvm-svn: 120582
* Improve the diagnostic when the fixed underlying type of aDouglas Gregor2010-12-011-1/+4
| | | | | | | redeclaration of an enum type differs from that of the original declaration, from Daniel Wallin llvm-svn: 120577
* AST printing for scoped enumerations and enumerations with a fixed ↵Douglas Gregor2010-12-011-3/+16
| | | | | | underlying type, from Daniel Wallin llvm-svn: 120576
* Eliminate vtables from the Type hierarchy.John McCall2010-12-011-134/+164
| | | | llvm-svn: 120562
* Restore the lvalue-to-rvalue conversion patch with a minimal fix.John McCall2010-12-016-43/+97
| | | | llvm-svn: 120555
* Remove stray emacs mode marker.Nick Lewycky2010-12-011-1/+1
| | | | llvm-svn: 120554
* Basic, Sema: add support for CUDA location attributesPeter Collingbourne2010-12-012-0/+110
| | | | llvm-svn: 120545
* Driver, Frontend: add CUDA language supportPeter Collingbourne2010-12-014-0/+12
| | | | llvm-svn: 120544
* Don't check the isysroot path for Path::isValid(); if the user hasDan Gohman2010-12-011-1/+0
| | | | | | | specified a syntactically invalid path, it's better to let the OS diagnose the problem than to silently skip it. llvm-svn: 120542
* add some infrastructure that will let us codegenChris Lattner2010-12-011-6/+67
| | | | | | | | http://llvm.org/bugs/show_bug.cgi?id=279#c3 better. No functionality change yet. llvm-svn: 120530
* Handle -nostartfiles.Rafael Espindola2010-12-011-8/+11
| | | | llvm-svn: 120528
* get some i32/i8/i1 constants from Builder, which is much less painful thanChris Lattner2010-12-011-18/+9
| | | | | | using ConstantInt::get. llvm-svn: 120527
* 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
OpenPOWER on IntegriCloud