Skip to content

Commit 20b0881

Browse files
committed
add clang-tidy violations
1 parent 737e116 commit 20b0881

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace clang::tidy {
5555

5656
#if CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS
5757
namespace custom {
58-
void (*RegisterCustomChecks)(const ClangTidyOptions &O,
58+
void (*RegisterCustomChecks)(const ClangTidyOptions &o,
5959
ClangTidyCheckFactories &Factories) = nullptr;
6060
} // namespace custom
6161
#endif

clang-tools-extra/clangd/tool/ClangdMain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,11 +995,11 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var
995995
Opts.PreambleParseForwardingFunctions = PreambleParseForwardingFunctions;
996996
Opts.ImportInsertions = ImportInsertions;
997997
Opts.QueryDriverGlobs = std::move(QueryDriverGlobs);
998-
Opts.TweakFilter = [&](const Tweak &T) {
999-
if (T.hidden() && !HiddenFeatures)
998+
Opts.TweakFilter = [&](const Tweak &t) {
999+
if (t.hidden() && !HiddenFeatures)
10001000
return false;
10011001
if (TweakList.getNumOccurrences())
1002-
return llvm::is_contained(TweakList, T.id());
1002+
return llvm::is_contained(TweakList, t.id());
10031003
return true;
10041004
};
10051005
if (ForceOffsetEncoding != OffsetEncoding::UnsupportedEncoding)

0 commit comments

Comments
 (0)