diff options
Diffstat (limited to 'include/clang/Analysis/PathDiagnostic.h')
-rw-r--r-- | include/clang/Analysis/PathDiagnostic.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/clang/Analysis/PathDiagnostic.h b/include/clang/Analysis/PathDiagnostic.h index bb31ee391f..e266ee8518 100644 --- a/include/clang/Analysis/PathDiagnostic.h +++ b/include/clang/Analysis/PathDiagnostic.h @@ -77,18 +77,22 @@ class PathDiagnostic { std::list<PathDiagnosticPiece*> path; unsigned Size; std::string Desc; + std::string Category; std::vector<std::string> OtherDesc; public: PathDiagnostic() : Size(0) {} - PathDiagnostic(const char* desc) : Size(0), Desc(desc) {} + PathDiagnostic(const char* desc, const char* category) + : Size(0), Desc(desc), Category(category) {} - PathDiagnostic(const std::string& desc) : Size(0), Desc(desc) {} + PathDiagnostic(const std::string& desc, const std::string& category) + : Size(0), Desc(desc), Category(category) {} ~PathDiagnostic(); const std::string& getDescription() const { return Desc; } + const std::string& getCategory() const { return Category; } typedef std::vector<std::string>::const_iterator meta_iterator; meta_iterator meta_begin() const { return OtherDesc.begin(); } |