[llvm-bugs] [Bug 44476] New: [[]] style attributes don't get a space between template

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 7 00:08:52 PST 2020


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

            Bug ID: 44476
           Summary: [[]] style attributes don't get a space between
                    template
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexbrachetmialot at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

`template <typename T> [[nodiscard]] int a() { return 1; }`
This code gets formatted to `template <typename T>[[nodiscard]] int a() {
return 1; }`. With style=llvm from a fairly recent (~a few weeks old) build.
There should be a space between '>' and '[[' but clang-format removes it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200107/7e29c736/attachment.html>


More information about the llvm-bugs mailing list