aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-03-10Don't accidentally mark some functions in construction vtables as unused. ↵Anders Carlsson
Also land the test for a previous checkin, now that it's correct. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98139 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Allow the fast path through ASTContext::getTypeDeclType to be inlined.John McCall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98138 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Add use-after-free check to MallocChecker.Zhongxing Xu
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98136 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Statement expressions can be used in global- or namespace-scoped blocksDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98135 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Create a new InjectedClassNameType to represent bare-word references to the John McCall
injected class name of a class template or class template partial specialization. This is a non-canonical type; the canonical type is still a template specialization type. This becomes the TypeForDecl of the pattern declaration, which cleans up some amount of code (and complicates some other parts, but whatever). Fixes PR6326 and probably a few others, primarily by re-establishing a few invariants about TypeLoc sizes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98134 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10When building construction vtables, we need to check if a primary virtual ↵Anders Carlsson
base is actually a primary virtual base in the layout class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98131 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10add missing testRafael Espindola
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98129 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Improve vcall offset handling in construction vtables. With this we layout ↵Anders Carlsson
the construction vtables from the ABI examples correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98127 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Delay codegen of vtables when handling implicit instantiations.Rafael Espindola
This fixes PR6474. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98123 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Add insert/extract_ps and related random macros.Eric Christopher
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98114 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Use SmallString instead of alloca.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98112 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10When computing in AnalysisContext the variables referencedTed Kremenek
by a block, also look at the contained blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98111 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-10Enhance basic store to also lazily symbolicate VarRegionsTed Kremenek
with an 'unknown' memory space. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98110 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Fix file reference for derived and composite types. Now, dwarf writer uses ↵Devang Patel
strict verifier that ignores debug info for such types if their file info is unknown. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98096 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Value-initialize the written-builtin-specifiers field of DeclSpec, whichJohn McCall
wasn't being initialized properly along the implicit-definition path. Found by the valgrind buildbot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98093 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Fix the test some more.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98090 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09See if this test makes it though buildbot.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98087 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09More then one anonymous aggregates on one line creates chaos when MDNode ↵Devang Patel
uniquness is combined with RAUW operation. Right solution is to avoid using RAUW. This fixes PR 6554. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98083 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Reverse the code gen. enabled part of test until I can figure outFariborz Jahanian
how to check the code pattern no matter how clang is built. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98079 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Improve Objective-C token-annotation testDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98078 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Code gen test for a previous patch forFariborz Jahanian
radar 7709015 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98073 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Use getLast() instead of getBasename().Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98072 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Don't error when a block pointer is passed to a Fariborz Jahanian
vararg functions/methods. Fixes radar 7725203. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98070 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Add an Objective-C test for token annotationDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98056 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Replace copy loops with memcpy.Benjamin Kramer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98055 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09Start using DIFile. Corresponding llvm patch is r98020.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98021 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Add test cases for r98003 and r98006.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98008 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Add preprocessor guards to the definitions of size_t and wchar_t, and #undef ↵Ted Kremenek
NULL before defining it. This addresses potential issues with system headers reported in <rdar://problem/7727159>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98006 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Place the definition of 'va_list' within a preprocessor guard. This matches ↵Ted Kremenek
the behavior of GCC, and avoids potential conflicts with system headers (e.g., stdio.h). Fixes <rdar://problem/7727145>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98003 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Implement clang_isUnexposed(), a predicate function to simplify filtering outTed Kremenek
unexposed AST elements. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97985 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08add a codegen hack to work around an AST bug, allowing us to compile theChris Lattner
code in PR6537. This should be reverted when the ast bug is fixed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97981 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Allocate ASTRecordLayout objects using the allocator associated with ASTContext.Ted Kremenek
This allows them to be allocated using a BumpPtrAllocated in the common case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97978 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Avoid using DIDescriptor.isNull(). Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97976 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Revert r97727 at ddunbar's request; we want to solve this some other way.John McCall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97971 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Rename -Wbad-literal to -Wliteral-range.John McCall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97968 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Revert r97949.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97964 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Don't enable static analysis support for C++ by default. Users areTed Kremenek
accidentally using it without realizing that it is nowhere close to being generally usable and are reporting crashes that we already know about. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97960 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Improve XML output for C++ classes, from Olaf Krzikalla!Douglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97954 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Mark variable as constKovarththanan Rajaratnam
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97951 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Avoid DIDescriptor.isNull() checks.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97949 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Extend ObjCMessageExpr for class method sends with the source locationDouglas Gregor
of the class name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97943 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Keep track of type source information in the return type of anDouglas Gregor
Objective-C method declaration, e.g., for - (Foo *)myMethod; we now have TypeSourceInfo for the Foo*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97942 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Remove unused headers.Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97941 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Remove redundant semicolonDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97930 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Make a note for the C++0x future, when we'll have to revisit the ↵Douglas Gregor
jump-diagnostics handling for variables without initializers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97929 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08In C++98/03, an uninitialized variable that has POD class type will beDouglas Gregor
uninitialized. This seems not to be the case in C++0x, where we still call the (trivial) default constructor for a POD class (!). Previously, we had implemented only the C++0x rules; now we implement both. Fixes PR6536. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97928 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Downgrade errors when trying to catch a pointer or reference toDouglas Gregor
incomplete type to warnings; GCC (and EDG in GCC compatibility mode) permit such handles. Fixes PR6527. (For real this time) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97927 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Revert r97925, it only contained the test updates not the actual fix.Chandler Carruth
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97926 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-07Downgrade errors when trying to catch a pointer or reference toDouglas Gregor
incomplete type to warnings; GCC (and EDG in GCC compatibility mode) permit such handles. Fixes PR6527. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97925 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-07Robustify callers that rebuild typename type nodes again NULL returnDouglas Gregor
types. Fixes PR6463. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97924 91177308-0d34-0410-b5e6-96231b3b80d8