Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeStaticCastDowncastCheck.cpp32 const auto *SourceDecl = SourceType->getPointeeCXXRecordDecl(); in check() local
33 if (!SourceDecl) // The cast is from object to reference in check()
34 SourceDecl = SourceType->getAsCXXRecordDecl(); in check()
35 if (!SourceDecl) in check()
38 if (SourceDecl->isPolymorphic()) in check()
DProTypeCstyleCastCheck.cpp53 const auto *SourceDecl = SourceType->getPointeeCXXRecordDecl(); in check() local
54 if (!SourceDecl) // The cast is from object to reference. in check()
55 SourceDecl = SourceType->getAsCXXRecordDecl(); in check()
56 if (!SourceDecl) in check()
59 if (SourceDecl->isPolymorphic()) { in check()
/external/llvm-project/clang/include/clang/AST/
DAbstractBasicWriter.h180 asImpl().writeDeclRef(esi.SourceDecl); in writeExceptionSpecInfo()
183 asImpl().writeDeclRef(esi.SourceDecl); in writeExceptionSpecInfo()
DAbstractBasicReader.h196 esi.SourceDecl = asImpl().readFunctionDeclRef(); in readExceptionSpecInfo()
199 esi.SourceDecl = asImpl().readFunctionDeclRef(); in readExceptionSpecInfo()
DType.h3945 FunctionDecl *SourceDecl = nullptr;
4145 Result.SourceDecl = getExceptionSpecDecl();
4148 Result.SourceDecl = getExceptionSpecDecl();
/external/llvm-project/clang/lib/AST/
DExternalASTMerger.cpp533 for (const Decl *SourceDecl : SourceDC.get()->decls()) { in FindExternalLexicalDecls() local
534 if (IsKindWeWant(SourceDecl->getKind())) { in FindExternalLexicalDecls()
535 auto ImportedDeclOrErr = Forward.Import(SourceDecl); in FindExternalLexicalDecls()
DType.cpp3207 slot[0] = epi.ExceptionSpec.SourceDecl; in FunctionProtoType()
3215 slot[0] = epi.ExceptionSpec.SourceDecl; in FunctionProtoType()
3356 ID.AddPointer(epi.ExceptionSpec.SourceDecl->getCanonicalDecl()); in Profile()
DTextNodeDumper.cpp1609 OS << " noexcept-unevaluated " << EPI.ExceptionSpec.SourceDecl; in VisitFunctionDecl()
DASTImporter.cpp1272 ToEPI.ExceptionSpec.SourceDecl = in VisitFunctionProtoType()
1273 importChecked(Err, FromEPI.ExceptionSpec.SourceDecl); in VisitFunctionProtoType()
3312 if (FromEPI.ExceptionSpec.SourceDecl || in VisitFunctionDecl()
/external/clang/lib/Sema/
DSemaExceptionSpec.cpp156 FunctionDecl *SourceDecl = FPT->getExceptionSpecDecl(); in ResolveExceptionSpec() local
158 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
166 EvaluateImplicitExceptionSpec(Loc, cast<CXXMethodDecl>(SourceDecl)); in ResolveExceptionSpec()
168 InstantiateExceptionSpec(Loc, SourceDecl); in ResolveExceptionSpec()
171 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
DSemaDeclCXX.cpp5321 EPI.ExceptionSpec.SourceDecl = MD; in getImplicitMethodEPI()
5494 EPI.ExceptionSpec.SourceDecl = MD; in CheckExplicitlyDefaultedSpecialMember()
9291 EPI.ExceptionSpec.SourceDecl = DerivedCtor; in findInheritingConstructor()
9658 EPI.ExceptionSpec.SourceDecl = Destructor; in AdjustDestructorExceptionSpec()
DSemaTemplateInstantiateDecl.cpp3449 EPI.ExceptionSpec.SourceDecl = New; in InitFunctionInstantiation()
/external/llvm-project/clang/lib/Sema/
DSemaExceptionSpec.cpp212 FunctionDecl *SourceDecl = FPT->getExceptionSpecDecl(); in ResolveExceptionSpec() local
214 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
222 EvaluateImplicitExceptionSpec(Loc, SourceDecl); in ResolveExceptionSpec()
224 InstantiateExceptionSpec(Loc, SourceDecl); in ResolveExceptionSpec()
227 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
DSemaDeclCXX.cpp7189 EPI.ExceptionSpec.SourceDecl = MD; in getImplicitMethodEPI()
7394 EPI.ExceptionSpec.SourceDecl = MD; in CheckExplicitlyDefaultedSpecialMember()
8487 EPI.ExceptionSpec.SourceDecl = FD; in CheckExplicitlyDefaultedComparison()
13121 EPI.ExceptionSpec.SourceDecl = DerivedCtor; in findInheritingConstructor()
13434 EPI.ExceptionSpec.SourceDecl = Destructor; in AdjustDestructorExceptionSpec()
DSemaTemplateInstantiateDecl.cpp4537 EPI.ExceptionSpec.SourceDecl = New; in InitFunctionInstantiation()
/external/clang/include/clang/AST/
DType.h3149 SourceDecl(nullptr), SourceTemplate(nullptr) {}
3152 : Type(EST), NoexceptExpr(nullptr), SourceDecl(nullptr),
3163 FunctionDecl *SourceDecl;
3296 EPI.ExceptionSpec.SourceDecl = getExceptionSpecDecl();
3299 EPI.ExceptionSpec.SourceDecl = getExceptionSpecDecl();
/external/clang/lib/AST/
DType.cpp2719 slot[0] = epi.ExceptionSpec.SourceDecl; in FunctionProtoType()
2728 slot[0] = epi.ExceptionSpec.SourceDecl; in FunctionProtoType()
2853 ID.AddPointer(epi.ExceptionSpec.SourceDecl->getCanonicalDecl()); in Profile()
DASTDumper.cpp1144 OS << " noexcept-unevaluated " << EPI.ExceptionSpec.SourceDecl; in VisitFunctionDecl()
DASTImporter.cpp1757 ToEPI.ExceptionSpec.SourceDecl = cast_or_null<FunctionDecl>( in VisitFunctionProtoType()
1758 Importer.Import(FromEPI.ExceptionSpec.SourceDecl)); in VisitFunctionProtoType()
3011 if (FromEPI.ExceptionSpec.SourceDecl || in VisitFunctionDecl()
/external/clang/lib/Serialization/
DASTReader.cpp5696 ESI.SourceDecl = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5699 ESI.SourceDecl = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()