clang: include/clang/StaticAnalyzer/Core/BugReporter/BugType.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGTYPE_H
14#define LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGTYPE_H
15
19#include
20
22
23namespace ento {
24
25class BugReporter;
26
28private:
30 const std::string Description;
31 const std::string Category;
33 bool SuppressOnSink;
34
35 virtual void anchor();
36
37public:
40 : CheckerName(CheckerName), Description(Desc), Category(Cat),
41 Checker(nullptr), SuppressOnSink(SuppressOnSink) {}
47
51
52
53
54
55
57 assert(!Ret.empty() && "Checker name is not set properly.");
58 return Ret;
59 }
60
61
62
63
65};
66
67}
68
69}
70#endif
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.