Commit 13970fdb authored by Pádraig Ó Conbhuí's avatar Pádraig Ó Conbhuí
Browse files

Ran formatter.

parent 789094c8
......@@ -158,7 +158,7 @@ resolve_include(std::string_view include, std::string_view source_file,
// Build the test file name and return a pointer to it.
// This uses filename_buffer as a buffer.
const auto build_file_name = [&](std::string_view search_directory) {
assert(search_directory.size() + 1 + stripped_include.size() + 1<
assert(search_directory.size() + 1 + stripped_include.size() + 1 <
filename_buffer.size());
// Add search directory
......@@ -183,7 +183,6 @@ resolve_include(std::string_view include, std::string_view source_file,
return access(file_name, F_OK) == 0;
};
// For #include "filename.hpp", look in the source file directory first.
switch (include[0]) {
case '"': // fallthrough
......@@ -193,7 +192,6 @@ resolve_include(std::string_view include, std::string_view source_file,
}
}
// For everything else, look in the supplied include directories
for (const auto &search_directory : search_directories) {
if (file_exists(build_file_name(search_directory))) {
......@@ -201,7 +199,6 @@ resolve_include(std::string_view include, std::string_view source_file,
}
}
// If nothing is found, return the original include as <filename.hpp>
stripped_include.copy(filename_buffer.begin() + 1, stripped_include.size());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment