[llvm-bugs] [Bug 30527] New: Regression: clang-format inserts spaces in [] in some cases

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 26 07:36:48 PDT 2016


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

            Bug ID: 30527
           Summary: Regression: clang-format inserts spaces in [] in some
                    cases
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

thakis at thakis:~/src/chrome/src$ cat test.cc
void f() {
  {
     std::unique_ptr<v8::Local<v8::Value>[]> arguments =
           wrapArrayUnique(new v8::Local<v8::Value>[info.Length()]);
  }
}
thakis at thakis:~/src/chrome/src$ buildtools/linux64/clang-format test.cc 
void f() {
  {
    std::unique_ptr<v8::Local<v8::Value>[]> arguments =
        wrapArrayUnique(new v8::Local<v8::Value>[ info.Length() ]);
  }
}


Note the unnecessary spaces inside []. This worked fine at r258123 but is
broken at r282138. (That's a months-wide regression range, so not sure if
that's very useful, but it used to work at some point.)

-- 
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/20160926/132e280b/attachment.html>


More information about the llvm-bugs mailing list