summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-18 22:35:47 +0000
committerChris Lattner <sabre@nondot.org>2010-01-18 22:35:47 +0000
commit87d0208c418be5a668dadd60652338f5f7dd9578 (patch)
treefba9476408920bbe7341025cefd79420d4be52e9 /clang/lib/Parse/Parser.cpp
parentf406b2402d56817bc4ac5734aa81e544bb86fc05 (diff)
downloadbcm5719-llvm-87d0208c418be5a668dadd60652338f5f7dd9578.tar.gz
bcm5719-llvm-87d0208c418be5a668dadd60652338f5f7dd9578.zip
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
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 0aecac97574..f2bc303acd6 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/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;
}
};
OpenPOWER on IntegriCloud