Skip to content

Commit 3e53d8d

Browse files
committed
Remove curly brances from one statement if condions
Signed-off-by: Soumi Manna <[email protected]>
1 parent 5b99da8 commit 3e53d8d

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,10 +3017,9 @@ static void handleNumSimdWorkItemsAttr(Sema &S, Decl *D,
30173017
if (D->getAttr<SYCLIntelNumSimdWorkItemsAttr>())
30183018
S.Diag(Attr.getLoc(), diag::warn_duplicate_attribute) << Attr;
30193019

3020-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
3020+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
30213021
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
30223022
<< "'intel::num_simd_work_items'";
3023-
}
30243023

30253024
S.addIntelSYCLSingleArgFunctionAttr<SYCLIntelNumSimdWorkItemsAttr>(D, Attr,
30263025
E);
@@ -3054,10 +3053,9 @@ static void handleMaxGlobalWorkDimAttr(Sema &S, Decl *D,
30543053
if (D->getAttr<SYCLIntelMaxGlobalWorkDimAttr>())
30553054
S.Diag(Attr.getLoc(), diag::warn_duplicate_attribute) << Attr;
30563055

3057-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
3056+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
30583057
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
30593058
<< "'intel::max_global_work_dim'";
3060-
}
30613059

30623060
D->addAttr(::new (S.Context) SYCLIntelMaxGlobalWorkDimAttr(
30633061
S.Context, Attr, MaxGlobalWorkDim));
@@ -5269,10 +5267,9 @@ static void handleIntelFPGAMemoryAttr(Sema &S, Decl *D,
52695267
if (MA->isImplicit())
52705268
D->dropAttr<IntelFPGAMemoryAttr>();
52715269

5272-
if (checkDeprecatedSYCLAttributeSpelling(S, AL)) {
5270+
if (checkDeprecatedSYCLAttributeSpelling(S, AL))
52735271
S.Diag(AL.getLoc(), diag::note_spelling_suggestion)
52745272
<< "'intel::fpga_memory'";
5275-
}
52765273

52775274
D->addAttr(::new (S.Context) IntelFPGAMemoryAttr(S.Context, AL, Kind));
52785275
}
@@ -5324,10 +5321,9 @@ static void handleIntelFPGARegisterAttr(Sema &S, Decl *D,
53245321
if (checkIntelFPGARegisterAttrCompatibility(S, D, Attr))
53255322
return;
53265323

5327-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
5324+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
53285325
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
53295326
<< "'intel::fpga_register'";
5330-
}
53315327

53325328
handleSimpleAttribute<IntelFPGARegisterAttr>(S, D, Attr);
53335329
}
@@ -5375,10 +5371,9 @@ static void handleIntelFPGASimpleDualPortAttr(Sema &S, Decl *D,
53755371
D->addAttr(IntelFPGAMemoryAttr::CreateImplicit(
53765372
S.Context, IntelFPGAMemoryAttr::Default));
53775373

5378-
if (checkDeprecatedSYCLAttributeSpelling(S, AL)) {
5374+
if (checkDeprecatedSYCLAttributeSpelling(S, AL))
53795375
S.Diag(AL.getLoc(), diag::note_spelling_suggestion)
53805376
<< "'intel::simple_dual_port'";
5381-
}
53825377

53835378
D->addAttr(::new (S.Context)
53845379
IntelFPGASimpleDualPortAttr(S.Context, AL));
@@ -5394,10 +5389,9 @@ static void handleIntelFPGAMaxReplicatesAttr(Sema &S, Decl *D,
53945389
if (checkAttrMutualExclusion<IntelFPGARegisterAttr>(S, D, Attr))
53955390
return;
53965391

5397-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
5392+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
53985393
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
53995394
<< "'intel::max_replicates'";
5400-
}
54015395

54025396
S.AddOneConstantValueAttr<IntelFPGAMaxReplicatesAttr>(D, Attr,
54035397
Attr.getArgAsExpr(0));
@@ -5433,9 +5427,8 @@ static void handleIntelFPGAMergeAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
54335427
D->addAttr(IntelFPGAMemoryAttr::CreateImplicit(
54345428
S.Context, IntelFPGAMemoryAttr::Default));
54355429

5436-
if (checkDeprecatedSYCLAttributeSpelling(S, AL)) {
5430+
if (checkDeprecatedSYCLAttributeSpelling(S, AL))
54375431
S.Diag(AL.getLoc(), diag::note_spelling_suggestion) << "'intel::merge'";
5438-
}
54395432

54405433
D->addAttr(::new (S.Context)
54415434
IntelFPGAMergeAttr(S.Context, AL, Results[0], Results[1]));
@@ -5464,10 +5457,9 @@ static void handleIntelFPGABankBitsAttr(Sema &S, Decl *D,
54645457
Args.push_back(Attr.getArgAsExpr(I));
54655458
}
54665459

5467-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
5460+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
54685461
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
54695462
<< "'intel::bank_bits'";
5470-
}
54715463

54725464
S.AddIntelFPGABankBitsAttr(D, Attr, Args.data(), Args.size());
54735465
}
@@ -5542,10 +5534,9 @@ static void handleIntelFPGAPrivateCopiesAttr(Sema &S, Decl *D,
55425534
if (checkAttrMutualExclusion<IntelFPGARegisterAttr>(S, D, Attr))
55435535
return;
55445536

5545-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
5537+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
55465538
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
55475539
<< "'intel::private_copies'";
5548-
}
55495540

55505541
S.AddOneConstantValueAttr<IntelFPGAPrivateCopiesAttr>(
55515542
D, Attr, Attr.getArgAsExpr(0));
@@ -5565,10 +5556,9 @@ static void handleIntelFPGAForcePow2DepthAttr(Sema &S, Decl *D,
55655556
D->addAttr(IntelFPGAMemoryAttr::CreateImplicit(
55665557
S.Context, IntelFPGAMemoryAttr::Default));
55675558

5568-
if (checkDeprecatedSYCLAttributeSpelling(S, Attr)) {
5559+
if (checkDeprecatedSYCLAttributeSpelling(S, Attr))
55695560
S.Diag(Attr.getLoc(), diag::note_spelling_suggestion)
55705561
<< "'intel::force_pow2_depth'";
5571-
}
55725562

55735563
S.AddOneConstantValueAttr<IntelFPGAForcePow2DepthAttr>(D, Attr,
55745564
Attr.getArgAsExpr(0));

0 commit comments

Comments
 (0)