mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
binpac: Reformat C++ code in Spicy style
This commit is contained in:
parent
716bf016a1
commit
3297de477b
89 changed files with 7887 additions and 9733 deletions
|
@ -5,34 +5,33 @@
|
|||
#include "pac_decl.h"
|
||||
#include "pac_field.h"
|
||||
|
||||
class WithInputField : public Field, public Evaluatable
|
||||
{
|
||||
class WithInputField : public Field, public Evaluatable {
|
||||
public:
|
||||
WithInputField(ID* id, Type* type, InputBuffer* input);
|
||||
~WithInputField() override;
|
||||
WithInputField(ID* id, Type* type, InputBuffer* input);
|
||||
~WithInputField() override;
|
||||
|
||||
InputBuffer* input() const { return input_; }
|
||||
InputBuffer* input() const { return input_; }
|
||||
|
||||
void Prepare(Env* env) override;
|
||||
void Prepare(Env* env) override;
|
||||
|
||||
// void GenPubDecls(Output* out, Env* env);
|
||||
// void GenPrivDecls(Output* out, Env* env);
|
||||
// void GenPubDecls(Output* out, Env* env);
|
||||
// void GenPrivDecls(Output* out, Env* env);
|
||||
|
||||
// void GenInitCode(Output* out, Env* env);
|
||||
// void GenCleanUpCode(Output* out, Env* env);
|
||||
// void GenInitCode(Output* out, Env* env);
|
||||
// void GenCleanUpCode(Output* out, Env* env);
|
||||
|
||||
void GenParseCode(Output* out, Env* env);
|
||||
void GenParseCode(Output* out, Env* env);
|
||||
|
||||
// Instantiate the Evaluatable interface
|
||||
void GenEval(Output* out, Env* env) override;
|
||||
// Instantiate the Evaluatable interface
|
||||
void GenEval(Output* out, Env* env) override;
|
||||
|
||||
bool RequiresAnalyzerContext() const override;
|
||||
bool RequiresAnalyzerContext() const override;
|
||||
|
||||
protected:
|
||||
bool DoTraverse(DataDepVisitor* visitor) override;
|
||||
bool DoTraverse(DataDepVisitor* visitor) override;
|
||||
|
||||
protected:
|
||||
InputBuffer* input_;
|
||||
};
|
||||
InputBuffer* input_;
|
||||
};
|
||||
|
||||
#endif // pac_withinput_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue