diff options
author | Douglas Gregor <dgregor@apple.com> | 2015-06-24 22:02:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2015-06-24 22:02:08 +0000 |
commit | aea7afdc1304cfef3b2cf61793729b1f55f26d0a (patch) | |
tree | 80670a6c9757e83d93e42c74128d0730cbaea889 /clang/lib/Parse/ParseTentative.cpp | |
parent | 63d606bdcb606ace3cea3455dcaf0c3dac108d4e (diff) | |
download | llvm-aea7afdc1304cfef3b2cf61793729b1f55f26d0a.zip llvm-aea7afdc1304cfef3b2cf61793729b1f55f26d0a.tar.gz llvm-aea7afdc1304cfef3b2cf61793729b1f55f26d0a.tar.bz2 |
Replace __double_underscored type nullability qualifiers with _Uppercase_underscored
Addresses a conflict with glibc's __nonnull macro by renaming the type
nullability qualifiers as follows:
__nonnull -> _Nonnull
__nullable -> _Nullable
__null_unspecified -> _Null_unspecified
This is the major part of rdar://problem/21530726, but does not yet
provide the Darwin-specific behavior for the old names.
llvm-svn: 240596
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r-- | clang/lib/Parse/ParseTentative.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index d63cf24..536e98c 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -632,8 +632,8 @@ Parser::TPResult Parser::TryParsePtrOperatorSeq() { // ptr-operator ConsumeToken(); while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict, - tok::kw___nonnull, tok::kw___nullable, - tok::kw___null_unspecified)) + tok::kw__Nonnull, tok::kw__Nullable, + tok::kw__Null_unspecified)) ConsumeToken(); } else { return TPResult::True; @@ -1276,9 +1276,9 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult, case tok::kw___ptr32: case tok::kw___forceinline: case tok::kw___unaligned: - case tok::kw___nonnull: - case tok::kw___nullable: - case tok::kw___null_unspecified: + case tok::kw__Nonnull: + case tok::kw__Nullable: + case tok::kw__Null_unspecified: return TPResult::True; // Borland |