mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Merge remote-tracking branch 'origin/topic/vern/CPP-speedup'
* origin/topic/vern/CPP-speedup: use iterator-based idiom for check-if-present-then-access const-ify member function switch looping over vectors to use iterators remove unused local variables efficiency fix - return a reference rather than a copy of a map fix for case-sensitive file systems geez sometimes it's signed sometimes it's not documentation updates remove -O add-C++ and -O update-C++ options extensive rewrite of generation & execution of run-time initialization factoring out CPPEscape to be a standalone function removing unused SubNetType class
This commit is contained in:
commit
e0b4659488
35 changed files with 3574 additions and 1714 deletions
|
@ -204,8 +204,6 @@ static void print_analysis_help()
|
|||
fprintf(stderr, " report-uncompilable print names of functions that can't be compiled\n");
|
||||
fprintf(stderr, " use-C++ use available C++ script bodies\n");
|
||||
fprintf(stderr, "\n experimental options for incremental compilation:\n");
|
||||
fprintf(stderr, " add-C++ generate private C++ for any missing script bodies\n");
|
||||
fprintf(stderr, " update-C++ generate reusable C++ for any missing script bodies\n");
|
||||
}
|
||||
|
||||
static void set_analysis_option(const char* opt, Options& opts)
|
||||
|
@ -225,9 +223,7 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
if ( util::streq(opt, "add-C++") )
|
||||
a_o.add_CPP = true;
|
||||
else if ( util::streq(opt, "dump-uds") )
|
||||
if ( util::streq(opt, "dump-uds") )
|
||||
a_o.activate = a_o.dump_uds = true;
|
||||
else if ( util::streq(opt, "dump-xform") )
|
||||
a_o.activate = a_o.dump_xform = true;
|
||||
|
@ -255,8 +251,6 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
a_o.inliner = a_o.report_recursive = true;
|
||||
else if ( util::streq(opt, "report-uncompilable") )
|
||||
a_o.report_uncompilable = true;
|
||||
else if ( util::streq(opt, "update-C++") )
|
||||
a_o.update_CPP = true;
|
||||
else if ( util::streq(opt, "use-C++") )
|
||||
a_o.use_CPP = true;
|
||||
else if ( util::streq(opt, "xform") )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue