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 /clang/lib/Lex/ModuleMap.cpp | |
parent | d6596482ef277269dd35b5ea0c0439173cba7636 (diff) | |
download | llvm-34e63be925cc91d13f8c57c42664d9a678328f7c.zip llvm-34e63be925cc91d13f8c57c42664d9a678328f7c.tar.gz llvm-34e63be925cc91d13f8c57c42664d9a678328f7c.tar.bz2 |
[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 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions