This is an archive of the discontinued LLVM Phabricator instance.

[include-mapping] Parse zombie_names.html into a removed symbols map.
ClosedPublic

Authored by VitaNuo on Jan 16 2023, 8:18 AM.

Diff Detail

Event Timeline

VitaNuo created this revision.Jan 16 2023, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 8:18 AM
VitaNuo requested review of this revision.Jan 16 2023, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 8:18 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Have you run the script on the zombie_names page? Does it work?

clang/tools/include-mapping/gen_std.py
68

instead adding two CLI flags, I'd suggest extending the existing language flag to something like -symbols = {cpp_symbols, c_symbols, cpp_removed_symbols}, it is easy to extend in the future (e.g. c_removed_symbols).

VitaNuo updated this revision to Diff 489824.Jan 17 2023, 7:51 AM

Address review comments.

VitaNuo updated this revision to Diff 489827.Jan 17 2023, 7:53 AM

Remove extra whitespace.

VitaNuo updated this revision to Diff 489828.Jan 17 2023, 8:00 AM

Adjust argument value set.

VitaNuo marked an inline comment as done.Jan 17 2023, 8:00 AM

Yes, ofc I've run it, I wouldn't send a patch otherwise :)

clang/tools/include-mapping/gen_std.py
68

Sure, good idea!

mostly good, just nits.

clang/tools/include-mapping/gen_std.py
31–33

nit: update the doc.

99–100

nit: can we add a _ between cpp and removed. And maybe move it after the if args.symbols == 'cpp' branch as they are cpp related.

VitaNuo updated this revision to Diff 490117.Jan 18 2023, 5:33 AM
VitaNuo marked an inline comment as done.

Minor adjustments in accordance with review comments.

Thanks for the comments!

clang/tools/include-mapping/gen_std.py
31–33

Ah thanks for the reminder!

99–100

Ok, sure.

hokein accepted this revision.Jan 18 2023, 6:03 AM
This revision is now accepted and ready to land.Jan 18 2023, 6:03 AM
This revision was landed with ongoing or failed builds.Jan 20 2023, 12:54 AM
This revision was automatically updated to reflect the committed changes.