This is an archive of the discontinued LLVM Phabricator instance.

[clang][ExtractAPI] Reland ExtractAPI for libclang improvements
ClosedPublic

Authored by dang on Mar 30 2023, 7:06 AM.

Details

Summary

This relands the changes that were originally introduced by:

This also fixes the leak that led to these changes being reverted

Diff Detail

Event Timeline

dang created this revision.Mar 30 2023, 7:06 AM
Herald added a project: Restricted Project. · View Herald Transcript
dang requested review of this revision.Mar 30 2023, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 7:06 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
dang added inline comments.Mar 30 2023, 7:07 AM
clang/tools/c-index-test/c-index-test.c
4898

The previous version didn't free the string here which was the source of the leak @hctim

zixuw accepted this revision.Mar 30 2023, 10:13 AM
This revision is now accepted and ready to land.Mar 30 2023, 10:13 AM
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp