https://bugs.llvm.org/show_bug.cgi?id=43653
Bug ID: 43653
Summary: clangFormat doesn't follow SpacesInParentheses for
operator* declaration
Product: clang
Version: 8.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: maxim.ban...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
$ cat foo.cpp
class Foo {
public:
Foo operator*(int &)const;
};
$ cat .clang-format
Language: Cpp
BasedOnStyle: LLVM
SpacesInParentheses: true
Command executed:
$ clang-format -i foo.cpp
Actual:
class Foo {
public:
Foo operator*(int &)const;
};
Expected
class Foo {
public:
Foo operator*( int & ) const;
};
Expected that clangFormat does add spaces in ().
Works file for:
Foo operator+(int &)const;
Foo operator*(int &i)const;
Foo operator*(int &);
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs