[all-commits] [llvm/llvm-project] 34e63b: [clang-doc] Prevent copying loop variables (NFC)
Jie Fu (傅杰) via All-commits
all-commits at lists.llvm.org
Thu May 22 18:01:31 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34e63be925cc91d13f8c57c42664d9a678328f7c
https://github.com/llvm/llvm-project/commit/34e63be925cc91d13f8c57c42664d9a678328f7c
Author: Jie Fu <jiefu at tencent.com>
Date: 2025-05-23 (Fri, 23 May 2025)
Changed paths:
M clang-tools-extra/clang-doc/HTMLMustacheGenerator.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list