Skip to content

Commit b6f2597

Browse files
committed
Add missing llvm::to_underlying in AST/CommentParser.cpp unit test
This fixed a test failure introduced in f2d8a0a.
1 parent 74e0a26 commit b6f2597

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/unittests/AST/CommentParser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ HasParamCommandAt(const Comment *C, const CommandTraits &Traits, size_t Idx,
193193

194194
if (PCC->getDirection() != Direction)
195195
return ::testing::AssertionFailure()
196-
<< "ParamCommandComment has direction " << PCC->getDirection() << ", "
197-
"expected " << Direction;
196+
<< "ParamCommandComment has direction "
197+
<< llvm::to_underlying(PCC->getDirection()) << ", expected "
198+
<< llvm::to_underlying(Direction);
198199

199200
if (PCC->isDirectionExplicit() != IsDirectionExplicit)
200201
return ::testing::AssertionFailure()

0 commit comments

Comments
 (0)