From cc6e04b4572180596ae25001d4a1b99884030a62 Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Thu, 10 Dec 2020 01:10:36 +0100 Subject: Fixed a bunch of clang warnings. (#5637) --- src/expr/dtype.cpp | 2 +- src/expr/lazy_proof_chain.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/expr') diff --git a/src/expr/dtype.cpp b/src/expr/dtype.cpp index 657298491..4c93e5727 100644 --- a/src/expr/dtype.cpp +++ b/src/expr/dtype.cpp @@ -171,7 +171,7 @@ bool DType::resolve(const std::map& resolutions, d_involvesExt = false; d_involvesUt = false; - for (const std::shared_ptr ctor : d_constructors) + for (const std::shared_ptr& ctor : d_constructors) { if (ctor->involvesExternalType()) { diff --git a/src/expr/lazy_proof_chain.cpp b/src/expr/lazy_proof_chain.cpp index c58bb78e4..665e68d28 100644 --- a/src/expr/lazy_proof_chain.cpp +++ b/src/expr/lazy_proof_chain.cpp @@ -41,7 +41,7 @@ const std::map> LazyCDProofChain::getLinks() const { std::map> links; - for (const std::pair& link : d_gens) + for (const std::pair& link : d_gens) { Assert(link.second); std::shared_ptr pfn = link.second->getProofFor(link.first); @@ -269,7 +269,7 @@ void LazyCDProofChain::addLazyStep(Node expected, std::shared_ptr pfn = pg->getProofFor(expected); std::vector allowedLeaves{assumptions.begin(), assumptions.end()}; // add all current links in the chain - for (const std::pair& link : d_gens) + for (const std::pair& link : d_gens) { allowedLeaves.push_back(link.first); } -- cgit v1.2.3