aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-03-06 17:27:38 +0000
committerbloodstalker <thabogre@gmail.com>2020-03-06 17:27:38 +0000
commitce6ef7f3eb05d6d28e5976910296c4dcce3d51a3 (patch)
tree8ad0b1dd9104a9f197ca267a94b7c30d6d87c5b5 /cgrep.cpp
parentfixes #2, fixes #4 (diff)
downloadcgrep-ce6ef7f3eb05d6d28e5976910296c4dcce3d51a3.tar.gz
cgrep-ce6ef7f3eb05d6d28e5976910296c4dcce3d51a3.zip
updated the man and readme.
Diffstat (limited to 'cgrep.cpp')
-rw-r--r--cgrep.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/cgrep.cpp b/cgrep.cpp
index a764ba9..c654617 100644
--- a/cgrep.cpp
+++ b/cgrep.cpp
@@ -327,7 +327,6 @@ public:
if (regex_handler(REGEX_PP(CO_REGEX), name)) {
ast_type_traits::DynTypedNode DNode =
ast_type_traits::DynTypedNode::create(*FD);
- NamedDecl const *ND = DNode.get<NamedDecl>();
auto StartLocation = FD->getLocation();
auto EndLocation = StartLocation.getLocWithOffset(name.size() - 1);
auto Range = SourceRange(StartLocation, EndLocation);