| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | CanonicalType.h | 162 QualType withConst() const { in withConst() function 163 return Stored.withConst(); in withConst()
|
| H A D | Type.h | 460 Qualifiers withConst() const { 855 QualifiersAndAtomic withConst() { return {Quals.withConst(), HasAtomic}; } 1158 QualType withConst() const {
|
| H A D | ASTContext.h | 1444 QualType getConstType(QualType T) const { return T.withConst(); } in getConstType()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | HLSLBuiltinTypeDeclBuilder.cpp | 665 .addParam("name", AST.getPointerType(AST.CharTy.withConst())) in addHandleConstructorFromBinding() 686 .addParam("name", AST.getPointerType(AST.CharTy.withConst())) in addHandleConstructorFromImplicitBinding()
|
| H A D | SemaPPC.cpp | 322 Type = Type.withConst(); in DecodePPCMMATypeFromStr()
|
| H A D | SemaExprObjC.cpp | 578 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 D | SemaStmt.cpp | 120 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 D | SemaHLSL.cpp | 2787 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 D | SemaARM.cpp | 772 EltTy = EltTy.withConst(); in CheckNeonBuiltinFunctionCall()
|
| H A D | SemaOpenMP.cpp | 4237 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 D | SemaInit.cpp | 4314 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 D | SemaExpr.cpp | 3367 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 D | SemaObjC.cpp | 2215 VD->setType(Ty.withConst()); in tryMakeVariablePseudoStrong()
|
| H A D | SemaTypeTraits.cpp | 611 Decl->getTypeForDecl()->getCanonicalTypeUnqualified().withConst(), in HasNonDeletedDefaultedEqualityComparison()
|
| H A D | SemaDeclCXX.cpp | 8941 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 D | SemaExprCXX.cpp | 553 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 D | PrintfFormatString.cpp | 653 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType() 662 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
|
| H A D | DeclObjC.cpp | 1173 selfTy = selfTy.withConst(); in getSelfType() 1180 selfTy = selfTy.withConst(); in getSelfType()
|
| H A D | ASTContext.cpp | 8370 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 D | Expr.cpp | 575 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create() 582 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
|
| H A D | MicrosoftMangle.cpp | 2402 T = T.withConst(); in mangleFunctionArgumentType()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 524 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 D | RewriteObjC.cpp | 2230 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 D | StdLibraryFunctionsChecker.cpp | 1636 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 D | CGOpenMPRuntime.cpp | 3140 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()
|