[PM] Re-format this code with clang-format before making substantial
[oota-llvm.git] / include / llvm / Analysis / DOTGraphTraitsPass.h
index d9d15a4065a21de3cf0d8d291009ceb1f6e63c67..0dcbdec032919a3509f1fbf3523cbcde24c2ff37 100644 (file)
@@ -22,12 +22,12 @@ namespace llvm {
 template <class Analysis, bool Simple>
 class DOTGraphTraitsViewer : public FunctionPass {
 public:
-  DOTGraphTraitsViewer(llvm::StringRef GraphName, char &ID)
-    : FunctionPass(ID), Name(GraphName) {}
+  DOTGraphTraitsViewer(StringRef GraphName, char &ID)
+      : 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);
@@ -47,8 +47,8 @@ private:
 template <class Analysis, bool Simple>
 class DOTGraphTraitsPrinter : public FunctionPass {
 public:
-  DOTGraphTraitsPrinter(llvm::StringRef GraphName, char &ID)
-    : FunctionPass(ID), Name(GraphName) {}
+  DOTGraphTraitsPrinter(StringRef GraphName, char &ID)
+      : 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())
@@ -82,12 +82,12 @@ private:
 template <class Analysis, bool Simple>
 class DOTGraphTraitsModuleViewer : public ModulePass {
 public:
-  DOTGraphTraitsModuleViewer(llvm::StringRef GraphName, char &ID)
-    : ModulePass(ID), Name(GraphName) {}
+  DOTGraphTraitsModuleViewer(StringRef GraphName, char &ID)
+      : 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);
 
@@ -106,8 +106,8 @@ private:
 template <class Analysis, bool Simple>
 class DOTGraphTraitsModulePrinter : public ModulePass {
 public:
-  DOTGraphTraitsModulePrinter(llvm::StringRef GraphName, char &ID)
-    : ModulePass(ID), Name(GraphName) {}
+  DOTGraphTraitsModulePrinter(StringRef GraphName, char &ID)
+      : 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);