- Aug 13, 2011
-
-
Chad Rosier authored
inputs that aren't preprocessable. llvm-svn: 137532
-
Chad Rosier authored
llvm-svn: 137531
-
Ted Kremenek authored
Having a notion of an actual ProgramPointTag will aid in introspection of the analyzer's behavior. For example, the GraphViz output of the analyzer will pretty-print the tags in a useful manner. llvm-svn: 137529
-
Anna Zaks authored
MacOSKeychainAPIChecker: If the allocated data address entered as an enclosing function parameter, skip it to avoid false positives. llvm-svn: 137526
-
Chad Rosier authored
[driver] Refactor a bit to enable a few fixes when generating diagnostics. No functional change intended. llvm-svn: 137524
-
- Aug 12, 2011
-
-
Anna Zaks authored
Report errors earlier: on checkDeadSymbols() and clear the state after the symbol we are tracking goes out of scope. Also, perform lazy error checking. Instead of forcing the paths to be split depending one the return value of the allocator, make the return symbol depend on the allocated data symbol, which prolongs its life span to the time when the allocated data symbol becomes dead. llvm-svn: 137523
-
Jordy Rose authored
time. One is cleanup, the other is me being OCD about enum group nesting. llvm-svn: 137517
-
Anna Zaks authored
MacOSKeychainAPIChecker: There is no need to use SymbolMetadata to represent the allocated data symbol, we can just use the symbol corresponding to the SymbolicRegion. This simplifies tracking of the symbol, for example, SymbolMetadata needs to go through extra hoops to stay alive. Make AllocationState internal to the MacOSKeychainAPIChecker class. llvm-svn: 137514
-
Jeffrey Yasskin authored
the C++0x narrowing error. llvm-svn: 137512
-
Fariborz Jahanian authored
attribute of a property. patch by Remy Demarest fixes it. llvm-svn: 137509
-
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
-