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
Tim Wojtulewicz
328411e807
GH-1873: Deprecate the tag types differently to avoid type clashes
2021-12-01 09:43:28 -07:00
Tim Wojtulewicz
7d66f4252f
Unify plugin::Component and plugin::TaggedComponent into a single class
...
These two are almost always used in conjunction with each other, and
TaggedComponent is never used by itself. Combining them together into
a single class will help simplify some of the code around managing
the mapping between Tags and Components.
2021-11-23 19:36:49 -07:00
Tim Wojtulewicz
331161138a
Unify all of the Tag types into one type
...
- Remove tag types for each component type (analyzer, etc)
- Add deprecated versions of the old types
- Remove unnecessary tag element from templates for TaggedComponent and ComponentManager
- Enable TaggedComponent to pass an EnumType when initializing Tag objects
- Update some tests that are affected by the tag enum values changing order
2021-11-23 19:36:49 -07:00
Tim Wojtulewicz
b2f171ec69
Reformat the world
2021-09-16 15:35:39 -07:00
Tim Wojtulewicz
0618be792f
Remove all of the random single-file deprecations
...
These are the changes that don't require a ton of changes to other files outside
of the original removal.
2021-01-27 10:52:40 -07:00
Tim Wojtulewicz
96d9115360
GH-1079: Use full paths starting with zeek/ when including files
2020-11-12 12:15:26 -07:00
Tim Wojtulewicz
fe0c22c789
Base: Clean up explicit uses of namespaces in places where they're not necessary.
...
This commit covers all of the common and base classes.
2020-08-24 12:07:00 -07:00
Tim Wojtulewicz
8d2d867a65
Move everything in util.h to zeek::util namespace.
...
This commit includes renaming a number of methods prefixed with bro_ to be prefixed with zeek_.
2020-08-20 16:00:33 -07:00
Tim Wojtulewicz
87054d9d6b
Move base Tag class to zeek namespace
2020-07-31 11:37:29 -07:00
Tim Wojtulewicz
118605f4ac
Add deprecated version of EnumType::GetVal() to returns EnumVal*, rename IntrusivePtr version to GetEnumVal
2020-07-15 14:56:05 -07:00
Tim Wojtulewicz
64332ca22c
Move all Val classes to the zeek namespaces
2020-06-30 20:48:09 -07:00
Tim Wojtulewicz
ec9eff0bd5
Use type aliases for IntrusivePtr definitions
2020-06-30 20:37:30 -07:00
Tim Wojtulewicz
9364e6a5b7
Move IntrusivePtr and utility methods to the zeek namespace
2020-06-30 20:19:12 -07:00
Tim Wojtulewicz
ed13972924
Move Type types to zeek namespace
2020-06-09 17:20:45 -07:00
Jon Siwek
1abed4fd4c
Migrate Tag classes to use IntrusivePtr
...
Deprecates various methods that previously took raw pointers
2020-05-14 17:18:00 -07:00
Tim Wojtulewicz
0a47588d0b
The remaining nulls
2020-04-07 16:08:34 -07:00
Max Kellermann
ba35ebec4c
Type: return IntrusivePtr
2020-03-06 09:06:38 +01:00
Tim Wojtulewicz
95d2af4501
Move constructors/operators should be marked noexcept to avoid the compiler picking the copy constructor instead (performance-noexcept-move-constructor)
2020-02-11 11:02:08 -08:00
Tim Wojtulewicz
54752ef9a1
Deprecate the internal int/uint types in favor of the cstdint types they were based on
2019-08-12 13:50:07 -07:00
Jon Siwek
2982765128
Pre-allocate and re-use Vals for bool, int, count, enum and empty string
2019-01-09 18:29:23 -06:00
Robin Sommer
3adad5e19a
Fix some Coverity warnings.
2016-08-02 11:38:29 -07:00
Jon Siwek
597edcd3b6
Fix reference counting bug in Tag::operator=
2014-07-31 14:32:10 -05:00
Jon Siwek
8df4df0b8b
Add a distinct tag class for file analyzers.
...
This should prevent assignment mismatches between file and protocol
analyzer tags.
2013-07-30 15:19:48 -05:00