This is an archive of the discontinued LLVM Phabricator instance.

Store warning option for custom diagnostic messages.
AbandonedPublic

Authored by alexfh on Jan 30 2014, 9:32 AM.

Details

Reviewers
jordan_rose
Summary

This patch extends DiagnosticIDs::getCustomDiagID to accept an optional
WarningOption argument, which can then be retrieved by diagnostic ID using the
new getWarningOption method. This can be used, e.g. by the static analyzer and
clang-tidy to report the name of specific module/checker producing the
diagnostic.

Diff Detail

Event Timeline

Alp was trying to move away from getCustomDiagID, so you should probably talk to him about this.

alexfh abandoned this revision.Oct 12 2020, 7:26 AM