Restored description field in SectionInfo for now - but marked it deprecated

This commit is contained in:
Phil Nash 2018-06-25 20:18:41 +01:00
parent 0f49a600b0
commit 9fb38fcc14
2 changed files with 2 additions and 2 deletions

View File

@ -187,8 +187,7 @@ void print( std::ostream& os, int const level, std::string const& title, Catch::
void print( std::ostream& os, int const level, std::string const& title, Catch::SectionInfo const& info ) {
os << ws(level ) << title << ":\n"
<< ws(level+1) << "- name: " << info.name << "\n"
<< ws(level+1) << "- description: '" << info.description << "'\n";
<< ws(level+1) << "- name: " << info.name << "\n";
print( os, level+1 , "- lineInfo", info.lineInfo );
}

View File

@ -27,6 +27,7 @@ namespace Catch {
std::string const& ) : SectionInfo( _lineInfo, _name ) {}
std::string name;
std::string description; // !Deprecated: this will always be empty
SourceLineInfo lineInfo;
};