Commit b6f2597a authored by Vlad Serebrennikov's avatar Vlad Serebrennikov
Browse files

Add missing `llvm::to_underlying` in `AST/CommentParser.cpp` unit test

This fixed a test failure introduced in f2d8a0ac.
parent 74e0a26f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -193,8 +193,9 @@ HasParamCommandAt(const Comment *C, const CommandTraits &Traits, size_t Idx,

  if (PCC->getDirection() != Direction)
    return ::testing::AssertionFailure()
        << "ParamCommandComment has direction " << PCC->getDirection() << ", "
           "expected " << Direction;
           << "ParamCommandComment has direction "
           << llvm::to_underlying(PCC->getDirection()) << ", expected "
           << llvm::to_underlying(Direction);

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