Skip to content

Commit ec25d26

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

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

llvm/include/llvm/ADT/StringExtras.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ inline std::string itostr(int64_t X) {
330330

331331
inline std::string toString(const APInt &I, unsigned Radix, bool Signed,
332332
bool formatAsCLiteral = false,
333-
bool UpperCase = true, bool InsertSeparators = false) {
333+
bool UpperCase = true,
334+
bool InsertSeparators = false) {
334335
SmallString<40> S;
335336
I.toString(S, Radix, Signed, formatAsCLiteral, UpperCase, InsertSeparators);
336337
return std::string(S);

llvm/lib/Support/APInt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
22292229

22302230
int Pos = 0;
22312231
while (N) {
2232-
if (InsertSeparators && Pos % Grouping == 0 && Pos > 0)
2232+
if (InsertSeparators && Pos % Grouping == 0 && Pos > 0)
22332233
*--BufPtr = '\'';
22342234
*--BufPtr = Digits[N % Radix];
22352235
N /= Radix;
@@ -2268,7 +2268,7 @@ void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
22682268
int Pos = 0;
22692269
while (Tmp.getBoolValue()) {
22702270
unsigned Digit = unsigned(Tmp.getRawData()[0]) & MaskAmt;
2271-
if (InsertSeparators && Pos % Grouping == 0 && Pos > 0)
2271+
if (InsertSeparators && Pos % Grouping == 0 && Pos > 0)
22722272
Str.push_back('\'');
22732273

22742274
Str.push_back(Digits[Digit]);

0 commit comments

Comments
 (0)