reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -24,7 +24,7 @@ namespace oceanbase {
namespace sql {
struct ObMPParseStat {
public:
public:
ObMPParseStat() : parse_fail_(false), fail_ret_(common::OB_SUCCESS), fail_query_idx_(-1)
{}
void reset()
@ -43,7 +43,7 @@ struct PreParseResult {
};
class ObParser {
public:
public:
explicit ObParser(common::ObIAllocator& allocator, ObSQLMode mode,
common::ObCollationType conn_collation = common::CS_TYPE_UTF8MB4_GENERAL_CI);
virtual ~ObParser();
@ -78,16 +78,16 @@ class ObParser {
int prepare_parse(const common::ObString& query, void* ns, ParseResult& parse_result);
static int pre_parse(const common::ObString& stmt, PreParseResult& res);
private:
private:
static int scan_trace_id(const char* ptr, int64_t len, int32_t& pos, common::ObString& trace_id);
static bool is_trace_id_end(char ch);
static bool is_space(char ch);
// types and constants
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObParser);
// function members
private:
private:
// data members
common::ObIAllocator* allocator_;
// when sql_mode = "ANSI_QUOTES", Treat " as an identifier quote character