Skip to content

Commit 7f93928

Browse files
committed
[clang][Sema] Fix code style
1 parent 5b61245 commit 7f93928

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6612,18 +6612,20 @@ void CheckFormatHandler::HandleNonStandardConversionSpecifier(
66126612

66136613
void CheckFormatHandler::HandlePosition(const char *startPos,
66146614
unsigned posLen) {
6615-
if (!S.getDiagnostics().isIgnored(diag::warn_format_non_standard_positional_arg, SourceLocation())) {
6615+
if (!S.getDiagnostics().isIgnored(
6616+
diag::warn_format_non_standard_positional_arg, SourceLocation())) {
66166617
EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard_positional_arg),
6617-
getLocationOfByte(startPos),
6618-
/*IsStringLocation*/true,
6619-
getSpecifierRange(startPos, posLen));
6618+
getLocationOfByte(startPos),
6619+
/*IsStringLocation*/ true,
6620+
getSpecifierRange(startPos, posLen));
66206621
}
66216622
}
66226623

66236624
void CheckFormatHandler::HandleInvalidPosition(
66246625
const char *startSpecifier, unsigned specifierLen,
66256626
analyze_format_string::PositionContext p) {
6626-
if (!S.getDiagnostics().isIgnored(diag::warn_format_invalid_positional_specifier, SourceLocation())) {
6627+
if (!S.getDiagnostics().isIgnored(
6628+
diag::warn_format_invalid_positional_specifier, SourceLocation())) {
66276629
EmitFormatDiagnostic(
66286630
S.PDiag(diag::warn_format_invalid_positional_specifier) << (unsigned)p,
66296631
getLocationOfByte(startSpecifier), /*IsStringLocation*/ true,
@@ -6633,11 +6635,12 @@ void CheckFormatHandler::HandleInvalidPosition(
66336635

66346636
void CheckFormatHandler::HandleZeroPosition(const char *startPos,
66356637
unsigned posLen) {
6636-
if (!S.getDiagnostics().isIgnored(diag::warn_format_zero_positional_specifier, SourceLocation())) {
6638+
if (!S.getDiagnostics().isIgnored(diag::warn_format_zero_positional_specifier,
6639+
SourceLocation())) {
66376640
EmitFormatDiagnostic(S.PDiag(diag::warn_format_zero_positional_specifier),
6638-
getLocationOfByte(startPos),
6639-
/*IsStringLocation*/true,
6640-
getSpecifierRange(startPos, posLen));
6641+
getLocationOfByte(startPos),
6642+
/*IsStringLocation*/ true,
6643+
getSpecifierRange(startPos, posLen));
66416644
}
66426645
}
66436646

0 commit comments

Comments
 (0)