From b0cda572c807e38ecc7e3f47e583fa5c5e9cbe32 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 29 Feb 2020 21:40:09 +0330 Subject: a little script --- cgrep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgrep.cpp') diff --git a/cgrep.cpp b/cgrep.cpp index f49791e..f3bcbb3 100644 --- a/cgrep.cpp +++ b/cgrep.cpp @@ -153,7 +153,7 @@ static std::string get_line_from_file(SourceManager &SM, const MatchFinder::Matc * * @param path */ -#if 0 +#if 1 static void dig(boost::filesystem::path dir, int argc, const char** argv) { //just to be compatible with old gcc versions //for (const auto &entry : boost::filesystem::directory_iterator(dir)) { @@ -621,7 +621,7 @@ public: std::string name = ND->getNameAsString(); if (regex_handler(REGEX_PP(CO_REGEX), name)) { ast_type_traits::DynTypedNode DTN = ast_type_traits::DynTypedNode::create(*ND); - output_handler(MR, SourceRange(SL, SLE), *MR.SourceManager, false); + output_handler(MR, SourceRange(SL, SLE), *MR.SourceManager, false, DTN); } } } -- cgit v1.2.3