https://bugs.llvm.org/show_bug.cgi?id=35514
Bug ID: 35514
Summary: brace-init member initializers in function-try-blocks
are not formatted correctly
Product: clang
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: david.wag...@easymile.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Using the default style; observed with both 3.9 and 5.0.
Expected format:
- - -
Foo(int abc, int def) try : _abc(abc), _def{def}, _ghi{1} {
callA();
callB();
} catch (std::exception&) {
}
- - -
Actual format:
- - -
Foo(int abc, int def) try : _abc(abc), _def { def }
, _ghi{1} {
callA();
callB();
}
catch (std::exception&) {
}
- - -
Note that it doesn't happen when using "regular" member initializers:
- - -
Foo(int abc, int def) try : _abc(abc), _def(def), _ghi(1) {
callA();
callB();
} catch (std::exception&) {
}
- - -
--
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