aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
diff options
context:
space:
mode:
authorPiotr Zegar <me@piotrzegar.pl>2023-08-27 11:50:14 +0000
committerPiotr Zegar <me@piotrzegar.pl>2023-08-27 11:59:03 +0000
commitcbdc3e1bf9da09911ba353bcd20c6709bda43893 (patch)
tree40db1b649f102403307dd460af5a64027451fdb9 /clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
parent9f8220969cc8c52565d6f9b932e1934513e0c1bb (diff)
downloadllvm-cbdc3e1bf9da09911ba353bcd20c6709bda43893.zip
llvm-cbdc3e1bf9da09911ba353bcd20c6709bda43893.tar.gz
llvm-cbdc3e1bf9da09911ba353bcd20c6709bda43893.tar.bz2
[clang-tidy][NFC] Fix cppcoreguidelines-init-variables findings
Fix issues found by clang-tidy in clang-tidy source directory.
Diffstat (limited to 'clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp b/clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
index 022ac10..3fb2e8d 100644
--- a/clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
+++ b/clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
@@ -143,7 +143,7 @@ void IncludeOrderPPCallbacks::EndOfMainFile() {
// block.
for (unsigned BI = 0, BE = Blocks.size() - 1; BI != BE; ++BI) {
// Find the first include that's not in the right position.
- unsigned I, E;
+ unsigned I = 0, E = 0;
for (I = Blocks[BI], E = Blocks[BI + 1]; I != E; ++I)
if (IncludeIndices[I] != I)
break;