summaryrefslogtreecommitdiff
path: root/src/plugin.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-08 17:45:16 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-08 17:45:16 +0300
commit0ad1e8efbd7e4b467d93568136e7beafe1e23fb5 (patch)
treea148bb981a616eff70aeec5c162f3368f798a797 /src/plugin.cpp
parent2abca5bd038805c23d8a84b73cbe1b9410442841 (diff)
downloadparanucker-0ad1e8efbd7e4b467d93568136e7beafe1e23fb5.tar.gz
paranucker-0ad1e8efbd7e4b467d93568136e7beafe1e23fb5.tar.bz2
paranucker-0ad1e8efbd7e4b467d93568136e7beafe1e23fb5.tar.xz
paranucker-0ad1e8efbd7e4b467d93568136e7beafe1e23fb5.zip
Add plugin parameters *-specialdump=filename for dump only this file AST tree.
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r--src/plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp
index a4f7b66..27b6d18 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -39,6 +39,7 @@ struct Node;
Command command = Command::DetectNullPointers;
std::map<tree, Node*> foundNodesMap;
std::map<Node*, Node*> updateNodesMap;
+std::string dumpFile;
// copy/paste from plugin.h look like again guard header issue.
extern void register_attribute (const struct attribute_spec *attr);
@@ -139,6 +140,10 @@ int plugin_init (struct plugin_name_args *plugin_info,
return 0;
}
}
+ if (!strcmp (argv[f].key, "specialdump"))
+ {
+ dumpFile = argv[f].value;
+ }
}
register_callback(plugin_info->base_name,