Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DImplicitConversionInLoopCheck.cpp93 QualType ConstType = OperatorCall->getType().withConst(); in reportAndFix()
/llvm-project-15.0.7/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}; }
905 QualType withConst() const {
H A DASTContext.h1302 QualType getConstType(QualType T) const { return T.withConst(); } in getConstType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidCStyleCastsCheck.cpp221 if (Source == Dest.withConst() || in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DMemberwiseConstructor.cpp232 ParamType.withConst()); in buildCode()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOpenMP.cpp4163 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4208 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4269 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4290 .withConst(); in ActOnOpenMPRegionStart()
4293 .withConst(); in ActOnOpenMPRegionStart()
4296 .withConst(); in ActOnOpenMPRegionStart()
4311 std::make_pair(".task_t.", Context.VoidPtrTy.withConst()), in ActOnOpenMPRegionStart()
4335 .withConst(); in ActOnOpenMPRegionStart()
4338 .withConst(); in ActOnOpenMPRegionStart()
4341 .withConst(); in ActOnOpenMPRegionStart()
[all …]
H A DSemaExprObjC.cpp572 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
693 Context.VoidPtrTy.withConst(), in BuildObjCBoxedExpr()
698 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
852 << Context.getPointerType(IdT.withConst()); in BuildObjCArrayLiteral()
1023 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
1060 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
H A DSemaStmt.cpp118 var->setType(type.withConst()); in ActOnForEachDeclStmt()
3136 SemaRef.Context.getLValueReferenceType(E->getType().withConst()); in DiagnoseForRangeReferenceVariableCopies()
3287 QualType DestTy = Context.getPointerType(Context.VoidTy.withConst()); in ActOnIndirectGotoStmt()
4757 .withConst() in ActOnCapturedRegionStart()
H A DSemaExpr.cpp3371 type = type.getUnqualifiedType().withConst(); in BuildDeclarationNameExpr()
3557 Context.adjustStringLiteralBaseType(Context.WideCharTy.withConst()); in BuildPredefinedExpr()
3567 ResTy = Context.adjustStringLiteralBaseType(Context.CharTy.withConst()); in BuildPredefinedExpr()
3835 Context.adjustStringLiteralBaseType(Context.CharTy.withConst()), in ActOnNumericConstant()
16447 Result.get()->getType().withConst(), in ActOnBlockStmtExpr()
16721 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
16726 S.Context.getPointerType(S.Context.CharTy.withConst())) in LookupStdSourceLocationImpl()
16774 Context.getRecordType(StdSourceLocationImplDecl).withConst()); in ActOnSourceLocExpr()
18460 CaptureType = CaptureType.getNonReferenceType().withConst(); in captureInBlock()
H A DSemaDeclCXX.cpp8586 Context.getLValueReferenceType(PlainTy.withConst()); in CheckExplicitlyDefaultedComparison()
9795 Context.getRecordType(RD).withConst()); in SpecialMemberIsTrivial()
14341 ArgType = ArgType.withConst(); in DeclareImplicitCopyAssignment()
15047 ArgType = ArgType.withConst(); in DeclareImplicitCopyConstructor()
H A DSemaExprCXX.cpp559 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), Operand, in BuildCXXTypeId()
635 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), E, in BuildCXXTypeId()
H A DSemaChecking.cpp2911 EltTy = EltTy.withConst(); in CheckNeonBuiltinFunctionCall()
3890 Type = Type.withConst(); in DecodePPCMMATypeFromStr()
7034 QualType ResultTy = Context.getPointerType(Context.CharTy.withConst()); in CheckOSLogFormatStringArg()
7228 Context.getPointerType(Context.CharTy.withConst()); in SemaBuiltinVAStartARMMicrosoft()
/llvm-project-15.0.7/clang/lib/AST/
H A DPrintfFormatString.cpp631 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
640 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
H A DDeclObjC.cpp1141 selfTy = selfTy.withConst(); in getSelfType()
1148 selfTy = selfTy.withConst(); in getSelfType()
H A DASTContext.cpp7206 Fields[Count++] = { getPointerType(IntTy.withConst()), "isa" }; in getCFConstantStringDecl()
7208 Fields[Count++] = { getPointerType(CharTy.withConst()), "str" }; in getCFConstantStringDecl()
7214 Fields[Count++] = { getPointerType(CharTy.withConst()), "_ptr" }; in getCFConstantStringDecl()
11249 Type = Type.withConst(); in DecodeTypeFromStr()
11950 EltTy = EltTy.withConst(); in getStringLiteralArrayType()
11982 QualType GUIDType = getMSGuidType().withConst(); in getMSGuidDecl()
H A DExpr.cpp546 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create()
553 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
H A DMicrosoftMangle.cpp2115 T = T.withConst(); in mangleFunctionArgumentType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.cpp403 Cast->getType() == E->getType().withConst()) || in canBeModified()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp1209 return Ty ? Optional<QualType>(Ty->withConst()) : None; in initFunctionSummaries()
1211 QualType operator()(QualType Ty) { return Ty.withConst(); } in initFunctionSummaries()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp3666 C.getPointerType(PrivatesQTy).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
3675 .withConst() in emitTaskPrivateMappingFunction()
3686 .withConst() in emitTaskPrivateMappingFunction()
3697 .withConst() in emitTaskPrivateMappingFunction()
3712 C.getPointerType(C.getPointerType(Ty)).withConst().withRestrict(), in emitTaskPrivateMappingFunction()
H A DCGObjCMac.cpp356 Ctx.getCanonicalType(Ctx.getPointerType(Ctx.CharTy.withConst()))); in getLookUpClassFn()
3004 ctx.getPointerType(ctx.CharTy.withConst()))); in EmitClassRefViaRuntime()
H A DCGObjC.cpp148 QualType ElementType = Context.getObjCIdType().withConst(); in EmitObjCCollectionLiteral()

12