mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Run pre-commit on merged binpac code
This commit is contained in:
parent
8a7c6df278
commit
137e8bddc9
4 changed files with 9 additions and 18 deletions
|
@ -25,8 +25,7 @@ public:
|
||||||
virtual void Prepare() = 0;
|
virtual void Prepare() = 0;
|
||||||
|
|
||||||
// Generate declarations out of the "binpac" namespace
|
// Generate declarations out of the "binpac" namespace
|
||||||
virtual void GenExternDeclaration(Output* out_h) { /* do nothing */
|
virtual void GenExternDeclaration(Output* out_h) { /* do nothing */ }
|
||||||
}
|
|
||||||
|
|
||||||
// Generate declarations before definition of classes
|
// Generate declarations before definition of classes
|
||||||
virtual void GenForwardDeclaration(Output* out_h) = 0;
|
virtual void GenForwardDeclaration(Output* out_h) = 0;
|
||||||
|
@ -67,8 +66,7 @@ public:
|
||||||
|
|
||||||
void Prepare() override;
|
void Prepare() override;
|
||||||
void GenExternDeclaration(Output* out_h) override;
|
void GenExternDeclaration(Output* out_h) override;
|
||||||
void GenForwardDeclaration(Output* out_h) override { /* do nothing */
|
void GenForwardDeclaration(Output* out_h) override { /* do nothing */ }
|
||||||
}
|
|
||||||
void GenCode(Output* out_h, Output* out_cc) override;
|
void GenCode(Output* out_h, Output* out_cc) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -144,15 +144,11 @@ public:
|
||||||
|
|
||||||
void Prepare(Env* env) override;
|
void Prepare(Env* env) override;
|
||||||
|
|
||||||
void GenPubDecls(Output* out, Env* env) override { /* nothing */
|
void GenPubDecls(Output* out, Env* env) override { /* nothing */ }
|
||||||
}
|
void GenPrivDecls(Output* out, Env* env) override { /* nothing */ }
|
||||||
void GenPrivDecls(Output* out, Env* env) override { /* nothing */
|
|
||||||
}
|
|
||||||
|
|
||||||
void GenInitCode(Output* out, Env* env) override { /* nothing */
|
void GenInitCode(Output* out, Env* env) override { /* nothing */ }
|
||||||
}
|
void GenCleanUpCode(Output* out, Env* env) override { /* nothing */ }
|
||||||
void GenCleanUpCode(Output* out, Env* env) override { /* nothing */
|
|
||||||
}
|
|
||||||
void GenParseCode(Output* out, Env* env) override;
|
void GenParseCode(Output* out, Env* env) override;
|
||||||
|
|
||||||
int StaticSize(Env* env, int offset) const override;
|
int StaticSize(Env* env, int offset) const override;
|
||||||
|
|
|
@ -102,8 +102,7 @@ public:
|
||||||
|
|
||||||
void AddField(Field* f);
|
void AddField(Field* f);
|
||||||
|
|
||||||
void AddCheck(Expr* expr) { /* TODO */
|
void AddCheck(Expr* expr) { /* TODO */ }
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool DefineValueVar() const = 0;
|
virtual bool DefineValueVar() const = 0;
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ class ParseVarField : public Field {
|
||||||
public:
|
public:
|
||||||
ParseVarField(int is_class_member, ID* id, Type* type)
|
ParseVarField(int is_class_member, ID* id, Type* type)
|
||||||
: Field(PARSE_VAR_FIELD, TYPE_TO_BE_PARSED | is_class_member | NOT_PUBLIC_READABLE, id, type) {}
|
: Field(PARSE_VAR_FIELD, TYPE_TO_BE_PARSED | is_class_member | NOT_PUBLIC_READABLE, id, type) {}
|
||||||
void GenPubDecls(Output* out, Env* env) override { /* do nothing */
|
void GenPubDecls(Output* out, Env* env) override { /* do nothing */ }
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// A public variable
|
// A public variable
|
||||||
|
@ -29,8 +28,7 @@ public:
|
||||||
: Field(PRIV_VAR_FIELD, TYPE_NOT_TO_BE_PARSED | CLASS_MEMBER | NOT_PUBLIC_READABLE, id, type) {}
|
: Field(PRIV_VAR_FIELD, TYPE_NOT_TO_BE_PARSED | CLASS_MEMBER | NOT_PUBLIC_READABLE, id, type) {}
|
||||||
~PrivVarField() override {}
|
~PrivVarField() override {}
|
||||||
|
|
||||||
void GenPubDecls(Output* out, Env* env) override { /* do nothing */
|
void GenPubDecls(Output* out, Env* env) override { /* do nothing */ }
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class TempVarField : public Field {
|
class TempVarField : public Field {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue