diff options
author | bloodstalker <thabogre@gmail.com> | 2020-02-29 18:10:09 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2020-02-29 18:10:09 +0000 |
commit | b0cda572c807e38ecc7e3f47e583fa5c5e9cbe32 (patch) | |
tree | adf415adb67e0e4c21dc618a579f322cdcac51c0 | |
parent | a rough roff [ci skip] (diff) | |
download | cgrep-b0cda572c807e38ecc7e3f47e583fa5c5e9cbe32.tar.gz cgrep-b0cda572c807e38ecc7e3f47e583fa5c5e9cbe32.zip |
a little script
-rw-r--r-- | cgrep.cpp | 4 | ||||
-rwxr-xr-x | makeman.sh | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -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); } } } diff --git a/makeman.sh b/makeman.sh new file mode 100755 index 0000000..785c9ce --- /dev/null +++ b/makeman.sh @@ -0,0 +1,3 @@ +#!/usr/bin/sh + +groff -man -Tascii ./cgrep.roff |