Skip to content

clang-format: unexpected change on operator #44702

@sylvestre

Description

@sylvestre
Bugzilla Link 45357
Resolution FIXED
Resolved on May 07, 2020 11:11
Version unspecified
OS Linux
Blocks #44654 #35642
CC @mydeveloperday,@sylvestre,@tstellar
Fixed by commit(s) eb85e90 b01dca5 7ae6db9 baeb500

Extended Description

with:
class UniquePtrGetterAddRefs {
operator void **() { return reinterpret_cast<void **>(&mPtrStorage); }
}

with clang-format 10.0

$ clang-format-10 foo.cpp
class UniquePtrGetterAddRefs {
operator void * *() { return reinterpret_cast<void **>(&mPtrStorage); }
}

I don't think it is what we want!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions