Skip to content

Commit a24b89a

Browse files
committed
[clang-format] Don't swap (const override) with QAS_Right
Fixes #154846
1 parent 498652d commit a24b89a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/unittests/Format/QualifierFixerTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ TEST_F(QualifierFixerTest, RightQualifier) {
215215
Style);
216216
verifyFormat("void foo() const override;", Style);
217217
verifyFormat("void foo() const override LLVM_READONLY;", Style);
218+
verifyFormat("MOCK_METHOD(ReturnType, myMethod, (int), (const override))",
219+
Style);
218220
verifyFormat("void foo() const final;", Style);
219221
verifyFormat("void foo() const final LLVM_READONLY;", Style);
220222
verifyFormat("void foo() const LLVM_READONLY;", Style);

0 commit comments

Comments
 (0)