This is an archive of the discontinued LLVM Phabricator instance.

Comment Sema: Use Name from CommandInfo for HeaderDoc diagnostics (NFC)
AcceptedPublic

Authored by aaronpuchert on Nov 12 2021, 12:22 PM.

Details

Reviewers
gribozavr2
Summary

We don't have to figure out the name, we can just fetch it from the
metadata table. Also there is no reason to %select over the names since
they're not natural language but keywords.

Subsequently we can focus on the actual logic and merge some branches
together. Unhandled cases are now marked unreachable, but this shouldn't
have any effect as of now. (We handle all existing commands.)

Diff Detail