Skip to content

Commit

Permalink
Use std::all_of().
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Dec 21, 2023
1 parent 9375a43 commit 8b01233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Fast Ninja is written in C++20 and should run on any modern platform. It also co

To build it, you need a C++20 compiler and [cmake](https://cmake.org). To run the tests, you need [Python](https://www.python.org) and [nihtest](https://github.com/nih-at/nihtest).

[![Github Actions Build Status](https://github.com/T-Pau/fast-ninja/workflows/build/badge.svg)](https://github.com/T-Pau/fast-ninja/actions?query=workflow%3Abuild)
[![CMake on multiple platforms](https://github.com/T-Pau/fast-ninja/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/T-Pau/fast-ninja/actions/workflows/cmake-multi-platform.yml)
4 changes: 2 additions & 2 deletions src/Tokenizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ Tokenizer::CharacterType Tokenizer::type(int c) {
}

bool Tokenizer::is_braced_variable(std::string name) {
return std::ranges::all_of(name.begin(), name.end(), [](char c) { return is_braced_variable(c); });
return std::all_of(name.begin(), name.end(), [](char c) { return is_braced_variable(c); });
}

bool Tokenizer::is_simple_variable(std::string name) {
return std::ranges::all_of(name.begin(), name.end(), [](char c) { return is_simple_variable(c); });
return std::all_of(name.begin(), name.end(), [](char c) { return is_simple_variable(c); });
}

Tokenizer::Token Tokenizer::tokenize_braced_variable() {
Expand Down

0 comments on commit 8b01233

Please sign in to comment.