[cfe-dev] clang AST doesn't carry source location of storage class like "extern"

蔡智(进福) via cfe-dev cfe-dev at lists.llvm.org
Thu Mar 25 01:30:33 PDT 2021

Hi Clang-Devs,
  I'm trying to do some c++ source modification work by using clang AST,
I found that source location for storage class like "extern", are stored in parse phase only object DeclSpec, this source location is not passed to AST Decl nodes,
so I can't get them in the AST traverse phase. I wonder is there a way to get source location of "extern" after AST is built?

Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210325/c4ee0571/attachment.html>

More information about the cfe-dev mailing list