summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2019-03-13 20:34:34 +0000
committerJordan Rupprecht <rupprecht@google.com>2019-03-13 20:34:34 +0000
commitf653e56a6773ca1ba52f45d8ea89307fe16d3868 (patch)
tree2329f04f3f90162b640c7fbc321156aec8c29672 /clang
parent9e75a08409108f1a20b1be42c0ee726a912bf7a0 (diff)
downloadbcm5719-llvm-f653e56a6773ca1ba52f45d8ea89307fe16d3868.tar.gz
bcm5719-llvm-f653e56a6773ca1ba52f45d8ea89307fe16d3868.zip
[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
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Format/Format.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 4d34a559c8e..d02f706a623 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:
OpenPOWER on IntegriCloud