Skip to content

Commit

Permalink
More -Wswitch warning fixes for a42e515
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Aug 5, 2024
1 parent 9fea731 commit 69c6a3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,7 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
case Stmt::OMPScanDirectiveClass:
case Stmt::OMPOrderedDirectiveClass:
case Stmt::OMPAtomicDirectiveClass:
case Stmt::OMPAssumeDirectiveClass:
case Stmt::OMPTargetDirectiveClass:
case Stmt::OMPTargetDataDirectiveClass:
case Stmt::OMPTargetEnterDataDirectiveClass:
Expand Down
2 changes: 1 addition & 1 deletion clang/tools/libclang/CIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3326,7 +3326,7 @@ void EnqueueVisitor::VisitOMPTaskwaitDirective(const OMPTaskwaitDirective *D) {
}

void EnqueueVisitor::VisitOMPAssumeDirective(const OMPAssumeDirective *D) {
VisitOMPAssumeDirective(D);
VisitOMPExecutableDirective(D);
}

void EnqueueVisitor::VisitOMPErrorDirective(const OMPErrorDirective *D) {
Expand Down
4 changes: 4 additions & 0 deletions clang/tools/libclang/CXCursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,10 @@ CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent,
break;
case Stmt::BuiltinBitCastExprClass:
K = CXCursor_BuiltinBitCastExpr;
break;
case Stmt::OMPAssumeDirectiveClass:
K = CXCursor_OMPAssumeDirective;
break;
}

CXCursor C = {K, 0, {Parent, S, TU}};
Expand Down

0 comments on commit 69c6a3f

Please sign in to comment.