[clang][extract-api] Don't emit symbols prefixed with an underscore
authorDaniel Grumberg <dgrumberg@apple.com>
Mon, 16 May 2022 10:46:36 +0000 (11:46 +0100)
committerDaniel Grumberg <dgrumberg@apple.com>
Wed, 25 May 2022 18:02:18 +0000 (19:02 +0100)
commit504736cedff39d46fffc1293a35602ba140b19a8
treef616ddd14a32d56114abe37a5b59cc074f7ff184
parent23bb550eeba48651964ffeb0c8a061ac99b91034
[clang][extract-api] Don't emit symbols prefixed with an underscore

These symbols are understood to not be used for client API consumption
by convention so they should not appear in the generated symbol graph.

Differential Revision: https://reviews.llvm.org/D125678
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/ExtractAPI/underscored.c [new file with mode: 0644]