Skip to content

Commit 8be412c

Browse files
committed
remove ERROR level
1 parent 71eeaa1 commit 8be412c

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

clang-tools-extra/clang-tidy/ClangTidyOptions.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ template <> struct BlockScalarTraits<MultiLineString> {
145145

146146
template <> struct ScalarEnumerationTraits<clang::DiagnosticIDs::Level> {
147147
static void enumeration(IO &IO, clang::DiagnosticIDs::Level &Level) {
148-
IO.enumCase(Level, "Error", clang::DiagnosticIDs::Level::Error);
149148
IO.enumCase(Level, "Warning", clang::DiagnosticIDs::Level::Warning);
150149
IO.enumCase(Level, "Note", clang::DiagnosticIDs::Level::Note);
151150
}

clang-tools-extra/clang-tidy/custom/QueryCheck.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ QueryCheck::QueryCheck(llvm::StringRef Name,
4343
query::QueryRef Q = query::QueryParser::parse(QueryStringRef, QS);
4444
switch (Q->Kind) {
4545
case query::QK_Match: {
46-
const auto &MatchQuerry = llvm::cast<query::MatchQuery>(*Q);
47-
Matchers.push_back(MatchQuerry.Matcher);
46+
const auto &MatchQuery = llvm::cast<query::MatchQuery>(*Q);
47+
Matchers.push_back(MatchQuery.Matcher);
4848
break;
4949
}
5050
case query::QK_Let: {
51-
const auto &LetQuerry = llvm::cast<query::LetQuery>(*Q);
52-
LetQuerry.run(llvm::errs(), QS);
51+
const auto &LetQuery = llvm::cast<query::LetQuery>(*Q);
52+
LetQuery.run(llvm::errs(), QS);
5353
break;
5454
}
5555
case query::QK_Invalid: {
56-
const auto &InvalidQuerry = llvm::cast<query::InvalidQuery>(*Q);
57-
Context->configurationDiag(InvalidQuerry.ErrStr);
56+
const auto &InvalidQuery = llvm::cast<query::InvalidQuery>(*Q);
57+
Context->configurationDiag(InvalidQuery.ErrStr);
5858
break;
5959
}
6060
// FIXME: TODO

clang-tools-extra/docs/clang-tidy/QueryBasedCustomChecks.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Configuration
2222
- Name: check name can been used in `-checks` option.
2323
- Query: query string
2424
- Diagnostic: list of diagnostics to be reported.
25-
- BindName: name of the node to be bound in `Query`.
26-
- Message: message to be reported.
27-
- Level: severity of the diagnostic, the possible values are `Note`, `Warning`, `Error`.
25+
- BindName: name of the node to be bound in `Query`.
26+
- Message: message to be reported.
27+
- Level: severity of the diagnostic, the possible values are `Note`, `Warning`.
2828

2929
Example
3030
=======

0 commit comments

Comments
 (0)