Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DDefaultOperatorNewAlignmentCheck.cpp34 const TagDecl *D = T->getAsTagDecl(); in check()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtil.cpp65 return qual_type->getAsTagDecl(); in GetAsTagDecl()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.cpp329 context = clang::TagDecl::castToDeclContext(parent_qt->getAsTagDecl()); in CreateDeclInfoForType()
542 if (auto *tag = qt->getAsTagDecl()) { in GetOrCreateDeclForUid()
593 clang::TagDecl *tag = qt->getAsTagDecl(); in CreateDeclInfoForUndecoratedName()
636 clang::TagDecl *tag = qt->getAsTagDecl(); in GetParentDeclContextForSymbol()
716 clang::TagDecl *tag = qt->getAsTagDecl(); in CompleteType()
719 tag = element_type->getAsTagDecl(); in CompleteType()
819 if (clang::TagDecl *tag = class_type->getAsTagDecl()) { in CreatePointerType()
1114 clang::TagDecl *tag = qt->getAsTagDecl(); in GetOrCreateType()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSemanticHighlighting.cpp160 if (auto *TD = TP->getAsTagDecl()) in kindForType()
274 if (auto *TD = Underlying->getAsTagDecl()) in isDefaultLibrary()
517 if (auto *TD = T->getAsTagDecl()) in scopeModifier()
H A DIncludeFixer.cpp270 const TagDecl *TD = T.getAsTagDecl(); in fixIncompleteType()
H A DHover.cpp692 QualType ClassType = declaredType(OriginThisType->getAsTagDecl()); in getThisExprHoverContents()
721 if (const auto *D = QT->getAsTagDecl()) { in getDeducedTypeHoverContents()
H A DFindTarget.cpp361 Outer.add(TT->getAsTagDecl(), Flags); in add()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExceptionAnalyzer.cpp80 if (const auto *TD = T->getAsTagDecl()) { in filterIgnoredExceptions()
H A DRenamerClangTidyCheck.cpp336 if (const TagDecl *Decl = Ref.getTypePtr()->getAsTagDecl()) in check()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp63 TagDecl *Underlying = ND->getUnderlyingType()->getAsTagDecl(); in VisitTypedefTypeLoc()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DAddUsing.cpp306 } else if (auto *TD = ET->getAsTagDecl()) { in prepare()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp81 if (auto *TD = QTy->getAsTagDecl()) in TypeHasMayAlias()
H A DCGOpenMPRuntime.cpp3535 cast<RecordDecl>(KmpTaskTWithPrivatesQTy->getAsTagDecl()); in emitProxyTaskFunction()
3538 const auto *KmpTaskTQTyRD = cast<RecordDecl>(KmpTaskTQTy->getAsTagDecl()); in emitProxyTaskFunction()
3633 cast<RecordDecl>(KmpTaskTWithPrivatesQTy->getAsTagDecl()); in emitDestructorsFunction()
3637 cast<RecordDecl>(FI->getType()->getAsTagDecl())->fields()) { in emitDestructorsFunction()
3741 const auto *PrivatesQTyRD = cast<RecordDecl>(PrivatesQTy->getAsTagDecl()); in emitTaskPrivateMappingFunction()
3788 FI = cast<RecordDecl>(FI->getType()->getAsTagDecl())->field_begin(); in emitPrivatesInit()
4570 cast<RecordDecl>(KmpDependInfoTy->getAsTagDecl()); in getDepobjElements()
4598 cast<RecordDecl>(KmpDependInfoTy->getAsTagDecl()); in emitDependData()
4865 cast<RecordDecl>(KmpDependInfoTy->getAsTagDecl()); in emitDepobjDependClause()
4972 cast<RecordDecl>(KmpDependInfoTy->getAsTagDecl()); in emitUpdateClause()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp475 llvm::dyn_cast_or_null<EnumDecl>(Loc.getType()->getAsTagDecl())) in getSupportedDeclFromTypeLoc()
/llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h241 assert(qt->getAsTagDecl() == nullptr || in GetType()
242 &qt->getAsTagDecl()->getASTContext() == &getASTContext()); in GetType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp588 return std::next(CRD->bases_begin(), N)->getType()->getAsTagDecl(); in getParamDecl()
H A DSemaCXXScopeSpec.cpp213 tag = type->getAsTagDecl(); in RequireCompleteDeclContext()
H A DSemaStmtAsm.cpp826 FoundDecl = PT->getPointeeType()->getAsTagDecl(); in LookupInlineAsmField()
H A DSemaStmt.cpp314 if (const TagDecl *TD = ILE->getType()->getAsTagDecl()) { in DiagnoseUnusedExprResult()
H A DSemaExprCXX.cpp713 const auto *TD = Ty->getAsTagDecl(); in getUuidAttrOfType()
H A DSemaDecl.cpp16769 auto *TD = Context.getTagDeclType(PrevTagDecl)->getAsTagDecl(); in ActOnTag()
/llvm-project-15.0.7/clang/lib/AST/
H A DType.cpp1760 return dyn_cast_or_null<CXXRecordDecl>(getAsTagDecl()); in getAsCXXRecordDecl()
1764 return dyn_cast_or_null<RecordDecl>(getAsTagDecl()); in getAsRecordDecl()
1767 TagDecl *Type::getAsTagDecl() const { in getAsTagDecl() function in Type
H A DExpr.cpp1522 if (const TagDecl *TD = getCallReturnType(Ctx)->getAsTagDecl()) in getUnusedResultAttr()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DType.h2332 TagDecl *getAsTagDecl() const;