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

            Bug ID: 48751
           Summary: Dont remove spaces around concatenation for macros
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Here's a common concatenation macro, e.g. from range-v3:

#define RANGES_CXX_FEATURE_CONCAT2(y, z) RANGES_CXX_ ## y ## _ ## z

This gets formatted as:

#define RANGES_CXX_FEATURE_CONCAT2(y, z) RANGES_CXX_##y##_##z

I'm not sure there's any option to control the spacing around the ##s, but this
is not easier to read.

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

Reply via email to