From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Josh Triplett <josh@joshtriplett.org>,
Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 0/3] validate expression's type in conditionals
Date: Sun, 29 Jan 2017 12:34:06 +0100 [thread overview]
Message-ID: <20170129113409.9834-1-luc.vanoostenryck@gmail.com> (raw)
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
next reply other threads:[~2017-01-29 12:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-29 11:34 Luc Van Oostenryck [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170129113409.9834-1-luc.vanoostenryck@gmail.com \
--to=luc.vanoostenryck@gmail.com \
--cc=josh@joshtriplett.org \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).