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

@ -20,13 +20,13 @@
namespace oceanbase {
namespace sql {
class ObEndTransResolver : public ObTCLResolver {
public:
public:
explicit ObEndTransResolver(ObResolverParams& params);
virtual ~ObEndTransResolver();
virtual int resolve(const ParseNode& parse_node);
private:
private:
/* functions */
/* variables */
DISALLOW_COPY_AND_ASSIGN(ObEndTransResolver);

View File

@ -16,7 +16,7 @@
namespace oceanbase {
namespace sql {
class ObEndTransStmt : public ObTCLStmt {
public:
public:
ObEndTransStmt() : ObTCLStmt(stmt::T_END_TRANS), is_rollback_(false)
{}
virtual ~ObEndTransStmt()
@ -32,14 +32,14 @@ class ObEndTransStmt : public ObTCLStmt {
return is_rollback_;
}
private:
private:
// types and constants
// function members
private:
private:
// data members
bool is_rollback_;
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObEndTransStmt);
};

View File

@ -20,7 +20,7 @@ namespace sql {
class ObSavePointStmt;
class ObSavePointResolver : public ObStmtResolver {
public:
public:
explicit ObSavePointResolver(ObResolverParams& params) : ObStmtResolver(params)
{}
virtual ~ObSavePointResolver()
@ -28,7 +28,7 @@ class ObSavePointResolver : public ObStmtResolver {
virtual int resolve(const ParseNode& parse_tree);
int create_savepoint_stmt(ObItemType stmt_type, ObSavePointStmt*& stmt);
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObSavePointResolver);
};

View File

@ -19,7 +19,7 @@ namespace oceanbase {
namespace sql {
class ObSavePointStmt : public ObTCLStmt {
public:
public:
explicit ObSavePointStmt(stmt::StmtType type) : ObTCLStmt(type), sp_name_()
{}
virtual ~ObSavePointStmt()
@ -30,41 +30,41 @@ class ObSavePointStmt : public ObTCLStmt {
return sp_name_;
}
private:
private:
common::ObString sp_name_;
DISALLOW_COPY_AND_ASSIGN(ObSavePointStmt);
};
class ObCreateSavePointStmt : public ObSavePointStmt {
public:
public:
explicit ObCreateSavePointStmt() : ObSavePointStmt(stmt::T_CREATE_SAVEPOINT)
{}
virtual ~ObCreateSavePointStmt()
{}
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObCreateSavePointStmt);
};
class ObRollbackSavePointStmt : public ObSavePointStmt {
public:
public:
explicit ObRollbackSavePointStmt() : ObSavePointStmt(stmt::T_ROLLBACK_SAVEPOINT)
{}
virtual ~ObRollbackSavePointStmt()
{}
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObRollbackSavePointStmt);
};
class ObReleaseSavePointStmt : public ObSavePointStmt {
public:
public:
explicit ObReleaseSavePointStmt() : ObSavePointStmt(stmt::T_RELEASE_SAVEPOINT)
{}
virtual ~ObReleaseSavePointStmt()
{}
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObReleaseSavePointStmt);
};

View File

@ -20,13 +20,13 @@
namespace oceanbase {
namespace sql {
class ObStartTransResolver : public ObTCLResolver {
public:
public:
explicit ObStartTransResolver(ObResolverParams& params);
virtual ~ObStartTransResolver();
virtual int resolve(const ParseNode& parse_node);
private:
private:
/* functions */
/* variables */
DISALLOW_COPY_AND_ASSIGN(ObStartTransResolver);

View File

@ -16,7 +16,7 @@
namespace oceanbase {
namespace sql {
class ObStartTransStmt : public ObTCLStmt {
public:
public:
ObStartTransStmt();
virtual ~ObStartTransStmt();
virtual void print(FILE* fp, int32_t level, int32_t index);
@ -30,14 +30,14 @@ class ObStartTransStmt : public ObTCLStmt {
}
TO_STRING_KV(N_STMT_TYPE, ((int)stmt_type_), K_(read_only), K_(with_consistent_snapshot));
private:
private:
// types and constants
private:
private:
// disallow copy
ObStartTransStmt(const ObStartTransStmt& other);
ObStartTransStmt& operator=(const ObStartTransStmt& other);
// function members
private:
private:
// data members
bool with_consistent_snapshot_;
bool read_only_;

View File

@ -19,7 +19,7 @@ namespace oceanbase {
namespace sql {
class ObTCLResolver : public ObStmtResolver {
public:
public:
explicit ObTCLResolver(ObResolverParams& params);
virtual ~ObTCLResolver();
@ -28,7 +28,7 @@ class ObTCLResolver : public ObStmtResolver {
const common::ObIArray<ObSubQueryInfo>& subquery_info, const ObStmtScope upper_scope);
virtual int resolve_columns(ObRawExpr*& expr, common::ObArray<ObQualifiedName>& columns);
private:
private:
/* functions */
/* variables */
DISALLOW_COPY_AND_ASSIGN(ObTCLResolver);

View File

@ -18,7 +18,7 @@
namespace oceanbase {
namespace sql {
class ObTCLStmt : public ObStmt, public ObICmd {
public:
public:
ObTCLStmt(common::ObIAllocator* name_pool, stmt::StmtType type) : ObStmt(name_pool, type)
{}
explicit ObTCLStmt(stmt::StmtType type) : ObStmt(type)
@ -30,7 +30,7 @@ class ObTCLStmt : public ObStmt, public ObICmd {
return get_stmt_type();
}
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObTCLStmt);
};
} // namespace sql