mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
binpac: Add pre-commit hooks and run clang-format on everything
This commit is contained in:
parent
090ac0a6e0
commit
090325df40
91 changed files with 3086 additions and 3665 deletions
|
@ -4,34 +4,34 @@
|
|||
#include "pac_decl.h"
|
||||
|
||||
class Enum
|
||||
{
|
||||
{
|
||||
public:
|
||||
Enum(ID *id, Expr *expr = 0);
|
||||
Enum(ID* id, Expr* expr = 0);
|
||||
~Enum();
|
||||
|
||||
void GenHeader(Output *out_h, int *pval);
|
||||
void GenHeader(Output* out_h, int* pval);
|
||||
|
||||
private:
|
||||
ID *id_;
|
||||
Expr *expr_;
|
||||
};
|
||||
ID* id_;
|
||||
Expr* expr_;
|
||||
};
|
||||
|
||||
class EnumDecl : public Decl
|
||||
{
|
||||
{
|
||||
public:
|
||||
EnumDecl(ID *id, EnumList *enumlist);
|
||||
EnumDecl(ID* id, EnumList* enumlist);
|
||||
~EnumDecl();
|
||||
|
||||
Type *DataType() const { return datatype_; }
|
||||
Type* DataType() const { return datatype_; }
|
||||
|
||||
void Prepare();
|
||||
void GenForwardDeclaration(Output *out_h);
|
||||
void GenCode(Output *out_h, Output *out_cc);
|
||||
void GenForwardDeclaration(Output* out_h);
|
||||
void GenCode(Output* out_h, Output* out_cc);
|
||||
|
||||
private:
|
||||
EnumList *enumlist_;
|
||||
Type *datatype_;
|
||||
TypeDecl *extern_typedecl_;
|
||||
};
|
||||
EnumList* enumlist_;
|
||||
Type* datatype_;
|
||||
TypeDecl* extern_typedecl_;
|
||||
};
|
||||
|
||||
#endif // pac_enum_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue