diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2019-02-04 09:42:33 +0000 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2019-02-04 09:42:33 +0000 |
commit | d0993ecfbc174976d02efd288db319764c71644a (patch) | |
tree | 89e5cd3d08d56fd012ab78a6b9344dec2f1f920a /include/clang/Frontend/PrecompiledPreamble.h | |
parent | 56c55d5f16e3fdf8da45871ddc94a1ae19af290a (diff) |
[clang] Add getCommentHandler to PreambleCallbacks
Summary:
Enables users to add comment handlers to preprocessor when building
preambles.
Reviewers: ilya-biryukov, ioeric
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D57507
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PrecompiledPreamble.h')
-rw-r--r-- | include/clang/Frontend/PrecompiledPreamble.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Frontend/PrecompiledPreamble.h b/include/clang/Frontend/PrecompiledPreamble.h index ba825af946..b1d55d8063 100644 --- a/include/clang/Frontend/PrecompiledPreamble.h +++ b/include/clang/Frontend/PrecompiledPreamble.h @@ -283,6 +283,8 @@ public: /// Creates wrapper class for PPCallbacks so we can also process information /// about includes that are inside of a preamble virtual std::unique_ptr<PPCallbacks> createPPCallbacks(); + /// The returned CommentHandler will be added to the preprocessor if not null. + virtual CommentHandler *getCommentHandler(); }; enum class BuildPreambleError { |