backward-cpp icon indicating copy to clipboard operation
backward-cpp copied to clipboard

I Feel guilty but I hardcoded another "print_source_loc" formatting

Open RoyBellingan opened this issue 7 years ago • 0 comments

Just a small suggestion to add some kind of switch via a IFDEF to print from "super pretty" stack trace to the copypastable one

file:line sintax, so many program will just go to the right place.

If you deem that reasonable I will do a merge request, else in

void print_source_loc(std::ostream& os, const char* indent,

I now have

		auto fileNameClean = source_loc.filename.substr(3);
		os << indent
		   << "Source \""
		   << fileNameClean
		   << ":"
		   << source_loc.line
		   << "\"\n in "
		   << source_loc.function;
  1. So double click and most shell will select what is inside the "
  2. ??
  3. profit

RoyBellingan avatar Nov 16 '18 12:11 RoyBellingan