Home
last modified time | relevance | path

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

/freebsd-14.2/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.h268 Qualifiers withConst() const {
656 QualifiersAndAtomic withConst() { return {Quals.withConst(), HasAtomic}; }
951 QualType withConst() const {
H A DASTContext.h1289 QualType getConstType(QualType T) const { return T.withConst(); } in getConstType()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp4242 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4289 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4355 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4375 .withConst(); in ActOnOpenMPRegionStart()
4378 .withConst(); in ActOnOpenMPRegionStart()
4381 .withConst(); in ActOnOpenMPRegionStart()
4396 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4419 .withConst(); in ActOnOpenMPRegionStart()
4422 .withConst(); in ActOnOpenMPRegionStart()
4425 .withConst(); in ActOnOpenMPRegionStart()
[all …]
H A DSemaExprObjC.cpp573 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
694 Context.VoidPtrTy.withConst(), in BuildObjCBoxedExpr()
699 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
853 << Context.getPointerType(IdT.withConst()); in BuildObjCArrayLiteral()
1024 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
1058 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
H A DSemaStmt.cpp119 var->setType(type.withConst()); in ActOnForEachDeclStmt()
3155 SemaRef.Context.getLValueReferenceType(E->getType().withConst()); in DiagnoseForRangeReferenceVariableCopies()
3306 QualType DestTy = Context.getPointerType(Context.VoidTy.withConst()); in ActOnIndirectGotoStmt()
4813 .withConst() in ActOnCapturedRegionStart()
H A DSemaExpr.cpp3575 type = type.getUnqualifiedType().withConst(); in BuildDeclarationNameExpr()
3750 Context.adjustStringLiteralBaseType(Context.WideCharTy.withConst()); in BuildPredefinedExpr()
3760 ResTy = Context.adjustStringLiteralBaseType(Context.CharTy.withConst()); in BuildPredefinedExpr()
4016 Context.adjustStringLiteralBaseType(Context.CharTy.withConst()), in ActOnNumericConstant()
17228 Result.get()->getType().withConst(), in ActOnBlockStmtExpr()
17508 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
17513 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
17563 Context.getRecordType(StdSourceLocationImplDecl).withConst()); in ActOnSourceLocExpr()
19442 CaptureType = CaptureType.getNonReferenceType().withConst(); in captureInBlock()
H A DSemaInit.cpp4058 E.withConst(), in TryInitializerListConstruction()
9523 E.withConst(), in diagnoseListInit()
10765 Context.getLValueReferenceType(ElementTypes[I].withConst()); in DeduceTemplateSpecializationFromInitializer()
H A DSemaExprCXX.cpp568 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), Operand, in BuildCXXTypeId()
644 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), E, in BuildCXXTypeId()
H A DSemaDeclCXX.cpp8929 Context.getLValueReferenceType(PlainTy.withConst()); in CheckExplicitlyDefaultedComparison()
10178 Context.getRecordType(RD).withConst()); in SpecialMemberIsTrivial()
14892 ArgType = ArgType.withConst(); in DeclareImplicitCopyAssignment()
15632 ArgType = ArgType.withConst(); in DeclareImplicitCopyConstructor()
H A DSemaChecking.cpp3355 EltTy = EltTy.withConst(); in CheckNeonBuiltinFunctionCall()
4857 Type = Type.withConst(); in DecodePPCMMATypeFromStr()
8932 QualType ResultTy = Context.getPointerType(Context.CharTy.withConst()); in CheckOSLogFormatStringArg()
9135 Context.getPointerType(Context.CharTy.withConst()); in SemaBuiltinVAStartARMMicrosoft()
H A DSemaDeclAttr.cpp8728 VD->setType(Ty.withConst()); in tryMakeVariablePseudoStrong()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp634 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
643 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.cpp7318 Fields[Count++] = { getPointerType(IntTy.withConst()), "isa" }; in getCFConstantStringDecl()
7320 Fields[Count++] = { getPointerType(CharTy.withConst()), "str" }; in getCFConstantStringDecl()
7326 Fields[Count++] = { getPointerType(CharTy.withConst()), "_ptr" }; in getCFConstantStringDecl()
11511 Type = Type.withConst(); in DecodeTypeFromStr()
12237 EltTy = EltTy.withConst(); in getStringLiteralArrayType()
12269 QualType GUIDType = getMSGuidType().withConst(); in getMSGuidDecl()
H A DExpr.cpp571 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create()
578 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
H A DMicrosoftMangle.cpp2235 T = T.withConst(); in mangleFunctionArgumentType()
H A DExprConstant.cpp7585 Info, BCE, BCE->getSubExpr()->getType().withConst(), SourceLValue, in handleLValueToRValueBitCast()
9087 QualType CharTy = Info.Ctx.CharTy.withConst(); in VisitSYCLUniqueStableNameExpr()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp526 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
2319 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2519 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2549 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2749 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCArrayLiteralExpr()
2878 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCDictionaryLiteralExpr()
H A DRewriteObjC.cpp2232 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2445 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2475 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp3149 C.getPointerType(PrivatesQTy).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
3158 .withConst() in emitTaskPrivateMappingFunction()
3169 .withConst() in emitTaskPrivateMappingFunction()
3180 .withConst() in emitTaskPrivateMappingFunction()
3195 C.getPointerType(C.getPointerType(Ty)).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
H A DCGObjCMac.cpp357 Ctx.getCanonicalType(Ctx.getPointerType(Ctx.CharTy.withConst()))); in getLookUpClassFn()
3000 ctx.getPointerType(ctx.CharTy.withConst()))); in EmitClassRefViaRuntime()
H A DCGObjC.cpp150 QualType ElementType = Context.getObjCIdType().withConst(); in EmitObjCCollectionLiteral()
H A DItaniumCXXABI.cpp4289 FundamentalType.withConst()); in EmitFundamentalRTTIDescriptors()