Issue |
150327
|
Summary |
clang-format adds extra spaces between type and pointer
|
Labels |
clang-format
|
Assignees |
owenca
|
Reporter |
rupprecht
|
After a8f5e9ed6b44562938ce07e2790be90be8f0a6b5, when using Google style, `MACRO(int*, std::function<void() &&>)` expands `int*` to `int *`.
i.e. if I add this test case to clang/unittests/Format/FormatTest.cpp, this now fails:
```c++
TEST_F(FormatTest, Macro) {
verifyGoogleFormat("MACRO(int*, std::function<void() &&>);");
}
```
with this error:
```
clang/unittests/Format/FormatTestBase.h:90: Failure
Expected equality of these values:
ExpectedCode
Which is: "MACRO(int*, std::function<void() &&>);"
FormattedCode
Which is: "MACRO(int *, std::function<void() &&>);"
```
I'm not sure whether or not this is a diff we're fine just accepting. I'll ask around.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs