From b2c231dc9615b79cb31748c712dee9bf3d115e75 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 12 May 2017 16:39:19 +0430 Subject: fixes and some changes --- bruiser/bruiser.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp index ecde8a0..901a48b 100644 --- a/bruiser/bruiser.cpp +++ b/bruiser/bruiser.cpp @@ -377,6 +377,19 @@ private: Rewriter R; }; /**********************************************************************************************************************/ +class LiveConsumerFactory +{ + public: + LiveConsumerFactory() {} + + template + void operator()(T __consumer) + { + + } + +}; +/**********************************************************************************************************************/ class LiveConsumer : public ASTConsumer { public: @@ -385,18 +398,6 @@ class LiveConsumer : public ASTConsumer void HandleTranslationUnit(ASTContext &ctx) override { - Matcher.addMatcher(varDecl().bind("livelistvars"), &HLLVars); - - Matcher.addMatcher(functionDecl().bind("livelistfuncs"), &HLLFuncs); - - Matcher.addMatcher(recordDecl().bind("livelistrecords"), &HLLRecords); - - Matcher.addMatcher(recordDecl(isClass()).bind("livelistrecords"), &HLLRecords); - - Matcher.addMatcher(recordDecl(isUnion()).bind("livelistrecords"), &HLLRecords); - - Matcher.addMatcher(recordDecl(isStruct()).bind("livelistrecords"), &HLLRecords); - Matcher.matchAST(ctx); } @@ -405,7 +406,6 @@ class LiveConsumer : public ASTConsumer LiveListVars HLLVars; LiveListFuncs HLLFuncs; LiveListRecords HLLRecords; - std::string __who; Rewriter R; }; /**********************************************************************************************************************/ -- cgit v1.2.3