[cfe-dev] Source to ASTMatcher

Bhargava Shastry via cfe-dev cfe-dev at lists.llvm.org
Mon Apr 17 04:05:33 PDT 2017


Hi,

I am interested in converting source lines (file:line:col) to
libASTMatcher style declarative queries. Are there any recommendations
for how to go about this task?

My initial thoughts were to use -ast-dump-filter on the source code to
select AST segments of interest, and subsequently manually craft a
ASTMatcher query based on it, but the former works on Qualified Decl
names only. Thoughts welcome :-)

Regards,
Bhargava


-- 
Bhargava Shastry <bshastry at sec.t-labs.tu-berlin.de>
Security in Telecommunications
TU Berlin / Telekom Innovation Laboratories
Ernst-Reuter-Platz 7, Sekr TEL 17 / D - 10587 Berlin, Germany
phone: +49 30 8353 58235

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170417/9e162bf4/attachment.sig>


More information about the cfe-dev mailing list