diff options
author | Anna Zaks <ganna@apple.com> | 2013-03-27 17:35:58 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-03-27 17:35:58 +0000 |
commit | 4a49df3be929d442535d6721ab8a2bbc8a7cd528 (patch) | |
tree | aaab4d76bf89f9f37ad424c0490221a1c2bd0ffe /include/clang/StaticAnalyzer/Core | |
parent | ea744ab5f39b8f45f802301841b77398166bce8f (diff) |
[analyzer] Ensure that the node NilReceiverBRVisitor is looking for is not reclaimed
The visitor should look for the PreStmt node as the receiver is nil in the PreStmt and this is the node. Also, tag the nil
receiver nodes with a special tag for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h index eb026f36ff..fab70e935b 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h @@ -155,9 +155,10 @@ private: }; +/// \class NilReceiverBRVisitor +/// \brief Prints path notes when a message is sent to a nil receiver. class NilReceiverBRVisitor - : public BugReporterVisitorImpl<NilReceiverBRVisitor> -{ + : public BugReporterVisitorImpl<NilReceiverBRVisitor> { public: void Profile(llvm::FoldingSetNodeID &ID) const { static int x = 0; |