]> granicus.if.org Git - clang/commitdiff
[clang-format][NFC] Include TableGen in enum->string mapping used for debugging
authorJordan Rupprecht <rupprecht@google.com>
Wed, 13 Mar 2019 20:34:34 +0000 (20:34 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Wed, 13 Mar 2019 20:34:34 +0000 (20:34 +0000)
Running `clang-format -debug` prints "Unknown" for tablegen files because of this missing mapping, even though it is recognized as a tablegen file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356097 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Format/Format.h

index 4d34a559c8e663884b2d11b22077969530516cc8..d02f706a62358518bb21398e0526c57785abc168 100644 (file)
@@ -2089,6 +2089,8 @@ inline StringRef getLanguageName(FormatStyle::LanguageKind Language) {
     return "JavaScript";
   case FormatStyle::LK_Proto:
     return "Proto";
+  case FormatStyle::LK_TableGen:
+    return "TableGen";
   case FormatStyle::LK_TextProto:
     return "TextProto";
   default: