diff options
| author | vitya-smirnov <[email protected]> | 2025-10-07 09:34:39 +0300 |
|---|---|---|
| committer | vitya-smirnov <[email protected]> | 2025-10-07 09:52:14 +0300 |
| commit | babe7533f18c11be1f8a195ed2324d2d9a89436a (patch) | |
| tree | 45b7627141bf5a52b45a3d61fd1fbdd564bb8dd9 /yql/essentials/sql/v1/proto_parser/proto_parser.cpp | |
| parent | 8fe7cfe254fde2772477a8933a163b5f303716b4 (diff) | |
YQL-20086 sql/v1
commit_hash:55bc611cdaa0d8a0fc3c4c7708ed9f17cc4976cf
Diffstat (limited to 'yql/essentials/sql/v1/proto_parser/proto_parser.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/proto_parser/proto_parser.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/yql/essentials/sql/v1/proto_parser/proto_parser.cpp b/yql/essentials/sql/v1/proto_parser/proto_parser.cpp index 5fbef92ca52..bba5e729635 100644 --- a/yql/essentials/sql/v1/proto_parser/proto_parser.cpp +++ b/yql/essentials/sql/v1/proto_parser/proto_parser.cpp @@ -4,7 +4,6 @@ #include <yql/essentials/parser/proto_ast/collect_issues/collect_issues.h> - #include <yql/essentials/sql/v1/proto_parser/antlr3/proto_parser.h> #include <yql/essentials/sql/v1/proto_parser/antlr3_ansi/proto_parser.h> #include <yql/essentials/sql/v1/proto_parser/antlr4/proto_parser.h> @@ -13,16 +12,15 @@ #include <util/generic/algorithm.h> #if defined(_tsan_enabled_) -#include <util/system/mutex.h> + #include <util/system/mutex.h> #endif using namespace NYql; namespace NSQLTranslationV1 { - #if defined(_tsan_enabled_) - TMutex SanitizerSQLTranslationMutex; +TMutex SanitizerSQLTranslationMutex; #endif namespace { @@ -31,16 +29,16 @@ void ReportError(NAST::IErrorCollector& err, const TString& name) { err.Error(0, 0, TStringBuilder() << "Parser " << name << " is not supported"); } -} +} // namespace google::protobuf::Message* SqlAST(const TParsers& parsers, const TString& query, const TString& queryName, TIssues& err, - size_t maxErrors, bool ansiLexer, bool anlr4Parser, google::protobuf::Arena* arena) { + size_t maxErrors, bool ansiLexer, bool anlr4Parser, google::protobuf::Arena* arena) { NSQLTranslation::TErrorCollectorOverIssues collector(err, maxErrors, queryName); return SqlAST(parsers, query, queryName, collector, ansiLexer, anlr4Parser, arena); } google::protobuf::Message* SqlAST(const TParsers& parsers, const TString& query, const TString& queryName, NAST::IErrorCollector& err, - bool ansiLexer, bool anlr4Parser, google::protobuf::Arena* arena) { + bool ansiLexer, bool anlr4Parser, google::protobuf::Arena* arena) { YQL_ENSURE(arena); #if defined(_tsan_enabled_) TGuard<TMutex> grd(SanitizerSQLTranslationMutex); |
