[llvm-bugs] [Bug 35427] New: clang-format is misbehaving with [[attributes]]

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 26 06:42:27 PST 2017


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

            Bug ID: 35427
           Summary: clang-format is misbehaving with [[attributes]]
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

I think this is a recent regression, at least i don't remember seeing this
before.

```
$ cat /tmp/test.cpp 
class Class {
public:
  explicit Class() {}

  [[noreturn]] void test() {}
};
$ clang-format /tmp/test.cpp
class Class {
public:
  explicit Class(){}

      [[noreturn]] void test() {}
};
$ clang-format --version
clang-format version 6.0.0-svn318941-1~exp1 (trunk)

```

-- 
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/20171126/d0bf6337/attachment-0001.html>


More information about the llvm-bugs mailing list