Skip to content

Commit c984e62

Browse files
committed
chore: Use std::span for include paths in preprocessor
Signed-off-by: Roberto Raggi <[email protected]>
1 parent 0629fbe commit c984e62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parser/cxx/preprocessor.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,15 +1050,15 @@ struct Preprocessor::Private {
10501050

10511051
[[nodiscard]] auto userHeaderSearchPaths() -> SearchPaths {
10521052
std::vector<std::span<const std::string>> paths;
1053-
paths.push_back(currentPaths);
1054-
paths.push_back(d->quoteIncludePaths_);
1055-
paths.push_back(d->systemIncludePaths_);
1053+
paths.push_back(std::span(currentPaths));
1054+
paths.push_back(std::span(d->quoteIncludePaths_));
1055+
paths.push_back(std::span(d->systemIncludePaths_));
10561056
return paths;
10571057
}
10581058

10591059
[[nodiscard]] auto systemHeaderSearchPaths() -> SearchPaths {
10601060
std::vector<std::span<const std::string>> paths;
1061-
paths.push_back(d->systemIncludePaths_);
1061+
paths.push_back(std::span(d->systemIncludePaths_));
10621062
return paths;
10631063
}
10641064

0 commit comments

Comments
 (0)