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: http://review.tizen.org/git/?a=commitdiff_plain;h=f653e56a6773ca1ba52f45d8ea89307fe16d3868;p=platform%2Fupstream%2Fllvm.git [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. llvm-svn: 356097 --- diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 4d34a55..d02f706 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/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: