Jon Siwek
620680d878
bifcl: Deprecate all BroType* in BifType:: namespace
...
Replaced with equivalently named IntrusivePtr in zeek::BifType::
2025-08-20 08:52:24 -07:00
Jon Siwek
36dec9dbb5
bifcl: Change internal_handler() usage
2025-08-20 08:52:24 -07:00
Jon Siwek
59e86c6ea0
bifcl: Renaming/scoping of lookup functions
2025-08-20 08:52:24 -07:00
Jon Siwek
53d6f6665e
bifcl: Replace deprecated use of internal_const_val()
2025-08-20 08:52:24 -07:00
Jon Siwek
719b8082ca
bifcl: Update deprecated use of internal_type()
2025-08-20 08:52:24 -07:00
Jon Siwek
b29ecfd822
bifcl: Deprecate BifEvent::generate_*, add BifEvent::enqueue_*
2025-08-20 08:52:24 -07:00
Jon Siwek
0f5c621bd7
bifcl: Update deprecated Connection::BuildConnVal usage
2025-08-20 08:52:24 -07:00
Jon Siwek
7958f7854c
bifcl: Return nullptr instead of 0 in BIF error conditions
2025-08-20 08:52:24 -07:00
Jon Siwek
c2841cb1b2
bifcl: Update deprecated ValManager::Get usages
2025-08-20 08:52:24 -07:00
Jon Siwek
9a3ac5de98
bifcl: Change BIFs to return a wrapper object
...
That allows implicit conversion from either Val* or IntrusivePtr<T>
2025-08-20 08:52:24 -07:00
Jon Siwek
df5249e7dd
bifcl: Remove use of Variable-Length-Arrays
...
Related to https://github.com/zeek/zeek/issues/895
2025-08-20 08:52:24 -07:00
Jon Siwek
e5c62c01a4
bifcl: Support multiple/alternate event prototype definitions
2025-08-20 08:52:24 -07:00
Jon Siwek
b6b094b43a
bifcl: Don't pass a TimerMgr to EventMgr::Enqueue()
2025-08-20 08:52:24 -07:00
Jon Siwek
de453419d7
bifcl: Use EventMgr::Enqueue() instead of QueueEventFast()
2025-08-20 08:52:24 -07:00
Jon Siwek
163a86fc4e
bifcl: Move BIF function arguments from val_list to vector of IntrusivePtr
2025-08-20 08:52:24 -07:00
Jon Siwek
7009f1dda6
bifcl: Fix header include guards
2025-08-20 08:52:24 -07:00
Jon Siwek
c60bd14d56
bifcl: Disable LeakSanitizer
...
Related to https://github.com/zeek/zeek/issues/699
2025-08-20 08:52:24 -07:00
Jon Siwek
81b23aff92
bifcl: Move CMake project() after cmake_minimum_required()
2025-08-20 08:52:24 -07:00
Jon Siwek
a86b98bb9e
bifcl: Move headers into include/ subdir
...
This avoids potential problems with libc++ 8+ on case-insensitive file
systems due to inclusion of a new header called <version> which will end
up conflicting with the VERSION file if the search path includes the
project root.
2025-08-20 08:52:24 -07:00
Daniel Thayer
3ce42f2f35
bifcl: Rename Bro to Zeek
2025-08-20 08:52:24 -07:00
Jon Siwek
3b8932ff01
bifcl: Update codegen to use faster val_list and event queue API
2025-08-20 08:52:24 -07:00
Daniel Thayer
a95808bc6b
bifcl: Change file extension of auto-generated script files
...
Changed ".bro" file extension to ".zeek".
2025-08-20 08:52:24 -07:00
Robin Sommer
c3f6c8a4a0
bifcl: Fix compiler warning.
2025-08-20 08:52:24 -07:00
Jon Siwek
3a4f38a04b
bifcl: Port bifcl code from Bro
2025-08-20 08:52:24 -07:00
Jon Siwek
73e8f2c79d
bifcl: First commit
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
137e8bddc9
Run pre-commit on merged binpac code
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
8a7c6df278
Fix clang-tidy findings in the binpac lib code
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
6bddc06f8d
Add copyright headers to all of the binpac source files
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
0377486637
binpac: Remove submodule, adapt CMake configuration for Zeek build
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
79733d9390
binpac: Restore README file without version number
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
a25b5b65ff
binpac: Fix coverity unchecked return warning
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
d13cdd6427
binpac: Use std::move for a string value
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
710e2eaced
binpac: Make sure pac_expr fields are initialized
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
b9b4fcb78b
binpac: Require C++20 for builds
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
bb382fc0c0
binpac: Fix clang-tidy readability-isolate-declaration finding in generated code
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
ef962376bc
binpac: Add 'override' to virtual methods in generated code
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
28cc9ca3ec
binpac: Add NOLINT for clang-tidy performance-enum-size to generated headers
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
09936133a6
binpac: Reorder the fields in pac_type.h for better packing
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
45d07641e4
binpac: Make 'nullptr' a keyword, allow values to be set to it and compared against it
...
This helps fix 'modernize-use-nullptr' findings in generated code.
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
3cf68302a2
binpac: Make 'bool' a discrete type and handle it differently when generating code
...
This fixes clang-tidy modernize-use-bool-literals findings in the generated code
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
54a0e01805
binpac: Wrap generated switch statements in NOLINTs for bugprone-branch-clone
...
Binpac generates a lot of switch statements with repeated blocks in
them (typically empty blocks). Running clang-tidy on the generated code
with bugprone-branch-clone generates a lot of warnings. Instead of
doing a ton of analysis in binpac to avoid generating the duplicates,
just mark any switch generated with an annotation to avoid reporting
them.
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
670c4dcbcf
binpac: Add missing .cmake-format.json, reformat with pre-commit
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
dacfe747b9
binpac: Format output closer to what clang-format would output
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
964817f9bf
binpac: Add cmake-format and typos pre-commit configs
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
3297de477b
binpac: Reformat C++ code in Spicy style
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
716bf016a1
binpac: Remove usage of FindRequiredPackage
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
a4bc3fdf32
binpac: Add /J flag on Windows to force unsigned char
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
874de5d25b
binpac: Force -std=c++17 mode for cmake targets, remove use of RequireCXX17.cmake
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
b7cc5afa78
binpac: Require CMake 3.15.0 to build, similar to the recent changes to zeek and broker
2025-08-20 08:52:24 -07:00
Tim Wojtulewicz
d39df6b243
binpac: Remove vendored CMake files from repo
2025-08-20 08:52:24 -07:00