diff options
| author | Jie Fu <jiefu@tencent.com> | 2025-05-23 09:00:19 +0800 |
|---|---|---|
| committer | Jie Fu <jiefu@tencent.com> | 2025-05-23 09:00:19 +0800 |
| commit | 34e63be925cc91d13f8c57c42664d9a678328f7c (patch) | |
| tree | 07c764d13744d9f6f591b51c7646ac38330bb539 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | |
| parent | d6596482ef277269dd35b5ea0c0439173cba7636 (diff) | |
[clang-doc] Prevent copying loop variables (NFC)
/llvm-project/clang-tools-extra/clang-doc/HTMLMustacheGenerator.cpp:86:19:
error: loop variable '[Name, FileName]' creates a copy from type 'std::pair<llvm::StringRef, llvm::StringRef> const' [-Werror,-Wrange-loop-construct]
for (const auto [Name, FileName] : Partials)
^
/llvm-project/clang-tools-extra/clang-doc/HTMLMustacheGenerator.cpp:86:8:
note: use reference type 'std::pair<llvm::StringRef, llvm::StringRef> const &' to prevent copying
for (const auto [Name, FileName] : Partials)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&
1 error generated.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
