-
Notifications
You must be signed in to change notification settings - Fork 13.6k
clang-format deletes whitespace inside of a noexcept specifier #44543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The && is seen as a TT_PointerOrReference M=0 C=0 T=TemplateCloser S=0 B=0 BK=0 P=290 Name=greater L=277 PPK=2 FakeLParens= FakeRParens=0 II=0x0 Text='>' and not as a TT_BinaryOperator |
This break on even a simple style ---
Language: Cpp
BasedOnStyle: LLVM template <typename T, enable_if_t<is_move_assignable<T>::value> = true,
enable_if_t<is_move_constructible<T>::value> = true>
constexpr void swap(T &lhs,
T &rhs) noexcept(is_nothrow_move_constructible<T>::value
&&is_nothrow_move_assignable<T>::value) |
and pretty sure its still wrong here
to
|
possible fix https://reviews.llvm.org/D80041 |
This also happens in explicit-specifiers, but not inside parenthesised expressions inside either specifier. |
Uh oh!
There was an error while loading. Please reload this page.
Extended Description
The following:
Results in this:
With this:
The text was updated successfully, but these errors were encountered: