diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-17 15:32:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-17 15:32:29 +0000 |
commit | ebf004990163b7588d2140a2c44be3ae991b4e29 (patch) | |
tree | bf639690104decc6e9a594ce4773a895f2310e46 /clang/lib/Basic/IdentifierTable.cpp | |
parent | 71129d5e9e3a290df21ef8f3389c1b54b10f62cd (diff) | |
download | llvm-ebf004990163b7588d2140a2c44be3ae991b4e29.zip llvm-ebf004990163b7588d2140a2c44be3ae991b4e29.tar.gz llvm-ebf004990163b7588d2140a2c44be3ae991b4e29.tar.bz2 |
For modules, all macros that aren't include guards are implicitly
public. Add a __private_macro__ directive to hide a macro, similar to
the __module_private__ declaration specifier.
llvm-svn: 142188
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index 38f09a08..78f8a7cb 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -222,6 +222,8 @@ tok::PPKeywordKind IdentifierInfo::getPPKeywordID() const { CASE(16, '_', 'i', __include_macros); CASE(16, '_', 'e', __export_macro__); + + CASE(17, '_', 'p', __private_macro__); #undef CASE #undef HASH } |