Issue 53173
Summary clang-format interpreting variable name `interface` as some kind of keyword and changes formatting in constructor delegation
Labels new issue
Assignees
Reporter Zwo1in
    Hi,
as in title, I have clang in version 13.0, on 12.0.1 the issue does not exist.

Here is a minimal example:
```c++
class Foo {
  int interface;

  Foo::Foo(int iface) : interface { iface } {
  }
}

class Bar {
  int outerface;

  Bar::Bar(int oface) : outerface{oface} {}
}

int main() {
  auto foo = Foo(1);
  auto bar = Bar(1);
}
```

I've included it here: https://github.com/Zwo1in/clang-format-interface-reproduction
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to