https://bugs.llvm.org/show_bug.cgi?id=46087

            Bug ID: 46087
           Summary: AllowShortBlocksOnASingleLine fails on ForEachMacros
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: zjs...@163.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

.clang-format:

ForEachMacros: ['rng']
AllowShortBlocksOnASingleLine: Never


Before:

rng (i, 0, 10) { 
  std::cout << i; 
}


After:

rng (i, 0, 10) { std::cout << i; }

Expect:

rng (i, 0, 10) { 
  std::cout << i; 
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to