diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-18 22:35:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-18 22:35:47 +0000 |
commit | 046c2277dcbcc8eb89dbb5b1b8c5226b7cb81635 (patch) | |
tree | ca203780b57621d64d1316c4eda5a13622951626 /lib/Parse/Parser.cpp | |
parent | 2c6b193d574e0780ff0b8450ce1fde105f4881ac (diff) |
allow the HandlerComment callback to push tokens into the
preprocessor. This could be used by an OpenMP implementation
or something. Patch by Abramo Bagnara!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 0aecac9757..f2bc303acd 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -29,8 +29,9 @@ class ActionCommentHandler : public CommentHandler { public: explicit ActionCommentHandler(Action &Actions) : Actions(Actions) { } - virtual void HandleComment(Preprocessor &PP, SourceRange Comment) { + virtual bool HandleComment(Preprocessor &PP, SourceRange Comment) { Actions.ActOnComment(Comment); + return false; } }; |