Vern Paxson
8e77e3e92c
efficiency fix - return a reference rather than a copy of a map
2021-11-18 08:56:24 -08:00
Vern Paxson
55b2ce7dbc
Merge branch 'topic/vern/CPP-speedup' of github.com:zeek/zeek into topic/vern/CPP-speedup
2021-11-07 17:56:26 -08:00
Vern Paxson
3ea362be91
fix for case-sensitive file systems
2021-11-07 17:54:56 -08:00
Vern Paxson
0bdc268a00
geez sometimes it's signed sometimes it's not
2021-11-07 17:49:30 -08:00
Vern Paxson
ab1a29184c
documentation updates
2021-11-07 17:05:21 -08:00
Vern Paxson
e1a760e674
extensive rewrite of generation & execution of run-time initialization
2021-11-07 17:00:19 -08:00
Vern Paxson
bc3bf4ea6c
factoring out CPPEscape to be a standalone function
2021-11-07 16:57:52 -08:00
Tim Wojtulewicz
64748edab1
Replace most uses of typedef with using for type aliasing
2021-10-11 14:51:10 -07:00
Tim Wojtulewicz
9af6b2f48d
clang-format: Set penalty for breaking after assignment operator
2021-09-27 10:49:48 -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
38578a2ea3
low-level cleanups found by code review
2021-09-08 10:23:39 -07:00
Vern Paxson
b6daf14868
a number of low-level tweaks from code review
2021-09-08 10:23:38 -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
da6ac0b521
switch to ID definition regions; reworked driver functions; more info for reporting uncompilable functions
2021-09-08 10:23:38 -07:00
Vern Paxson
9a9995bdd1
tracking of optimization information associated with identifiers
2021-09-08 10:23:38 -07:00
Vern Paxson
b4a44ed663
low-level tidying/nits - no semantic changes
2021-09-08 10:23:38 -07:00
Tim Wojtulewicz
0b342b7bfa
Merge remote-tracking branch 'origin/topic/vern/CPP-workflow2'
...
* origin/topic/vern/CPP-workflow2:
low-level coding style fixes
support for standalone compiled scripts to export globals with module qualifiers
updates for documentation of functionality for compiling scripts to C++
fixes for standalone C++ scripts making types & variables/functions available
fixed bug limiting availability of load_CPP() BiF
updates to development helper scripts to support new workflow
simpler workflow for -O gen-C++ ; also some hooks for -O gen-standalone-C++
ReplaceBody now deletes a body if the replacement is nil
removal of can't-actually-be-executed code
2021-07-01 08:46:53 -07:00
Vern Paxson
30cb91fe35
low-level coding style fixes
2021-06-29 15:17:34 -07:00
Vern Paxson
b4f025dda9
support for standalone compiled scripts to export globals with module qualifiers
2021-06-11 08:49:52 -07:00
Vern Paxson
4ecf70f515
updates for documentation of functionality for compiling scripts to C++
2021-06-04 17:15:15 -07:00
Vern Paxson
725aa558a7
fixes for standalone C++ scripts making types & variables/functions available
2021-06-04 17:14:46 -07:00
Vern Paxson
e722607bd9
updates to development helper scripts to support new workflow
2021-06-04 17:02:43 -07:00
Vern Paxson
e1dc3e7b08
simpler workflow for -O gen-C++ ; also some hooks for -O gen-standalone-C++
2021-06-04 17:01:53 -07:00
Vern Paxson
2ec2e1e7d7
removal of can't-actually-be-executed code
2021-06-04 16:54:11 -07:00
Vern Paxson
47783cb9fd
support "any" coercions for "-O gen-C++"
2021-06-02 15:58:16 -07:00
Jon Siwek
1b825c51de
Fix LGTM warnings in script_opt/CPP code
...
i.e. shadowed variables and "missing return values" (scare quotes)
2021-05-06 12:06:57 -07:00
Vern Paxson
ac257e4a86
bug fixes for stand-alone compiles with empty records
2021-05-05 19:32:30 -07:00
Vern Paxson
2b0f1c9d6e
remove -O force-C++, and also some inadvertently replicated code
2021-05-05 19:11:17 -07:00
Vern Paxson
c116b2b8ad
better initial workflow, thanks to Jon Siwek
2021-05-05 18:52:06 -07:00
Vern Paxson
4a1d5adcf4
remove optimization no longer needed
2021-05-05 17:08:18 -07:00
Vern Paxson
94ac72cd84
style nit: removed std:: where not needed due to "using" clause
2021-05-05 16:55:05 -07:00
Jon Siwek
3e85375010
Fix various compiler/linter warnings in script_opt/CPP code
2021-05-05 16:55:05 -07:00
Vern Paxson
e200016200
first cut at embedding filenames in C++ function names - for Justin to test
2021-05-05 16:55:05 -07:00
Vern Paxson
b5b87d0b15
fixes for personal build scripts - will go away once workflow is streamlined
2021-05-05 16:55:05 -07:00
Vern Paxson
2fdb8a1cc8
whoops removed a std:: from generated code
2021-05-05 16:55:05 -07:00
Vern Paxson
72413f315c
decluttered code by removing "std::" - no semantic changes
...
(also some whitespace fixes)
2021-05-05 16:55:05 -07:00
Vern Paxson
bbe5ab39f6
porting fixes from Justin
2021-05-05 16:55:04 -07:00
Vern Paxson
22d060d461
documenting poor run-time error messages
2021-05-05 16:55:04 -07:00
Vern Paxson
605d636d94
README documentation
2021-05-05 16:55:04 -07:00
Vern Paxson
f6c841c737
minor tweaks tidyness tweaks
2021-05-05 16:55:04 -07:00
Vern Paxson
863be9436b
the bulk of the compiler
2021-05-05 16:55:04 -07:00