Reformat
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 21 Mar 2023 04:09:34 +0000 (13:09 +0900)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 21 Mar 2023 07:10:12 +0000 (16:10 +0900)
llvm/utils/TableGen/TableGen.cpp
llvm/utils/TableGen/TableGenBackends.h

index fd8612c..2ec3deb 100644 (file)
@@ -157,12 +157,12 @@ cl::opt<std::string> Class("class", cl::desc("Print Enum list for this class"),
 bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
   switch (Action) {
   case PrintRecords:
-    OS << Records;              // No argument, dump all contents
+    OS << Records; // No argument, dump all contents
     break;
   case PrintDetailedRecords:
     EmitDetailedRecords(Records, OS);
     break;
-  case NullBackend:             // No backend at all.
+  case NullBackend: // No backend at all.
     break;
   case DumpJSON:
     EmitJSON(Records, OS);
@@ -227,13 +227,12 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
     OS << "\n";
     break;
   }
-  case PrintSets:
-  {
+  case PrintSets: {
     SetTheory Sets;
     Sets.addFieldExpander("Set", "Elements");
     for (Record *Rec : Records.getAllDerivedDefinitions("Set")) {
       OS << Rec->getName() << " = [";
-      const std::vector<Record*> *Elts = Sets.expand(Rec);
+      const std::vector<Record *> *Elts = Sets.expand(Rec);
       assert(Elts && "Couldn't expand Set instance");
       for (Record *Elt : *Elts)
         OS << ' ' << Elt->getName();
@@ -290,7 +289,7 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
 
   return false;
 }
-}
+} // namespace
 
 int main(int argc, char **argv) {
   InitLLVM X(argc, argv);
index ac44bab..12ea753 100644 (file)
@@ -96,6 +96,6 @@ void EmitDirectivesImpl(RecordKeeper &RK, raw_ostream &OS);
 void EmitDXILOperation(RecordKeeper &RK, raw_ostream &OS);
 void EmitRISCVTargetDef(const RecordKeeper &RK, raw_ostream &OS);
 
-} // End llvm namespace
+} // namespace llvm
 
 #endif