zixuw added inline comments.
================ Comment at: clang/lib/ExtractAPI/ExtractAPIConsumer.cpp:854 + // Do not include location in anonymous decls. + PrintingPolicy Policy(CI.getASTContext().getLangOpts()); + Policy.AnonymousTagLocations = false; ---------------- sammccall wrote: > nit: this isn't *just* clearing AnonymousTagLocations, but also resetting any > other PP flags to defaults based on LangOpts. You could getPrintingPolicy() > instead if you didn't intend to do this. Makes sense. Probably doesn't matter because I'm pretty sure `PrintingPolicy` for ExtractAPI is just the default now. Still, good to use `getPrintingPolicy` to be sure Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135295/new/ https://reviews.llvm.org/D135295 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits