commit | 5e1cdac63c3d9c9b32fa41fa0b2d242a58a20d49 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Fri Oct 07 06:10:15 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Fri Oct 07 06:10:15 2011 +0000 |
tree | 4315635ba5c4741bce2150f06e162dd4ca99b98a | |
parent | 856ebfb6357042d46052ccb39c1fbb490718320e [diff] [blame] |
Rename TagDecl::isDefinition -> isCompleteDefinition for better self-documenting code, since the semantics are subtly different from getDefinition(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141355 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp b/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp index 1bdaa4a..e398fcb 100644 --- a/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
@@ -297,7 +297,7 @@ public: void checkASTDecl(const CXXRecordDecl *R, AnalysisManager& mgr, BugReporter &BR) const { - if (R->isDefinition()) + if (R->isCompleteDefinition()) CheckASTMemory(R, BR); }