Skip to content

Commit 587fe9b

Browse files
committed
add const
1 parent d9e8cbd commit 587fe9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ void FileOptionsBaseProvider::addRawFileOptions(
342342
StringRef RootPath = llvm::sys::path::parent_path(AbsolutePath);
343343
auto MemorizedConfigFile =
344344
[this, &RootPath](StringRef CurrentPath) -> std::optional<OptionsSource> {
345-
auto Iter = CachedOptions.Memorized.find(CurrentPath);
345+
const auto Iter = CachedOptions.Memorized.find(CurrentPath);
346346
if (Iter != CachedOptions.Memorized.end())
347347
return CachedOptions.Storage[Iter->second];
348348
std::optional<OptionsSource> OptionsSource = tryReadConfigFile(CurrentPath);

0 commit comments

Comments
 (0)