From 8e861728a0512c08ef9907ab708d02309736a796 Mon Sep 17 00:00:00 2001 From: grzadr Date: Thu, 22 Feb 2018 09:46:54 +0100 Subject: [PATCH] Fix indentation in line 2916 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling with -Wmisleading-indentation triggers warning: /data/Git/spdlog/tests/catch.hpp: In member function ‘bool Catch::TestSpec::Filter::matches(const Catch::TestCaseInfo&) const’: /data/Git/spdlog/tests/catch.hpp:2913:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for( std::vector >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it ) ^~~ /data/Git/spdlog/tests/catch.hpp:2916:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ return true; ^~~~~~ --- tests/catch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/catch.hpp b/tests/catch.hpp index 925c6bff..5585d1e3 100644 --- a/tests/catch.hpp +++ b/tests/catch.hpp @@ -2913,7 +2913,7 @@ namespace Catch { for( std::vector >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it ) if( !(*it)->matches( testCase ) ) return false; - return true; + return true; } };