allow the HandlerComment callback to push tokens into the
preprocessor. This could be used by an OpenMP implementation
or something. Patch by Abramo Bagnara!
llvm-svn: 93795
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 0aecac9..f2bc303 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -29,8 +29,9 @@
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;
}
};