From: Ted Kremenek Date: Thu, 23 Aug 2007 21:26:19 +0000 (+0000) Subject: moved CFGBuilder into an anonymous namespace X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=befef2f69759d7338e2b7c5ce6c8b6f47fe6e667;p=clang moved CFGBuilder into an anonymous namespace git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41334 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index b05f8d5495..b11162e615 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -23,17 +23,16 @@ using namespace clang; namespace { - // SaveAndRestore - A utility class that uses RIIA to save and restore - // the value of a variable. - template - struct SaveAndRestore { - SaveAndRestore(T& x) : X(x), old_value(x) {} - ~SaveAndRestore() { X = old_value; } - - T& X; - T old_value; - }; -} +// SaveAndRestore - A utility class that uses RIIA to save and restore +// the value of a variable. +template +struct SaveAndRestore { + SaveAndRestore(T& x) : X(x), old_value(x) {} + ~SaveAndRestore() { X = old_value; } + + T& X; + T old_value; +}; /// CFGBuilder - This class is implements CFG construction from an AST. /// The builder is stateful: an instance of the builder should be used to only @@ -607,7 +606,7 @@ public: } }; - +} // end anonymous namespace /// createBlock - Constructs and adds a new CFGBlock to the CFG. The /// block has no successors or predecessors. If this is the first block