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

            Bug ID: 48750
           Summary: Preceding preprocessor in function declaration causes
                    weird function declaration formatting
           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]

$ cat .clang-format 
BasedOnStyle: Google

$ cat wat.h
#ifdef some_constexpr_macro
constexpr
#endif
int f(int);

$ clang-format wat.h
#ifdef some_constexpr_macro
constexpr
#endif
    int
    f(int);

Not sure why this is being indented, but it shouldn't be.

-- 
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