[PATCH] D78879: [clang-format] [PR45357] Fix issue found with operator spacing
Andi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 02:38:26 PDT 2020
Abpostelnicu added a comment.
In D78879#2004724 <https://reviews.llvm.org/D78879#2004724>, @MyDeveloperDay wrote:
> @sylvestre.ledru
>
> I'm taking a quick look at formatting the original bug in gecko and whilst the last windows snapshot (Feb 2020) shows the bug
>
> $ clang-format --version
> clang-format version 11.0.0
>
> nsTArray.h:939:29: warning: code should be clang-formatted [-Wclang-format-violations]
> operator const nsTArray<E>&() {
> ^
> nsTArray.h:946:35: warning: code should be clang-formatted [-Wclang-format-violations]
> operator const FallibleTArray<E>&() {
> ^
> nsTArray.h:1147:59: warning: code should be clang-formatted [-Wclang-format-violations]
> [[nodiscard]] operator const nsTArray_Impl<E, Allocator>&() const& {
> ^
> nsTArray.h:1151:43: warning: code should be clang-formatted [-Wclang-format-violations]
> [[nodiscard]] operator const nsTArray<E>&() const& {
> ^
> nsTArray.h:1154:49: warning: code should be clang-formatted [-Wclang-format-violations]
> [[nodiscard]] operator const FallibleTArray<E>&() const& {
>
>
> The current trunk does not
>
> $ clang-format --version
> clang-format version 11.0.0 (https://github.com/llvm/llvm-project 1956a8a7cb79e94dbe073e36eba2d6b003f91046)
>
> clang-format -n nsTArray.h
>
>
> Is Mozilla toolchain using LLVM from the v10 branch?
>
> I think this is fixed by D76850: clang-format: Fix pointer alignment for overloaded operators (PR45107) <https://reviews.llvm.org/D76850>
Yes, we are using the clang tooling 10.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78879/new/
https://reviews.llvm.org/D78879
More information about the cfe-commits
mailing list