summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-22 06:37:46 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-22 06:37:46 +0000
commit62698881669072ca047b9e5182be8fcc6c427a11 (patch)
tree940a510bd7e117bddbf22ef916a23ebc5818390c /clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
parentd94854a42e0bf7ebe70f17b238b471084166cb9b (diff)
downloadbcm5719-llvm-62698881669072ca047b9e5182be8fcc6c427a11.tar.gz
bcm5719-llvm-62698881669072ca047b9e5182be8fcc6c427a11.zip
Rename 'unbindLoc()' (in ProgramState) and 'Remove()' to
'killBinding()'. The name is more specific, and one just forwarded to the other. Add some doxygen comments along the way. llvm-svn: 162350
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
index e0ce0fcfdcc..457958d96e8 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
@@ -833,7 +833,7 @@ ProgramStateRef CStringChecker::InvalidateBuffer(CheckerContext &C,
// If we have a non-region value by chance, just remove the binding.
// FIXME: is this necessary or correct? This handles the non-Region
// cases. Is it ever valid to store to these?
- return state->unbindLoc(*L);
+ return state->killBinding(*L);
}
bool CStringChecker::SummarizeRegion(raw_ostream &os, ASTContext &Ctx,
OpenPOWER on IntegriCloud