mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Merge remote-tracking branch 'origin/topic/timw/171-deprecation-warnings'
* origin/topic/timw/171-deprecation-warnings: GH-171: support warning messages alongside deprecated attributes Made a minor tweak to give a better error message when using &deprecated= with something other than a string literal expression.
This commit is contained in:
commit
16785a2d70
13 changed files with 269 additions and 74 deletions
4
src/ID.h
4
src/ID.h
|
@ -82,7 +82,9 @@ public:
|
|||
bool IsDeprecated() const
|
||||
{ return FindAttr(ATTR_DEPRECATED) != 0; }
|
||||
|
||||
void MakeDeprecated();
|
||||
void MakeDeprecated(Expr* deprecation);
|
||||
|
||||
string GetDeprecationWarning() const;
|
||||
|
||||
void Error(const char* msg, const BroObj* o2 = 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue