Skip to content

feature request: control output format of source location based on compiler used #289

@correaa

Description

@correaa

Currently, in HRF format, the source location is printed as file.ext(lineno):.
For example

./.././detail/test.cpp(764): error in "test_name": check a == b has failed [3 != 6]

It would be good for automated tools to have the alternative to print the source location in format more similar to source locations printed in clang and gcc (also Catch2), i.e. file.ext:lineno.
For example the modified format out would print:

./.././detail/test.cpp:764: error in "test_name": check a == b has failed [3 != 6]

Would it be possible to add this options to the format output?

(I tried editing the strings in /usr/include/boost/test/minimal.hpp and in test/impl/compiler_log_formatter.ipp:print_prefix but that didn't do it.)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions