aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorPavel Samolysov <samolisov@gmail.com>2024-06-11 05:30:50 +0300
committerGitHub <noreply@github.com>2024-06-11 05:30:50 +0300
commit69e9e779b783bb34a3c1f73c93ca63ee6b89ab09 (patch)
treee7786893fa62faab929d98e0c4dfd853257abba5 /clang/lib/AST/DeclBase.cpp
parentcb63abca27e1813ae58ded466cd81ba3952ab888 (diff)
downloadllvm-69e9e779b783bb34a3c1f73c93ca63ee6b89ab09.zip
llvm-69e9e779b783bb34a3c1f73c93ca63ee6b89ab09.tar.gz
llvm-69e9e779b783bb34a3c1f73c93ca63ee6b89ab09.tar.bz2
[clang] Replace X && isa<Y>(X) with isa_and_nonnull<Y>(X). NFC (#94987)
This addresses a clang-tidy suggestion.
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 7f1ed9c..e64a832 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -1116,7 +1116,7 @@ bool Decl::isInExportDeclContext() const {
while (DC && !isa<ExportDecl>(DC))
DC = DC->getLexicalParent();
- return DC && isa<ExportDecl>(DC);
+ return isa_and_nonnull<ExportDecl>(DC);
}
bool Decl::isInAnotherModuleUnit() const {