Skip to content

Commit 49a3ad2

Browse files
committed
Fix parameter name comments using clang-tidy. NFC.
This patch applies clang-tidy's bugprone-argument-comment tool to LLVM, clang and lld source trees. Here is how I created this patch: $ git clone https://github.com/llvm/llvm-project.git $ cd llvm-project $ mkdir build $ cd build $ cmake -GNinja -DCMAKE_BUILD_TYPE=Debug \ -DLLVM_ENABLE_PROJECTS='clang;lld;clang-tools-extra' \ -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DLLVM_ENABLE_LLD=On \ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ../llvm $ ninja $ parallel clang-tidy -checks='-*,bugprone-argument-comment' \ -config='{CheckOptions: [{key: StrictMode, value: 1}]}' -fix \ ::: ../llvm/lib/**/*.{cpp,h} ../clang/lib/**/*.{cpp,h} ../lld/**/*.{cpp,h} llvm-svn: 366177
1 parent bb479ca commit 49a3ad2

File tree

140 files changed

+372
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+372
-372
lines changed

clang/lib/ARCMigrate/ARCMT.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ MigrationProcess::MigrationProcess(
514514
IntrusiveRefCntPtr<DiagnosticsEngine> Diags(
515515
new DiagnosticsEngine(DiagID, &CI.getDiagnosticOpts(),
516516
DiagClient, /*ShouldOwnClient=*/false));
517-
Remapper.initFromDisk(outputDir, *Diags, /*ignoreIfFilesChanges=*/true);
517+
Remapper.initFromDisk(outputDir, *Diags, /*ignoreIfFilesChanged=*/true);
518518
}
519519
}
520520

clang/lib/ARCMigrate/ObjCMT.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class ObjCMigrateASTConsumer : public ASTConsumer {
110110
if (!Summaries)
111111
Summaries.reset(new RetainSummaryManager(Ctx,
112112
/*TrackNSCFObjects=*/true,
113-
/*TrackOSObjects=*/false));
113+
/*trackOSObjects=*/false));
114114
return *Summaries;
115115
}
116116

@@ -216,7 +216,7 @@ ObjCMigrateAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
216216

217217
bool ObjCMigrateAction::BeginInvocation(CompilerInstance &CI) {
218218
Remapper.initFromDisk(MigrateDir, CI.getDiagnostics(),
219-
/*ignoreIfFilesChanges=*/true);
219+
/*ignoreIfFilesChanged=*/true);
220220
CompInst = &CI;
221221
CI.getDiagnostics().setIgnoreAllWarnings(true);
222222
return true;

clang/lib/ARCMigrate/TransGCAttrs.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static void checkAllAtProps(MigrationContext &MigrateCtx,
269269
StringRef toAttr = "strong";
270270
if (hasWeak) {
271271
if (canApplyWeak(MigrateCtx.Pass.Ctx, IndProps.front()->getType(),
272-
/*AllowOnUnkwownClass=*/true))
272+
/*AllowOnUnknownClass=*/true))
273273
toAttr = "weak";
274274
else
275275
toAttr = "unsafe_unretained";

