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: unassignedclangb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

thakis@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@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to