Skip to content

Commit 1a62034

Browse files
committed
Fix formatting
1 parent c12472c commit 1a62034

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/cmake_generator.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ static std::string format(const char *format, const tsl::ordered_map<std::string
5454
return s;
5555
}
5656

57-
static std::string quoted( const std::string& str ){
58-
return "\"" + str + "\"";
57+
static std::string quoted(const std::string &str) {
58+
return "\"" + str + "\"";
5959
}
6060

61-
static std::string space_error_check( const std::string& str ){
61+
static std::string space_error_check(const std::string &str) {
6262
auto pos = str.find_last_of(' ');
63-
if ( pos != std::string::npos )
63+
if (pos != std::string::npos)
6464
return quoted(str) + " <------ !space(s)";
6565
else
66-
return quoted(str);
66+
return quoted(str);
6767
}
6868

6969
static std::vector<fs::path> expand_cmake_path(const fs::path &source_path, const fs::path &toml_dir, bool is_root_project) {
@@ -1306,7 +1306,7 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
13061306
continue;
13071307
const auto &source_path = fs::path(path) / source;
13081308
if (!fs::exists(source_path)) {
1309-
throw_target_error("Source file not found: " + space_error_check(source) );
1309+
throw_target_error("Source file not found: " + space_error_check(source));
13101310
}
13111311
}
13121312
break;

0 commit comments

Comments
 (0)