summaryrefslogtreecommitdiffstats
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-05-15 02:34:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-05-15 02:34:32 +0000
commit47b21db9e69c7b70ef754da5f42f2969875a7474 (patch)
treec4900b429477610ee84732c2cb5a4d6d0dfc256f /include/clang/Lex/Preprocessor.h
parent628b143f45deb7ccdf0eb4e6782a7bc3af6d59e5 (diff)
Refactor: when exposing a definition in some module, provide listeners with the
module rather than requiring them to work it out themselves. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 3f668e1e27..4562741658 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -1790,6 +1790,7 @@ private:
void HandleImportDirective(SourceLocation HashLoc, Token &Tok);
void HandleMicrosoftImportDirective(Token &Tok);
+public:
// Module inclusion testing.
/// \brief Find the module that owns the source or header file that
/// \p Loc points to. If the location is in a file that was included
@@ -1800,6 +1801,7 @@ private:
/// directly or indirectly.
Module *getModuleContainingLocation(SourceLocation Loc);
+private:
// Macro handling.
void HandleDefineDirective(Token &Tok, bool ImmediatelyAfterTopLevelIfndef);
void HandleUndefDirective(Token &Tok);