summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Alter the ExternalASTSource interface to permit by-name lookups. PCH ↵John McCall2010-06-018-114/+204
| | | | | | | | | | | | | | 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-017-10/+132
| | | | | | 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
* Tweak test for non-64-bit DarwinDouglas Gregor2010-05-311-4/+6
| | | | llvm-svn: 105222
* When we see the a '[' in a postfix expression in Objective-C, performDouglas Gregor2010-05-314-1/+26
| | | | | | | | | | | | | | | | | | | 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-312-20/+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
* fix incorrect tagChris Lattner2010-05-301-1/+1
| | | | llvm-svn: 105189
* make #warning warnings end up in their own diagnostic category.Chris Lattner2010-05-302-1/+3
| | | | | | rdar://8042673 llvm-svn: 105188
* 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-302-2/+12
| | | | | | literal. Fixes <rdar://problem/8044135>. llvm-svn: 105181
* Move .td files from AST to Basic.Alexis Hunt2010-05-304-5/+6
| | | | | | | | Parse will need to see these files because it needs to know how to parse attributes. The generated files are still placed in the appropriate directory so as to preserve layering. No functional change. llvm-svn: 105179
* Don't try to parse class template specializations in C. It can onlyDouglas Gregor2010-05-302-3/+4
| | | | | | lead to heartache. Fixes <rdar://problem/8044088>. llvm-svn: 105178
* FuzzTest: Add support for reading list of replacements from a file.Daniel Dunbar2010-05-301-0/+16
| | | | llvm-svn: 105177
* utils: Add a generic fuzz testing tool.Daniel Dunbar2010-05-301-0/+324
| | | | llvm-svn: 105176
* Improve parser recovery when we try to parse a call expression but theDouglas Gregor2010-05-302-1/+15
| | | | | | | 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-3024-322/+244
| | | | | | | | 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-302-19/+22
| | | | | | 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-308-66/+60
| | | | | | | | | | | 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
* Unbreak non-Darwin buildsDouglas Gregor2010-05-301-10/+0
| | | | llvm-svn: 105137
* Teach code completion to adjust its completion priorities based on theDouglas Gregor2010-05-309-36/+426
| | | | | | | | | 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
* Add check for an invalid CXType in clang_getTypeDeclaration.Ted Kremenek2010-05-291-0/+7
| | | | llvm-svn: 105111
* Rework the way virtual primary bases are added when laying out classes. ↵Anders Carlsson2010-05-292-52/+49
| | | | | | 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
* Change RecordLayoutBuilder::LayoutNonVirtualBase to take a ↵Anders Carlsson2010-05-291-10/+19
| | | | | | BaseSubobjectInfo. No functionality change. llvm-svn: 105103
* Move computing the base subobject info for a class into the ↵Anders Carlsson2010-05-291-94/+149
| | | | | | RecordLayoutBuilder because we're going to need it to be able to correctly add offsets for primary virtual bases. llvm-svn: 105102
* Revert r105097. Thinking about a better fix.Zhongxing Xu2010-05-292-18/+6
| | | | llvm-svn: 105099
* Fix PR7218. Patch by Jordy Rose.Zhongxing Xu2010-05-292-3/+23
| | | | llvm-svn: 105097
* More PowerPC paths on DarwinDouglas Gregor2010-05-291-0/+3
| | | | llvm-svn: 105084
* Add C++ include paths for Darwin PowerPCDouglas Gregor2010-05-291-0/+7
| | | | llvm-svn: 105083
* add fedora 13 paths, patch by Hendrik Richter.Chris Lattner2010-05-291-0/+4
| | | | llvm-svn: 105082
* Copy source information for the inner type of an elaborated type; fixes someJohn McCall2010-05-282-41/+33
| | | | | | valgrind problems. llvm-svn: 105062
* Implement remaining items in neon td file. Still need to modify emitter to ↵Nate Begeman2010-05-281-1/+23
| | | | | | generate a proper header. llvm-svn: 105058
* Changed text of 'empty enum' diagnostics to say so.Fariborz Jahanian2010-05-282-2/+2
| | | | llvm-svn: 105013
* Empty enum in c is now error to match gcc's behavior.Fariborz Jahanian2010-05-285-4/+5
| | | | | | (radar 8040068). llvm-svn: 105011
* Only provide a source location for an anonymous tag if the location is validDouglas Gregor2010-05-281-5/+7
| | | | llvm-svn: 105010
* Rename BaseInfo to BaseSubobjectInfo.Anders Carlsson2010-05-281-25/+47
| | | | llvm-svn: 105007
* Move BaseInfo outside of the EmptySubobject class.Anders Carlsson2010-05-281-13/+13
| | | | llvm-svn: 105002
OpenPOWER on IntegriCloud