[PATCH] Introduce clang-query tool.
Konrad Wilhelm Kleine
konrad.wilhelm.kleine at gmail.com
Wed Sep 24 07:01:49 PDT 2014
Can you please explain a usage of the "set bind-root" command? Why would I not want to match the loaded AST against a given matcher?
================
Comment at: clang-tools-extra/trunk/clang-query/Query.cpp:38
@@ +37,3 @@
+ "Match the loaded ASTs against the given matcher.\n"
+ " set bind-root (true|false) "
+ "Set whether to bind the root matcher to \"root\".\n"
----------------
What does this mean? And why would I not want to match the loaded AST against a given matcher? Can you please give a useful small example of how to use the "set bind-root" command?
http://reviews.llvm.org/D2098
More information about the cfe-commits
mailing list