Merge pull request #161 from hyrise/mrks/clang11

Make clang-11 ready
This commit is contained in:
mrks 2020-10-19 18:15:58 +02:00 committed by GitHub
commit 33c00133f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 13 deletions

View File

@ -30,7 +30,7 @@ namespace hsql {
// Example: "CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)" // Example: "CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)"
struct CreateStatement : SQLStatement { struct CreateStatement : SQLStatement {
CreateStatement(CreateType type); CreateStatement(CreateType type);
virtual ~CreateStatement(); ~CreateStatement() override;
CreateType type; CreateType type;
bool ifNotExists; // default: false bool ifNotExists; // default: false

View File

@ -11,7 +11,7 @@ namespace hsql {
// Note: if (expr == nullptr) => delete all rows (truncate) // Note: if (expr == nullptr) => delete all rows (truncate)
struct DeleteStatement : SQLStatement { struct DeleteStatement : SQLStatement {
DeleteStatement(); DeleteStatement();
virtual ~DeleteStatement(); ~DeleteStatement() override;
char* schema; char* schema;
char* tableName; char* tableName;

View File

@ -19,7 +19,7 @@ namespace hsql {
struct DropStatement : SQLStatement { struct DropStatement : SQLStatement {
DropStatement(DropType type); DropStatement(DropType type);
virtual ~DropStatement(); ~DropStatement() override;
DropType type; DropType type;
bool ifExists; bool ifExists;

View File

@ -9,7 +9,7 @@ namespace hsql {
// Example: "EXECUTE ins_prep(100, "test", 2.3);" // Example: "EXECUTE ins_prep(100, "test", 2.3);"
struct ExecuteStatement : SQLStatement { struct ExecuteStatement : SQLStatement {
ExecuteStatement(); ExecuteStatement();
virtual ~ExecuteStatement(); ~ExecuteStatement() override;
char* name; char* name;
std::vector<Expr*>* parameters; std::vector<Expr*>* parameters;

View File

@ -8,7 +8,7 @@ namespace hsql {
// Represents SQL Export statements. // Represents SQL Export statements.
struct ExportStatement : SQLStatement { struct ExportStatement : SQLStatement {
ExportStatement(ImportType type); ExportStatement(ImportType type);
virtual ~ExportStatement(); ~ExportStatement() override;
// ImportType is used for compatibility reasons // ImportType is used for compatibility reasons
ImportType type; ImportType type;

View File

@ -14,7 +14,7 @@ namespace hsql {
// Represents SQL Import statements. // Represents SQL Import statements.
struct ImportStatement : SQLStatement { struct ImportStatement : SQLStatement {
ImportStatement(ImportType type); ImportStatement(ImportType type);
virtual ~ImportStatement(); ~ImportStatement() override;
ImportType type; ImportType type;
char* filePath; char* filePath;

View File

@ -14,7 +14,7 @@ namespace hsql {
// Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)" // Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)"
struct InsertStatement : SQLStatement { struct InsertStatement : SQLStatement {
InsertStatement(InsertType type); InsertStatement(InsertType type);
virtual ~InsertStatement(); ~InsertStatement() override;
InsertType type; InsertType type;
char* schema; char* schema;

View File

@ -9,7 +9,7 @@ namespace hsql {
// Example: PREPARE test FROM 'SELECT * FROM test WHERE a = ?;' // Example: PREPARE test FROM 'SELECT * FROM test WHERE a = ?;'
struct PrepareStatement : SQLStatement { struct PrepareStatement : SQLStatement {
PrepareStatement(); PrepareStatement();
virtual ~PrepareStatement(); ~PrepareStatement() override;
char* name; char* name;

View File

@ -67,7 +67,7 @@ namespace hsql {
// Representation of a full SQL select statement. // Representation of a full SQL select statement.
struct SelectStatement : SQLStatement { struct SelectStatement : SQLStatement {
SelectStatement(); SelectStatement();
virtual ~SelectStatement(); ~SelectStatement() override;
TableRef* fromTable; TableRef* fromTable;
bool selectDistinct; bool selectDistinct;

View File

@ -16,7 +16,7 @@ namespace hsql {
struct ShowStatement : SQLStatement { struct ShowStatement : SQLStatement {
ShowStatement(ShowType type); ShowStatement(ShowType type);
virtual ~ShowStatement(); ~ShowStatement() override;
ShowType type; ShowType type;
char* schema; char* schema;

View File

@ -15,7 +15,7 @@ namespace hsql {
struct TransactionStatement : SQLStatement { struct TransactionStatement : SQLStatement {
TransactionStatement(TransactionCommand command); TransactionStatement(TransactionCommand command);
virtual ~TransactionStatement(); ~TransactionStatement() override;
TransactionCommand command; TransactionCommand command;
}; };

View File

@ -14,7 +14,7 @@ namespace hsql {
// Represents SQL Update statements. // Represents SQL Update statements.
struct UpdateStatement : SQLStatement { struct UpdateStatement : SQLStatement {
UpdateStatement(); UpdateStatement();
virtual ~UpdateStatement(); ~UpdateStatement() override;
// TODO: switch to char* instead of TableRef // TODO: switch to char* instead of TableRef
TableRef* table; TableRef* table;