diff options
| author | vvvv <[email protected]> | 2025-10-09 12:25:18 +0300 |
|---|---|---|
| committer | vvvv <[email protected]> | 2025-10-09 12:57:17 +0300 |
| commit | cb77d014972b2cdb27d2e6d979fc3a2772b27ad4 (patch) | |
| tree | 7f3bcd8ce71c6bd0f3ccc11e31b9f665475b819e /yql/essentials/minikql/jsonpath/parser/parser.cpp | |
| parent | d58a8990d353b051c27e1069141117fdfde64358 (diff) | |
YQL-20086 minikql
commit_hash:e96f7390db5fcbe7e9f64f898141a263ad522daa
Diffstat (limited to 'yql/essentials/minikql/jsonpath/parser/parser.cpp')
| -rw-r--r-- | yql/essentials/minikql/jsonpath/parser/parser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yql/essentials/minikql/jsonpath/parser/parser.cpp b/yql/essentials/minikql/jsonpath/parser/parser.cpp index 27678ba3928..a64c5bcf0ab 100644 --- a/yql/essentials/minikql/jsonpath/parser/parser.cpp +++ b/yql/essentials/minikql/jsonpath/parser/parser.cpp @@ -12,7 +12,7 @@ #include <google/protobuf/message.h> #if defined(_tsan_enabled_) -#include <util/system/mutex.h> + #include <util/system/mutex.h> #endif #include <util/string/strip.h> @@ -25,7 +25,7 @@ using namespace NYql; TMutex SanitizerJsonPathTranslationMutex; #endif -class TParseErrorsCollector : public NProtoAST::IErrorCollector { +class TParseErrorsCollector: public NProtoAST::IErrorCollector { public: TParseErrorsCollector(TIssues& issues, size_t maxErrors) : IErrorCollector(maxErrors) @@ -46,7 +46,7 @@ private: TIssues& Issues_; }; -} +} // namespace namespace NYql::NJsonPath { @@ -60,9 +60,9 @@ const TAstNodePtr ParseJsonPathAst(const TStringBuf path, TIssues& issues, size_ google::protobuf::Arena arena; const google::protobuf::Message* rawAst = nullptr; { - #if defined(_tsan_enabled_) +#if defined(_tsan_enabled_) TGuard<TMutex> guard(SanitizerJsonPathTranslationMutex); - #endif +#endif NProtoAST::TProtoASTBuilder3<NALP::JsonPathParser, NALP::JsonPathLexer> builder(path, "JsonPath", &arena); TParseErrorsCollector collector(issues, maxParseErrors); rawAst = builder.BuildAST(collector); @@ -105,4 +105,4 @@ const TJsonPathPtr ParseJsonPath(const TStringBuf path, TIssues& issues, size_t return PackBinaryJsonPath(ast); } -} +} // namespace NYql::NJsonPath |
