oneraynyday created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
oneraynyday requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89770
Files:
clang-tools-extra/clang-cast/Matcher.h
Index: clang-tools-extra/clang-cast/Matcher.h
===================================================================
--- clang-tools-extra/clang-cast/Matcher.h
+++ clang-tools-extra/clang-cast/Matcher.h
@@ -169,7 +169,9 @@
// TODO: Is this okay to do?
Matcher::~Matcher() {
if (PublishSummary) {
- for (auto const &[CXXCastKind, Freq] : Statistics) {
+ for (const auto &Pair : Statistics) {
+ const auto &CXXCastKind = Pair.first;
+ const auto &Freq = Pair.second;
if (!Freq)
continue;
llvm::errs() << "The type " << cppCastToString(CXXCastKind)
Index: clang-tools-extra/clang-cast/Matcher.h
===================================================================
--- clang-tools-extra/clang-cast/Matcher.h
+++ clang-tools-extra/clang-cast/Matcher.h
@@ -169,7 +169,9 @@
// TODO: Is this okay to do?
Matcher::~Matcher() {
if (PublishSummary) {
- for (auto const &[CXXCastKind, Freq] : Statistics) {
+ for (const auto &Pair : Statistics) {
+ const auto &CXXCastKind = Pair.first;
+ const auto &Freq = Pair.second;
if (!Freq)
continue;
llvm::errs() << "The type " << cppCastToString(CXXCastKind)
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits