================ @@ -581,6 +585,20 @@ class EventDispatcher { } }; +/// Tag that can use a checker name as a message provider +/// (see SimpleProgramPointTag). +/// FIXME: This is a cargo cult class which is copied into several checkers but +/// does not provide anything useful. +/// The only added functionality provided by this class (compared to +/// SimpleProgramPointTag) is that it composes the tag description string from +/// two arguments -- but tag descriptions only appear in debug output so there +/// is no reason to bother with this. +class CheckerProgramPointTag : public SimpleProgramPointTag { +public: + CheckerProgramPointTag(StringRef CheckerName, StringRef Msg); + CheckerProgramPointTag(const CheckerBase *Checker, StringRef Msg); +}; ---------------- NagyDonat wrote:
I just moved this code which was previously placed between `CheckerBase` and `Checker`, but I would like to clean it up in follow-up commits if I have time. https://github.com/llvm/llvm-project/pull/139256 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits