Skip to content

Commit 66e2cc7

Browse files
committed
Fix clang format issues
Signed-off-by: Soumi Manna <[email protected]>
1 parent 7f39b8c commit 66e2cc7

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13079,7 +13079,7 @@ void Sema::addIntelSYCLSingleArgFunctionAttr(Decl *D,
1307913079
}
1308013080
}
1308113081
if (CI.getParsedKind() == ParsedAttr::AT_SYCLIntelMaxGlobalWorkDim ||
13082-
CI.getParsedKind() == ParsedAttr::AT_SYCLIntelNumSimdWorkItems) {
13082+
CI.getParsedKind() == ParsedAttr::AT_SYCLIntelNumSimdWorkItems) {
1308313083
if (ArgInt < 0) {
1308413084
Diag(E->getExprLoc(), diag::err_attribute_requires_positive_integer)
1308513085
<< CI << /*non-negative*/ 1;
@@ -13099,7 +13099,7 @@ void Sema::addIntelSYCLSingleArgFunctionAttr(Decl *D,
1309913099
}
1310013100

1310113101
static Expr *checkWorkSizeAttrExpr(Sema &S, const AttributeCommonInfo &CI,
13102-
Expr *E) {
13102+
Expr *E) {
1310313103
assert(E && "Attribute must have an argument.");
1310413104

1310513105
if (!E->isInstantiationDependent()) {

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,8 +3095,7 @@ static bool checkWorkGroupSizeValues(Sema &S, Decl *D, const ParsedAttr &AL) {
30953095
return Result;
30963096
}
30973097

3098-
static Expr *checkWorkSizeAttrExpr(Sema &S, const ParsedAttr &CI,
3099-
Expr *E) {
3098+
static Expr *checkWorkSizeAttrExpr(Sema &S, const ParsedAttr &CI, Expr *E) {
31003099
assert(E && "Attribute must have an argument.");
31013100

31023101
if (!E->isInstantiationDependent()) {
@@ -3148,8 +3147,8 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
31483147

31493148
ASTContext &Ctx = S.getASTContext();
31503149

3151-
if (!XDimExpr->isValueDependent() &&
3152-
!YDimExpr->isValueDependent() && !ZDimExpr->isValueDependent()) {
3150+
if (!XDimExpr->isValueDependent() && !YDimExpr->isValueDependent() &&
3151+
!ZDimExpr->isValueDependent()) {
31533152
Optional<llvm::APSInt> XDimVal = XDimExpr->getIntegerConstantExpr(Ctx);
31543153
Optional<llvm::APSInt> YDimVal = YDimExpr->getIntegerConstantExpr(Ctx);
31553154
Optional<llvm::APSInt> ZDimVal = ZDimExpr->getIntegerConstantExpr(Ctx);
@@ -3161,7 +3160,7 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
31613160
if (!XDimExpr || !YDimExpr || !ZDimExpr)
31623161
return;
31633162

3164-
// Skip SEMA if we're in a template, this will be diagnosed later.
3163+
// Skip SEMA if we're in a template, this will be diagnosed later.
31653164
if (S.getCurLexicalContext()->isDependentContext())
31663165
return;
31673166

@@ -6047,8 +6046,7 @@ void Sema::addSYCLIntelPipeIOAttr(Decl *D, const AttributeCommonInfo &Attr,
60476046
Optional<llvm::APSInt> ArgVal = E->getIntegerConstantExpr(getASTContext());
60486047
if (!ArgVal) {
60496048
Diag(E->getExprLoc(), diag::err_attribute_argument_type)
6050-
<< Attr << AANT_ArgumentIntegerConstant
6051-
<< E->getSourceRange();
6049+
<< Attr << AANT_ArgumentIntegerConstant << E->getSourceRange();
60526050
return;
60536051
}
60546052
int32_t ArgInt = ArgVal->getSExtValue();

0 commit comments

Comments
 (0)