diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-09-25 15:44:52 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-09-25 15:44:52 +0000 |
commit | b09de5177ee8101818a59dcd0038c75b190a2509 (patch) | |
tree | 5076842d1c2373dc9e4717bebb3b7a879da4b9d9 /include/clang/Lex/Preprocessor.h | |
parent | 9158a5624154bc43bbbf059c07a2f7b2cd45c1a1 (diff) |
Introduce builtin macros to determine whether we're building a
specific module (__building_module(modulename)) and to get the name of
the current module as an identifier (__MODULE__).
Used to help headers behave differently when they're being included as
part of building a module. Oh, the irony.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 0ddf82e5df..76d8fdb259 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -98,6 +98,8 @@ class Preprocessor : public RefCountedBase<Preprocessor> { IdentifierInfo *Ident__has_include; // __has_include IdentifierInfo *Ident__has_include_next; // __has_include_next IdentifierInfo *Ident__has_warning; // __has_warning + IdentifierInfo *Ident__building_module; // __building_module + IdentifierInfo *Ident__MODULE__; // __MODULE__ SourceLocation DATELoc, TIMELoc; unsigned CounterValue; // Next __COUNTER__ value. |