[clang] [clang-format] Remove YAML hack to emit a BasedOnStyle comment (PR #89228)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 08:15:47 PDT 2024


================
@@ -807,12 +807,18 @@ template <> struct MappingTraits<FormatStyle> {
         FormatStyle PredefinedStyle;
         if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) &&
             Style == PredefinedStyle) {
-          IO.mapOptional("# BasedOnStyle", StyleName);
----------------
mydeveloperday wrote:

is the a way to emit the a comment into the YAML at the correct indentation level?

https://github.com/llvm/llvm-project/pull/89228


More information about the cfe-commits mailing list