enum FormatStyle::LanguageStandard

Description

Supported language standards for parsing and formatting C++ constructs. The correct way to spell a specific language version is e.g. ``c++11``. The historical aliases ``Cpp03`` and ``Cpp11`` are deprecated.

Declared at: clang/include/clang/Format/Format.h:3775

Enumerators

NameValueComment
LS_Cpp030Parse and format as C++03. ``Cpp03`` is a deprecated alias for ``c++03``
LS_Cpp111Parse and format as C++11.
LS_Cpp142Parse and format as C++14.
LS_Cpp173Parse and format as C++17.
LS_Cpp204Parse and format as C++20.
LS_Latest5Parse and format using the latest supported language version. ``Cpp11`` is a deprecated alias for ``Latest``
LS_Auto6Automatic detection based on the input.