[cfe-commits] r90078 - in /cfe/trunk: include/clang/AST/Stmt.h lib/AST/DeclBase.cpp lib/AST/Stmt.cpp

Kovarththanan Rajaratnam kovarththanan.rajaratnam at gmail.com
Sun Nov 29 06:54:35 PST 2009


Author: krj
Date: Sun Nov 29 08:54:35 2009
New Revision: 90078

URL: http://llvm.org/viewvc/llvm-project?rev=90078&view=rev
Log:
Streamline Stmt::CollectingStats() and Decl::CollectingStats(). No functionality change.

Modified:
    cfe/trunk/include/clang/AST/Stmt.h
    cfe/trunk/lib/AST/DeclBase.cpp
    cfe/trunk/lib/AST/Stmt.cpp

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=90078&r1=90077&r2=90078&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Sun Nov 29 08:54:35 2009
@@ -203,7 +203,7 @@
 
   // 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

Modified: cfe/trunk/lib/AST/DeclBase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclBase.cpp?rev=90078&r1=90077&r2=90078&view=diff

==============================================================================
--- cfe/trunk/lib/AST/DeclBase.cpp (original)
+++ cfe/trunk/lib/AST/DeclBase.cpp Sun Nov 29 08:54:35 2009
@@ -55,8 +55,7 @@
 }
 
 bool Decl::CollectingStats(bool Enable) {
-  if (Enable)
-    StatSwitch = true;
+  if (Enable) StatSwitch = true;
   return StatSwitch;
 }
 

Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=90078&r1=90077&r2=90078&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Sun Nov 29 08:54:35 2009
@@ -88,8 +88,8 @@
 
 static bool StatSwitch = false;
 
-bool Stmt::CollectingStats(bool enable) {
-  if (enable) StatSwitch = true;
+bool Stmt::CollectingStats(bool Enable) {
+  if (Enable) StatSwitch = true;
   return StatSwitch;
 }
 





More information about the cfe-commits mailing list