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

@ -38,14 +38,14 @@ struct SqlAndError {
int64_t expect_error;
};
class TestResolver : public TestSqlUtils, public ::testing::Test {
public:
public:
TestResolver();
virtual ~TestResolver()
{}
virtual void SetUp();
virtual void TearDown();
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestResolver);
};

View File

@ -24,21 +24,21 @@ using namespace oceanbase::common;
using namespace oceanbase::sql;
class TestRawExprCanonicalizer : public ::testing::Test {
public:
public:
TestRawExprCanonicalizer();
virtual ~TestRawExprCanonicalizer();
virtual void SetUp();
virtual void TearDown();
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestRawExprCanonicalizer);
protected:
protected:
// function members
void canon(const char* expr, const char*& canon_expr);
protected:
protected:
// data members
};

View File

@ -32,7 +32,7 @@ namespace test {
})
class TestRawExprToStr : public ::testing::Test {
public:
public:
TestRawExprToStr()
{}
virtual ~TestRawExprToStr()
@ -42,7 +42,7 @@ class TestRawExprToStr : public ::testing::Test {
virtual void TearDown()
{}
private:
private:
// disallow copy and assign
TestRawExprToStr(const TestRawExprToStr& other);
TestRawExprToStr& operator=(const TestRawExprToStr& ohter);

View File

@ -18,19 +18,19 @@ using namespace oceanbase::common;
using namespace oceanbase::sql;
class TestRawExprPrintVisitor : public ::testing::Test {
public:
public:
TestRawExprPrintVisitor();
virtual ~TestRawExprPrintVisitor();
virtual void SetUp();
virtual void TearDown();
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestRawExprPrintVisitor);
protected:
protected:
// function members
protected:
protected:
// data members
};

View File

@ -25,21 +25,21 @@ using namespace oceanbase::lib;
using namespace oceanbase;
class TestRawExprResolver : public ::testing::Test {
public:
public:
TestRawExprResolver();
virtual ~TestRawExprResolver();
virtual void SetUp();
virtual void TearDown();
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestRawExprResolver);
protected:
protected:
// function members
void resolve(const char* expr, const char*& json_expr);
protected:
protected:
// data members
};

View File

@ -32,7 +32,7 @@ namespace test {
})
class TestRawExprToStr : public ::testing::Test {
public:
public:
TestRawExprToStr()
{}
virtual ~TestRawExprToStr()
@ -42,7 +42,7 @@ class TestRawExprToStr : public ::testing::Test {
virtual void TearDown()
{}
private:
private:
// disallow copy and assign
TestRawExprToStr(const TestRawExprToStr& other);
TestRawExprToStr& operator=(const TestRawExprToStr& ohter);

View File

@ -33,7 +33,7 @@ using namespace oceanbase::sql;
#define BUF_LEN 102400
namespace test {
class TestRawExpr : public TestSqlUtils, public ::testing::Test {
public:
public:
TestRawExpr();
virtual ~TestRawExpr();
virtual void SetUp();
@ -41,17 +41,17 @@ class TestRawExpr : public TestSqlUtils, public ::testing::Test {
ObArenaAllocator allocator;
ObRawExprFactory expr_factory_;
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestRawExpr);
protected:
protected:
// function members
int get_raw_expr(const char* expr, ObRawExpr*& raw_expr, const char*& json_expr);
int get_result_tree(const char* sql, ParseResult& parse_result, ObIAllocator& allocator);
void resolver(const char* expr, const char*& json_expr);
protected:
protected:
// data members
};

View File

@ -37,14 +37,14 @@ namespace test {
const char* SQL_DIR = "sql";
const char* RESULT_DIR = "result";
class TestResolver : public TestSqlUtils, public ::testing::Test {
public:
public:
TestResolver();
virtual ~TestResolver()
{}
virtual void SetUp();
virtual void TearDown();
protected:
protected:
void do_equal_test();
void do_stmt_copy_test();
void do_padding_test();
@ -56,7 +56,7 @@ class TestResolver : public TestSqlUtils, public ::testing::Test {
bool is_show_sql(const ParseNode& node) const;
static void get_index_name(std::string& str, const ObTableSchema& idx_schema);
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestResolver);
};

View File

@ -20,13 +20,13 @@ using namespace oceanbase::lib;
using namespace oceanbase;
class TestSqlBitSet : public ::testing::Test {
public:
public:
TestSqlBitSet();
virtual ~TestSqlBitSet();
virtual void SetUp();
virtual void TearDown();
private:
private:
DISALLOW_COPY_AND_ASSIGN(TestSqlBitSet);
};