Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DThrowByValueCatchByReferenceCheck.cpp138 auto CaughtType = CatchStmt->getCaughtType(); in diagnoseCatchLocations() local
139 if (CaughtType.isNull()) in diagnoseCatchLocations()
142 if (const auto *PT = CaughtType.getCanonicalType()->getAs<PointerType>()) { in diagnoseCatchLocations()
151 } else if (!CaughtType->isReferenceType()) { in diagnoseCatchLocations()
157 if (!CaughtType.isTrivialType(Context)) { in diagnoseCatchLocations()
167 if (Context.getTypeSize(CaughtType) > MaxSize) in diagnoseCatchLocations()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExceptionAnalyzer.cpp181 const auto *CaughtType = in throwsException() local
183 if (CaughtType->isReferenceType()) { in throwsException()
184 CaughtType = CaughtType->castAs<ReferenceType>() in throwsException()
193 if (Uncaught.filterByCatch(CaughtType)) { in throwsException()
195 CaughtExceptions.insert(CaughtType); in throwsException()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGException.cpp633 QualType CaughtType = CGM.getContext().getUnqualifiedArrayType( in EnterCXXTryStmt() local
637 if (CaughtType->isObjCObjectPointerType()) in EnterCXXTryStmt()
638 TypeInfo.RTTI = CGM.getObjCRuntime().GetEHType(CaughtType); in EnterCXXTryStmt()
641 CaughtType, C->getCaughtType()); in EnterCXXTryStmt()
H A DItaniumCXXABI.cpp4444 QualType CaughtType = cast<ReferenceType>(CatchType)->getPointeeType(); in InitCatchParam() local
4445 bool EndCatchMightThrow = CaughtType->isRecordType(); in InitCatchParam()
4453 if (const PointerType *PT = dyn_cast<PointerType>(CaughtType)) { in InitCatchParam()
4483 llvm::Type *PtrTy = CGF.ConvertTypeForMem(CaughtType); in InitCatchParam()