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

Jannik Silvanus via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 09:41:57 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 know, but I'd prefer to avoid supporting it if it isn't even needed. We can still add it if we want this back.

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


More information about the cfe-commits mailing list