1) python $(llvm-project)\clang-tools-extra\clang-tidy\add_new_check.py modernize use-ranges 2) Build the solution 3) python $(llvm-build)\$(Configuration)\bin\llvm-lit.py $(llvm-project)\clang-tools-extra\test\clang-tidy\checkers\modernize-use-ranges.cpp Result: Generated test for new generated check has failed. Expected - Default generated test for new default generated checks should pass! Reason: - check_clang_tidy.py run clang-format with `-fix` option. - add_new_check.py generates fix-hint for DiagnosticIDs::Note (See commit f2879d8a). - clang-tidy fixes notes with `-fix-notes` options only, and `-fix` option ignore notes... Possible fix: - update add_new_check.py to generate Warning ``` diag(MatchedDecl->getLocation(), "insert 'awesome'", DiagnosticIDs::Warning) << FixItHint::CreateInsertion(MatchedDecl->getLocation(), "awesome_"); ``` as it was before commit f2879d8a