a change D67541: [ClangFormat] Future-proof Standard option, allow floating or pinning to arbitrary lang version cause LanguageStandard to now be subtly different from all other clang-format options, in that the Enum value (less the prefix) is not always allowed as valid as the configuration option.
This caused the ClangFormatStyleOptions.rst and the Format.h to diverge so that the ClangFormatStyleOptions.rst could no longer be generated from the Format.h using dump_format_stlye.py
This fix tried to remedy that:
- by allowing an additional comment (in Format.h) after the enum to be used as the in configuration ( XXXX ) text, and changing the dump_format_style.py to support that.
This makes the following code:
enum { ... LS_Cpp03, // c++03 LS_Cpp11, // c++11 ... };
would render as:
* ``LS_Cpp03`` (in configuration: ``c++03``) * ``LS_Cpp11`` (in configuration: ``c++11``)
And we also move the deprecated alias into the text of the enum (otherwise it won't be added at the end as an option)
This patch includes a couple of other whitespace changes which help bring Format.h and ClangFormatStyleOptions.rst almost back into line and regeneratable... (there is still one more)
Cpp03 is a deprecated alias for c++03.
The colons were just to give terse bullets, these are no longer bullets and I think they hurt readability.