Home
last modified time | relevance | path

Searched refs:ParentDecl2 (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DForwardDeclarationNamespaceCheck.cpp85 const DeclContext *ParentDecl2 = Decl2->getLexicalParent(); in haveSameNamespaceOrTranslationUnit() local
91 ParentDecl2->getDeclKind() == Decl::TranslationUnit) { in haveSameNamespaceOrTranslationUnit()
92 return ParentDecl1 == ParentDecl2; in haveSameNamespaceOrTranslationUnit()
96 assert(ParentDecl2->getDeclKind() == Decl::Namespace && in haveSameNamespaceOrTranslationUnit()
99 auto *Ns2 = NamespaceDecl::castFromDeclContext(ParentDecl2); in haveSameNamespaceOrTranslationUnit()