From: Chris Lattner Date: Mon, 17 Sep 2007 06:16:32 +0000 (+0000) Subject: make var in anon namespace static. Use \n instead of std::endl. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0012351e82470f6357b572f1ca2fa626d1a25d6f;p=clang make var in anon namespace static. Use \n instead of std::endl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index cdde4af169..3ccaa0556f 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -1270,9 +1270,7 @@ bool CFG::hasImplicitControlFlow(const Stmt* S) { #ifndef NDEBUG -namespace { - StmtPrinterHelper* GraphHelper; -} +static StmtPrinterHelper* GraphHelper; #endif void CFG::viewCFG() const { @@ -1283,7 +1281,7 @@ void CFG::viewCFG() const { GraphHelper = NULL; #else std::cerr << "CFG::viewCFG is only available in debug builds on " - << "systems with Graphviz or gv!" << std::endl; + << "systems with Graphviz or gv!\"; #endif }