Skip to content

Commit 6bd6a77

Browse files
committed
[clang][NFC] Update code style conventions
1 parent ec25d26 commit 6bd6a77

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ Improvements to Clang's diagnostics
176176
of ``-Wconversion``. Fixes `#69444 <https://github.com/llvm/llvm-project/issues/69444>`_.
177177

178178
- Clang now uses thousand separators when printing large numbers in integer overflow diagnostics.
179-
Fixes `#80939 <https://github.com/llvm/llvm-project/issues/80939>`_.
180-
179+
Fixes #GH80939.
180+
181181
- Clang now diagnoses friend declarations with an ``enum`` elaborated-type-specifier in language modes after C++98.
182182

183183
- Added diagnostics for C11 keywords being incompatible with language standards

clang/lib/AST/ExprConstant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2779,7 +2779,7 @@ static bool CheckedIntArithmetic(EvalInfo &Info, const Expr *E,
27792779
Info.Ctx.getDiagnostics().Report(E->getExprLoc(),
27802780
diag::warn_integer_constant_overflow)
27812781
<< toString(Result, 10, Result.isSigned(), /*formatAsCLiteral=*/false,
2782-
/*upperCase=*/true, /*insertSeparators=*/true)
2782+
/*UpperCase=*/true, /*InsertSeparators=*/true)
27832783
<< E->getType() << E->getSourceRange();
27842784
return HandleOverflow(Info, E, Value, E->getType());
27852785
}
@@ -13913,7 +13913,7 @@ bool IntExprEvaluator::VisitUnaryOperator(const UnaryOperator *E) {
1391313913
Info.Ctx.getDiagnostics().Report(E->getExprLoc(),
1391413914
diag::warn_integer_constant_overflow)
1391513915
<< toString(Value, 10, Value.isSigned(), /*formatAsCLiteral=*/false,
13916-
/*upperCase=*/true, /*insertSeparators=*/true)
13916+
/*UpperCase=*/true, /*InsertSeparators=*/true)
1391713917
<< E->getType() << E->getSourceRange();
1391813918

1391913919
if (!HandleOverflow(Info, E, -Value.extend(Value.getBitWidth() + 1),

clang/lib/AST/Interp/Interp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ bool AddSubMulHelper(InterpState &S, CodePtr OpPC, unsigned Bits, const T &LHS,
289289
SmallString<32> Trunc;
290290
Value.trunc(Result.bitWidth())
291291
.toString(Trunc, 10, Result.isSigned(), /*formatAsCLiteral=*/false,
292-
/*upperCase=*/true, /*insertSeparators=*/true);
292+
/*UpperCase=*/true, /*InsertSeparators=*/true);
293293
auto Loc = E->getExprLoc();
294294
S.report(Loc, diag::warn_integer_constant_overflow)
295295
<< Trunc << Type << E->getSourceRange();
@@ -503,7 +503,7 @@ bool Neg(InterpState &S, CodePtr OpPC) {
503503
SmallString<32> Trunc;
504504
NegatedValue.trunc(Result.bitWidth())
505505
.toString(Trunc, 10, Result.isSigned(), /*formatAsCLiteral=*/false,
506-
/*upperCase=*/true, /*insertSeparators=*/true);
506+
/*UpperCase=*/true, /*InsertSeparators=*/true);
507507
auto Loc = E->getExprLoc();
508508
S.report(Loc, diag::warn_integer_constant_overflow)
509509
<< Trunc << Type << E->getSourceRange();
@@ -567,7 +567,7 @@ bool IncDecHelper(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
567567
SmallString<32> Trunc;
568568
APResult.trunc(Result.bitWidth())
569569
.toString(Trunc, 10, Result.isSigned(), /*formatAsCLiteral=*/false,
570-
/*upperCase=*/true, /*insertSeparators=*/true);
570+
/*UpperCase=*/true, /*InsertSeparators=*/true);
571571
auto Loc = E->getExprLoc();
572572
S.report(Loc, diag::warn_integer_constant_overflow)
573573
<< Trunc << Type << E->getSourceRange();

0 commit comments

Comments
 (0)