Merge "Update clang version to clang-r498229" into main

This commit is contained in:
Yabin Cui
2023-07-10 16:28:42 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -15,5 +15,5 @@
# limitations under the License.
export LLVM_BUILD_HOST_TOOLS=true
export LLVM_PREBUILTS_VERSION=clang-r487747c
export LLVM_PREBUILTS_VERSION=clang-r498229
export LLVM_RELEASE_VERSION=17

View File

@@ -92,7 +92,9 @@ llvm::Optional<int> ParseInt(const std::string &s) {
bool ParseBool(const std::string &s) {
std::string value(s);
std::transform(value.begin(), value.end(), value.begin(), std::tolower);
std::transform(value.begin(), value.end(), value.begin(),
[](unsigned char c){ return std::tolower(c); }
);
return (value == "true" || value == "on" || value == "1");
}