diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-05-02 19:42:42 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-05-02 19:42:42 +0000 |
commit | aa181174e719405cda6b8b387ced59b856cd7b6e (patch) | |
tree | d15ac9d8f2c0e5810f32a4514d4228924aeb2699 /clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | |
parent | 24874a449c9f9fad2498165e25f9c4a640f55ab1 (diff) | |
download | bcm5719-llvm-aa181174e719405cda6b8b387ced59b856cd7b6e.tar.gz bcm5719-llvm-aa181174e719405cda6b8b387ced59b856cd7b6e.zip |
Augment retain/release checker to not warn about tracked objects passed as arguments to C++ constructors. This is a stop-gap measure for Objective-C++ code that uses smart pointers to manage reference counts.
llvm-svn: 130711
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index 4f9c641edfd..f4b9a3e90ca 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -42,6 +42,7 @@ public: bool wantsRegionChangeUpdate(const GRState *state) const; const GRState *checkRegionChanges(const GRState *state, + const StoreManager::InvalidatedSymbols *, const MemRegion * const *Begin, const MemRegion * const *End) const; @@ -1305,6 +1306,7 @@ bool CStringChecker::wantsRegionChangeUpdate(const GRState *state) const { const GRState * CStringChecker::checkRegionChanges(const GRState *state, + const StoreManager::InvalidatedSymbols *, const MemRegion * const *Begin, const MemRegion * const *End) const { CStringLength::EntryMap Entries = state->get<CStringLength>(); |