mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +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
|
@ -3,35 +3,33 @@
|
|||
|
||||
#include "pac_decl.h"
|
||||
|
||||
class Enum
|
||||
{
|
||||
class Enum {
|
||||
public:
|
||||
Enum(ID* id, Expr* expr = 0);
|
||||
~Enum();
|
||||
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
|
||||
{
|
||||
class EnumDecl : public Decl {
|
||||
public:
|
||||
EnumDecl(ID* id, EnumList* enumlist);
|
||||
~EnumDecl() override;
|
||||
EnumDecl(ID* id, EnumList* enumlist);
|
||||
~EnumDecl() override;
|
||||
|
||||
Type* DataType() const { return datatype_; }
|
||||
Type* DataType() const { return datatype_; }
|
||||
|
||||
void Prepare() override;
|
||||
void GenForwardDeclaration(Output* out_h) override;
|
||||
void GenCode(Output* out_h, Output* out_cc) override;
|
||||
void Prepare() override;
|
||||
void GenForwardDeclaration(Output* out_h) override;
|
||||
void GenCode(Output* out_h, Output* out_cc) override;
|
||||
|
||||
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