[cfe-dev] Emit fixit for root AST node

Dávid Bolvanský via cfe-dev cfe-dev at lists.llvm.org
Sat Oct 6 01:53:58 PDT 2018


#include <stdio.h>

void foo() {
    bool x;

When analyzing type "bool", I would like to emit fixit hint to top of the
file, just before "#include <stdio.h>".

So my question is how to find the location of "root/top" AST node.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181006/719b0050/attachment.html>

More information about the cfe-dev mailing list