Skip to content

Commit

Permalink
Concatenate uses of isa<> into one call; NFC
Browse files Browse the repository at this point in the history
Spotted during post-commit review of 4b15bb9
  • Loading branch information
AaronBallman committed Jul 25, 2023
1 parent 16c1f43 commit d9832ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/include/clang/AST/ASTNodeTraverser.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ class ASTNodeTraverser
Visit(Comment, Comment);

// Decls within functions are visited by the body.
if (!isa<FunctionDecl>(*D) && !isa<ObjCMethodDecl>(*D) &&
!isa<BlockDecl>(*D)) {
if (!isa<FunctionDecl, ObjCMethodDecl, BlockDecl>(*D)) {
if (Traversal != TK_AsIs) {
if (const auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(D)) {
auto SK = CTSD->getSpecializationKind();
Expand Down

0 comments on commit d9832ef

Please sign in to comment.