Skip to content

Commit 81d79a5

Browse files
committed
use '+'/'-'
1 parent ad95a31 commit 81d79a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2999,7 +2999,7 @@ bool Sema::checkTargetAttr(SourceLocation LiteralLoc, StringRef AttrStr) {
29992999
<< Duplicate << None << ParsedAttrs.Duplicate << Target;
30003000
for (const auto &Feature : ParsedAttrs.Features) {
30013001
auto CurFeature = StringRef(Feature);
3002-
if (!CurFeature.starts_with("+") && !CurFeature.starts_with("-"))
3002+
if (!CurFeature.starts_with('+') && !CurFeature.starts_with('-'))
30033003
return Diag(LiteralLoc, diag::warn_unsupported_target_attribute)
30043004
<< Unsupported << None << AttrStr << Target;
30053005
}

0 commit comments

Comments
 (0)