mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38: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
|
@ -6,36 +6,34 @@
|
|||
|
||||
class RegExDecl;
|
||||
|
||||
class RegEx : public Object
|
||||
{
|
||||
class RegEx : public Object {
|
||||
public:
|
||||
RegEx(const string& str);
|
||||
~RegEx();
|
||||
RegEx(const string& str);
|
||||
~RegEx();
|
||||
|
||||
const string& str() const { return str_; }
|
||||
ID* matcher_id() const { return matcher_id_; }
|
||||
const string& str() const { return str_; }
|
||||
ID* matcher_id() const { return matcher_id_; }
|
||||
|
||||
private:
|
||||
string str_;
|
||||
ID* matcher_id_;
|
||||
RegExDecl* decl_;
|
||||
string str_;
|
||||
ID* matcher_id_;
|
||||
RegExDecl* decl_;
|
||||
|
||||
public:
|
||||
static const char* kREMatcherType;
|
||||
static const char* kMatchPrefix;
|
||||
};
|
||||
static const char* kREMatcherType;
|
||||
static const char* kMatchPrefix;
|
||||
};
|
||||
|
||||
class RegExDecl : public Decl
|
||||
{
|
||||
class RegExDecl : public Decl {
|
||||
public:
|
||||
RegExDecl(RegEx* regex);
|
||||
RegExDecl(RegEx* regex);
|
||||
|
||||
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:
|
||||
RegEx* regex_;
|
||||
};
|
||||
RegEx* regex_;
|
||||
};
|
||||
|
||||
#endif // pac_regex_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue