File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ template <> struct BlockScalarTraits<MultiLineString> {
145145
146146template <> 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
2929Example
3030=======
You can’t perform that action at this time.
0 commit comments