Tim Wojtulewicz
ef9ffda2ef
Merge remote-tracking branch 'origin/topic/vern/standalone-event-groups'
...
* origin/topic/vern/standalone-event-groups:
tracking of event groups for compilation to standalone-C++
2025-09-17 14:28:44 -07:00
Vern Paxson
973cc00c42
tracking of event groups for compilation to standalone-C++
2025-09-17 14:28:13 -07:00
Vern Paxson
bfc6508dff
full tracking of the characteristics of globals when compiling scripts to C++
2025-09-15 14:21:32 -07:00
Tim Wojtulewicz
b592b6c998
Use .contains() instead of .find() or .count()
2025-09-02 16:42:52 +00:00
Tim Wojtulewicz
92854e95d3
Fix clang-tidy bugprone-assignment-in-if-condition warnings
2025-05-27 11:58:27 -07:00
Vern Paxson
a3b54b69a1
fixes for -O gen-standalone-C++ generation of lambdas
2025-01-14 17:02:12 -08:00
Tim Wojtulewicz
e2b03681d1
Remove EventRegistry::Used and EventRegistry::SetUsed
2024-08-07 11:58:21 -07:00
Arne Welzel
ff34a4aa7f
EventHandler: Deprecate SetUsed() and Used() as well.
...
Seems the latter isn't used outside of the functions that were deprecated
in the previous commit and with UsageAnalyzer not making use of this
information unclear why we should keep it around.
Relates to #3187 .
2023-11-07 16:06:35 +01:00
Benjamin Bannier
f5a76c1aed
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.
2023-10-30 09:40:55 +01:00
Tim Wojtulewicz
64b78f6fb9
Use emplace_back over push_back where appropriate
2023-07-07 09:17:05 -07:00
Tim Wojtulewicz
7aa310ee50
Fix a bunch of -Wunqualified-std-cast-call warnings from clang 15
2023-03-24 13:58:01 -07:00
Vern Paxson
b7f7d32bf7
Fix for EnumVal's returning their underlying value
...
Change EnumVal()->AsEnum() to zeek_int_t.
2023-03-08 10:10:24 +01:00
Vern Paxson
18f4fcb5a4
Maintenance updates for -O gen-C++ / -O gen-standalone-C++
...
fixes for using BiFs in standalone global initializations
avoiding redundant global initializations
updates to maintenance scripts and notes
removal of an unused member variable
2023-01-12 14:08:45 -08:00
Arne Welzel
da5fdb2072
ID: Add AddAttr() helper
...
This is just a follow-up as code cleanup, but not required
to be backported to 5.1.
2022-12-02 18:06:39 +01:00
Vern Paxson
134f8f2ef5
script optimization fixes:
...
new initialization model for standalone C++ scripts
type coercion fix
ZAM fix for compiling using C++ optimizer
disambiguate empty constructors
2022-11-20 12:16:25 -08:00
Vern Paxson
56140046d3
final changes for -O C++ feature completeness, mainly "when" statement support
2022-05-12 14:07:36 -07:00
Vern Paxson
2f7137999f
restored support for incremental compilation of scripts to C++
2021-12-12 12:36:45 -08:00
Vern Paxson
84423369b4
use iterator-based idiom for check-if-present-then-access
2021-11-22 15:28:15 -08:00
Vern Paxson
e1a760e674
extensive rewrite of generation & execution of run-time initialization
2021-11-07 17:00:19 -08:00