Fixed formatting
This commit is contained in:
@@ -332,7 +332,7 @@ void generator::generate_participant(
|
||||
|
||||
auto participant_name = util::path_to_url(std::filesystem::relative(
|
||||
std::filesystem::path{file_path}, relative_to)
|
||||
.string());
|
||||
.string());
|
||||
|
||||
ostr << "participant \"" << render_name(participant_name) << "\" as "
|
||||
<< fmt::format("C_{:022}", file_id);
|
||||
|
||||
@@ -2081,7 +2081,7 @@ std::string translation_unit_visitor::make_lambda_name(
|
||||
const auto file_column = source_manager().getSpellingColumnNumber(location);
|
||||
const std::string file_name = util::path_to_url(std::filesystem::relative(
|
||||
source_manager().getFilename(location).str(), config().relative_to())
|
||||
.string());
|
||||
.string());
|
||||
|
||||
if (context().caller_id() != 0 &&
|
||||
get_participant(context().caller_id()).has_value()) {
|
||||
|
||||
@@ -311,8 +311,8 @@ std::string path_to_url(const std::filesystem::path &p)
|
||||
#ifdef _MSC_VER
|
||||
// On Windows convert the root path using its drive letter, e.g.:
|
||||
// C:\A\B\include.h -> /c/A/B/include.h
|
||||
if(p.root_name().string().size() > 1) {
|
||||
if(p.is_absolute()) {
|
||||
if (p.root_name().string().size() > 1) {
|
||||
if (p.is_absolute()) {
|
||||
path_tokens.push_back(std::string{
|
||||
std::tolower(p.root_name().string().at(0), std::locale())});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user