From: Jordan Rupprecht Date: Wed, 13 Mar 2019 20:34:34 +0000 (+0000) Subject: [clang-format][NFC] Include TableGen in enum->string mapping used for debugging X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8a307083a640d59f6459c7be2a7e6c4f035bd43;p=clang [clang-format][NFC] Include TableGen in enum->string mapping used for debugging 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 --- diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 4d34a559c8..d02f706a62 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -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: