mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Moved line info in header again
This commit is contained in:
		| @@ -284,6 +284,15 @@ namespace Catch { | ||||
|  | ||||
|                 } | ||||
|             } | ||||
|             SourceLineInfo lineInfo = currentSectionInfo | ||||
|                                     ? currentSectionInfo->lineInfo | ||||
|                                     : unusedTestCaseInfo->lineInfo; | ||||
|              | ||||
|             if( !lineInfo.empty() ){ | ||||
|                 stream << getDashes() << "\n"; | ||||
|                 Colour colourGuard( Colour::FileName ); | ||||
|                 stream << lineInfo << "\n"; | ||||
|             } | ||||
|             stream << getDots() << "\n" << std::endl; | ||||
|         } | ||||
|  | ||||
| @@ -293,10 +302,6 @@ namespace Catch { | ||||
|         } | ||||
|         void printOpenHeader( std::string const& _name, SourceLineInfo const& _lineInfo = SourceLineInfo() ) { | ||||
|             stream  << getDashes() << "\n"; | ||||
|             if( !_lineInfo.empty() ){ | ||||
|                 Colour colourGuard( Colour::FileName ); | ||||
|                 stream << _lineInfo << "\n\n"; | ||||
|             } | ||||
|             { | ||||
|                 Colour colourGuard( Colour::Headers ); | ||||
|                 printUserString( _name ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash