]> granicus.if.org Git - re2c/commit
Added warning '-Wswapped-range'.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 18 Aug 2015 16:14:45 +0000 (17:14 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 18 Aug 2015 16:14:45 +0000 (17:14 +0100)
commit926bcc4bf9075b497b51a6a4e5242f9811f6c0b5
tree901d36055401c89a05c33ee68a0dd4a1c9feb94f
parente42f271e4b284cd6ed590dc06a5239ce13942fc5
Added warning '-Wswapped-range'.

When re2c parses character class and finds a range with lower bound
greater than upper bound, it silently swaps bounds. Warn about such
cases.
re2c/bootstrap/src/conf/parse_opts.cc
re2c/src/conf/parse_opts.re
re2c/src/conf/warn.cc
re2c/src/conf/warn.h
re2c/src/ir/regexp/regexp.cc
re2c/test/class1.i.c
re2c/test/class2.i.c
re2c/test/class3.i8.c
re2c/test/class4.i.c