This is an archive of the discontinued LLVM Phabricator instance.

[clang][cli] NFC: Promote ParseLangArgs and ParseCodeGenArgs to members
ClosedPublic

Authored by jansvoboda11 on Jan 14 2021, 4:57 AM.

Details

Summary

This patch promotes ParseLangArgs and ParseCodeGenArgs to members of CompilerInvocation. That will be useful in the following patch D94682, where we need to access protected members of LangOptions and CodeGenOptions. Both of those classes already have friend CompilerInvocation.

This is cleaner than keeping those functions freestanding and having to specify the exact signature of both in extra friend declarations.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Jan 14 2021, 4:57 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2021, 4:57 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 edited the summary of this revision. (Show Details)Jan 14 2021, 5:53 AM
jansvoboda11 edited the summary of this revision. (Show Details)Jan 14 2021, 6:16 AM
This revision is now accepted and ready to land.Jan 14 2021, 9:09 AM
This revision was landed with ongoing or failed builds.Jan 15 2021, 7:42 AM
This revision was automatically updated to reflect the committed changes.