style: Add a control character checker
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:31:23 +0000 (15:31 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:31:23 +0000 (15:31 +0100)
commita05efc77be5f6df0418ccba5f7bf524773885448
treea30b8b31caa031ecfba97e6e6e526f5592cff9bf
parent2580fcd9d79e2be5933c2575ce1a6eb26380f8a5
style: Add a control character checker

Add a style checker that verifies that source code doesn't contain
non-printable (control) characters. The only allowed control
characters are:

  * 0x0a / \n: New line
  * 0x09 / \t: Tab (the whitespace checker enforces no-tabs for C/C++ files)

Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Brandon Potter <brandon.potter@amd.com>
--HG--
extra : rebase_source : 9ba3e2971774a7b3d73cda34bbee1f19c4add746
util/style/verifiers.py