Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Removed __FUNCTION__ from SourceLineInfo

Commit
a4e088c999439e9ec0fe3a4205b7520fbf258a5f
Author
Phil Nash ·
Parents
2a1e8bfc6ed3

Files · Download .tar.gz

Changes

 include/internal/catch_common.h                     | 6 ------
 include/internal/catch_notimplemented_exception.hpp | 2 --
 2 files changed, 8 deletions(-)

diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h
index cac5d112..48504f15 100644
--- a/include/internal/catch_common.h
+++ b/include/internal/catch_common.h
@@ -109,11 +109,6 @@ namespace Catch {
         :   file( _file ),
             line( _line )
         {}
-        SourceLineInfo( const std::string& _function, const std::string& _file, std::size_t _line )
-        :   function( _function ),
-            file( _file ),
-            line( _line )
-        {}
         SourceLineInfo( const SourceLineInfo& other )
         :   file( other.file ),
             line( other.line )
@@ -126,7 +121,6 @@ namespace Catch {
             return file.empty();
         }
         
-        std::string function;
         std::string file;
         std::size_t line;        
     };
diff --git a/include/internal/catch_notimplemented_exception.hpp b/include/internal/catch_notimplemented_exception.hpp
index b301fb1b..f051ed3d 100644
--- a/include/internal/catch_notimplemented_exception.hpp
+++ b/include/internal/catch_notimplemented_exception.hpp
@@ -17,8 +17,6 @@ namespace Catch {
     :   m_lineInfo( lineInfo ) {
         std::ostringstream oss;
         oss << lineInfo << "function ";
-        if( !lineInfo.function.empty() )
-            oss << lineInfo.function << " ";
         oss << "not implemented";
         m_what = oss.str();
     }