Skip to content

Commit 3c29681

Browse files
committed
prepare_inputs: the bareword vocabulary precedes the comment of unknown_tokens
1 parent 8766d24 commit 3c29681

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/build/prepare_inputs.cppm‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,6 @@ inline bool uses_layer(const std::string& predicate) {
471471
[](auto const& k) { return is_cfg_late_layer_key(k); });
472472
}
473473

474-
// Tokens outside the vocabulary. A predicate naming one of these used to
475-
// evaluate to false in silence, which is indistinguishable from a predicate
476-
// that correctly did not apply — so `[target.'cfg(c-abi = "musl")'.build]` was
477-
// dropped without a word for the entire time docs/14 documented it.
478474
// The systems the rows name (built-in and defined), and the family word.
479475
inline std::vector<std::string> system_barewords() {
480476
std::set<std::string> systems;
@@ -489,6 +485,10 @@ inline bool known_bareword(std::string_view w) {
489485
return std::ranges::any_of(mcpp::toolchain::target::rows(), [&](auto const* r) { return r->os == w; });
490486
}
491487

488+
// Tokens outside the vocabulary. A predicate naming one of these used to
489+
// evaluate to false in silence, which is indistinguishable from a predicate
490+
// that correctly did not apply — so `[target.'cfg(c-abi = "musl")'.build]` was
491+
// dropped without a word for the entire time docs/14 documented it.
492492
inline std::vector<std::string> unknown_tokens(const std::string& predicate) {
493493
auto scan = scan_predicate(predicate);
494494
std::vector<std::string> out;

0 commit comments

Comments
 (0)