aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/ClangTidy.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-03-02 23:34:48 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-03-02 23:34:48 +0000
commitdee7cac685856d0606723c82038996f60fa5e204 (patch)
tree2edbc54a0eecdefeae3cfb2069d61d9150b4d797 /clang-tidy/ClangTidy.h
parent76e47bcd14ab1947c69cf59f9418858e3e22150e (diff)
Add a level parameter to ClangTidyCheck::diag.
The goal is to make it possible for checks to emit diagnostics at levels other than 'warning'. Differential Revision: http://llvm-reviews.chandlerc.com/D2913 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r--clang-tidy/ClangTidy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h
index 388ac1cf..68e574b6 100644
--- a/clang-tidy/ClangTidy.h
+++ b/clang-tidy/ClangTidy.h
@@ -76,7 +76,8 @@ public:
void setContext(ClangTidyContext *Ctx) { Context = Ctx; }
/// \brief Add a diagnostic with the check's name.
- DiagnosticBuilder diag(SourceLocation Loc, StringRef Description);
+ DiagnosticBuilder diag(SourceLocation Loc, StringRef Description,
+ DiagnosticIDs::Level Level = DiagnosticIDs::Warning);
/// \brief Sets the check name. Intended to be used by the clang-tidy
/// framework. Can be called only once.