Home
last modified time | relevance | path

Searched refs:getDeclKind (Results 1 – 25 of 34) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DForwardDeclarationNamespaceCheck.cpp90 if (ParentDecl1->getDeclKind() == Decl::TranslationUnit || in haveSameNamespaceOrTranslationUnit()
91 ParentDecl2->getDeclKind() == Decl::TranslationUnit) { in haveSameNamespaceOrTranslationUnit()
94 assert(ParentDecl1->getDeclKind() == Decl::Namespace && in haveSameNamespaceOrTranslationUnit()
96 assert(ParentDecl2->getDeclKind() == Decl::Namespace && in haveSameNamespaceOrTranslationUnit()
105 if (ParentDecl->getDeclKind() == Decl::TranslationUnit) { in getNameOfNamespace()
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp156 switch (getDeclKind()) { in getDeclKindName()
911 Decl::Kind DK = D->getDeclKind(); in castFromDeclContext()
998 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1174 if (getDeclKind() == Decl::Enum) in isTransparentContext()
1176 else if (getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export) in isTransparentContext()
1184 while (DC->getDeclKind() != Decl::TranslationUnit) { in isLinkageSpecContext()
1185 if (DC->getDeclKind() == Decl::LinkageSpec) in isLinkageSpecContext()
1198 while (DC->getDeclKind() != Decl::TranslationUnit) { in getExternCContext()
1199 if (DC->getDeclKind() == Decl::LinkageSpec && in getExternCContext()
1222 switch (getDeclKind()) { in getPrimaryContext()
[all …]
DExternalASTMerger.cpp82 SearchResultDecl->getKind() == DC->getDeclKind()) in LookupSameContext()
DASTStructuralEquivalence.cpp1271 Method1->getDeclKind() == Method2->getDeclKind() && in IsStructurallyEquivalent()
DODRHash.cpp538 ID.AddInteger(Function->getDeclKind()); in AddFunctionDecl()
DDeclCXX.cpp2046 switch (Function->getDeclKind()) { in getFromDecl()
/external/llvm-project/clang/include/clang/AST/
DDeclBase.h1808 Decl::Kind getDeclKind() const { in getDeclKind() function
1848 bool isClosure() const { return getDeclKind() == Decl::Block; } in isClosure()
1855 switch (getDeclKind()) { in isObjCContainer()
1868 switch (getDeclKind()) { in isFunctionOrMethod()
1874 return getDeclKind() >= Decl::firstFunction && in isFunctionOrMethod()
1875 getDeclKind() <= Decl::lastFunction; in isFunctionOrMethod()
1881 return !isFunctionOrMethod() && getDeclKind() != Decl::LinkageSpec && in isLookupContext()
1882 getDeclKind() != Decl::Export; in isLookupContext()
1886 return getDeclKind() == Decl::TranslationUnit || in isFileContext()
1887 getDeclKind() == Decl::Namespace; in isFileContext()
[all …]
DDecl.h1146 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DStaticDefinitionInAnonymousNamespaceCheck.cpp39 if (DC->getDeclKind() != Decl::Namespace) in check()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.cpp110 if (Method->getDeclKind() == Decl::Kind::CXXConstructor || in canonicalRenameDecl()
111 Method->getDeclKind() == Decl::Kind::CXXDestructor) in canonicalRenameDecl()
333 switch (DC->getDeclKind()) { in lookupSiblingWithName()
/external/clang/lib/AST/
DDeclBase.cpp727 Decl::Kind DK = D->getDeclKind(); in castFromDeclContext()
811 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
965 while (DC->getDeclKind() != Decl::TranslationUnit) { in isLinkageSpecContext()
966 if (DC->getDeclKind() == Decl::LinkageSpec) in isLinkageSpecContext()
DDecl.cpp303 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext()
/external/clang/lib/Serialization/
DASTCommon.cpp180 switch (DC->getDeclKind()) { in getDefinitiveDeclContext()
/external/llvm-project/clang/lib/Serialization/
DASTCommon.cpp281 switch (DC->getDeclKind()) { in getDefinitiveDeclContext()
/external/clang/lib/Frontend/
DASTConsumers.cpp200 switch (DC->getDeclKind()) { in PrintDeclContext()
/external/clang/include/clang/AST/
DDeclBase.h1208 Decl::Kind getDeclKind() const { in getDeclKind() function
1860 return To::classofKind(Val.getDeclKind());
DDecl.h1046 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/clang/lib/Sema/
DSemaPseudoObject.cpp684 S.getCurLexicalContext()->getDeclKind() != Decl::ObjCCategoryImpl && in DiagnoseUnsupportedPropertyUse()
685 S.getCurLexicalContext()->getDeclKind() != Decl::ObjCImplementation) { in DiagnoseUnsupportedPropertyUse()
DSemaDeclObjC.cpp3678 switch (CurContext->getDeclKind()) { in getObjCContainerKind()
3999 switch (container->getDeclKind()) { in searchFromContainer()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp231 switch (DeclCtx->getDeclKind()) { in shouldCollectSymbol()
/external/llvm-project/clang/lib/Sema/
DSemaPseudoObject.cpp689 S.getCurLexicalContext()->getDeclKind() != Decl::ObjCCategoryImpl && in DiagnoseUnsupportedPropertyUse()
690 S.getCurLexicalContext()->getDeclKind() != Decl::ObjCImplementation) { in DiagnoseUnsupportedPropertyUse()
DSemaDeclObjC.cpp3806 switch (CurContext->getDeclKind()) { in getObjCContainerKind()
4312 switch (container->getDeclKind()) { in searchFromContainer()
/external/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
DDWARFASTParserClang.cpp924 containing_decl_ctx->getDeclKind(); in ParseSubroutine()
1600 const clang::Decl::Kind containing_decl_kind = decl_ctx->getDeclKind(); in ParseStructureLikeDIE()
2979 DeclKindIsCXXClass(containing_decl_ctx->getDeclKind()) && in ParseChildParameters()
/external/llvm-project/clang-tools-extra/clangd/
DCodeComplete.cpp1849 switch (ND.getDeclContext()->getDeclKind()) { in isIndexedForCodeCompletion()
/external/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
DTypeSystemClang.cpp2332 lhs_decl_ctx->getDeclKind(); in DeclsAreEquivalent()
2334 rhs_decl_ctx->getDeclKind(); in DeclsAreEquivalent()
2368 switch (lhs_decl_ctx->getDeclKind()) { in DeclsAreEquivalent()

12