Add -Wmissing-declarations to the SelfTest project

This required some clean-up in our test files
This commit is contained in:
Martin Hořeňovský
2018-07-02 11:13:07 +02:00
parent 4846ad59e1
commit e1d81174db
7 changed files with 56 additions and 31 deletions

View File

@@ -21,24 +21,17 @@ namespace Catch
} // namespace Catch
inline Catch::TrackerContext& C_A_T_C_H_Context() {
return Catch::TrackerContext::instance();
}
// -------------------
#include "catch.hpp"
using namespace Catch;
//inline void testCase( Catch::LocalContext const& C_A_T_C_H_Context ) {
//
// REQUIRE( C_A_T_C_H_Context().i() == 42 );
//}
namespace {
Catch::TestCaseTracking::NameAndLocation makeNAL( std::string const& name ) {
return Catch::TestCaseTracking::NameAndLocation( name, Catch::SourceLineInfo("",0) );
}
}
TEST_CASE( "Tracker" ) {