aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/Analyses/PostOrderCFGView.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-10-22 02:14:27 +0000
committerTed Kremenek <kremenek@apple.com>2011-10-22 02:14:27 +0000
commit439ed1656664b29841f70b6c0b91460534ff4d93 (patch)
treeda4d3f3be6f0e2e79df6c98a970311d14afe2290 /include/clang/Analysis/Analyses/PostOrderCFGView.h
parentedb186399e19d84c93f25440435ab9a695138e79 (diff)
Refactor ThreadSafety to use PostOrderCFGView instead of its own copy (of TopologicallySortedCFG).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Analyses/PostOrderCFGView.h')
-rw-r--r--include/clang/Analysis/Analyses/PostOrderCFGView.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Analysis/Analyses/PostOrderCFGView.h b/include/clang/Analysis/Analyses/PostOrderCFGView.h
index b3a027288a..0891343312 100644
--- a/include/clang/Analysis/Analyses/PostOrderCFGView.h
+++ b/include/clang/Analysis/Analyses/PostOrderCFGView.h
@@ -27,6 +27,13 @@
namespace clang {
class PostOrderCFGView : public ManagedAnalysis {
+public:
+ /// \brief Implements a set of CFGBlocks using a BitVector.
+ ///
+ /// This class contains a minimal interface, primarily dictated by the SetType
+ /// template parameter of the llvm::po_iterator template, as used with external
+ /// storage. We also use this set to keep track of which CFGBlocks we visit
+ /// during the analysis.
class CFGBlockSet {
llvm::BitVector VisitedBlockIDs;
public:
@@ -60,6 +67,7 @@ class PostOrderCFGView : public ManagedAnalysis {
}
};
+private:
typedef llvm::po_iterator<const CFG*, CFGBlockSet, true> po_iterator;
std::vector<const CFGBlock*> Blocks;