- 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
-
NAKAMURA Takumi authored
llvm-svn: 137435
-
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
-
Craig Topper authored
llvm-svn: 137427
-
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
-
Craig Topper authored
llvm-svn: 137422
-
Akira Hatanaka authored
llvm-svn: 137420
-
NAKAMURA Takumi authored
include/clang/Config/config.h.cmake: Reorder and reword to follow (generated) llvm/Config/config.h.in. llvm-svn: 137415
-
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
-
Bill Wendling authored
llvm-svn: 137409
-
Nick Lewycky authored
called on another global variable. Use ManagedStatic to ensure that the global we register with actually exists when we need it. llvm-svn: 137406
-
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
-
Ted Kremenek authored
llvm-svn: 137382
-
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
-
Ted Kremenek authored
Add diagtool-based test where we enforce that no additional warnings can be added to Clang without a -W flag. llvm-svn: 137369
-
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: 137302
-
Craig Topper authored
llvm-svn: 137301
-
Craig Topper authored
llvm-svn: 137299
-
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
llvm-svn: 137290
-
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
-