diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2018-10-23 18:24:53 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2018-10-23 18:24:53 +0000 |
commit | b2cf0063d0d0cfc60803ac878c7015403bcc973a (patch) | |
tree | acace8eab49acb2ad337ace4debbaf3bf0596e39 /clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp | |
parent | b4ba467da89353fda84a08175971859b1e52fde4 (diff) | |
download | bcm5719-llvm-b2cf0063d0d0cfc60803ac878c7015403bcc973a.tar.gz bcm5719-llvm-b2cf0063d0d0cfc60803ac878c7015403bcc973a.zip |
[analyzer] Rename trackNullOrUndefValue to trackExpressionValue
trackNullOrUndefValue is a long and confusing name,
and it does not actually reflect what the function is doing.
Give a function a new name, with a relatively clear semantics.
Also remove some dead code.
Differential Revision: https://reviews.llvm.org/D52758
llvm-svn: 345064
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp index 934ee63318f..9e75bba5ebe 100644 --- a/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp @@ -98,7 +98,7 @@ void UndefBranchChecker::checkBranchCondition(const Stmt *Condition, // Emit the bug report. auto R = llvm::make_unique<BugReport>(*BT, BT->getDescription(), N); - bugreporter::trackNullOrUndefValue(N, Ex, *R); + bugreporter::trackExpressionValue(N, Ex, *R); R->addRange(Ex->getSourceRange()); Ctx.emitReport(std::move(R)); |