Vern Paxson
693aa244f9
shift much of the internal use of ID* identifier pointers over to IDPtr objects
2025-09-03 11:19:31 -07:00
Tim Wojtulewicz
b592b6c998
Use .contains() instead of .find() or .count()
2025-09-02 16:42:52 +00:00
Tim Wojtulewicz
34ee136a3c
More std::move changes based on Coverity findings
2025-04-08 11:01:21 -07:00
Vern Paxson
908e8a3a27
ZAM support for keeping "assert" statements
2024-12-03 10:37:38 -07:00
Vern Paxson
4b719ef45a
script optimization for record operations sourced (in part) from other records
2024-06-24 09:38:37 +02:00
Vern Paxson
37c1f6641c
script optimization support for "add" and "delete" being expressions
2024-05-29 12:40:06 -07:00
Vern Paxson
e5bb63c662
fixes & enhancements to location information associated w/ AST nodes & ZAM optimization
2024-02-06 11:03:02 +01:00
Vern Paxson
4ec9a23ce6
retention of superseded AST elements to prevent pointer mis-aliasing
2023-11-10 11:06:16 +01:00
Vern Paxson
c49918ba8b
fixed some warnings about mixing signed & unsigned integers
2023-11-10 09:56:59 +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
Vern Paxson
1b2cd0c767
migrated some raw pointers to smart pointers
2023-07-11 16:04:30 -07:00
Vern Paxson
d89b39a0bb
ZAM support for "when" statements
2023-06-30 09:36:14 +02:00
Vern Paxson
7d5760ac74
ZAM support for lambdas
2023-06-30 09:36:14 +02:00
Tim Wojtulewicz
2abc82722f
Fix a swath of AUTO_CAUSES_COPY issues reported by Coverity
2022-08-15 09:45:46 -07:00
Vern Paxson
772169f8e0
low-level tidying
2022-05-26 17:01:10 -07:00
Vern Paxson
18cfee51c2
updates for script optimization
2022-03-23 15:36:35 -07:00
Tim Wojtulewicz
4423574d26
clang-format: Set IndentCaseBlocks to false
2021-09-27 10:49:48 -07:00
Tim Wojtulewicz
b2f171ec69
Reformat the world
2021-09-16 15:35:39 -07:00
Vern Paxson
d609a11312
switch simple loops that don't need indices to being iterator-based
2021-09-08 10:23:38 -07:00
Vern Paxson
ffd1905f90
use container empty() rather than size() where appropriate
2021-09-08 10:23:38 -07:00
Vern Paxson
9a429808ab
directly construct records of known types, rather than requiring coercion
2021-05-30 17:47:28 -07:00
Vern Paxson
143d306883
fix for AST optimization altering top-level body statement
2021-05-30 17:37:44 -07:00
Jon Siwek
6983590727
Fix invalid iterator comparison in UseDefs::FindSuccUsage()
...
Coverity 1447018
2021-02-24 15:04:32 -08:00
Vern Paxson
86709c5992
activate &is_used
2021-02-23 08:32:14 -08:00
Jon Siwek
b450b90a3e
Adjust reference/move nitpicks in use-def/reduce code
...
Use std::move() and avoid superfluous copies by assigning to
const-reference in a few places.
2021-02-08 17:53:21 -08:00
Jon Siwek
8d452f58fc
Adjust some whitespace in UseDefs.cc
2021-02-08 17:48:53 -08:00
Vern Paxson
372fb8b197
classes for managing and propagating use-defs
2021-02-06 10:57:56 -08:00