- Aug 12, 2011
-
-
Ted Kremenek authored
[analyzer] Introduce new MemRegion, "TypedValueRegion", so that we can separate TypedRegions that implement getValueType() from those that don't. Patch by Olaf Krzikalla! llvm-svn: 137498
-
Richard Smith authored
llvm-svn: 137491
-
Chris Lattner authored
llvm-svn: 137472
-
Douglas Gregor authored
done and is likely to not work well anyway; take away this unnecessary complexity. llvm-svn: 137465
-
Ted Kremenek authored
Revert "Fix crash in CFGBuilder involving implicit destructor calls and gotos jumping after an object was declared. Fixes PR 10620." llvm-svn: 137459
-
Douglas Gregor authored
in the AST format, which are built lazily by the ASTContext when requested. llvm-svn: 137437
-
Douglas Gregor authored
AST file format, lazily generating the actual declaration in ASTContext as needed. llvm-svn: 137434
-
Douglas Gregor authored
AST file format, lazily generating the actual declaration in ASTContext as needed. llvm-svn: 137431
-
NAKAMURA Takumi authored
llvm-svn: 137430
-
Douglas Gregor authored
type over into the AST context, then make that declaration a predefined declaration in the AST format. This ensures that different AST files will at least agree on the (global) declaration ID for 'id', and eliminates one of the "special" types in the AST file format. llvm-svn: 137429
-
Ted Kremenek authored
Fix crash in CFGBuilder involving implicit destructor calls and gotos jumping after an object was declared. Fixes PR 10620. llvm-svn: 137426
-
Akira Hatanaka authored
llvm-svn: 137420
-
Akira Hatanaka authored
llvm-svn: 137411
-
Douglas Gregor authored
eliminating a pile of redundant code (and probably some bugs in the process). The variation between chained and non-chained PCH is fairly small now anyway. llvm-svn: 137410
-
Anna Zaks authored
1) Change SymbolDependTy map to keep pointers as data. And other small tweaks like making the DenseMap smaller 64->16 elements; remove removeSymbolDependencies() as it will probably not be used. 2) Do not mark dependents live more then once. llvm-svn: 137401
-
Douglas Gregor authored
declaration that never actually gets serialized. Instead, serialize the various kinds of update records (lexical decls, visible decls, the addition of an anonymous namespace) for the translation unit, even if we're not chaining. This way, we won't have to deal with multiple loaded translation unit declarations. llvm-svn: 137395
-
Argyrios Kyrtzidis authored
No test case, sorry. It's one of those bugs where it's really really hard to make one. rdar://9910862. llvm-svn: 137383
-
Richard Trieu authored
The current warning in -Wnull-arithmetic for comparisons between NULL and non-pointers is not very helpful. This patch will update the wording to be more helpful to users. Old warning: warning: use of NULL in arithmetic operation [-Wnull-arithmetic] return 10 <= NULL; ^ ~~~~ New warning: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] return 10 <= NULL; ~~ ^ ~~~~ llvm-svn: 137377
-
Douglas Gregor authored
either "special" type has already been initialized. Previously, we did this check based on just the first special type (__builtin_va_list), but now we have some NULL special type entries to content with. llvm-svn: 137373
-
Douglas Gregor authored
llvm-svn: 137366
-
- Aug 11, 2011
-
-
Douglas Gregor authored
ASTContext with accessors/mutators. The only functional change is that the AST writer won't bother writing the id/Class/SEL redefinition type if it hasn't been explicitly set; previously, it ended up being written as a synonym for the built-in id/Class/SEL. llvm-svn: 137349
-
Sean Callanan authored
This is necessary to support importing certain function pointer types. llvm-svn: 137311
-
Anna Zaks authored
Analyzer Core: Adding support for user-defined symbol dependencies. (For example, the allocated resource symbol only needs to be freed if no error has been returned by the allocator, so a checker might want to make the lifespan of the error code symbol depend on the allocated resource symbol.) Note, by default, the map that holds the dependencies will get destroyed along with the SymbolManager at the end of function exploration. llvm-svn: 137309
-
Craig Topper authored
llvm-svn: 137301
-
Craig Topper authored
llvm-svn: 137298
-
John McCall authored
hierarchy of delegation, and that EH selector values are meaningful function-wide (good thing, too, or inlining wouldn't work). 2,3d 1a hierarchy of delegation and that EH selector values have the same meaning everywhere in the function instead of being meaningful only in the context of a specific selector. This removes the need for routing edges through EH cleanups, since a cleanup simply always branches to its enclosing scope. llvm-svn: 137293
-
Anna Zaks authored
Cleanup: remove CleanedSate member and GetState() wrapper from StmtNodeBuilder, not needed as of r137273. llvm-svn: 137284
-
Anna Zaks authored
llvm-svn: 137279
-
Anna Zaks authored
Analyzer Core: In checkDeadSymbols checker callback, provide the state in which the symbols are not yet deleted so that checkers could inspect them. Since we are now always creating a transition in ProcessStmt(), remove the logic for adding a transition when none was generated. TODO: the extra transitions will have to be removed; more cleanups; a checker that tests teh new fucntionality. llvm-svn: 137273
-
Richard Trieu authored
llvm-svn: 137259
-
- Aug 10, 2011
-
-
Douglas Gregor authored
a member template, e.g., x.f<int> if we have found a template in the type of x, but the lookup in the current scope is ambiguous, just ignore the lookup in the current scope. Fixes <rdar://problem/9915664>. llvm-svn: 137255
-
Argyrios Kyrtzidis authored
that assigning result of -retain means it should be strong. rdar://9931757. llvm-svn: 137252
-
Kaelyn Uhrain authored
llvm-svn: 137240
-
Kaelyn Uhrain authored
llvm-svn: 137234
-
Richard Smith authored
Renamings to consistently use 'Constexpr' not 'ConstExpr' when referring to the C++0x 'constexpr' keyword. llvm-svn: 137230
-
Fariborz Jahanian authored
overridden methods to diagnose their type mismatch. This is a general solution for previous fixes for // rdar://6191214 and // rdar://9352731 and removes lots of duplicate code. llvm-svn: 137222
-
Douglas Gregor authored
special member function, make sure to classify an explicitly-defaulted copy constructor as a "copy" operation. Fixes PR10622. llvm-svn: 137219
-
Douglas Gregor authored
llvm-svn: 137216
-
Douglas Gregor authored
in the same version that it is introduced. Stuff happens. llvm-svn: 137214
-
Douglas Gregor authored
constructor. Previously, we did some bogus recursion into the fields of anonymous structs (recursively), which ended up building invalid ASTs that would cause CodeGen to crash due to invalid GEPs. Now, we instead build the default initializations based on the indirect field declarations at the top level, which properly generates the sequence of GEPs needed to initialize the proper member. Fixes PR10512 and <rdar://problem/9924046>. llvm-svn: 137212
-