diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-06-30 21:33:57 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-06-30 21:33:57 +0000 |
commit | 58d547200eeb422a681429d82b9543e26768e5e8 (patch) | |
tree | 8188ef995098e4f72d1c8dfb2331b4391797dc74 /clang/lib/Parse/ParseDecl.cpp | |
parent | 2b3c8603978583ab287bd3acece517b4edd12483 (diff) | |
download | bcm5719-llvm-58d547200eeb422a681429d82b9543e26768e5e8.tar.gz bcm5719-llvm-58d547200eeb422a681429d82b9543e26768e5e8.zip |
Add support for the C11 _Alignof keyword.
This behaves like the existing GNU __alignof and C++11 alignof keywords;
most of the patch is simply adding the third token spelling to various places.
llvm-svn: 159494
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 409f8e002ab..c6db497a53d 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -2478,7 +2478,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, // alignment-specifier case tok::kw__Alignas: if (!getLangOpts().C11) - Diag(Tok, diag::ext_c11_alignas); + Diag(Tok, diag::ext_c11_alignment) << Tok.getName(); ParseAlignmentSpecifier(DS.getAttributes()); continue; |