Skip to content

Commit cbdb06a

Browse files
authored
[SYCL][NFC] Recover community code formatting. (#7895)
There are a few places where sycl branch diverges from the main llvm community branch for no reason other than code formatting. I'm recovering original formatting to avoid merge conflicts due to this difference.
1 parent 1299e21 commit cbdb06a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7452,6 +7452,7 @@ NamedDecl *Sema::ActOnVariableDeclarator(
74527452
return nullptr;
74537453
}
74547454

7455+
74557456
DeclSpec::SCS SCSpec = D.getDeclSpec().getStorageClassSpec();
74567457
StorageClass SC = StorageClassSpecToVarDeclStorageClass(D.getDeclSpec());
74577458

clang/test/Sema/conversion.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void test13(long double v) {
288288
takes_int(v); // expected-warning {{implicit conversion turns floating-point number into integer}}
289289
takes_long(v); // expected-warning {{implicit conversion turns floating-point number into integer}}
290290
takes_longlong(v); // expected-warning {{implicit conversion turns floating-point number into integer}}
291-
takes_float(v); // expected-warning {{implicit conversion loses floating-point precision}}
291+
takes_float(v); // expected-warning {{implicit conversion loses floating-point precision}}
292292
takes_double(v); // expected-warning {{implicit conversion loses floating-point precision}}
293293
takes_longdouble(v);
294294
}
@@ -430,6 +430,7 @@ void test27(ushort16 constants) {
430430
ushort16 brBias = pairedConstants.s6; // expected-warning {{implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ushort16'}}
431431
}
432432

433+
433434
float double2float_test1(double a) {
434435
return a; // expected-warning {{implicit conversion loses floating-point precision: 'double' to 'float'}}
435436
}

0 commit comments

Comments
 (0)