[style] clang-format all c++ code (#9305)

- sh build-support/clang-format.sh  to  clang-format all c++ code
This commit is contained in:
chenlinzhong
2022-04-29 16:14:22 +08:00
committed by GitHub
parent 201cd207f9
commit c9961c9bb9
499 changed files with 5917 additions and 5910 deletions

View File

@ -492,7 +492,7 @@ bool StringFunctions::set_re2_options(const StringVal& match_parameter, std::str
// The caller owns the returned regex. Returns nullptr if the pattern could not be compiled.
re2::RE2* StringFunctions::compile_regex(const StringVal& pattern, std::string* error_str,
const StringVal& match_parameter) {
const StringVal& match_parameter) {
re2::StringPiece pattern_sp(reinterpret_cast<char*>(pattern.ptr), pattern.len);
re2::RE2::Options options;
// Disable error logging in case e.g. every row causes an error
@ -515,7 +515,7 @@ re2::RE2* StringFunctions::compile_regex(const StringVal& pattern, std::string*
return nullptr;
}
return re;
}
}
void StringFunctions::regexp_prepare(FunctionContext* context,
FunctionContext::FunctionStateScope scope) {