enum FormatStyle::LanguageKind
Description
Supported languages. When stored in a configuration file, specifies the language, that the configuration targets. When passed to the ``reformat()`` function, enables syntax features specific to the language.
Declared at: clang/include/clang/Format/Format.h:2570
Enumerators
Name | Value | Comment |
---|---|---|
LK_None | 0 | Do not use. |
LK_Cpp | 1 | Should be used for C, C++. |
LK_CSharp | 2 | Should be used for C#. |
LK_Java | 3 | Should be used for Java. |
LK_JavaScript | 4 | Should be used for JavaScript. |
LK_Json | 5 | Should be used for JSON. |
LK_ObjC | 6 | Should be used for Objective-C, Objective-C++. |
LK_Proto | 7 | Should be used for Protocol Buffers (https://developers.google.com/protocol-buffers/). |
LK_TableGen | 8 | Should be used for TableGen code. |
LK_TextProto | 9 | Should be used for Protocol Buffer messages in text format (https://developers.google.com/protocol-buffers/). |
LK_Verilog | 10 | Should be used for Verilog and SystemVerilog. https://standards.ieee.org/ieee/1800/6700/ https://sci-hub.st/10.1109/IEEESTD.2018.8299595 |