summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't try to explicitly zero out bit-fields.Anders Carlsson2010-06-031-0/+5
| | | | llvm-svn: 105391
* Make addStmt always add stmt. Delegate other cases to Visit() directly.Zhongxing Xu2010-06-031-6/+6
| | | | llvm-svn: 105384
* CFG: add all LHS of assingments as lvalue. This improves support for C++ ↵Zhongxing Xu2010-06-031-2/+15
| | | | | | reference. Patch by Jordy. llvm-svn: 105383
* Add comments.Zhongxing Xu2010-06-031-1/+2
| | | | llvm-svn: 105382
* Add all final overriders to the map.Anders Carlsson2010-06-032-14/+28
| | | | llvm-svn: 105374
* Block C++ code gen. Adds support for block reference argumentFariborz Jahanian2010-06-021-4/+14
| | | | | | | types. Executable test will be added to LLVM test suite. (radar 8041962). llvm-svn: 105347
* Don't try to emit the vtable for a class just because we're emitting aJohn McCall2010-06-022-17/+28
| | | | | | | | virtual function from it. Fixes PR7241. llvm-svn: 105345
* Headers: Fix quoting of macro arguments in a couple more places.Daniel Dunbar2010-06-022-9/+9
| | | | llvm-svn: 105331
* Don't substitute 'St' for 'std' when the namespace is nested inside another ↵Anders Carlsson2010-06-021-9/+9
| | | | | | namespace. llvm-svn: 105330
* Fix undefined behavior, noticed by GCC 4.5. Patch by Dimitry Andric!Daniel Dunbar2010-06-021-2/+3
| | | | llvm-svn: 105329
* Fix compiler warning about to false -> pointer conversion; patch by Dimitry ↵Daniel Dunbar2010-06-021-1/+1
| | | | | | Andric! llvm-svn: 105328
* Fix unintentional method call due to false -> pointer conversion; patch by ↵Daniel Dunbar2010-06-021-1/+1
| | | | | | Dimitry Andric! llvm-svn: 105327
* When building RTTI descriptors for pointer types, we need to get the ↵Anders Carlsson2010-06-021-6/+14
| | | | | | unqualified array type and the qualifiers from it. llvm-svn: 105326
* Fix vget_lane/vset_laneNate Begeman2010-06-021-2/+2
| | | | llvm-svn: 105317
* typeid() produces type information for the cv-unqualified version ofDouglas Gregor2010-06-021-4/+9
| | | | | | the type. Thanks to Anders for the bug report! llvm-svn: 105314
* Correctly mangle unsigned integer literals where the high bit is set.Anders Carlsson2010-06-021-2/+4
| | | | llvm-svn: 105312
* Correctly mangle variadic functions that don't have any other parameters.Anders Carlsson2010-06-021-1/+2
| | | | llvm-svn: 105311
* When mangling member function pointers, fake adding a substitution ↵Anders Carlsson2010-06-021-6/+25
| | | | | | corresponding to the function type. llvm-svn: 105310
* Checkpoint arm_neon.h generation with tablegenNate Begeman2010-06-021-35/+38
| | | | llvm-svn: 105306
* More cleanup.Anders Carlsson2010-06-011-14/+10
| | | | llvm-svn: 105301
* More cleanup.Anders Carlsson2010-06-011-35/+10
| | | | llvm-svn: 105299
* Cleanup.Anders Carlsson2010-06-011-8/+9
| | | | llvm-svn: 105296
* Alter the ExternalASTSource interface to permit by-name lookups. PCH ↵John McCall2010-06-014-44/+122
| | | | | | | | | | | | | | continues to bring in the entire lookup table at once. Also, give ExternalSemaSource's vtable a home. This is important because otherwise any reference to it will cause RTTI to be emitted, and since clang is compiled with -fno-rtti, that RTTI will contain unresolved references (to ExternalASTSource's RTTI). So this change makes it possible to subclass ExternalSemaSource from projects compiled with RTTI, as long as the subclass's home is compiled with -fno-rtti. llvm-svn: 105268
* Limit the use of BindDefault().Zhongxing Xu2010-06-011-1/+5
| | | | llvm-svn: 105265
* Add support for calloc() in MallocChecker. Patch by Jordy Rose, with my Zhongxing Xu2010-06-012-10/+49
| | | | | | modification. llvm-svn: 105264
* Fix crash in code completion when an ObjCMethodDecl doesn't have an ↵Ted Kremenek2010-05-311-4/+7
| | | | | | | | associated @interface. Fixes <rdar://problem/8026215>. llvm-svn: 105256
* Minor tweaks on doug's objc recovery patch: the callerChris Lattner2010-05-312-7/+12
| | | | | | | | | | | | of isSimpleObjCMessageExpression checks the language, so change a dynamic check into an assert. isSimpleObjCMessageExpression is expensive, so only do it in the common case when it is likely to matter: when the [ of the postfix expr starts on a new line. This should avoid doing lookahead for every array expression. llvm-svn: 105229
* Make methods non-virtual again for now. I accidentally committed this inCharles Davis2010-05-311-23/+21
| | | | | | preparation for an alternate mangler. llvm-svn: 105224
* When we see the a '[' in a postfix expression in Objective-C, performDouglas Gregor2010-05-312-0/+18
| | | | | | | | | | | | | | | | | | | a simple, quick check to determine whether the expression starting with '[' can only be an Objective-C message send. If so, don't parse it as an array subscript expression. This improves recovery for, e.g., [a method1] [a method2] so that we now produce t.m:10:13: error: expected ';' after expression [a method] ^ instead of some mess about expecting ']'. llvm-svn: 105221
* Silence GCC warning about an accessible non-virtual destructor in a class withChandler Carruth2010-05-311-0/+2
| | | | | | | | virtual methods. Please review cdavis, should these methods even be virtual? llvm-svn: 105218
* After conversations with Zhongxing Xu and Jordy Rose, refine the logic inTed Kremenek2010-05-311-19/+25
| | | | | | | | | RegionStoreManager::RetrieveElement() that handles indexing into a larger scalar object to only consult the direct binding of a super region if it is a scalar. This isn't perfect yet, and a big FIXME is attached to the code. This causes the test case for PR 7218 now to pass. llvm-svn: 105195
* simpler fix for rdar://8044135 - escaped newlines have alreadyChris Lattner2010-05-301-10/+7
| | | | | | been processed, so they don't have to be tip-toed around. llvm-svn: 105182
* Improve our handling of NULL after an escaping '\' in a stringDouglas Gregor2010-05-301-2/+7
| | | | | | literal. Fixes <rdar://problem/8044135>. llvm-svn: 105181
* Don't try to parse class template specializations in C. It can onlyDouglas Gregor2010-05-301-3/+1
| | | | | | lead to heartache. Fixes <rdar://problem/8044088>. llvm-svn: 105178
* Improve parser recovery when we try to parse a call expression but theDouglas Gregor2010-05-301-1/+8
| | | | | | | called function itself is invalid (e.g., because of a semantic error referring to that declaration). Fixes <rdar://problem/8044142>. llvm-svn: 105175
* Make macro safe in the face of users who pass "addr+64". Addition of void* isNick Lewycky2010-05-301-2/+2
| | | | | | invalid. llvm-svn: 105172
* Remove unused parameter to FinalOverriders::PropagateOverrider.Anders Carlsson2010-05-301-5/+3
| | | | llvm-svn: 105171
* Refactor the Is{Std,Clang,LLVM}Namespace methods and rename 'isClangAttr' toNick Lewycky2010-05-301-35/+13
| | | | | | 'IsClangAttr' to match prevailing style in this file. Patch by Jon Mulder! llvm-svn: 105170
* Convert DeclNodes to use TableGen.Alexis Hunt2010-05-3011-58/+71
| | | | | | | | The macros required for DeclNodes use have changed to match the use of StmtNodes. The FooFirst enumerator constants have been named firstFoo to match usage elsewhere. llvm-svn: 105165
* And now for the best part: Removing the old code.Anders Carlsson2010-05-301-190/+0
| | | | llvm-svn: 105162
* Turn on the new empty base subobject tracking code. It's a bit faster than ↵Anders Carlsson2010-05-301-19/+5
| | | | | | the previous code. However, it still has quadratic performance, something which I intend to fix shortly in a subsequent patch. llvm-svn: 105161
* Teach code-completion for calls to be more careful with aDouglas Gregor2010-05-301-2/+14
| | | | | | potentially-NULL "function" argument. llvm-svn: 105152
* Fix for PR7040: Don't try to compute the LLVM type for a function where itEli Friedman2010-05-307-66/+50
| | | | | | | | | | | isn't possible to compute. This patch is mostly refactoring; the key change is the addition of the code starting with the comment, "Check whether the function has a computable LLVM signature." The solution here is essentially the same as the way the vtable code handles such functions. llvm-svn: 105151
* Teach code completion to adjust its completion priorities based on theDouglas Gregor2010-05-305-30/+265
| | | | | | | | | type that we expect to see at a given point in the grammar, e.g., when initializing a variable, returning a result, or calling a function. We don't prune the candidate set at all, just adjust priorities to favor things that should type-check, using an ultra-simplified type system. llvm-svn: 105128
* Accept '#pragma options align=mac68k' on Darwin/PPC and Darwin/PPC64.Daniel Dunbar2010-05-301-2/+23
| | | | llvm-svn: 105116
* Cleanup.Anders Carlsson2010-05-291-13/+6
| | | | llvm-svn: 105114
* Make EmptySubobjectMap::CanPlaceBaseAtOffset take a BaseSubobjectInfo as well.Anders Carlsson2010-05-291-16/+4
| | | | llvm-svn: 105113
* Change RecordLayoutBuilder::LayoutBase to take a BaseSubobjectInfo. No ↵Anders Carlsson2010-05-291-14/+14
| | | | | | functionality change. llvm-svn: 105112
* Rework the way virtual primary bases are added when laying out classes. ↵Anders Carlsson2010-05-291-52/+35
| | | | | | Instead of doing it as a separate step, we now use the BaseSubobjectInfo and use it when laying out the bases. This fixes a bug where we would either not add a primary virtual base at all, or add it at the wrong offset. llvm-svn: 105110
* Change LayoutVirtualBase to also take a BaseSubobjectInfo.Anders Carlsson2010-05-291-13/+15
| | | | llvm-svn: 105104
OpenPOWER on IntegriCloud