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

NameValueComment
LK_None0Do not use.
LK_Cpp1Should be used for C, C++.
LK_CSharp2Should be used for C#.
LK_Java3Should be used for Java.
LK_JavaScript4Should be used for JavaScript.
LK_Json5Should be used for JSON.
LK_ObjC6Should be used for Objective-C, Objective-C++.
LK_Proto7Should be used for Protocol Buffers (https://developers.google.com/protocol-buffers/).
LK_TableGen8Should be used for TableGen code.
LK_TextProto9Should be used for Protocol Buffer messages in text format (https://developers.google.com/protocol-buffers/).
LK_Verilog10Should be used for Verilog and SystemVerilog. https://standards.ieee.org/ieee/1800/6700/ https://sci-hub.st/10.1109/IEEESTD.2018.8299595