- Oct 16, 2009
-
-
Ted Kremenek authored
llvm-svn: 84207
-
- Oct 15, 2009
-
-
Steve Naroff authored
llvm-svn: 84203
-
rdar://problem/7303432Steve Naroff authored
Implement <rdar://problem/7303432> [Clang/Index] In-memory-style AST generation API (initial API implementation). Added clang_createTranslationUnitFromSourceFile(). Changed clang_createIndex() to lookup the location of clang (using dladdr). llvm-svn: 84198
-
Daniel Dunbar authored
isn't implemented yet. - <rdar://problem/7297571> Clang should use pretokenized headers for C++ PCH files llvm-svn: 84197
-
Douglas Gregor authored
llvm-svn: 84189
-
Douglas Gregor authored
instantiation redeclaration semantics for function template specializations and member functions of class template specializations. Also, record the point of instantiation for explicit-instantiated functions and static data members. llvm-svn: 84188
-
Fariborz Jahanian authored
sets of builtin operators. Currently, it is applied to '++' and '->*' operators. I need to apply it to others as well. Also, heuristics need be applied to BuiltinCandidateTypeSet::AddPointerWithMoreQualifiedTypeVariants. This is WIP. llvm-svn: 84187
-
Douglas Gregor authored
specializations. Work in progress; there's more cleanup required to actually use the new CheckSpecializationInstantiationRedecl checker uniformly. llvm-svn: 84185
-
John Thompson authored
llvm-svn: 84183
-
Douglas Gregor authored
functions/static data members of class template specializations that do not have definitions. This is the latter part of [temp.explicit]p4; the former part still needs more testing. llvm-svn: 84182
-
Douglas Gregor authored
cases where an explicit instantiation requires a definition; the remainder of these checks will come with the implementation of paragraph 4 of [temp.explicit]. llvm-svn: 84181
-
Mike Stump authored
non-virtual part of the return result adjustments for covariant thunks. WIP. llvm-svn: 84178
-
Edward O'Callaghan authored
llvm-svn: 84176
-
John McCall authored
llvm-svn: 84169
-
John McCall authored
most of the unsafe boilerplate out of TypeLoc. Create a QualifiedLoc class to represent the idea that we *might* start representing source locations of qualifiers. Dealing with qualifiers explicitly like this also lets us efficiently ignore them in all the concrete cases. This should make it obvious and easy to add new TypeLoc subclasses. llvm-svn: 84168
-
Mike Stump authored
llvm-svn: 84167
-
Mike Stump authored
Track path information completely to ensure we get all the overrides. WIP. llvm-svn: 84166
-
Ted Kremenek authored
RegionStoreManager::Retrieve() that was intended to handle conflated uses of pointers as integers. It turns out this isn't needed, and resulted in inconsistent behavior when creating symbolic values on the following test case in 'tests/Analysis/misc-ps.m': typedef struct _BStruct { void *grue; } BStruct; void testB_aux(void *ptr); void testB(BStruct *b) { { int *__gruep__ = ((int *)&((b)->grue)); int __gruev__ = *__gruep__; testB_aux(__gruep__); } { int *__gruep__ = ((int *)&((b)->grue)); int __gruev__ = *__gruep__; if (~0 != __gruev__) {} } } When the code was analyzed with '-arch x86_64', the value assigned to '__gruev__' be would be a symbolic integer, but for '-arch i386' the value assigned to '__gruev__' would be a symbolic region (a blob of memory). With this change the value created is always a symbolic integer. Since the code being removed was added to support analysis of code calling OSAtomicCompareAndSwapXXX(), I also modified 'test/Analysis/NSString.m' to analyze the code in both '-arch i386' and '-arch x86_64', and also added some complementary test cases to test the presence of leaks when using OSAtomicCompareAndSwap32Barrier()/OSAtomicCompareAndSwap64Barrier() instead of just their absence. This code change reveals that previously both RegionStore and BasicStore were handling these cases wrong, and would never cause the analyzer to emit a leak in these cases (false negatives). Now RegionStore gets it right, but BasicStore still gets it wrong (and hence it has been disabled temporarily for this test case). llvm-svn: 84163
-
Anders Carlsson authored
struct A { }; struct B : A { }; void f() { const A& a = B(); } correctly. (This now does the offset conversion if necessary and calls the destructor when a goes out of scope). llvm-svn: 84162
-
Anders Carlsson authored
llvm-svn: 84161
-
John Thompson authored
llvm-svn: 84160
-
Ted Kremenek authored
llvm-svn: 84157
-
Douglas Gregor authored
instantiations, since the requirements are too different from those for template specializations. Simplify it slightly. llvm-svn: 84156
-
Douglas Gregor authored
focusing on the scope- and qualifier-related semantic requirements in C++ [temp.explicit]p2. llvm-svn: 84154
-
- Oct 14, 2009
-
-
Douglas Gregor authored
llvm-svn: 84149
-
Douglas Gregor authored
llvm-svn: 84148
-
Douglas Gregor authored
llvm-svn: 84142
-
Douglas Gregor authored
template that has no out-of-line definition. llvm-svn: 84141
-
Douglas Gregor authored
class templates the proper linkage. Daniel, please look over the CodeGenModule bits. llvm-svn: 84140
-
Douglas Gregor authored
llvm-svn: 84129
-
Mike Stump authored
llvm-svn: 84123
-
Mike Stump authored
the virtual base so they can be reused properly. Don't reuse vcall slots across a virtual boundary. WIP. I have a testcase, but there are still things that need to be fixed before the testcase can go in. llvm-svn: 84120
-
Douglas Gregor authored
template, make sure to get the template that corresponds to *this* declaration of the class template or specialization, rather than the canonical specialization. Fixes PR5187. llvm-svn: 84119
-
Rafael Espindola authored
this is only used in darwin10, 64 bit ubuntu 9.10 and 64 bit openSUSE 11.1. llvm-svn: 84115
-
Devang Patel authored
llvm-svn: 84114
-
Douglas Gregor authored
to a member operator template. We missed updating this call site when adding support for function templates; bug exposed by a test for PR5072. llvm-svn: 84111
-
Duncan Sands authored
Fix the clang build. llvm-svn: 84107
-
Sebastian Redl authored
Have the exception specification checkers take partial diagnostics. Use this to merge two diagnostics. llvm-svn: 84105
-
Sanjiv Gupta authored
from Var itself rather than the decl for DebugInfo metadata. llvm-svn: 84102
-
Sebastian Redl authored
llvm-svn: 84101
-