From 056e2c30050a94141150ba561268d90b4d18e378 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 20 Jun 2012 01:06:08 +0000 Subject: [PATCH] Unbreak GCC build: GCC doesn't like clang::Parser::CommentHandler and class clang::CommentHandler to have same name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158780 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Parse/Parser.h | 2 +- lib/Parse/Parser.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index b451ed97e9..d6c75aa0f2 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -170,7 +170,7 @@ class Parser : public CodeCompletionHandler { OwningPtr RedefineExtnameHandler; OwningPtr FPContractHandler; OwningPtr OpenCLExtensionHandler; - OwningPtr CommentHandler; + OwningPtr CommentSemaHandler; /// Whether the '>' token acts as an operator or not. This will be /// true except when we are parsing an expression within a C++ diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 10fb8eb8e9..c27660f2f8 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -92,8 +92,8 @@ Parser::Parser(Preprocessor &pp, Sema &actions, bool SkipFunctionBodies) PP.AddPragmaHandler("OPENCL", FPContractHandler.get()); } - CommentHandler.reset(new ActionCommentHandler(actions)); - PP.addCommentHandler(CommentHandler.get()); + CommentSemaHandler.reset(new ActionCommentHandler(actions)); + PP.addCommentHandler(CommentSemaHandler.get()); PP.setCodeCompletionHandler(*this); } @@ -440,7 +440,7 @@ Parser::~Parser() { PP.RemovePragmaHandler("STDC", FPContractHandler.get()); FPContractHandler.reset(); - PP.removeCommentHandler(CommentHandler.get()); + PP.removeCommentHandler(CommentSemaHandler.get()); PP.clearCodeCompletionHandler(); -- 2.40.0