mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02: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
|
@ -6,25 +6,23 @@
|
|||
#include "zeek/Stmt.h"
|
||||
#include "zeek/input.h"
|
||||
|
||||
namespace zeek::detail
|
||||
{
|
||||
namespace zeek::detail {
|
||||
|
||||
TraversalCode traverse_all(TraversalCallback* cb)
|
||||
{
|
||||
if ( ! global_scope() )
|
||||
return TC_CONTINUE;
|
||||
TraversalCode traverse_all(TraversalCallback* cb) {
|
||||
if ( ! global_scope() )
|
||||
return TC_CONTINUE;
|
||||
|
||||
if ( ! stmts )
|
||||
// May be null when parsing fails.
|
||||
return TC_CONTINUE;
|
||||
if ( ! stmts )
|
||||
// May be null when parsing fails.
|
||||
return TC_CONTINUE;
|
||||
|
||||
cb->current_scope = global_scope();
|
||||
cb->current_scope = global_scope();
|
||||
|
||||
TraversalCode tc = global_scope()->Traverse(cb);
|
||||
TraversalCode tc = global_scope()->Traverse(cb);
|
||||
|
||||
HANDLE_TC_STMT_PRE(tc);
|
||||
tc = stmts->Traverse(cb);
|
||||
HANDLE_TC_STMT_POST(tc);
|
||||
}
|
||||
HANDLE_TC_STMT_PRE(tc);
|
||||
tc = stmts->Traverse(cb);
|
||||
HANDLE_TC_STMT_POST(tc);
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue