Tim Wojtulewicz
0d62ed4783
Use const-reference in plugin::Manager::MetaHookPost for minor performance gain
2021-03-03 10:29:25 -07:00
Tim Wojtulewicz
51f17534d4
Fix missing assigmnent operator/copy constructor pairings reported by LGTM
2021-03-03 10:29:25 -07:00
Tim Wojtulewicz
2f2a265415
Fix variable shadowing issues reported by LGTM
2021-03-03 09:57:16 -07:00
Tim Wojtulewicz
5111b8e386
Fix comment in IP analyzer
2021-03-02 14:04:30 -07:00
Vern Paxson
1e316c05c9
fix some unsigned/signed integer warnings
2021-03-01 17:08:14 -08:00
Vern Paxson
602d8a5372
address lint concern about uninitialized variable
2021-03-01 17:08:06 -08:00
Tim Wojtulewicz
150ba6443e
Remove use of obsolete forward-declaration macros
2021-03-01 15:43:17 -07:00
Jon Siwek
e2d2c75fe7
Merge remote-tracking branch 'origin/topic/jsiwek/zeekygen-code-links'
...
- Applied minor spelling/grammar suggestions from Johanna during merge
* origin/topic/jsiwek/zeekygen-code-links:
Change update-zeekygen-docs.sh to set release branch in Sphinx config
Teach Zeekygen to produce source-code-range information
Add normalize_script_path() zeek::zeekygen::detail namespace
Add starts_with()/ends_with() to zeek::util namespace
2021-03-01 11:37:29 -08:00
Vern Paxson
526ba54f15
fix #include's that lack zeek/ prefixes
2021-02-28 07:23:06 -08:00
Vern Paxson
6aab151d97
explicitly populate holes created in vectors
2021-02-28 07:23:06 -08:00
Vern Paxson
2f47cce8a6
fixes for now-incorrect assumption that GetField always returns an existing ValPtr
2021-02-28 07:23:06 -08:00
Vern Paxson
3a59bc1a37
memory management for assignment to vector elements
2021-02-28 07:22:40 -08:00
Vern Paxson
7adcd1b27b
memory management for assignment to record fields
2021-02-28 07:22:31 -08:00
Vern Paxson
498d8c4bde
destructor cleanup from ZAM_vector/ZAM_record
2021-02-28 07:22:18 -08:00
Vern Paxson
a82a0e22d8
fixed AST transformation logic for boolean expressions
2021-02-27 13:48:06 -08:00
Vern Paxson
faf1b65ec4
logic for driving AST optimization when requested
2021-02-27 11:39:44 -08:00
Vern Paxson
77f04935a8
methods implementing AST optimization (aliasing, constant propagation, CSE)
2021-02-27 11:36:15 -08:00
Vern Paxson
34ccd3e417
helper class checking if common-subexpression elimination opportunity is valid
2021-02-27 11:35:01 -08:00
Vern Paxson
ec97c9b042
helper function for comparing collections of definition points
2021-02-27 11:32:06 -08:00
Vern Paxson
b581c6435e
track more information about temporary variables
2021-02-27 11:08:34 -08:00
Vern Paxson
64ef7f0eb2
simplify and tidy up some interfaces
2021-02-27 11:07:39 -08:00
Vern Paxson
d38cc04e83
enable setting "-O optimize-AST" option
2021-02-27 10:59:27 -08:00
Vern Paxson
56ab0ddcf1
fix for reducing operations on boolean vectors
2021-02-27 10:57:25 -08:00
Vern Paxson
c7234713b1
control whether checking for type-equivalence generates warnings
2021-02-27 10:55:19 -08:00
Vern Paxson
45b9371e38
remove unneeded virtual method (same as inherited method)
2021-02-27 10:49:57 -08:00
Vern Paxson
2b0a1bd2e9
accessors for additional Expr subclasses
2021-02-27 10:48:16 -08:00
Vern Paxson
a912f6dd9a
tidying some interfaces
2021-02-27 08:32:04 -08:00
Vern Paxson
d9b67edf52
convenience functions to check for aggregate types
2021-02-27 08:30:24 -08:00
Vern Paxson
743f5cfef6
fix includes to have proper prefixes
2021-02-27 08:28:15 -08:00
Jon Siwek
6ac499882c
Teach Zeekygen to produce source-code-range information
...
Related to https://github.com/zeek/zeek-docs/issues/56
2021-02-26 14:55:59 -08:00
Jon Siwek
c95a364ff7
Add normalize_script_path() zeek::zeekygen::detail namespace
2021-02-26 14:53:53 -08:00
Jon Siwek
9ced370b48
Add starts_with()/ends_with() to zeek::util namespace
2021-02-26 14:43:55 -08:00
Vern Paxson
62bab66114
migration to using new differentiated methods for setting record fields
2021-02-25 16:59:26 -08:00
Vern Paxson
4213245633
RecordVal methods for differentiated setting of record fields
2021-02-25 15:42:38 -08:00
Vern Paxson
53fea053de
fix for fencepost error when looping over vectors
2021-02-25 15:29:14 -08:00
Vern Paxson
b6f4f897c6
migrate to using RecordVal's new Remove() method
2021-02-25 15:28:37 -08:00
Vern Paxson
c757db2714
new RecordVal Remove() method to clear a field
2021-02-25 15:04:46 -08:00
Vern Paxson
931cec4e06
use differentiated record field accessors
2021-02-25 14:47:44 -08:00
Vern Paxson
e363bab55f
base support for differentiated record field accessors
2021-02-25 13:51:06 -08:00
Vern Paxson
0118b6ee38
migrate to differentiated vector "At" accessors to support future efficiency
2021-02-25 13:28:23 -08:00
Vern Paxson
bc4a6c0d07
fix for subtle bug due to GetField now potentially returning a new ValPtr
2021-02-25 12:45:34 -08:00
Vern Paxson
3f6f8e0709
use HasField() rather than GetField() where appropriate
2021-02-25 12:38:46 -08:00
Tim Wojtulewicz
b8ec65ccf7
Merge remote-tracking branch 'origin/topic/jsiwek/coverity-lint'
...
* origin/topic/jsiwek/coverity-lint:
Avoid superfluous string copies when adding to zeek::detail::sig_files
Initialize an RD_Decorate member via std::move
Fix invalid iterator comparison in UseDefs::FindSuccUsage()
2021-02-25 08:46:14 -07:00
Vern Paxson
13e7ba3a00
moving sort()/order() functionality into VectorVal
2021-02-24 18:09:40 -08:00
Vern Paxson
0299ea0894
convert VectorVal's to use vector<ZVal> as internal representation
2021-02-24 17:38:31 -08:00
Vern Paxson
6121e409d3
convert RecordVal's to use vector<ZVal> as internal representation
2021-02-24 17:02:47 -08:00
Vern Paxson
348e14c326
added ZVal for low-level representations of Zeek script values
2021-02-24 16:41:35 -08:00
Vern Paxson
e64805430b
fix off-by-one assumption regarding vector indexing dating to 2011
2021-02-24 16:31:07 -08:00
Jon Siwek
39efbab3a4
Merge remote-tracking branch 'origin/topic/timw/remove-declaration-macros'
...
- Fixed forward decl. of ScriptInfo in zeekygen/Manager.h during merge
* origin/topic/timw/remove-declaration-macros:
Remove obsolete ZEEK_FORWARD_DECLARE_NAMESPACED macros
2021-02-24 15:53:25 -08:00
Jon Siwek
6ac7fc9c65
Avoid superfluous string copies when adding to zeek::detail::sig_files
...
Coverity 1387015
2021-02-24 15:11:24 -08:00