[clang][ExtractAPI] Don't print locations for anonymous tags
authorZixu Wang <zixu_wang@apple.com>
Wed, 5 Oct 2022 17:59:58 +0000 (10:59 -0700)
committerZixu Wang <zixu_wang@apple.com>
Wed, 5 Oct 2022 20:11:21 +0000 (13:11 -0700)
commit5301826fa86aa520b65c86abbe3b3a7194849e27
treec888ce32e2b4609214cae3c3eea9772960c29bbe
parenta93ec06ae6277480b3f3d7521f867a7099e68fc1
[clang][ExtractAPI] Don't print locations for anonymous tags

ExtractAPI doesn't care about locations of anonymous TagDecls. Set the
printing policy to exclude that from anonymous decl names.

Differential Revision: https://reviews.llvm.org/D135295
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp