[llvm] r195715 - [PM] Re-format this code with clang-format before making substantial

Chandler Carruth chandlerc at gmail.com
Mon Nov 25 19:22:09 PST 2013


Author: chandlerc
Date: Mon Nov 25 21:22:09 2013
New Revision: 195715

URL: http://llvm.org/viewvc/llvm-project?rev=195715&view=rev
Log:
[PM] Re-format this code with clang-format before making substantial
changes to it. No functionality changed.

You may wonder why on earth touching this code is involved in the pass
manager work as indicated by my lovely '[PM]' tag? Let me tell you
a story.

<redacted>

Yea, it's too long of a story. Let us say that there are yaks, many of
them. I am busy shaving them as fast as I can.

Modified:
    llvm/trunk/include/llvm/Analysis/DOTGraphTraitsPass.h

Modified: llvm/trunk/include/llvm/Analysis/DOTGraphTraitsPass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DOTGraphTraitsPass.h?rev=195715&r1=195714&r2=195715&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DOTGraphTraitsPass.h (original)
+++ llvm/trunk/include/llvm/Analysis/DOTGraphTraitsPass.h Mon Nov 25 21:22:09 2013
@@ -23,11 +23,11 @@ template <class Analysis, bool Simple>
 class DOTGraphTraitsViewer : public FunctionPass {
 public:
   DOTGraphTraitsViewer(StringRef GraphName, char &ID)
-    : FunctionPass(ID), Name(GraphName) {}
+      : FunctionPass(ID), Name(GraphName) {}
 
   virtual bool runOnFunction(Function &F) {
     Analysis *Graph = &getAnalysis<Analysis>();
-    std::string GraphName = DOTGraphTraits<Analysis*>::getGraphName(Graph);
+    std::string GraphName = DOTGraphTraits<Analysis *>::getGraphName(Graph);
     std::string Title = GraphName + " for '" + F.getName().str() + "' function";
 
     ViewGraph(Graph, Name, Simple, Title);
@@ -48,7 +48,7 @@ template <class Analysis, bool Simple>
 class DOTGraphTraitsPrinter : public FunctionPass {
 public:
   DOTGraphTraitsPrinter(StringRef GraphName, char &ID)
-    : FunctionPass(ID), Name(GraphName) {}
+      : FunctionPass(ID), Name(GraphName) {}
 
   virtual bool runOnFunction(Function &F) {
     Analysis *Graph = &getAnalysis<Analysis>();
@@ -58,7 +58,7 @@ public:
     errs() << "Writing '" << Filename << "'...";
 
     raw_fd_ostream File(Filename.c_str(), ErrorInfo);
-    std::string GraphName = DOTGraphTraits<Analysis*>::getGraphName(Graph);
+    std::string GraphName = DOTGraphTraits<Analysis *>::getGraphName(Graph);
     std::string Title = GraphName + " for '" + F.getName().str() + "' function";
 
     if (ErrorInfo.empty())
@@ -83,11 +83,11 @@ template <class Analysis, bool Simple>
 class DOTGraphTraitsModuleViewer : public ModulePass {
 public:
   DOTGraphTraitsModuleViewer(StringRef GraphName, char &ID)
-    : ModulePass(ID), Name(GraphName) {}
+      : ModulePass(ID), Name(GraphName) {}
 
   virtual bool runOnModule(Module &M) {
     Analysis *Graph = &getAnalysis<Analysis>();
-    std::string Title = DOTGraphTraits<Analysis*>::getGraphName(Graph);
+    std::string Title = DOTGraphTraits<Analysis *>::getGraphName(Graph);
 
     ViewGraph(Graph, Name, Simple, Title);
 
@@ -107,7 +107,7 @@ template <class Analysis, bool Simple>
 class DOTGraphTraitsModulePrinter : public ModulePass {
 public:
   DOTGraphTraitsModulePrinter(StringRef GraphName, char &ID)
-    : ModulePass(ID), Name(GraphName) {}
+      : ModulePass(ID), Name(GraphName) {}
 
   virtual bool runOnModule(Module &M) {
     Analysis *Graph = &getAnalysis<Analysis>();
@@ -117,7 +117,7 @@ public:
     errs() << "Writing '" << Filename << "'...";
 
     raw_fd_ostream File(Filename.c_str(), ErrorInfo);
-    std::string Title = DOTGraphTraits<Analysis*>::getGraphName(Graph);
+    std::string Title = DOTGraphTraits<Analysis *>::getGraphName(Graph);
 
     if (ErrorInfo.empty())
       WriteGraph(File, Graph, Simple, Title);





More information about the llvm-commits mailing list