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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 12:10: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);
----------------
HazardyKnusperkeks wrote:

How hard would it be to add that?

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


More information about the cfe-commits mailing list