diff options
| author | Josh Triplett <josh@freedesktop.org> | 2007-05-22 18:18:44 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@freedesktop.org> | 2007-05-22 18:18:44 -0700 |
| commit | c0cc913c89f77e5c948205dac7521505d6c6123a (patch) | |
| tree | f18f0382553d77c88e05c201adf48b29dbc6c329 | |
| parent | c2faf37219b145763c00ac6364597fab0dbfc17e (diff) | |
| download | sparse-dev-c0cc913c89f77e5c948205dac7521505d6c6123a.tar.gz | |
Ignore the GCC constructor and destructor attributes
Signed-off-by: Josh Triplett <josh@freedesktop.org>
| -rw-r--r-- | ident-list.h | 2 | ||||
| -rw-r--r-- | parse.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ident-list.h b/ident-list.h index c8660e09..de485107 100644 --- a/ident-list.h +++ b/ident-list.h @@ -69,6 +69,8 @@ IDENT(__malloc__); IDENT(nonnull); IDENT(__nonnull); IDENT(__nonnull__); IDENT(__deprecated__); IDENT(__warn_unused_result__); +IDENT(constructor); IDENT(__constructor__); +IDENT(destructor); IDENT(__destructor__); /* WIN32 specific Attribute names */ IDENT(cdecl); IDENT(__cdecl__); @@ -333,6 +333,10 @@ static struct init_keyword { { "__dllimport__", NS_KEYWORD, .op = &ignore_attr_op }, { "dllexport", NS_KEYWORD, .op = &ignore_attr_op }, { "__dllexport__", NS_KEYWORD, .op = &ignore_attr_op }, + { "constructor", NS_KEYWORD, .op = &ignore_attr_op }, + { "__constructor__", NS_KEYWORD, .op = &ignore_attr_op }, + { "destructor", NS_KEYWORD, .op = &ignore_attr_op }, + { "__destructor__", NS_KEYWORD, .op = &ignore_attr_op }, }; void init_parser(int stream) |
