Skip to content

Commit 7928eff

Browse files
committed
[clang][Sema] Fix code style
1 parent 9a0d5d4 commit 7928eff

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
@@ -6591,18 +6591,20 @@ void CheckFormatHandler::HandleNonStandardConversionSpecifier(
65916591

65926592
void CheckFormatHandler::HandlePosition(const char *startPos,
65936593
unsigned posLen) {
6594-
if (!S.getDiagnostics().isIgnored(diag::warn_format_non_standard_positional_arg, SourceLocation())) {
6594+
if (!S.getDiagnostics().isIgnored(
6595+
diag::warn_format_non_standard_positional_arg, SourceLocation())) {
65956596
EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard_positional_arg),
6596-
getLocationOfByte(startPos),
6597-
/*IsStringLocation*/true,
6598-
getSpecifierRange(startPos, posLen));
6597+
getLocationOfByte(startPos),
6598+
/*IsStringLocation*/ true,
6599+
getSpecifierRange(startPos, posLen));
65996600
}
66006601
}
66016602

66026603
void CheckFormatHandler::HandleInvalidPosition(
66036604
const char *startSpecifier, unsigned specifierLen,
66046605
analyze_format_string::PositionContext p) {
6605-
if (!S.getDiagnostics().isIgnored(diag::warn_format_invalid_positional_specifier, SourceLocation())) {
6606+
if (!S.getDiagnostics().isIgnored(
6607+
diag::warn_format_invalid_positional_specifier, SourceLocation())) {
66066608
EmitFormatDiagnostic(
66076609
S.PDiag(diag::warn_format_invalid_positional_specifier) << (unsigned)p,
66086610
getLocationOfByte(startSpecifier), /*IsStringLocation*/ true,
@@ -6612,11 +6614,12 @@ void CheckFormatHandler::HandleInvalidPosition(
66126614

66136615
void CheckFormatHandler::HandleZeroPosition(const char *startPos,
66146616
unsigned posLen) {
6615-
if (!S.getDiagnostics().isIgnored(diag::warn_format_zero_positional_specifier, SourceLocation())) {
6617+
if (!S.getDiagnostics().isIgnored(diag::warn_format_zero_positional_specifier,
6618+
SourceLocation())) {
66166619
EmitFormatDiagnostic(S.PDiag(diag::warn_format_zero_positional_specifier),
6617-
getLocationOfByte(startPos),
6618-
/*IsStringLocation*/true,
6619-
getSpecifierRange(startPos, posLen));
6620+
getLocationOfByte(startPos),
6621+
/*IsStringLocation*/ true,
6622+
getSpecifierRange(startPos, posLen));
66206623
}
66216624
}
66226625

0 commit comments

Comments
 (0)