From: Kovarththanan Rajaratnam Date: Sun, 29 Nov 2009 14:54:35 +0000 (+0000) Subject: Streamline Stmt::CollectingStats() and Decl::CollectingStats(). No functionality... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2024f4d4b0d57616f79ea742fa782d633d414462;p=clang Streamline Stmt::CollectingStats() and Decl::CollectingStats(). No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 14bffd0fd7..cd5cfd4d37 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -203,7 +203,7 @@ public: // global temp stats (until we have a per-module visitor) static void addStmtClass(const StmtClass s); - static bool CollectingStats(bool enable=false); + static bool CollectingStats(bool Enable = false); static void PrintStats(); /// dump - This does a local dump of the specified AST fragment. It dumps the diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index f0eb011332..7e8579cce0 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -55,8 +55,7 @@ const char *DeclContext::getDeclKindName() const { } bool Decl::CollectingStats(bool Enable) { - if (Enable) - StatSwitch = true; + if (Enable) StatSwitch = true; return StatSwitch; } diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 6e0da47149..ff35251ae3 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -88,8 +88,8 @@ void Stmt::addStmtClass(StmtClass s) { static bool StatSwitch = false; -bool Stmt::CollectingStats(bool enable) { - if (enable) StatSwitch = true; +bool Stmt::CollectingStats(bool Enable) { + if (Enable) StatSwitch = true; return StatSwitch; }