r356097 - [clang-format][NFC] Include TableGen in enum->string mapping used for debugging
Jordan Rupprecht via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 13 13:34:34 PDT 2019
Author: rupprecht
Date: Wed Mar 13 13:34:34 2019
New Revision: 356097
URL: http://llvm.org/viewvc/llvm-project?rev=356097&view=rev
Log:
[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.
Modified:
cfe/trunk/include/clang/Format/Format.h
Modified: cfe/trunk/include/clang/Format/Format.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Format/Format.h?rev=356097&r1=356096&r2=356097&view=diff
==============================================================================
--- cfe/trunk/include/clang/Format/Format.h (original)
+++ cfe/trunk/include/clang/Format/Format.h Wed Mar 13 13:34:34 2019
@@ -2089,6 +2089,8 @@ inline StringRef getLanguageName(FormatS
return "JavaScript";
case FormatStyle::LK_Proto:
return "Proto";
+ case FormatStyle::LK_TableGen:
+ return "TableGen";
case FormatStyle::LK_TextProto:
return "TextProto";
default:
More information about the cfe-commits
mailing list