summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAttr.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2017-12-04 20:27:34 +0000
committerAaron Ballman <aaron@aaronballman.com>2017-12-04 20:27:34 +0000
commitc351fba69e24ca65fb8c4ae3ce240642555495d7 (patch)
tree31152a9420f1881f2241277093a696858c852ed3 /clang/lib/Sema/SemaStmtAttr.cpp
parent800259c98d6fe81fefabb38c01a79504f2652cf2 (diff)
downloadbcm5719-llvm-c351fba69e24ca65fb8c4ae3ce240642555495d7.tar.gz
bcm5719-llvm-c351fba69e24ca65fb8c4ae3ce240642555495d7.zip
Now that C++17 is official (https://www.iso.org/standard/68564.html), start changing the C++1z terminology over to C++17. NFC intended, these are all mechanical changes.
llvm-svn: 319688
Diffstat (limited to 'clang/lib/Sema/SemaStmtAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAttr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaStmtAttr.cpp b/clang/lib/Sema/SemaStmtAttr.cpp
index d43c8c38f61..e55e20c2827 100644
--- a/clang/lib/Sema/SemaStmtAttr.cpp
+++ b/clang/lib/Sema/SemaStmtAttr.cpp
@@ -43,9 +43,9 @@ static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const AttributeList &A,
return nullptr;
}
- // If this is spelled as the standard C++1z attribute, but not in C++1z, warn
+ // If this is spelled as the standard C++17 attribute, but not in C++17, warn
// about using it as an extension.
- if (!S.getLangOpts().CPlusPlus1z && A.isCXX11Attribute() &&
+ if (!S.getLangOpts().CPlusPlus17 && A.isCXX11Attribute() &&
!A.getScopeName())
S.Diag(A.getLoc(), diag::ext_cxx17_attr) << A.getName();
OpenPOWER on IntegriCloud