diff options
author | Baranov Victor <bar.victor.2002@gmail.com> | 2025-04-20 21:41:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-20 20:41:13 +0200 |
commit | 842e5915778a820c63cf38b75bec932a6ea8c18b (patch) | |
tree | 8d95d0eb1a1b1540ab2efee15025e9a2bd5d5148 /clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp | |
parent | f0cc50cdc969d141015cd132cf56a2ab8447f763 (diff) | |
download | llvm-842e5915778a820c63cf38b75bec932a6ea8c18b.zip llvm-842e5915778a820c63cf38b75bec932a6ea8c18b.tar.gz llvm-842e5915778a820c63cf38b75bec932a6ea8c18b.tar.bz2 |
[clang-tidy][NFC] fix `clang-tidy` warnings in `clang-tools-extra/clang-tidy` directory (#136097)
Mostly stylistic changes to `clang-tidy` source code.
Command run:
`python3 clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p build/
-j $(nproc) clang-tools-extra/clang-tidy`
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp b/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp index 6df565c..b45a3ebc 100644 --- a/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp @@ -66,9 +66,9 @@ static llvm::SmallString<64U> skeleton(StringRef Name) { } StringRef Key(Prev, Curr - Prev); - auto Where = llvm::lower_bound(ConfusableEntries, CodePoint, - [](decltype(ConfusableEntries[0]) x, - UTF32 y) { return x.codepoint < y; }); + auto *Where = llvm::lower_bound(ConfusableEntries, CodePoint, + [](decltype(ConfusableEntries[0]) X, + UTF32 Y) { return X.codepoint < Y; }); if (Where == std::end(ConfusableEntries) || CodePoint != Where->codepoint) { Skeleton.append(Prev, Curr); } else { |