Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 recognize destructor attribute.



details:   https://anonhg.NetBSD.org/src/rev/084ad01b5fb3
branches:  trunk
changeset: 995752:084ad01b5fb3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 04 18:51:23 2019 +0000

description:
recognize destructor attribute.

diffstat:

 usr.bin/xlint/lint1/cgram.y |  6 ++++--
 usr.bin/xlint/lint1/scan.l  |  5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r e8d094ac88aa -r 084ad01b5fb3 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Fri Jan 04 18:36:50 2019 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Fri Jan 04 18:51:23 2019 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.99 2018/11/24 13:10:20 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.100 2019/01/04 18:51:23 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.99 2018/11/24 13:10:20 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.100 2019/01/04 18:51:23 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -208,6 +208,7 @@
 %token <y_type>                T_AT_COLD
 %token <y_type>                T_AT_CONSTRUCTOR
 %token <y_type>                T_AT_DEPRECATED
+%token <y_type>                T_AT_DESTRUCTOR
 %token <y_type>                T_AT_FORMAT
 %token <y_type>                T_AT_FORMAT_ARG
 %token <y_type>                T_AT_FORMAT_PRINTF
@@ -541,6 +542,7 @@
        | T_AT_SECTION T_LPARN string T_RPARN
        | T_AT_ALIGNED 
        | T_AT_CONSTRUCTOR 
+       | T_AT_DESTRUCTOR 
        | T_AT_MAY_ALIAS
        | T_AT_NO_INSTRUMENT_FUNCTION
        | T_AT_NOINLINE
diff -r e8d094ac88aa -r 084ad01b5fb3 usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l        Fri Jan 04 18:36:50 2019 +0000
+++ b/usr.bin/xlint/lint1/scan.l        Fri Jan 04 18:51:23 2019 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.85 2018/11/24 13:10:20 christos Exp $ */
+/* $NetBSD: scan.l,v 1.86 2019/01/04 18:51:23 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.85 2018/11/24 13:10:20 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.86 2019/01/04 18:51:23 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -232,6 +232,7 @@
        { "continue",   T_CONTINUE,     0,      0,      0,        0,0,0,0,1 },
        { "default",    T_DEFAULT,      0,      0,      0,        0,0,0,0,1 },
        { "deprecated", T_AT_DEPRECATED,0,      0,      0,        0,0,1,1,5 },
+       { "destructor", T_AT_DESTRUCTOR,0,      0,      0,        0,0,1,1,5 },
        { "do",         T_DO,           0,      0,      0,        0,0,0,0,1 },
        { "double",     T_TYPE,         0,      DOUBLE, 0,        0,0,0,0,1 },
        { "else",       T_ELSE,         0,      0,      0,        0,0,0,0,1 },



Home | Main Index | Thread Index | Old Index