aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/AST/CommentParser.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-11-06 23:26:38 +0300
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-11-06 23:27:13 +0300
commitb6f2597a45f426f3a276c1c59f7ff5521b6dcc89 (patch)
treed317d2eb222d19b4427c3633d079d8d6d7348e17 /clang/unittests/AST/CommentParser.cpp
parent74e0a26fd114cac39e251e4c2b6fbbadd6009887 (diff)
downloadllvm-b6f2597a45f426f3a276c1c59f7ff5521b6dcc89.zip
llvm-b6f2597a45f426f3a276c1c59f7ff5521b6dcc89.tar.gz
llvm-b6f2597a45f426f3a276c1c59f7ff5521b6dcc89.tar.bz2
Add missing `llvm::to_underlying` in `AST/CommentParser.cpp` unit test
This fixed a test failure introduced in f2d8a0ac1dd1fe55b2c3b358c525fbc01b0121ed.
Diffstat (limited to 'clang/unittests/AST/CommentParser.cpp')
-rw-r--r--clang/unittests/AST/CommentParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp
index 1368f56..c347967 100644
--- a/clang/unittests/AST/CommentParser.cpp
+++ b/clang/unittests/AST/CommentParser.cpp
@@ -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()