clang/lib/AST/Expr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,7 @@ APValue SourceLocExpr::EvaluateInContext(const ASTContext &Ctx,
22012201
case SourceLocExpr::Line:
22022202
case SourceLocExpr::Column: {
22032203
llvm::APSInt IntVal(Ctx.getIntWidth(Ctx.UnsignedIntTy),
2204-
/*IsUnsigned=*/true);
2204+
/*isUnsigned=*/true);
22052205
IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine()
22062206
: PLoc.getColumn();
22072207
return APValue(IntVal);

clang/lib/AST/ItaniumMangle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3787,7 +3787,7 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity) {
37873787
if (TypeSourceInfo *ScopeInfo = PDE->getScopeTypeInfo()) {
37883788
if (Qualifier) {
37893789
mangleUnresolvedPrefix(Qualifier,
3790-
/*Recursive=*/true);
3790+
/*recursive=*/true);
37913791
mangleUnresolvedTypeOrSimpleId(ScopeInfo->getType());
37923792
Out << 'E';
37933793
} else {

clang/lib/AST/Mangle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class ASTNameGenerator::Implementation {
379379

380380
auto hasDefaultCXXMethodCC = [](ASTContext &C, const CXXMethodDecl *MD) {
381381
auto DefaultCC = C.getDefaultCallingConvention(/*IsVariadic=*/false,
382-
/*IsCSSMethod=*/true);
382+
/*IsCXXMethod=*/true);
383383
auto CC = MD->getType()->getAs<FunctionProtoType>()->getCallConv();
384384
return CC == DefaultCC;
385385
};

clang/lib/AST/ScanfFormatString.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static ScanfSpecifierResult ParseScanfSpecifier(FormatStringHandler &H,
142142
}
143143

144144
// Look for the length modifier.
145-
if (ParseLengthModifier(FS, I, E, LO, /*scanf=*/true) && I == E) {
145+
if (ParseLengthModifier(FS, I, E, LO, /*IsScanf=*/true) && I == E) {
146146
// No more characters left?
147147
H.HandleIncompleteSpecifier(Start, E - Start);
148148
return true;

clang/lib/AST/Type.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4080,7 +4080,7 @@ CXXRecordDecl *MemberPointerType::getMostRecentCXXRecordDecl() const {
40804080
void clang::FixedPointValueToString(SmallVectorImpl<char> &Str,
40814081
llvm::APSInt Val, unsigned Scale) {
40824082
FixedPointSemantics FXSema(Val.getBitWidth(), Scale, Val.isSigned(),
4083-
/*isSaturated=*/false,
4084-
/*hasUnsignedPadding=*/false);
4083+
/*IsSaturated=*/false,
4084+
/*HasUnsignedPadding=*/false);
40854085
APFixedPoint(Val, FXSema).toString(Str);
40864086
}

clang/lib/AST/VTableBuilder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ ThisAdjustment ItaniumVTableBuilder::ComputeThisAdjustment(
12721272
// We don't have vcall offsets for this virtual base, go ahead and
12731273
// build them.
12741274
VCallAndVBaseOffsetBuilder Builder(MostDerivedClass, MostDerivedClass,
1275-
/*FinalOverriders=*/nullptr,
1275+
/*Overriders=*/nullptr,
12761276
BaseSubobject(Offset.VirtualBase,
12771277
CharUnits::Zero()),
12781278
/*BaseIsVirtual=*/true,
@@ -2245,7 +2245,7 @@ ItaniumVTableContext::getVirtualBaseOffsetOffset(const CXXRecordDecl *RD,
22452245
if (I != VirtualBaseClassOffsetOffsets.end())
22462246
return I->second;
22472247

2248-
VCallAndVBaseOffsetBuilder Builder(RD, RD, /*FinalOverriders=*/nullptr,
2248+
VCallAndVBaseOffsetBuilder Builder(RD, RD, /*Overriders=*/nullptr,
22492249
BaseSubobject(RD, CharUnits::Zero()),
22502250
/*BaseIsVirtual=*/false,
22512251
/*OffsetInLayoutClass=*/CharUnits::Zero());

clang/lib/Analysis/BodyFarm.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static CallExpr *create_call_once_lambda_call(ASTContext &C, ASTMaker M,
293293

294294
return CXXOperatorCallExpr::Create(
295295
/*AstContext=*/C, OO_Call, callOperatorDeclRef,
296-
/*args=*/CallArgs,
296+
/*Args=*/CallArgs,
297297
/*QualType=*/C.VoidTy,
298298
/*ExprValueType=*/VK_RValue,
299299
/*SourceLocation=*/SourceLocation(), FPOptions());
@@ -465,10 +465,10 @@ static Stmt *create_call_once(ASTContext &C, const FunctionDecl *D) {
465465
auto *Out =
466466
IfStmt::Create(C, SourceLocation(),
467467
/* IsConstexpr=*/false,
468-
/* init=*/nullptr,
469-
/* var=*/nullptr,
470-
/* cond=*/FlagCheck,
471-
/* then=*/M.makeCompound({CallbackCall, FlagAssignment}));
468+
/* Init=*/nullptr,
469+
/* Var=*/nullptr,
470+
/* Cond=*/FlagCheck,
471+
/* Then=*/M.makeCompound({CallbackCall, FlagAssignment}));
472472

473473
return Out;
474474
}
@@ -511,7 +511,7 @@ static Stmt *create_dispatch_once(ASTContext &C, const FunctionDecl *D) {
511511
CallExpr *CE = CallExpr::Create(
512512
/*ASTContext=*/C,
513513
/*StmtClass=*/M.makeLvalueToRvalue(/*Expr=*/Block),
514-
/*args=*/None,
514+
/*Args=*/None,
515515
/*QualType=*/C.VoidTy,
516516
/*ExprValueType=*/VK_RValue,
517517
/*SourceLocation=*/SourceLocation());
@@ -549,10 +549,10 @@ static Stmt *create_dispatch_once(ASTContext &C, const FunctionDecl *D) {
549549
// (5) Create the 'if' statement.
550550
auto *If = IfStmt::Create(C, SourceLocation(),
551551
/* IsConstexpr=*/false,
552-
/* init=*/nullptr,
553-
/* var=*/nullptr,
554-
/* cond=*/GuardCondition,
555-
/* then=*/CS);
552+
/* Init=*/nullptr,
553+
/* Var=*/nullptr,
554+
/* Cond=*/GuardCondition,
555+
/* Then=*/CS);
556556
return If;
557557
}
558558

@@ -657,8 +657,8 @@ static Stmt *create_OSAtomicCompareAndSwap(ASTContext &C, const FunctionDecl *D)
657657
/// Construct the If.
658658
auto *If = IfStmt::Create(C, SourceLocation(),
659659
/* IsConstexpr=*/false,
660-
/* init=*/nullptr,
661-
/* var=*/nullptr, Comparison, Body,
660+
/* Init=*/nullptr,
661+
/* Var=*/nullptr, Comparison, Body,
662662
SourceLocation(), Else);
663663

664664
return If;

clang/lib/Analysis/CFG.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2931,8 +2931,8 @@ CFGBlock *CFGBuilder::VisitIfStmt(IfStmt *I) {
29312931

29322932
// Add the successors. If we know that specific branches are
29332933
// unreachable, inform addSuccessor() of that knowledge.
2934-
addSuccessor(Block, ThenBlock, /* isReachable = */ !KnownVal.isFalse());
2935-
addSuccessor(Block, ElseBlock, /* isReachable = */ !KnownVal.isTrue());
2934+
addSuccessor(Block, ThenBlock, /* IsReachable = */ !KnownVal.isFalse());
2935+
addSuccessor(Block, ElseBlock, /* IsReachable = */ !KnownVal.isTrue());
29362936

29372937
// Add the condition as the last statement in the new block. This may
29382938
// create new blocks as the condition may contain control-flow. Any newly

clang/lib/Basic/FixedPoint.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ void APFixedPoint::toString(llvm::SmallVectorImpl<char> &Str) const {
190190
llvm::APInt FractPartMask = llvm::APInt::getAllOnesValue(Scale).zext(Width);
191191
llvm::APInt RadixInt = llvm::APInt(Width, 10);
192192

193-
IntPart.toString(Str, /*radix=*/10);
193+
IntPart.toString(Str, /*Radix=*/10);
194194
Str.push_back('.');
195195
do {
196196
(FractPart * RadixInt)
197197
.lshr(Scale)
198-
.toString(Str, /*radix=*/10, Val.isSigned());
198+
.toString(Str, /*Radix=*/10, Val.isSigned());
199199
FractPart = (FractPart * RadixInt) & FractPartMask;
200200
} while (FractPart != 0);
201201
}

clang/lib/CodeGen/CGBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class CGBuilderTy : public CGBuilderBaseTy {
263263
Addr.getElementType(), Addr.getPointer(), Idx0, Idx1, Name));
264264
llvm::APInt Offset(
265265
DL.getIndexSizeInBits(Addr.getType()->getPointerAddressSpace()), 0,
266-
/*IsSigned=*/true);
266+
/*isSigned=*/true);
267267
if (!GEP->accumulateConstantOffset(DL, Offset))
268268
llvm_unreachable("offset of GEP with constants is always computable");
269269
return Address(GEP, Addr.getAlignment().alignmentAtOffset(

clang/lib/CodeGen/CGBuiltin.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ CodeGenFunction::emitBuiltinObjectSize(const Expr *E, unsigned Type,
589589
auto DIter = LocalDeclMap.find(D);
590590
assert(DIter != LocalDeclMap.end());
591591

592-
return EmitLoadOfScalar(DIter->second, /*volatile=*/false,
592+
return EmitLoadOfScalar(DIter->second, /*Volatile=*/false,
593593
getContext().getSizeType(), E->getBeginLoc());
594594
}
595595
}
@@ -719,7 +719,7 @@ static llvm::Value *EmitX86BitTestIntrinsic(CodeGenFunction &CGF,
719719
llvm::FunctionType::get(CGF.Int8Ty, {IntPtrType, IntType}, false);
720720

721721
llvm::InlineAsm *IA =
722-
llvm::InlineAsm::get(FTy, Asm, Constraints, /*SideEffects=*/true);
722+
llvm::InlineAsm::get(FTy, Asm, Constraints, /*hasSideEffects=*/true);
723723
return CGF.Builder.CreateCall(IA, {BitBase, BitPos});
724724
}
725725

@@ -1063,7 +1063,7 @@ Value *CodeGenFunction::EmitMSVCBuiltinExpr(MSVCIntrin BuiltinID,
10631063
}
10641064
llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, {Int32Ty}, false);
10651065
llvm::InlineAsm *IA =
1066-
llvm::InlineAsm::get(FTy, Asm, Constraints, /*SideEffects=*/true);
1066+
llvm::InlineAsm::get(FTy, Asm, Constraints, /*hasSideEffects=*/true);
10671067
llvm::AttributeList NoReturnAttr = llvm::AttributeList::get(
10681068
getLLVMContext(), llvm::AttributeList::FunctionIndex,
10691069
llvm::Attribute::NoReturn);
@@ -5999,9 +5999,9 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
59995999

60006000
llvm::InlineAsm *Emit =
60016001
IsThumb ? InlineAsm::get(FTy, ".inst.n 0x" + utohexstr(ZExtValue), "",
6002-
/*SideEffects=*/true)
6002+
/*hasSideEffects=*/true)
60036003
: InlineAsm::get(FTy, ".inst 0x" + utohexstr(ZExtValue), "",
6004-
/*SideEffects=*/true);
6004+
/*hasSideEffects=*/true);
60056005

60066006
return Builder.CreateCall(Emit);
60076007
}
@@ -12120,7 +12120,7 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
1212012120
// This syscall signals a driver assertion failure in x86 NT kernels.
1212112121
llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false);
1212212122
llvm::InlineAsm *IA =
12123-
llvm::InlineAsm::get(FTy, "int $$0x2c", "", /*SideEffects=*/true);
12123+
llvm::InlineAsm::get(FTy, "int $$0x2c", "", /*hasSideEffects=*/true);
1212412124
llvm::AttributeList NoReturnAttr = llvm::AttributeList::get(
1212512125
getLLVMContext(), llvm::AttributeList::FunctionIndex,
1212612126
llvm::Attribute::NoReturn);

clang/lib/CodeGen/CGCXX.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ llvm::FunctionCallee CodeGenModule::getAddrAndTypeOfCXXStructor(
239239

240240
llvm::Constant *Ptr = GetOrCreateLLVMFunction(
241241
getMangledName(GD), FnType, GD, /*ForVTable=*/false, DontDefer,
242-
/*isThunk=*/false, /*ExtraAttrs=*/llvm::AttributeList(), IsForDefinition);
242+
/*IsThunk=*/false, /*ExtraAttrs=*/llvm::AttributeList(), IsForDefinition);
243243
return {FnType, Ptr};
244244
}
245245

clang/lib/CodeGen/CGCXXABI.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ llvm::GlobalValue::LinkageTypes CGCXXABI::getCXXDestructorLinkage(
291291
GVALinkage Linkage, const CXXDestructorDecl *Dtor, CXXDtorType DT) const {
292292
// Delegate back to CGM by default.
293293
return CGM.getLLVMLinkageForDeclarator(Dtor, Linkage,
294-
/*isConstantVariable=*/false);
294+
/*IsConstantVariable=*/false);
295295
}
296296

297297
bool CGCXXABI::NeedsVTTParameter(GlobalDecl GD) {

clang/lib/CodeGen/CGCall.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ void CodeGenModule::ConstructDefaultFnAttrList(StringRef Name, bool HasOptnone,
18101810
void CodeGenModule::AddDefaultFnAttrs(llvm::Function &F) {
18111811
llvm::AttrBuilder FuncAttrs;
18121812
ConstructDefaultFnAttrList(F.getName(), F.hasOptNone(),
1813-
/* AttrOnCallsite = */ false, FuncAttrs);
1813+
/* AttrOnCallSite = */ false, FuncAttrs);
18141814
F.addAttributes(llvm::AttributeList::FunctionIndex, FuncAttrs);
18151815
}
18161816

@@ -2490,7 +2490,7 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI,
24902490
assert(NumIRArgs == 1);
24912491
auto AI = FnArgs[FirstIRArg];
24922492
AI->setName(Arg->getName() + ".coerce");
2493-
CreateCoercedStore(AI, Ptr, /*DestIsVolatile=*/false, *this);
2493+
CreateCoercedStore(AI, Ptr, /*DstIsVolatile=*/false, *this);
24942494
}
24952495

24962496
// Match to what EmitParmDecl is expecting for this type.
@@ -3537,7 +3537,7 @@ RValue CallArg::getRValue(CodeGenFunction &CGF) const {
35373537
void CallArg::copyInto(CodeGenFunction &CGF, Address Addr) const {
35383538
LValue Dst = CGF.MakeAddrLValue(Addr, Ty);
35393539
if (!HasLV && RV.isScalar())
3540-
CGF.EmitStoreOfScalar(RV.getScalarVal(), Dst, /*init=*/true);
3540+
CGF.EmitStoreOfScalar(RV.getScalarVal(), Dst, /*isInit=*/true);
35413541
else if (!HasLV && RV.isComplex())
35423542
CGF.EmitStoreOfComplex(RV.getComplexVal(), Dst, /*init=*/true);
35433543
else {

clang/lib/CodeGen/CGCoroutine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ struct CallCoroEnd final : public EHScopeStack::Cleanup {
405405
if (Bundles.empty()) {
406406
// Otherwise, (landingpad model), create a conditional branch that leads
407407
// either to a cleanup block or a block with EH resume instruction.
408-
auto *ResumeBB = CGF.getEHResumeBlock(/*cleanup=*/true);
408+
auto *ResumeBB = CGF.getEHResumeBlock(/*isCleanup=*/true);
409409
auto *CleanupContBB = CGF.createBasicBlock("cleanup.cont");
410410
CGF.Builder.CreateCondBr(CoroEnd, ResumeBB, CleanupContBB);
411411
CGF.EmitBlock(CleanupContBB);

clang/lib/CodeGen/CGDecl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void CodeGenFunction::EmitVarDecl(const VarDecl &D) {
176176
return;
177177

178178
llvm::GlobalValue::LinkageTypes Linkage =
179-
CGM.getLLVMLinkageVarDefinition(&D, /*isConstant=*/false);
179+
CGM.getLLVMLinkageVarDefinition(&D, /*IsConstant=*/false);
180180

181181
// FIXME: We need to force the emission/use of a guard variable for
182182
// some variables even if we can constant-evaluate them because

clang/lib/CodeGen/CGException.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static llvm::FunctionCallee getFreeExceptionFn(CodeGenModule &CGM) {
3232
// void __cxa_free_exception(void *thrown_exception);
3333

3434
llvm::FunctionType *FTy =
35-
llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false);
35+
llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*isVarArg=*/false);
3636

3737
return CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception");
3838
}
@@ -41,7 +41,7 @@ static llvm::FunctionCallee getUnexpectedFn(CodeGenModule &CGM) {
4141
// void __cxa_call_unexpected(void *thrown_exception);
4242

4343
llvm::FunctionType *FTy =
44-
llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false);
44+
llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*isVarArg=*/false);
4545

4646
return CGM.CreateRuntimeFunction(FTy, "__cxa_call_unexpected");
4747
}
@@ -50,7 +50,7 @@ llvm::FunctionCallee CodeGenModule::getTerminateFn() {
5050
// void __terminate();
5151

5252
llvm::FunctionType *FTy =
53-
llvm::FunctionType::get(VoidTy, /*IsVarArgs=*/false);
53+
llvm::FunctionType::get(VoidTy, /*isVarArg=*/false);
5454

5555
StringRef name;
5656

@@ -75,7 +75,7 @@ llvm::FunctionCallee CodeGenModule::getTerminateFn() {
7575
static llvm::FunctionCallee getCatchallRethrowFn(CodeGenModule &CGM,
7676
StringRef Name) {
7777
llvm::FunctionType *FTy =
78-
llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false);
78+
llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*isVarArg=*/false);
7979

8080
return CGM.CreateRuntimeFunction(FTy, Name);
8181
}

clang/lib/CodeGen/CGExpr.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ void CodeGenFunction::EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst,
20312031

20322032
// Cast the source to the storage type and shift it into place.
20332033
SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(),
2034-
/*IsSigned=*/false);
2034+
/*isSigned=*/false);
20352035
llvm::Value *MaskedVal = SrcVal;
20362036

20372037
// See if there are other bits in the bitfield's storage we'll need to load
@@ -2611,7 +2611,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) {
26112611
// some reason; most likely, because it's in an outer function.
26122612
} else if (VD->isStaticLocal()) {
26132613
addr = Address(CGM.getOrCreateStaticVarDecl(
2614-
*VD, CGM.getLLVMLinkageVarDefinition(VD, /*isConstant=*/false)),
2614+
*VD, CGM.getLLVMLinkageVarDefinition(VD, /*IsConstant=*/false)),
26152615
getContext().getDeclAlign(VD));
26162616

26172617
// No other cases for now.
@@ -3749,7 +3749,7 @@ LValue CodeGenFunction::EmitOMPArraySectionExpr(const OMPArraySectionExpr *E,
37493749
Idx = Builder.CreateNSWMul(Idx, NumElements);
37503750
EltPtr = emitArraySubscriptGEP(*this, Base, Idx, VLA->getElementType(),
37513751
!getLangOpts().isSignedOverflowDefined(),
3752-
/*SignedIndices=*/false, E->getExprLoc());
3752+
/*signedIndices=*/false, E->getExprLoc());
37533753
} else if (const Expr *Array = isSimpleArrayDecayOperand(E->getBase())) {
37543754
// If this is A[i] where A is an array, the frontend will have decayed the
37553755
// base to be a ArrayToPointerDecay implicit cast. While correct, it is
@@ -3769,7 +3769,7 @@ LValue CodeGenFunction::EmitOMPArraySectionExpr(const OMPArraySectionExpr *E,
37693769
EltPtr = emitArraySubscriptGEP(
37703770
*this, ArrayLV.getAddress(), {CGM.getSize(CharUnits::Zero()), Idx},
37713771
ResultExprTy, !getLangOpts().isSignedOverflowDefined(),
3772-
/*SignedIndices=*/false, E->getExprLoc());
3772+
/*signedIndices=*/false, E->getExprLoc());
37733773
BaseInfo = ArrayLV.getBaseInfo();
37743774
TBAAInfo = CGM.getTBAAInfoForSubobject(ArrayLV, ResultExprTy);
37753775
} else {
@@ -3778,7 +3778,7 @@ LValue CodeGenFunction::EmitOMPArraySectionExpr(const OMPArraySectionExpr *E,
37783778
IsLowerBound);
37793779
EltPtr = emitArraySubscriptGEP(*this, Base, Idx, ResultExprTy,
37803780
!getLangOpts().isSignedOverflowDefined(),
3781-
/*SignedIndices=*/false, E->getExprLoc());
3781+
/*signedIndices=*/false, E->getExprLoc());
37823782
}
37833783

37843784
return MakeAddrLValue(EltPtr, ResultExprTy, BaseInfo, TBAAInfo);
@@ -4867,7 +4867,7 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType, const CGCallee &OrigCallee
48674867
E->getDirectCallee(), /*ParamsToSkip*/ 0, Order);
48684868

48694869
const CGFunctionInfo &FnInfo = CGM.getTypes().arrangeFreeFunctionCall(
4870-
Args, FnType, /*isChainCall=*/Chain);
4870+
Args, FnType, /*ChainCall=*/Chain);
48714871

48724872
// C99 6.5.2.2p6:
48734873
// If the expression that denotes the called function has a type

0 commit comments

Comments
 (0)