| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | ImplicitConversionInLoopCheck.cpp | 93 QualType ConstType = OperatorCall->getType().withConst(); in reportAndFix()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CanonicalType.h | 161 QualType withConst() const { in withConst() function 162 return Stored.withConst(); in withConst()
|
| H A D | Type.h | 268 Qualifiers withConst() const { 656 QualifiersAndAtomic withConst() { return {Quals.withConst(), HasAtomic}; } 905 QualType withConst() const {
|
| H A D | ASTContext.h | 1302 QualType getConstType(QualType T) const { return T.withConst(); } in getConstType()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | AvoidCStyleCastsCheck.cpp | 221 if (Source == Dest.withConst() || in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | MemberwiseConstructor.cpp | 232 ParamType.withConst()); in buildCode()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 4163 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 D | SemaExprObjC.cpp | 572 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 D | SemaStmt.cpp | 118 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 D | SemaExpr.cpp | 3371 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 D | SemaDeclCXX.cpp | 8586 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 D | SemaExprCXX.cpp | 559 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), Operand, in BuildCXXTypeId() 635 return new (Context) CXXTypeidExpr(TypeInfoType.withConst(), E, in BuildCXXTypeId()
|
| H A D | SemaChecking.cpp | 2911 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 D | PrintfFormatString.cpp | 631 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType() 640 return ArgType(Ctx.getPointerType(Ctx.UnsignedShortTy.withConst()), in getScalarArgType()
|
| H A D | DeclObjC.cpp | 1141 selfTy = selfTy.withConst(); in getSelfType() 1148 selfTy = selfTy.withConst(); in getSelfType()
|
| H A D | ASTContext.cpp | 7206 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 D | Expr.cpp | 546 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create() 553 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
|
| H A D | MicrosoftMangle.cpp | 2115 T = T.withConst(); in mangleFunctionArgumentType()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | LoopConvertCheck.cpp | 403 Cast->getType() == E->getType().withConst()) || in canBeModified()
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 526 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 D | RewriteObjC.cpp | 2232 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 D | StdLibraryFunctionsChecker.cpp | 1209 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 D | CGOpenMPRuntime.cpp | 3666 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 D | CGObjCMac.cpp | 356 Ctx.getCanonicalType(Ctx.getPointerType(Ctx.CharTy.withConst()))); in getLookUpClassFn() 3004 ctx.getPointerType(ctx.CharTy.withConst()))); in EmitClassRefViaRuntime()
|
| H A D | CGObjC.cpp | 148 QualType ElementType = Context.getObjCIdType().withConst(); in EmitObjCCollectionLiteral()
|