Skip to content

Commit 4ce48a5

Browse files
Apply suggestions from code review
Co-authored-by: Baranov Victor <[email protected]>
1 parent 5500699 commit 4ce48a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QueryCheck : public ClangTidyCheck {
2828
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
2929

3030
private:
31-
llvm::SmallVector<ast_matchers::dynamic::DynTypedMatcher> Matchers{};
31+
llvm::SmallVector<ast_matchers::dynamic::DynTypedMatcher> Matchers;
3232
using BindNameMapToDiagMessage =
3333
llvm::StringMap<llvm::SmallVector<std::string>>;
3434
using DiagMaps =

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ Improvements to clang-tidy
104104
clauses. Added a ``--match-partial-fixes`` option to keep previous behavior on
105105
specific tests. This may break tests for users with custom out-of-tree checks
106106
who use :program:`check_clang_tidy.py` as-is.
107+
107108
- :program:`clang-tidy` now supports query based custom checks by `CustomChecks`
108109
configuration option.
109110
:doc:`Query Based Custom Check Document <clang-tidy/QueryBasedCustomChecks>`
111+
110112
- Improved :program:`clang-tidy-diff.py` script. Add the `-warnings-as-errors`
111113
argument to treat warnings as errors.
112114

0 commit comments

Comments
 (0)