Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h162 QualType withConst() const { in withConst() function
163 return Stored.withConst(); in withConst()
H A DType.h460 Qualifiers withConst() const {
855 QualifiersAndAtomic withConst() { return {Quals.withConst(), HasAtomic}; }
1158 QualType withConst() const {
H A DASTContext.h1444 QualType getConstType(QualType T) const { return T.withConst(); } in getConstType()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLBuiltinTypeDeclBuilder.cpp665 .addParam("name", AST.getPointerType(AST.CharTy.withConst())) in addHandleConstructorFromBinding()
686 .addParam("name", AST.getPointerType(AST.CharTy.withConst())) in addHandleConstructorFromImplicitBinding()
H A DSemaPPC.cpp322 Type = Type.withConst(); in DecodePPCMMATypeFromStr()
H A DSemaExprObjC.cpp578 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
695 Context.VoidPtrTy.withConst(), in BuildObjCBoxedExpr()
700 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
856 << Context.getPointerType(IdT.withConst()); in BuildObjCArrayLiteral()
1026 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
1060 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
H A DSemaStmt.cpp120 var->setType(type.withConst()); in ActOnForEachDeclStmt()
3102 SemaRef.Context.getLValueReferenceType(E->getType().withConst()); in DiagnoseForRangeReferenceVariableCopies()
3253 QualType DestTy = Context.getPointerType(Context.VoidTy.withConst()); in ActOnIndirectGotoStmt()
4669 .withConst() in ActOnCapturedRegionStart()
H A DSemaHLSL.cpp2787 AST.getPointerType(AST.CharTy.withConst()))) in CheckBuiltinFunctionCall()
2803 AST.getPointerType(AST.CharTy.withConst()))) in CheckBuiltinFunctionCall()
3666 AST.getStringLiteralArrayType(AST.CharTy.withConst(), VarName.size()), in initGlobalResourceDecl()
H A DSemaARM.cpp772 EltTy = EltTy.withConst(); in CheckNeonBuiltinFunctionCall()
H A DSemaOpenMP.cpp4237 Context.getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1).withConst(); in getParallelRegionParams()
4239 Context.getPointerType(KmpInt32Ty).withConst().withRestrict(); in getParallelRegionParams()
4245 QualType KmpSizeTy = Context.getSizeType().withConst(); in getParallelRegionParams()
4263 QualType KmpInt32Ty = Context.getIntTypeForBitwidth(32, 1).withConst(); in getTaskRegionParams()
4264 QualType VoidPtrTy = Context.VoidPtrTy.withConst().withRestrict(); in getTaskRegionParams()
4266 Context.getPointerType(KmpInt32Ty).withConst().withRestrict(); in getTaskRegionParams()
4277 Context.getPointerType(CopyFnType).withConst().withRestrict()), in getTaskRegionParams()
4278 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in getTaskRegionParams()
4289 QualType VoidPtrTy = Context.VoidPtrTy.withConst().withRestrict(); in getTargetRegionParams()
4309 Context.getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1).withConst(); in getTaskloopRegionParams()
[all …]
H A DSemaInit.cpp4314 E.withConst(), in TryInitializerListConstruction()
8576 ElementType.withConst())) in Perform()
8585 ElementType.withConst())) in Perform()
8822 E.withConst(), in diagnoseListInit()
10181 Context.getLValueReferenceType(ElementTypes[I].withConst()); in DeduceTemplateSpecializationFromInitializer()
H A DSemaExpr.cpp3367 type = type.getUnqualifiedType().withConst(); in BuildDeclarationNameExpr()
3539 Context.adjustStringLiteralBaseType(Context.WideCharTy.withConst()); in BuildPredefinedExpr()
3549 ResTy = Context.adjustStringLiteralBaseType(Context.CharTy.withConst()); in BuildPredefinedExpr()
3791 Context.adjustStringLiteralBaseType(Context.CharTy.withConst()), in ActOnNumericConstant()
16576 Result.get()->getType().withConst(), in ActOnBlockStmtExpr()
16868 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
16873 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
16923 Context.getRecordType(StdSourceLocationImplDecl).withConst()); in ActOnSourceLocExpr()
18874 CaptureType = CaptureType.getNonReferenceType().withConst(); in captureInBlock()
H A DSemaObjC.cpp2215 VD->setType(Ty.withConst()); in tryMakeVariablePseudoStrong()
H A DSemaTypeTraits.cpp611 Decl->getTypeForDecl()->getCanonicalTypeUnqualified().withConst(), in HasNonDeletedDefaultedEqualityComparison()
H A DSemaDeclCXX.cpp8941 T.getNonReferenceType().withConst())); in CheckExplicitlyDefaultedComparison()
9007 Context.getLValueReferenceType(PlainTy.withConst()); in CheckExplicitlyDefaultedComparison()
10298 Context.getRecordType(RD).withConst()); in SpecialMemberIsTrivial()
15054 ArgType = ArgType.withConst(); in DeclareImplicitCopyAssignment()
15800 ArgType = ArgType.withConst(); in DeclareImplicitCopyConstructor()
H A DSemaExprCXX.cpp553 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), Operand, in BuildCXXTypeId()
628 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), E, in BuildCXXTypeId()
/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.cpp1173 selfTy = selfTy.withConst(); in getSelfType()
1180 selfTy = selfTy.withConst(); in getSelfType()
H A DASTContext.cpp8370 Fields[Count++] = { getPointerType(IntTy.withConst()), "isa" }; in getCFConstantStringDecl()
8372 Fields[Count++] = { getPointerType(CharTy.withConst()), "str" }; in getCFConstantStringDecl()
8378 Fields[Count++] = { getPointerType(CharTy.withConst()), "_ptr" }; in getCFConstantStringDecl()
12619 Type = Type.withConst(); in DecodeTypeFromStr()
13387 EltTy = EltTy.withConst(); in getStringLiteralArrayType()
13419 QualType GUIDType = getMSGuidType().withConst(); in getMSGuidDecl()
H A DExpr.cpp575 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create()
582 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
H A DMicrosoftMangle.cpp2402 T = T.withConst(); in mangleFunctionArgumentType()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp524 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
2317 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2517 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2547 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2747 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCArrayLiteralExpr()
2876 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCDictionaryLiteralExpr()
H A DRewriteObjC.cpp2230 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2443 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2473 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp1636 return Ty ? std::optional<QualType>(Ty->withConst()) : std::nullopt; in initFunctionSummaries()
1638 QualType operator()(QualType Ty) { return Ty.withConst(); } in initFunctionSummaries()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp3140 C.getPointerType(PrivatesQTy).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
3149 .withConst() in emitTaskPrivateMappingFunction()
3160 .withConst() in emitTaskPrivateMappingFunction()
3171 .withConst() in emitTaskPrivateMappingFunction()
3186 C.getPointerType(C.getPointerType(Ty)).withConst().withRestrict(), in emitTaskPrivateMappingFunction()

12