We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e8cbd commit 587fe9bCopy full SHA for 587fe9b
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
@@ -342,7 +342,7 @@ void FileOptionsBaseProvider::addRawFileOptions(
342
StringRef RootPath = llvm::sys::path::parent_path(AbsolutePath);
343
auto MemorizedConfigFile =
344
[this, &RootPath](StringRef CurrentPath) -> std::optional<OptionsSource> {
345
- auto Iter = CachedOptions.Memorized.find(CurrentPath);
+ const auto Iter = CachedOptions.Memorized.find(CurrentPath);
346
if (Iter != CachedOptions.Memorized.end())
347
return CachedOptions.Storage[Iter->second];
348
std::optional<OptionsSource> OptionsSource = tryReadConfigFile(CurrentPath);
0 commit comments