Home
last modified time | relevance | path

Searched refs:withConst (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h161 QualType withConst() const { in withConst() function
162 return Stored.withConst(); in withConst()
H A DType.h448 Qualifiers withConst() const {
860 QualifiersAndAtomic withConst() { return {Quals.withConst(), HasAtomic}; }
1166 QualType withConst() const {
H A DASTContext.h1342 QualType getConstType(QualType T) const { return T.withConst(); } in getConstType()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPPC.cpp316 Type = Type.withConst(); in DecodePPCMMATypeFromStr()
H A DSemaExprObjC.cpp582 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
700 Context.VoidPtrTy.withConst(), in BuildObjCBoxedExpr()
705 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
861 << Context.getPointerType(IdT.withConst()); in BuildObjCArrayLiteral()
1031 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
1065 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
H A DSemaStmt.cpp124 var->setType(type.withConst()); in ActOnForEachDeclStmt()
2993 SemaRef.Context.getLValueReferenceType(E->getType().withConst()); in DiagnoseForRangeReferenceVariableCopies()
3146 QualType DestTy = Context.getPointerType(Context.VoidTy.withConst()); in ActOnIndirectGotoStmt()
4516 .withConst() in ActOnCapturedRegionStart()
H A DSemaARM.cpp790 EltTy = EltTy.withConst(); in CheckNeonBuiltinFunctionCall()
H A DSemaOpenMP.cpp4242 Context.getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1).withConst(); in getParallelRegionParams()
4244 Context.getPointerType(KmpInt32Ty).withConst().withRestrict(); in getParallelRegionParams()
4250 QualType KmpSizeTy = Context.getSizeType().withConst(); in getParallelRegionParams()
4268 QualType KmpInt32Ty = Context.getIntTypeForBitwidth(32, 1).withConst(); in getTaskRegionParams()
4269 QualType VoidPtrTy = Context.VoidPtrTy.withConst().withRestrict(); in getTaskRegionParams()
4271 Context.getPointerType(KmpInt32Ty).withConst().withRestrict(); in getTaskRegionParams()
4282 Context.getPointerType(CopyFnType).withConst().withRestrict()), in getTaskRegionParams()
4283 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in getTaskRegionParams()
4294 QualType VoidPtrTy = Context.VoidPtrTy.withConst().withRestrict(); in getTargetRegionParams()
4314 Context.getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1).withConst(); in getTaskloopRegionParams()
[all …]
H A DSemaInit.cpp4195 E.withConst(), in TryInitializerListConstruction()
8295 ElementType.withConst())) in Perform()
8304 ElementType.withConst())) in Perform()
8541 E.withConst(), in diagnoseListInit()
9885 Context.getLValueReferenceType(ElementTypes[I].withConst()); in DeduceTemplateSpecializationFromInitializer()
H A DSemaExpr.cpp3313 type = type.getUnqualifiedType().withConst(); in BuildDeclarationNameExpr()
3491 Context.adjustStringLiteralBaseType(Context.WideCharTy.withConst()); in BuildPredefinedExpr()
3501 ResTy = Context.adjustStringLiteralBaseType(Context.CharTy.withConst()); in BuildPredefinedExpr()
3742 Context.adjustStringLiteralBaseType(Context.CharTy.withConst()), in ActOnNumericConstant()
16217 Result.get()->getType().withConst(), in ActOnBlockStmtExpr()
16498 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
16503 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
16553 Context.getRecordType(StdSourceLocationImplDecl).withConst()); in ActOnSourceLocExpr()
18428 CaptureType = CaptureType.getNonReferenceType().withConst(); in captureInBlock()
H A DSemaObjC.cpp2217 VD->setType(Ty.withConst()); in tryMakeVariablePseudoStrong()
H A DSemaExprCXX.cpp566 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), Operand, in BuildCXXTypeId()
641 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), E, in BuildCXXTypeId()
5144 Decl->getTypeForDecl()->getCanonicalTypeUnqualified().withConst(), in HasNonDeletedDefaultedEqualityComparison()
H A DSemaDeclCXX.cpp8827 Context.getLValueReferenceType(PlainTy.withConst()); in CheckExplicitlyDefaultedComparison()
10087 Context.getRecordType(RD).withConst()); in SpecialMemberIsTrivial()
14765 ArgType = ArgType.withConst(); in DeclareImplicitCopyAssignment()
15509 ArgType = ArgType.withConst(); in DeclareImplicitCopyConstructor()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp653 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
662 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
H A DDeclObjC.cpp1176 selfTy = selfTy.withConst(); in getSelfType()
1183 selfTy = selfTy.withConst(); in getSelfType()
H A DASTContext.cpp7774 Fields[Count++] = { getPointerType(IntTy.withConst()), "isa" }; in getCFConstantStringDecl()
7776 Fields[Count++] = { getPointerType(CharTy.withConst()), "str" }; in getCFConstantStringDecl()
7782 Fields[Count++] = { getPointerType(CharTy.withConst()), "_ptr" }; in getCFConstantStringDecl()
11994 Type = Type.withConst(); in DecodeTypeFromStr()
12729 EltTy = EltTy.withConst(); in getStringLiteralArrayType()
12761 QualType GUIDType = getMSGuidType().withConst(); in getMSGuidDecl()
H A DExpr.cpp581 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create()
588 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
H A DMicrosoftMangle.cpp2338 T = T.withConst(); in mangleFunctionArgumentType()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp525 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
2318 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2518 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2548 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2748 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCArrayLiteralExpr()
2877 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCDictionaryLiteralExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp1633 return Ty ? std::optional<QualType>(Ty->withConst()) : std::nullopt; in initFunctionSummaries()
1635 QualType operator()(QualType Ty) { return Ty.withConst(); } in initFunctionSummaries()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp3164 C.getPointerType(PrivatesQTy).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
3173 .withConst() in emitTaskPrivateMappingFunction()
3184 .withConst() in emitTaskPrivateMappingFunction()
3195 .withConst() in emitTaskPrivateMappingFunction()
3210 C.getPointerType(C.getPointerType(Ty)).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
H A DCGObjCMac.cpp357 Ctx.getCanonicalType(Ctx.getPointerType(Ctx.CharTy.withConst()))); in getLookUpClassFn()
3007 ctx.getPointerType(ctx.CharTy.withConst()))); in EmitClassRefViaRuntime()
H A DCGObjC.cpp150 QualType ElementType = Context.getObjCIdType().withConst(); in EmitObjCCollectionLiteral()
H A DItaniumCXXABI.cpp4564 FundamentalType.withConst()); in EmitFundamentalRTTIDescriptors()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.cpp1965 QualType CharTy = A.CharTy.withConst(); in VisitSYCLUniqueStableNameExpr()

12