[PATCH 0/6] fix & improve parsing of contexts

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

 



This series somehow improve the parsing of context
attributes and statements, like:
* fix some crashes
* stricter syntax, like allowing only the correct number of args
* improve error reporting

One possibly controversial change is the enforcing of the
functional syntax for the __context__ statement. IOW, accept:
	__context__(...);
and reject the never really used
	__context__ ...;

Luc Van Oostenryck (6):
  add helper for new parsing errors: unexpected()
  context: fix parsing of attribute 'context'
  context: __context__(...) expect a constant expression
  context: fix crashes while parsing '__context__;' or '__context__(;'
  context: stricter syntax for __context__ statement
  context: extra warning for __context__() & friends

 lib.c                     | 17 +++++++++-
 lib.h                     |  2 ++
 linearize.c               |  6 +---
 parse.c                   | 65 +++++++++++++++------------------------
 validation/attr-context.c | 40 ++++++++++++++++++++++++
 validation/context-stmt.c | 62 +++++++++++++++++++++++++++++++++++++
 6 files changed, 146 insertions(+), 46 deletions(-)
 create mode 100644 validation/attr-context.c
 create mode 100644 validation/context-stmt.c

-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux