projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e75a08
)
[clang-format][NFC] Include TableGen in enum->string mapping used for debugging
author
Jordan Rupprecht
<rupprecht@google.com>
Wed, 13 Mar 2019 20:34:34 +0000
(20:34 +0000)
committer
Jordan 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.
llvm-svn: 356097
clang/include/clang/Format/Format.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/Format/Format.h
b/clang/include/clang/Format/Format.h
index
4d34a55
..
d02f706
100644
(file)
--- 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: