This is an archive of the discontinued LLVM Phabricator instance.

[NFC][clang] Refactor getCompilationPhases()+Types.def step 2.
ClosedPublic

Authored by plotfi on Jul 23 2019, 5:19 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

plotfi created this revision.Jul 23 2019, 5:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2019, 5:19 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This looks good to me generally. I don't fully understand the reason for u being kept, is that something you intend to clean up in a subsequent patch?

This looks good to me generally. I don't fully understand the reason for u being kept, is that something you intend to clean up in a subsequent patch?

I’d like to remove it but I don’t yet understand its purpose. Might deal with it in another patch along with ‘A’

aaron.ballman added inline comments.Jul 24 2019, 4:25 AM
clang/include/clang/Driver/Types.def
39–45 ↗(On Diff #211390)

Why should we document the removed flags, since users cannot write them anyway?

compnerd added inline comments.Jul 24 2019, 8:26 AM
clang/include/clang/Driver/Types.def
39–45 ↗(On Diff #211390)

Actually, that makes sense to me. The reasoning for it (and the key thing to note about the documentation) is that it helps downstream forks as it indicates how to migrate. Now, if you believe that this bit of functionality is unlikely to be used, thats a different story. But, I don't think that it hurts to have the documentation in the commit message instead.

aaron.ballman accepted this revision.Jul 24 2019, 12:01 PM

LGTM!

clang/include/clang/Driver/Types.def
39–45 ↗(On Diff #211390)

Okay, that makes sense to me. Thank you for the explanation!

This revision is now accepted and ready to land.Jul 24 2019, 12:01 PM
plotfi updated this revision to Diff 211652.Jul 24 2019, 6:04 PM

Removing 'A'

plotfi marked 4 inline comments as done.Jul 24 2019, 6:07 PM
plotfi added inline comments.
clang/include/clang/Driver/Types.def
39–45 ↗(On Diff #211390)

Yeah I just wanted a heads up for anyone downstream or anyone trying to update this table. Unfortunately I dont really understand the concept behind "user specified" types here. I assume it means things like clang -xc++ or something like that. I will move this comment into the commit message. Thanks!

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2019, 3:05 PM