aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-10 18:00:12 +0000
committerChris Lattner <sabre@nondot.org>2009-04-10 18:00:12 +0000
commit7c5d24efcd2e505b5739f7def08dfe25ce59a1b2 (patch)
treee01b6c45f5d831455439bd6b9655a651293d2778 /include/clang/Lex/Preprocessor.h
parentf1202511ee2438ba6e57489c2d4e84342b35436c (diff)
emit function-like and object-like macros to the PCH file.
Note that we don't do anything useful with identifier infos yet and don't emit the tokens that the macros are defined to. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 68cb372c47..f5b4b361a5 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -585,6 +585,12 @@ public:
/// current line until the tok::eom token is found.
void DiscardUntilEndOfDirective();
+ /// SawDateOrTime - This returns true if the preprocessor has seen a use of
+ /// __DATE__ or __TIME__ in the file so far.
+ bool SawDateOrTime() const {
+ return DATELoc != SourceLocation() || TIMELoc != SourceLocation();
+ }
+
private:
void PushIncludeMacroStack() {