mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Reformat Zeek in Spicy style
This largely copies over Spicy's `.clang-format` configuration file. The one place where we deviate is header include order since Zeek depends on headers being included in a certain order.
This commit is contained in:
parent
7b8e7ed72c
commit
f5a76c1aed
786 changed files with 131714 additions and 153609 deletions
|
@ -5,31 +5,29 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
namespace zeek::detail
|
||||
{
|
||||
namespace zeek::detail {
|
||||
|
||||
class StmtOptInfo
|
||||
{
|
||||
class StmtOptInfo {
|
||||
public:
|
||||
// We number statements by their traversal order in the AST.
|
||||
int stmt_num = -1; // -1 = not assigned yet
|
||||
// We number statements by their traversal order in the AST.
|
||||
int stmt_num = -1; // -1 = not assigned yet
|
||||
|
||||
// The confluence block nesting associated with the statement.
|
||||
// We number these using 0 for the outermost block of a function
|
||||
// (which, strictly speaking, isn't a confluence block).
|
||||
int block_level = -1;
|
||||
// The confluence block nesting associated with the statement.
|
||||
// We number these using 0 for the outermost block of a function
|
||||
// (which, strictly speaking, isn't a confluence block).
|
||||
int block_level = -1;
|
||||
|
||||
// True if we observe that there is a branch out of the statement
|
||||
// to just beyond its extent, such as due to a "break".
|
||||
bool contains_branch_beyond = false;
|
||||
// True if we observe that there is a branch out of the statement
|
||||
// to just beyond its extent, such as due to a "break".
|
||||
bool contains_branch_beyond = false;
|
||||
|
||||
// Whether this statement is free of the possible influence
|
||||
// of conditional code.
|
||||
bool is_free_of_conditionals = true;
|
||||
// Whether this statement is free of the possible influence
|
||||
// of conditional code.
|
||||
bool is_free_of_conditionals = true;
|
||||
|
||||
// Number of statements and expressions in a function body.
|
||||
int num_stmts = 0;
|
||||
int num_exprs = 0;
|
||||
};
|
||||
// Number of statements and expressions in a function body.
|
||||
int num_stmts = 0;
|
||||
int num_exprs = 0;
|
||||
};
|
||||
|
||||
} // namespace zeek::detail
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue