linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] validate expression's type in conditionals
@ 2017-01-29 11:34 Luc Van Oostenryck
  2017-01-29 11:34 ` [PATCH 1/3] fix conditional context test case with void Luc Van Oostenryck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luc Van Oostenryck @ 2017-01-29 11:34 UTC (permalink / raw)
  To: linux-sparse; +Cc: Josh Triplett, Luc Van Oostenryck

This serie aims to detect incorrect types used in conditionals.

Patch 1 fix a test case where a void was used ina conditional.
Patch 2 is an helper for the next patch.
Patch 3 do the validation.

Luc Van Oostenryck (3):
  fix conditional context test case with void
  add helper: is_scalar_type()
  validate expression's type in conditionals

 evaluate.c                    |  5 +++
 symbol.h                      | 22 ++++++++++
 validation/conditional-type.c | 99 +++++++++++++++++++++++++++++++++++++++++++
 validation/context.c          |  2 +-
 4 files changed, 127 insertions(+), 1 deletion(-)
 create mode 100644 validation/conditional-type.c

-- 
2.11.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-29 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-29 11:34 [PATCH 0/3] validate expression's type in conditionals Luc Van Oostenryck
2017-01-29 11:34 ` [PATCH 1/3] fix conditional context test case with void Luc Van Oostenryck
2017-01-29 11:34 ` [PATCH 2/3] add helper: is_scalar_type() Luc Van Oostenryck
2017-01-29 11:34 ` [PATCH 3/3] validate expression's type in conditionals Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).