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
Name | Value | Comment |
---|---|---|
LS_Cpp03 | 0 | Parse and format as C++03. ``Cpp03`` is a deprecated alias for ``c++03`` |
LS_Cpp11 | 1 | Parse and format as C++11. |
LS_Cpp14 | 2 | Parse and format as C++14. |
LS_Cpp17 | 3 | Parse and format as C++17. |
LS_Cpp20 | 4 | Parse and format as C++20. |
LS_Latest | 5 | Parse and format using the latest supported language version. ``Cpp11`` is a deprecated alias for ``Latest`` |
LS_Auto | 6 | Automatic detection based on the input. |