13#ifndef LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGTYPE_H
14#define LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGTYPE_H
30 const std::string Description;
31 const std::string Category;
35 virtual void anchor();
40 : CheckerName(CheckerName), Description(Desc),
Category(Cat),
41 Checker(nullptr), SuppressOnSink(SuppressOnSink) {}
57 assert(!Ret.empty() &&
"Checker name is not set properly.");
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
bool isSuppressOnSink() const
isSuppressOnSink - Returns true if bug reports associated with this bug type should be suppressed if ...
BugType(CheckerNameRef CheckerName, StringRef Desc, StringRef Cat=categories::LogicError, bool SuppressOnSink=false)
StringRef getCategory() const
StringRef getDescription() const
virtual ~BugType()=default
StringRef getCheckerName() const
BugType(const CheckerBase *Checker, StringRef Desc, StringRef Cat=categories::LogicError, bool SuppressOnSink=false)
CheckerNameRef getCheckerName() const
This wrapper is used to ensure that only StringRefs originating from the CheckerRegistry are used as ...
const char *const LogicError
The JSON file list parser is used to communicate input to InstallAPI.