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

Jannik Silvanus via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 09:09:44 PDT 2024


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

I don't think our YAML writer supports comments at all.

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


More information about the cfe-commits mailing list