r182930 - Coding style fix for SourceFileCallbacks

Edwin Vane edwin.vane at intel.com
Thu May 30 06:59:45 PDT 2013


Author: revane
Date: Thu May 30 08:59:44 2013
New Revision: 182930

URL: http://llvm.org/viewvc/llvm-project?rev=182930&view=rev
Log:
Coding style fix for SourceFileCallbacks


Modified:
    cfe/trunk/include/clang/Tooling/Tooling.h
    cfe/trunk/unittests/Tooling/ToolingTest.cpp

Modified: cfe/trunk/include/clang/Tooling/Tooling.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Tooling/Tooling.h?rev=182930&r1=182929&r2=182930&view=diff
==============================================================================
--- cfe/trunk/include/clang/Tooling/Tooling.h (original)
+++ cfe/trunk/include/clang/Tooling/Tooling.h Thu May 30 08:59:44 2013
@@ -83,13 +83,13 @@ public:
 
   /// \brief Called before a source file is processed by a FrontEndAction.
   /// \see clang::FrontendAction::BeginSourceFileAction
-  virtual bool BeginSource(CompilerInstance &CI, StringRef Filename) {
+  virtual bool handleBeginSource(CompilerInstance &CI, StringRef Filename) {
     return true;
   }
 
   /// \brief Called after a source file is processed by a FrontendAction.
   /// \see clang::FrontendAction::EndSourceFileAction
-  virtual void EndSource() {}
+  virtual void handleEndSource() {}
 };
 
 /// \brief Returns a new FrontendActionFactory for any type that provides an
@@ -265,12 +265,12 @@ inline FrontendActionFactory *newFronten
         if (!clang::ASTFrontendAction::BeginSourceFileAction(CI, Filename))
           return false;
         if (Callbacks != NULL)
-          return Callbacks->BeginSource(CI, Filename);
+          return Callbacks->handleBeginSource(CI, Filename);
         return true;
       }
       virtual void EndSourceFileAction() LLVM_OVERRIDE {
         if (Callbacks != NULL)
-          Callbacks->EndSource();
+          Callbacks->handleEndSource();
         clang::ASTFrontendAction::EndSourceFileAction();
       }
 

Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=182930&r1=182929&r2=182930&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/ToolingTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/ToolingTest.cpp Thu May 30 08:59:44 2013
@@ -133,12 +133,12 @@ TEST(ToolInvocation, TestMapVirtualFile)
 
 struct VerifyEndCallback : public SourceFileCallbacks {
   VerifyEndCallback() : BeginCalled(0), EndCalled(0), Matched(false) {}
-  virtual bool BeginSource(CompilerInstance &CI,
-                           StringRef Filename) LLVM_OVERRIDE {
+  virtual bool handleBeginSource(CompilerInstance &CI,
+                                 StringRef Filename) LLVM_OVERRIDE {
     ++BeginCalled;
     return true;
   }
-  virtual void EndSource() {
+  virtual void handleEndSource() {
     ++EndCalled;
   }
   ASTConsumer *newASTConsumer() {





More information about the cfe-commits mailing list