]> granicus.if.org Git - clang/commit
Introduce builtin macros to determine whether we're building a
authorDouglas Gregor <dgregor@apple.com>
Tue, 25 Sep 2012 15:44:52 +0000 (15:44 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 25 Sep 2012 15:44:52 +0000 (15:44 +0000)
commitb09de5177ee8101818a59dcd0038c75b190a2509
tree5076842d1c2373dc9e4717bebb3b7a879da4b9d9
parent9158a5624154bc43bbbf059c07a2f7b2cd45c1a1
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
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Lex/Preprocessor.h
lib/Lex/PPMacroExpansion.cpp
test/Modules/Inputs/macros.h
test/Modules/macros.c