Author: Vlad Serebrennikov
Date: 2023-11-06T23:27:13+03:00
New Revision: b6f2597a45f426f3a276c1c59f7ff5521b6dcc89

URL: 
https://github.com/llvm/llvm-project/commit/b6f2597a45f426f3a276c1c59f7ff5521b6dcc89
DIFF: 
https://github.com/llvm/llvm-project/commit/b6f2597a45f426f3a276c1c59f7ff5521b6dcc89.diff

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

This fixed a test failure introduced in 
f2d8a0ac1dd1fe55b2c3b358c525fbc01b0121ed.

Added: 
    

Modified: 
    clang/unittests/AST/CommentParser.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/AST/CommentParser.cpp 
b/clang/unittests/AST/CommentParser.cpp
index 1368f56d0f8eddc..c3479672ae2a3cf 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()


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to