Vern Paxson
bfc6508dff
full tracking of the characteristics of globals when compiling scripts to C++
2025-09-15 14:21:32 -07:00
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
Vern Paxson
e165e64fa5
fix for -O gen-C++ dealing with type constants of unnamed compound types
2025-05-31 12:49:37 -07:00
Tim Wojtulewicz
d2045d1834
Fix clang-tidy bugprone-unused-local-non-trivial-variable warnings
2025-05-27 11:58:27 -07:00
Vern Paxson
9f5fba7003
-O gen-C++ support for type expressions
2025-03-07 09:21:09 -08:00
Vern Paxson
960931ba5c
support for record extensions when using -O gen-standalone-C++
2025-01-14 11:12:10 +01:00
Vern Paxson
3d58732cb3
fixes for initializing globals when using -O gen-standalone-C++
2025-01-01 13:26:58 -08:00
Vern Paxson
0a813a53c7
-O gen-standalone-C++ fixes for recent more aggressive AST profiling
2024-12-12 14:27:12 -08:00
Vern Paxson
2e69a8870a
introduced simplified initialization for non-standalone -O gen-C++ code
...
tied -O gen-standalone-C++ to use of --optimize-files
2024-12-06 16:25:22 -08:00
Vern Paxson
a2495d028e
renamed script optimization Attrs.h header to prepare for factoring large Compile.h
2024-10-18 17:37:33 -07:00
Vern Paxson
5c38f7637d
-O gen-C++ fix for run-time warnings for "when" lambdas
2024-09-27 13:23:06 -07:00
Arne Welzel
71e9c8d436
script_opt: Use Func::GetName()
2024-09-27 15:11:17 +02:00
Vern Paxson
0ca2f9a8b2
speedups for compilation of initializers in -O gen-C++ generated code
2024-08-13 14:43:17 -07:00
Vern Paxson
9e32443504
minor updates and fixes for script optimization maintenance
2024-02-04 07:57:45 -08:00
Vern Paxson
f7b739a47d
fixes for initializations of "-O gen-C++" script compilations
2024-01-15 15:03:56 +01:00
Tim Wojtulewicz
df65b668b7
CPP-gen: Don't emit extra braces if only one element
2024-01-08 13:26:57 -07:00
Vern Paxson
a824bb1e4b
some very minor tidying of script optimization code/documentation
2023-12-12 09:45:19 +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
b5603fe5bf
addressed static analysis concern about possible null pointer
2023-04-01 21:06:42 -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
c0dd2b4e81
script_opt/CPP: errors, recursive type fixes, fix embedded comments
...
better (than nothing) run-time errors for compiled scripts
fixes for dealing with recursive types in compiled scripts
fix for values in compiled scripts containing embedded comment markers
2023-03-08 10:19:17 +01:00
Vern Paxson
3d0faa8cea
fixes for order-of-initialization in scripts compiled to C++
...
annotations of such initializations to tie them to the original Zeek script
2023-02-14 15:19:49 -08: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
Vern Paxson
26dae9a5ae
-O gen-C++ maintenance: fixes for attributes & initializing globals
2022-10-14 08:37:45 -05:00
Vern Paxson
0687959f1c
use dynamic rather than static initialization of globals for scripts compiled to C++
2022-09-29 15:11:05 -07:00
Vern Paxson
5c21240daf
fixes for initializing scripts compiled to C++
2022-09-29 15:09:37 -07:00
Vern Paxson
7210225bba
fix for C++ scripts that refer to "opaque" types
2022-09-16 16:45:37 -07:00
Vern Paxson
7b8d92b4f6
C++ compilation support for RE /s operator
2022-09-16 16:44:00 -07:00
Vern Paxson
2f7137999f
restored support for incremental compilation of scripts to C++
2021-12-12 12:36:45 -08:00
Vern Paxson
6788be94c9
flag globals initialized to opaque values as non-compilable
2021-12-10 09:31:41 -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
735d584d9f
const-ify member function
2021-11-22 10:55:38 -08:00
Vern Paxson
6f82c1610e
remove unused local variables
2021-11-18 08:57:03 -08:00
Vern Paxson
0bdc268a00
geez sometimes it's signed sometimes it's not
2021-11-07 17:49:30 -08:00
Vern Paxson
e1a760e674
extensive rewrite of generation & execution of run-time initialization
2021-11-07 17:00:19 -08:00