adlint 2.6.14 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -3
- data/ChangeLog +511 -0
- data/INSTALL +1 -1
- data/MANIFEST +57 -37
- data/NEWS +36 -7
- data/README +2 -2
- data/Rakefile +6 -6
- data/TODO +1 -1
- data/bin/adlint +25 -16
- data/bin/adlint_chk +22 -12
- data/bin/adlint_cma +17 -12
- data/bin/adlint_sma +22 -12
- data/bin/adlintize +98 -17
- data/etc/conf.d/fallback/cinit.erb +1 -1
- data/etc/conf.d/fallback/traits.erb +37 -37
- data/etc/conf.d/i686-cygwin/cinit-gcc_4.3.4.erb +1 -1
- data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +41 -41
- data/etc/conf.d/i686-devkit/cinit-gcc_4.5.2.erb +1 -1
- data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +40 -40
- data/etc/conf.d/i686-linux/cinit-gcc_4.5.1.erb +1 -1
- data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +40 -40
- data/etc/conf.d/i686-mingw/cinit-gcc_4.6.1.erb +1 -1
- data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +40 -40
- data/etc/conf.d/noarch/GNUmakefile.erb +1 -1
- data/etc/conf.d/noarch/adlint_all_bat.erb +1 -1
- data/etc/conf.d/noarch/adlint_all_sh.erb +1 -1
- data/etc/conf.d/noarch/pinit.erb +1 -1
- data/etc/conf.d/x86_64-ubuntu_12.04/cinit-gcc_4.6.3.erb +1 -1
- data/etc/conf.d/x86_64-ubuntu_12.04/traits-gcc_4.6.3.erb +42 -42
- data/etc/mesg.d/c_builtin/en_US/messages.yml +33 -33
- data/etc/mesg.d/c_builtin/ja_JP/messages.yml +5 -5
- data/etc/mesg.d/core/en_US/messages.yml +2 -2
- data/etc/mesg.d/core/ja_JP/messages.yml +2 -2
- data/features/code_check/W0018.feature +197 -0
- data/features/code_check/W0019.feature +79 -0
- data/features/code_check/W0021.feature +81 -0
- data/features/code_check/W0023.feature +203 -0
- data/features/code_check/W0024.feature +226 -0
- data/features/code_check/W0025.feature +5 -0
- data/features/code_check/W0088.feature +2 -2
- data/features/code_check/W0109.feature +2 -2
- data/features/code_check/W0477.feature +0 -3
- data/features/code_check/W0478.feature +0 -1
- data/features/code_check/W0582.feature +3 -3
- data/features/code_check/W0583.feature +4 -7
- data/features/code_check/W0646.feature +0 -1
- data/features/code_check/W0695.feature +0 -1
- data/features/code_check/W0705.feature +8 -0
- data/features/code_check/W0723.feature +0 -1
- data/features/code_check/W0745.feature +1 -0
- data/features/code_check/W0781.feature +1 -0
- data/features/code_check/W1057.feature +141 -0
- data/features/code_check/W1058.feature +93 -0
- data/features/code_check/W1059.feature +86 -0
- data/features/code_check/W1060.feature +77 -0
- data/features/code_check/W1061.feature +143 -0
- data/features/code_check/W1062.feature +162 -0
- data/features/code_check/W1063.feature +123 -0
- data/features/code_check/W1064.feature +83 -0
- data/features/code_check/W1065.feature +82 -0
- data/features/code_check/W9003.feature +2 -0
- data/features/step_definitions/code_check_steps.rb +1 -0
- data/features/support/env.rb +16 -13
- data/lib/adlint.rb +7 -4
- data/lib/adlint/analyzer.rb +131 -157
- data/lib/adlint/annot.rb +149 -0
- data/lib/adlint/cc1.rb +57 -0
- data/lib/adlint/{c → cc1}/branch.rb +74 -62
- data/lib/adlint/{c → cc1}/builtin.rb +21 -21
- data/lib/adlint/{c → cc1}/const.rb +119 -117
- data/lib/adlint/{c → cc1}/conv.rb +76 -78
- data/lib/adlint/{c → cc1}/ctrlexpr.rb +69 -86
- data/lib/adlint/cc1/domain.rb +8103 -0
- data/lib/adlint/{c → cc1}/enum.rb +3 -3
- data/lib/adlint/{c → cc1}/environ.rb +21 -21
- data/lib/adlint/{c → cc1}/expr.rb +232 -218
- data/lib/adlint/{c → cc1}/format.rb +305 -342
- data/lib/adlint/{c → cc1}/interp.rb +269 -220
- data/lib/adlint/cc1/lexer.rb +246 -0
- data/lib/adlint/{c → cc1}/mediator.rb +78 -84
- data/lib/adlint/{c → cc1}/object.rb +261 -264
- data/lib/adlint/{c → cc1}/operator.rb +7 -7
- data/lib/adlint/{c → cc1}/option.rb +4 -3
- data/lib/adlint/{c → cc1}/parser.rb +274 -506
- data/lib/adlint/{c → cc1}/parser.y +69 -301
- data/lib/adlint/cc1/phase.rb +138 -0
- data/lib/adlint/{c → cc1}/resolver.rb +66 -78
- data/lib/adlint/{c → cc1}/scanner.rb +57 -49
- data/lib/adlint/{c → cc1}/scope.rb +3 -3
- data/lib/adlint/{c → cc1}/seqp.rb +13 -5
- data/lib/adlint/{c → cc1}/syntax.rb +819 -1122
- data/lib/adlint/{c → cc1}/type.rb +1498 -1479
- data/lib/adlint/{c → cc1}/util.rb +20 -12
- data/lib/adlint/{c → cc1}/value.rb +699 -642
- data/lib/adlint/code.rb +163 -164
- data/lib/adlint/cpp.rb +2 -2
- data/lib/adlint/cpp/asm.rb +13 -14
- data/lib/adlint/cpp/constexpr.rb +42 -38
- data/lib/adlint/cpp/constexpr.y +44 -40
- data/lib/adlint/cpp/eval.rb +435 -435
- data/lib/adlint/cpp/lexer.rb +343 -340
- data/lib/adlint/cpp/macro.rb +188 -190
- data/lib/adlint/cpp/phase.rb +66 -45
- data/lib/adlint/cpp/scanner.rb +14 -17
- data/lib/adlint/cpp/source.rb +49 -55
- data/lib/adlint/cpp/subst.rb +65 -65
- data/lib/adlint/cpp/syntax.rb +155 -275
- data/lib/adlint/cpp/util.rb +22 -19
- data/lib/adlint/driver.rb +86 -93
- data/lib/adlint/error.rb +33 -52
- data/lib/adlint/exam.rb +158 -24
- data/lib/adlint/exam/c_builtin.rb +7 -7
- data/lib/adlint/exam/c_builtin/cc1_check.rb +20522 -0
- data/lib/adlint/exam/c_builtin/cc1_check_shima.rb +957 -0
- data/lib/adlint/exam/c_builtin/cc1_code.rb +459 -0
- data/lib/adlint/exam/c_builtin/cc1_metric.rb +794 -0
- data/lib/adlint/exam/c_builtin/cpp_check.rb +486 -441
- data/lib/adlint/exam/c_builtin/cpp_check_shima.rb +36 -39
- data/lib/adlint/exam/c_builtin/cpp_code.rb +63 -65
- data/lib/adlint/exam/c_builtin/ld_check.rb +136 -129
- data/lib/adlint/exam/c_builtin/ld_metric.rb +11 -11
- data/lib/adlint/lang.rb +25 -25
- data/lib/adlint/ld.rb +2 -2
- data/lib/adlint/ld/object.rb +220 -188
- data/lib/adlint/ld/phase.rb +94 -63
- data/lib/adlint/ld/typedef.rb +22 -11
- data/lib/adlint/ld/util.rb +43 -35
- data/lib/adlint/lexer.rb +59 -56
- data/lib/adlint/location.rb +140 -0
- data/lib/adlint/memo.rb +157 -0
- data/lib/adlint/message.rb +207 -156
- data/lib/adlint/metric.rb +139 -217
- data/lib/adlint/monitor.rb +45 -43
- data/lib/adlint/phase.rb +56 -29
- data/lib/adlint/prelude.rb +66 -54
- data/lib/adlint/report.rb +253 -332
- data/lib/adlint/source.rb +26 -27
- data/lib/adlint/supp.rb +131 -0
- data/lib/adlint/symbol.rb +14 -16
- data/lib/adlint/token.rb +19 -91
- data/lib/adlint/traits.rb +242 -226
- data/lib/adlint/util.rb +116 -205
- data/lib/adlint/version.rb +8 -8
- data/share/HEADER +2 -2
- data/share/doc/developers_guide_ja.html +148 -19
- data/share/doc/developers_guide_ja.texi +141 -11
- data/share/doc/samples/GNUmakefile +1 -1
- data/share/doc/samples/adlint_traits.yml +45 -36
- data/share/doc/users_guide_en.html +1321 -1252
- data/share/doc/users_guide_en.texi +475 -408
- data/share/doc/users_guide_ja.html +1932 -1878
- data/share/doc/users_guide_ja.texi +324 -273
- data/share/sample/bison-2.5/adlint/GNUmakefile +5 -1
- data/share/sample/bison-2.5/adlint/adlint_traits.yml +38 -38
- data/share/sample/bison-2.5/adlint/lib/GNUmakefile +1 -1
- data/share/sample/bison-2.5/adlint/lib/adlint_cinit.h +1 -1
- data/share/sample/bison-2.5/adlint/lib/adlint_pinit.h +1 -1
- data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +50 -42
- data/share/sample/bison-2.5/adlint/src/GNUmakefile +1 -1
- data/share/sample/bison-2.5/adlint/src/adlint_cinit.h +1 -1
- data/share/sample/bison-2.5/adlint/src/adlint_pinit.h +1 -1
- data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +50 -42
- data/share/sample/ctags-5.8/adlint/GNUmakefile +1 -1
- data/share/sample/ctags-5.8/adlint/adlint_cinit.h +1 -1
- data/share/sample/ctags-5.8/adlint/adlint_pinit.h +1 -1
- data/share/sample/ctags-5.8/adlint/adlint_traits.yml +50 -42
- data/share/sample/flex-2.5.35/adlint/GNUmakefile +1 -1
- data/share/sample/flex-2.5.35/adlint/adlint_cinit.h +1 -1
- data/share/sample/flex-2.5.35/adlint/adlint_pinit.h +1 -1
- data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +46 -38
- data/share/sample/ruby-1.9.3-p0/adlint/core/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/enc/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +50 -42
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/GNUmakefile +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_cinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_pinit.h +1 -1
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +50 -42
- data/share/sample/screen-4.0.3/adlint/GNUmakefile +1 -1
- data/share/sample/screen-4.0.3/adlint/adlint_cinit.h +1 -1
- data/share/sample/screen-4.0.3/adlint/adlint_pinit.h +1 -1
- data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +50 -42
- data/share/sample/vim-7.3/adlint/vim/GNUmakefile +1 -1
- data/share/sample/vim-7.3/adlint/vim/adlint_cinit.h +1 -1
- data/share/sample/vim-7.3/adlint/vim/adlint_pinit.h +1 -1
- data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +50 -42
- data/share/sample/vim-7.3/adlint/xxd/GNUmakefile +1 -1
- data/share/sample/vim-7.3/adlint/xxd/adlint_cinit.h +1 -1
- data/share/sample/vim-7.3/adlint/xxd/adlint_pinit.h +1 -1
- data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +49 -41
- data/share/sample/zsh-4.3.15/adlint/GNUmakefile +1 -1
- data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +46 -38
- data/share/sample/zsh-4.3.15/adlint/builtins/GNUmakefile +1 -1
- data/share/sample/zsh-4.3.15/adlint/builtins/adlint_cinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/builtins/adlint_pinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +50 -42
- data/share/sample/zsh-4.3.15/adlint/core/GNUmakefile +1 -1
- data/share/sample/zsh-4.3.15/adlint/core/adlint_cinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/core/adlint_pinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +50 -42
- data/share/sample/zsh-4.3.15/adlint/modules/GNUmakefile +1 -1
- data/share/sample/zsh-4.3.15/adlint/modules/adlint_cinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/modules/adlint_pinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +50 -42
- data/share/sample/zsh-4.3.15/adlint/zle/GNUmakefile +1 -1
- data/share/sample/zsh-4.3.15/adlint/zle/adlint_cinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/zle/adlint_pinit.h +1 -1
- data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +50 -42
- data/spec/adlint/{c → cc1}/ctrlexpr_spec.rb +51 -49
- data/spec/adlint/{c → cc1}/domain_spec.rb +210 -179
- data/spec/adlint/{c → cc1}/operator_spec.rb +3 -3
- data/spec/adlint/{c → cc1}/syntax_spec.rb +10 -12
- data/spec/adlint/{c → cc1}/type_spec.rb +61 -68
- data/{lib/adlint/c.rb → spec/adlint/location_spec.rb} +24 -29
- data/spec/conf.d/default_traits.yml +38 -37
- data/spec/conf.d/empty_cinit.h +1 -1
- data/spec/conf.d/empty_pinit.h +1 -1
- data/spec/conf.d/project/foo.c +0 -0
- data/spec/spec_helper.rb +2 -2
- metadata +60 -40
- data/lib/adlint/c/domain.rb +0 -7931
- data/lib/adlint/c/lexer.rb +0 -252
- data/lib/adlint/c/phase.rb +0 -135
- data/lib/adlint/exam/c_builtin/c_check.rb +0 -20745
- data/lib/adlint/exam/c_builtin/c_check_shima.rb +0 -983
- data/lib/adlint/exam/c_builtin/c_code.rb +0 -477
- data/lib/adlint/exam/c_builtin/c_metric.rb +0 -818
@@ -2,7 +2,7 @@
|
|
2
2
|
* / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
* / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
* / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
* /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
* /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
*
|
7
7
|
* Initial header for GCC 4.6.1 on MinGW generated by adlintize <%= AdLint::SHORT_VERSION %>
|
8
8
|
* at <%= Time.now %>.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
# / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
#
|
7
7
|
# Traits file generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>.
|
8
8
|
|
@@ -29,19 +29,32 @@ project_traits:
|
|
29
29
|
# Project root directory.
|
30
30
|
project_root: "<%= vpath %>"
|
31
31
|
|
32
|
-
#
|
32
|
+
# Analysys target selection.
|
33
33
|
# Ex.
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
|
34
|
+
# target_files:
|
35
|
+
# inclusion_paths:
|
36
|
+
# - "../foo"
|
37
|
+
# - "../bar"
|
38
|
+
# exclusion_paths:
|
39
|
+
# - "../bar/baz"
|
40
|
+
target_files:
|
41
|
+
inclusion_paths:
|
42
|
+
- "<%= vpath %>"
|
43
|
+
exclusion_paths:
|
39
44
|
|
40
45
|
# Pathname of the project specific initial header file.
|
41
46
|
# This header file is automatically included above the first line of the
|
42
47
|
# target source file.
|
43
48
|
initial_header: "<%= pinit_fpath.basename %>"
|
44
49
|
|
50
|
+
# Project specific additional include paths.
|
51
|
+
# Ex.
|
52
|
+
# file_search_paths:
|
53
|
+
# - "include/foo"
|
54
|
+
# - "../include/bar"
|
55
|
+
# - "/opt/baz/include"
|
56
|
+
file_search_paths:
|
57
|
+
|
45
58
|
#
|
46
59
|
# Project specific coding style section
|
47
60
|
#
|
@@ -100,10 +113,20 @@ compiler_traits:
|
|
100
113
|
# project specific initial header file.
|
101
114
|
initial_header: "<%= cinit_fpath.basename %>"
|
102
115
|
|
116
|
+
# Compiler specific include paths.
|
117
|
+
# Ex.
|
118
|
+
# file_search_paths:
|
119
|
+
# - "/usr/include"
|
120
|
+
# - "/usr/local/include"
|
121
|
+
file_search_paths:
|
122
|
+
- "/mingw/lib/gcc/mingw32/4.6.1/include"
|
123
|
+
- "/mingw/include"
|
124
|
+
- "/mingw/lib/gcc/mingw32/4.6.1/include-fixed"
|
125
|
+
|
103
126
|
#
|
104
127
|
# Compiler specific standard type section
|
105
128
|
#
|
106
|
-
|
129
|
+
standard_types:
|
107
130
|
|
108
131
|
# Bit size of the `char' type family.
|
109
132
|
char_size: 8
|
@@ -158,30 +181,23 @@ compiler_traits:
|
|
158
181
|
# Treat the `char' type as same as the `unsigned char' type?
|
159
182
|
char_as_unsigned_char: true
|
160
183
|
|
161
|
-
# Compiler specific include paths.
|
162
|
-
# Ex.
|
163
|
-
# include_path:
|
164
|
-
# - "/usr/include"
|
165
|
-
# - "/usr/local/include"
|
166
|
-
include_path:
|
167
|
-
- "/mingw/lib/gcc/mingw32/4.6.1/include"
|
168
|
-
- "/mingw/include"
|
169
|
-
- "/mingw/lib/gcc/mingw32/4.6.1/include-fixed"
|
170
|
-
|
171
184
|
# Treat the `>>' operator as a logical shift, not an arithmetic shift?
|
172
185
|
arithmetic:
|
173
186
|
logical_right_shift: true
|
174
187
|
|
188
|
+
# Max length of all symbols can be identified by the compiler.
|
189
|
+
identifier_max: 128
|
190
|
+
|
175
191
|
# Token substitution setting to warn the use of compiler specific extensions.
|
176
192
|
#
|
177
193
|
# If your compiler supports `__attribute__(...)' extension and you want to
|
178
194
|
# know the use of this extension, specify as below.
|
179
|
-
#
|
195
|
+
# extension_substitutions:
|
180
196
|
# "__attribute__(__adlint__any)": ""
|
181
197
|
# The token sequence consists of `__attribute__', `(', any kind of tokens,
|
182
198
|
# `)' will be replaced with nothing (erased) after the preprocessing phase.
|
183
199
|
# And this substitution will be warned by the message W0061.
|
184
|
-
|
200
|
+
extension_substitutions:
|
185
201
|
"__extension__": ""
|
186
202
|
"__attribute__(__adlint__any)": ""
|
187
203
|
"__cdecl": ""
|
@@ -195,20 +211,17 @@ compiler_traits:
|
|
195
211
|
#
|
196
212
|
# If your compiler supports `__asm__ volatile (...)' extension and you do not
|
197
213
|
# mind the use of this extension, specify as below.
|
198
|
-
#
|
214
|
+
# arbitrary_substitutions:
|
199
215
|
# "__asm__ __adlint__any(__adlint__any)": ""
|
200
216
|
# The token sequence consists of `__asm__', any kind of tokens, `(', any kind
|
201
217
|
# of tokens, `)' will be replaced with nothing (erased) silently after the
|
202
218
|
# preprocessing phase.
|
203
|
-
|
219
|
+
arbitrary_substitutions:
|
204
220
|
"typeof": "__typeof__"
|
205
221
|
"__typeof": "__typeof__"
|
206
222
|
"alignof": "__alignof__"
|
207
223
|
"__alignof": "__alignof__"
|
208
224
|
|
209
|
-
# Max length of all symbols can be identified by the compiler.
|
210
|
-
identifier_max: 128
|
211
|
-
|
212
225
|
#
|
213
226
|
# Linker specific traits section
|
214
227
|
#
|
@@ -230,21 +243,8 @@ message_traits:
|
|
230
243
|
# Please help to translate the message catalog into your language.
|
231
244
|
language: "<%= lang %>"
|
232
245
|
|
233
|
-
#
|
234
|
-
|
235
|
-
|
236
|
-
# Warn only files in the specified directory.
|
237
|
-
# If omitted, all files including system headers will be warned.
|
238
|
-
warn_files_in:
|
239
|
-
- "<%= vpath %>"
|
240
|
-
|
241
|
-
# Don't warn files in the specified directory.
|
242
|
-
# You can specify 3rd-party library header directories imported in the
|
243
|
-
# project to suppress warnings about unconcerned headers.
|
244
|
-
warn_files_not_in:
|
245
|
-
|
246
|
-
# Enable translation-unit specific code check selection?
|
247
|
-
individual_selection: true
|
246
|
+
# Enable inline annotation based message suppression?
|
247
|
+
individual_suppression: true
|
248
248
|
|
249
249
|
# Project-wide code check exclusion settings.
|
250
250
|
# Ex.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
# / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
#
|
7
7
|
# GNUmakefile generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>.
|
8
8
|
#
|
@@ -2,7 +2,7 @@
|
|
2
2
|
: / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
: / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
: / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
: /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
: /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
:
|
7
7
|
: MS-Windows BAT file generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>
|
8
8
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
4
4
|
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
5
5
|
# / __ |/ /_/ / /___/ / /| / / /
|
6
|
-
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
6
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
7
7
|
#
|
8
8
|
# Shell script generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>
|
9
9
|
|
data/etc/conf.d/noarch/pinit.erb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
* / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
* / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
* /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
* /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
*
|
7
7
|
* Project specific initial header file generated by adlintize <%= AdLint::SHORT_VERSION %>
|
8
8
|
* at <%= Time.now %>.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
* / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
* / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
* /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
* /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
*
|
7
7
|
* Initial header for GCC 4.6.3 on Ubuntu 12.04 LTS (64bit) generated by adlintize <%= AdLint::SHORT_VERSION %>
|
8
8
|
*/
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
# / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
#
|
7
7
|
# Traits file generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>.
|
8
8
|
|
@@ -29,19 +29,32 @@ project_traits:
|
|
29
29
|
# Project root directory.
|
30
30
|
project_root: "<%= vpath %>"
|
31
31
|
|
32
|
-
#
|
32
|
+
# Analysys target selection.
|
33
33
|
# Ex.
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
|
34
|
+
# target_files:
|
35
|
+
# inclusion_paths:
|
36
|
+
# - "../foo"
|
37
|
+
# - "../bar"
|
38
|
+
# exclusion_paths:
|
39
|
+
# - "../bar/baz"
|
40
|
+
target_files:
|
41
|
+
inclusion_paths:
|
42
|
+
- "<%= vpath %>"
|
43
|
+
exclusion_paths:
|
39
44
|
|
40
45
|
# Pathname of the project specific initial header file.
|
41
46
|
# This header file is automatically included above the first line of the
|
42
47
|
# target source file.
|
43
48
|
initial_header: "<%= pinit_fpath.basename %>"
|
44
49
|
|
50
|
+
# Project specific additional include paths.
|
51
|
+
# Ex.
|
52
|
+
# file_search_paths:
|
53
|
+
# - "include/foo"
|
54
|
+
# - "../include/bar"
|
55
|
+
# - "/opt/baz/include"
|
56
|
+
file_search_paths:
|
57
|
+
|
45
58
|
#
|
46
59
|
# Project specific coding style section
|
47
60
|
#
|
@@ -100,10 +113,22 @@ compiler_traits:
|
|
100
113
|
# project specific initial header file.
|
101
114
|
initial_header: "<%= cinit_fpath.basename %>"
|
102
115
|
|
116
|
+
# Compiler specific include paths.
|
117
|
+
# Ex.
|
118
|
+
# file_search_paths:
|
119
|
+
# - "/usr/include"
|
120
|
+
# - "/usr/local/include"
|
121
|
+
file_search_paths:
|
122
|
+
- "/usr/lib/gcc/x86_64-linux-gnu/4.6/include"
|
123
|
+
- "/usr/local/include"
|
124
|
+
- "/usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed"
|
125
|
+
- "/usr/include/x86_64-linux-gnu"
|
126
|
+
- "/usr/include"
|
127
|
+
|
103
128
|
#
|
104
129
|
# Compiler specific standard type section
|
105
130
|
#
|
106
|
-
|
131
|
+
standard_types:
|
107
132
|
|
108
133
|
# Bit size of the `char' type family.
|
109
134
|
char_size: 8
|
@@ -158,32 +183,23 @@ compiler_traits:
|
|
158
183
|
# Treat the `char' type as same as the `unsigned char' type?
|
159
184
|
char_as_unsigned_char: true
|
160
185
|
|
161
|
-
# Compiler specific include paths.
|
162
|
-
# Ex.
|
163
|
-
# include_path:
|
164
|
-
# - "/usr/include"
|
165
|
-
# - "/usr/local/include"
|
166
|
-
include_path:
|
167
|
-
- "/usr/lib/gcc/x86_64-linux-gnu/4.6/include"
|
168
|
-
- "/usr/local/include"
|
169
|
-
- "/usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed"
|
170
|
-
- "/usr/include/x86_64-linux-gnu"
|
171
|
-
- "/usr/include"
|
172
|
-
|
173
186
|
# Treat the `>>' operator as a logical shift, not an arithmetic shift?
|
174
187
|
arithmetic:
|
175
188
|
logical_right_shift: true
|
176
189
|
|
190
|
+
# Max length of all symbols can be identified by the compiler.
|
191
|
+
identifier_max: 128
|
192
|
+
|
177
193
|
# Token substitution setting to warn the use of compiler specific extensions.
|
178
194
|
#
|
179
195
|
# If your compiler supports `__attribute__(...)' extension and you want to
|
180
196
|
# know the use of this extension, specify as below.
|
181
|
-
#
|
197
|
+
# extension_substitutions:
|
182
198
|
# "__attribute__(__adlint__any)": ""
|
183
199
|
# The token sequence consists of `__attribute__', `(', any kind of tokens,
|
184
200
|
# `)' will be replaced with nothing (erased) after the preprocessing phase.
|
185
201
|
# And this substitution will be warned by the message W0061.
|
186
|
-
|
202
|
+
extension_substitutions:
|
187
203
|
"__extension__": ""
|
188
204
|
"__attribute__(__adlint__any)": ""
|
189
205
|
"__asm__ __adlint__any(__adlint__any)": ""
|
@@ -199,20 +215,17 @@ compiler_traits:
|
|
199
215
|
#
|
200
216
|
# If your compiler supports `__asm__ volatile (...)' extension and you do not
|
201
217
|
# mind the use of this extension, specify as below.
|
202
|
-
#
|
218
|
+
# arbitrary_substitutions:
|
203
219
|
# "__asm__ __adlint__any(__adlint__any)": ""
|
204
220
|
# The token sequence consists of `__asm__', any kind of tokens, `(', any kind
|
205
221
|
# of tokens, `)' will be replaced with nothing (erased) silently after the
|
206
222
|
# preprocessing phase.
|
207
|
-
|
223
|
+
arbitrary_substitutions:
|
208
224
|
"typeof": "__typeof__"
|
209
225
|
"__typeof": "__typeof__"
|
210
226
|
"alignof": "__alignof__"
|
211
227
|
"__alignof": "__alignof__"
|
212
228
|
|
213
|
-
# Max length of all symbols can be identified by the compiler.
|
214
|
-
identifier_max: 128
|
215
|
-
|
216
229
|
#
|
217
230
|
# Linker specific traits section
|
218
231
|
#
|
@@ -234,21 +247,8 @@ message_traits:
|
|
234
247
|
# Please help to translate the message catalog into your language.
|
235
248
|
language: "<%= lang %>"
|
236
249
|
|
237
|
-
#
|
238
|
-
|
239
|
-
|
240
|
-
# Warn only files in the specified directory.
|
241
|
-
# If omitted, all files including system headers will be warned.
|
242
|
-
warn_files_in:
|
243
|
-
- "<%= vpath %>"
|
244
|
-
|
245
|
-
# Don't warn files in the specified directory.
|
246
|
-
# You can specify 3rd-party library header directories imported in the
|
247
|
-
# project to suppress warnings about unconcerned headers.
|
248
|
-
warn_files_not_in:
|
249
|
-
|
250
|
-
# Enable translation-unit specific code check selection?
|
251
|
-
individual_selection: true
|
250
|
+
# Enable inline annotation based message suppression?
|
251
|
+
individual_suppression: true
|
252
252
|
|
253
253
|
# Project-wide code check exclusion settings.
|
254
254
|
# Ex.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
3
|
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
4
|
# / __ |/ /_/ / /___/ / /| / / /
|
5
|
-
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-
|
5
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
6
6
|
#
|
7
7
|
# This file is part of AdLint.
|
8
8
|
#
|
@@ -49,7 +49,7 @@
|
|
49
49
|
# - "ERR:X99"
|
50
50
|
# format: "Your custom message for the error of E9999."
|
51
51
|
|
52
|
-
version: "
|
52
|
+
version: "3.0.0"
|
53
53
|
|
54
54
|
message_definition:
|
55
55
|
W0001:
|
@@ -119,7 +119,7 @@ message_definition:
|
|
119
119
|
W0028:
|
120
120
|
classes:
|
121
121
|
- "UNC:X99"
|
122
|
-
format: "
|
122
|
+
format: "Dereferencing a pointer constant of NULL."
|
123
123
|
W0030:
|
124
124
|
classes:
|
125
125
|
- "UNC:X99"
|
@@ -271,7 +271,7 @@ message_definition:
|
|
271
271
|
W0076:
|
272
272
|
classes:
|
273
273
|
- "UNC:X99"
|
274
|
-
format: "
|
274
|
+
format: "Hexadecimal constant without `U' or `u' suffix."
|
275
275
|
W0077:
|
276
276
|
classes:
|
277
277
|
- "UNC:X99"
|
@@ -319,7 +319,7 @@ message_definition:
|
|
319
319
|
W0093:
|
320
320
|
classes:
|
321
321
|
- "UNC:X99"
|
322
|
-
format: "
|
322
|
+
format: "This expression may cause division-by-zero."
|
323
323
|
W0094:
|
324
324
|
classes:
|
325
325
|
- "UNC:X99"
|
@@ -331,7 +331,7 @@ message_definition:
|
|
331
331
|
W0097:
|
332
332
|
classes:
|
333
333
|
- "UNC:X99"
|
334
|
-
format: "
|
334
|
+
format: "This expression must cause division-by-zero."
|
335
335
|
W0100:
|
336
336
|
classes:
|
337
337
|
- "UNC:X99"
|
@@ -363,7 +363,7 @@ message_definition:
|
|
363
363
|
W0108:
|
364
364
|
classes:
|
365
365
|
- "UNC:X99"
|
366
|
-
format: "
|
366
|
+
format: "An assignment-expression appears in the logical expression."
|
367
367
|
W0109:
|
368
368
|
classes:
|
369
369
|
- "UNC:X99"
|
@@ -391,11 +391,11 @@ message_definition:
|
|
391
391
|
W0117:
|
392
392
|
classes:
|
393
393
|
- "UNC:X99"
|
394
|
-
format: "
|
394
|
+
format: "`%s' has external-linkage without any prototype declarations."
|
395
395
|
W0118:
|
396
396
|
classes:
|
397
397
|
- "UNC:X99"
|
398
|
-
format: "
|
398
|
+
format: "`%s' has external-linkage, but no prototype declaration is in header files."
|
399
399
|
W0119:
|
400
400
|
classes:
|
401
401
|
- "UNC:X99"
|
@@ -583,7 +583,7 @@ message_definition:
|
|
583
583
|
W0165:
|
584
584
|
classes:
|
585
585
|
- "UNC:X99"
|
586
|
-
format: "
|
586
|
+
format: "Implicit conversion from `signed int' to `unsigned char'."
|
587
587
|
W0166:
|
588
588
|
classes:
|
589
589
|
- "UNC:X99"
|
@@ -591,7 +591,7 @@ message_definition:
|
|
591
591
|
W0167:
|
592
592
|
classes:
|
593
593
|
- "UNC:X99"
|
594
|
-
format: "
|
594
|
+
format: "Implicit conversion from `signed int' to `unsigned int'."
|
595
595
|
W0168:
|
596
596
|
classes:
|
597
597
|
- "UNC:X99"
|
@@ -907,7 +907,7 @@ message_definition:
|
|
907
907
|
W0246:
|
908
908
|
classes:
|
909
909
|
- "UNC:X99"
|
910
|
-
format: "
|
910
|
+
format: "Implicit conversion from `unsigned char' to `signed int'."
|
911
911
|
W0247:
|
912
912
|
classes:
|
913
913
|
- "UNC:X99"
|
@@ -1575,15 +1575,15 @@ message_definition:
|
|
1575
1575
|
W0414:
|
1576
1576
|
classes:
|
1577
1577
|
- "UNC:X99"
|
1578
|
-
format: "
|
1578
|
+
format: "Body of the controlling statement in a line is not enclosed by `{}'."
|
1579
1579
|
W0421:
|
1580
1580
|
classes:
|
1581
1581
|
- "UNC:X99"
|
1582
|
-
format: "
|
1582
|
+
format: "Value of the dereferencing pointer must be NULL."
|
1583
1583
|
W0422:
|
1584
1584
|
classes:
|
1585
1585
|
- "UNC:X99"
|
1586
|
-
format: "
|
1586
|
+
format: "Value of the dereferencing pointer may be NULL."
|
1587
1587
|
W0423:
|
1588
1588
|
classes:
|
1589
1589
|
- "UNC:X99"
|
@@ -1755,7 +1755,7 @@ message_definition:
|
|
1755
1755
|
W0502:
|
1756
1756
|
classes:
|
1757
1757
|
- "UNC:X99"
|
1758
|
-
format: "A binary operator
|
1758
|
+
format: "A binary operator other than `+', `-', `*', `/' and `%%' appears with binary operator which has different precedence without expression grouping."
|
1759
1759
|
W0508:
|
1760
1760
|
classes:
|
1761
1761
|
- "UNC:X99"
|
@@ -1899,7 +1899,7 @@ message_definition:
|
|
1899
1899
|
W0570:
|
1900
1900
|
classes:
|
1901
1901
|
- "UNC:X99"
|
1902
|
-
format: "
|
1902
|
+
format: "This signed left shift operation may make undefined value."
|
1903
1903
|
W0571:
|
1904
1904
|
classes:
|
1905
1905
|
- "UNC:X99"
|
@@ -1907,7 +1907,7 @@ message_definition:
|
|
1907
1907
|
W0572:
|
1908
1908
|
classes:
|
1909
1909
|
- "UNC:X99"
|
1910
|
-
format: "
|
1910
|
+
format: "Bitwise operation of signed value causes implementation-defined behavior."
|
1911
1911
|
W0573:
|
1912
1912
|
classes:
|
1913
1913
|
- "UNC:X99"
|
@@ -1995,7 +1995,7 @@ message_definition:
|
|
1995
1995
|
W0605:
|
1996
1996
|
classes:
|
1997
1997
|
- "UNC:X99"
|
1998
|
-
format: "
|
1998
|
+
format: "Multiple break-statements appear to break the same iteration."
|
1999
1999
|
W0606:
|
2000
2000
|
classes:
|
2001
2001
|
- "UNC:X99"
|
@@ -2011,11 +2011,11 @@ message_definition:
|
|
2011
2011
|
W0609:
|
2012
2012
|
classes:
|
2013
2013
|
- "UNC:X99"
|
2014
|
-
format: "
|
2014
|
+
format: "This logical expression always makes true."
|
2015
2015
|
W0610:
|
2016
2016
|
classes:
|
2017
2017
|
- "UNC:X99"
|
2018
|
-
format: "
|
2018
|
+
format: "This logical expression always makes false."
|
2019
2019
|
W0611:
|
2020
2020
|
classes:
|
2021
2021
|
- "UNC:X99"
|
@@ -2027,7 +2027,7 @@ message_definition:
|
|
2027
2027
|
W0613:
|
2028
2028
|
classes:
|
2029
2029
|
- "UNC:X99"
|
2030
|
-
format: "
|
2030
|
+
format: "This controlling expression always makes false."
|
2031
2031
|
W0614:
|
2032
2032
|
classes:
|
2033
2033
|
- "UNC:X99"
|
@@ -2063,7 +2063,7 @@ message_definition:
|
|
2063
2063
|
W0629:
|
2064
2064
|
classes:
|
2065
2065
|
- "UNC:X99"
|
2066
|
-
format: "
|
2066
|
+
format: "`%s()' has internal-linkage, but it is never called in this translation-unit."
|
2067
2067
|
W0632:
|
2068
2068
|
classes:
|
2069
2069
|
- "UNC:X99"
|
@@ -2335,11 +2335,11 @@ message_definition:
|
|
2335
2335
|
W0705:
|
2336
2336
|
classes:
|
2337
2337
|
- "UNC:X99"
|
2338
|
-
format: "
|
2338
|
+
format: "This non-constant array subscript may cause out-of-range access."
|
2339
2339
|
W0707:
|
2340
2340
|
classes:
|
2341
2341
|
- "UNC:X99"
|
2342
|
-
format: "
|
2342
|
+
format: "This constant array subscript must cause out-of-range access."
|
2343
2343
|
W0708:
|
2344
2344
|
classes:
|
2345
2345
|
- "UNC:X99"
|
@@ -2479,7 +2479,7 @@ message_definition:
|
|
2479
2479
|
W0745:
|
2480
2480
|
classes:
|
2481
2481
|
- "UNC:X99"
|
2482
|
-
format: "
|
2482
|
+
format: "This non-constant array subscript must cause out-of-range access."
|
2483
2483
|
W0747:
|
2484
2484
|
classes:
|
2485
2485
|
- "UNC:X99"
|
@@ -2659,7 +2659,7 @@ message_definition:
|
|
2659
2659
|
W0794:
|
2660
2660
|
classes:
|
2661
2661
|
- "UNC:X99"
|
2662
|
-
format: "Left shift operation
|
2662
|
+
format: "Left shift operation of signed value causes implementation-defined behavior."
|
2663
2663
|
W0795:
|
2664
2664
|
classes:
|
2665
2665
|
- "UNC:X99"
|
@@ -2763,11 +2763,11 @@ message_definition:
|
|
2763
2763
|
W0947:
|
2764
2764
|
classes:
|
2765
2765
|
- "UNC:X99"
|
2766
|
-
format: "
|
2766
|
+
format: "String literal is specified directly."
|
2767
2767
|
W0948:
|
2768
2768
|
classes:
|
2769
2769
|
- "UNC:X99"
|
2770
|
-
format: "
|
2770
|
+
format: "Character constant %s is specified directly."
|
2771
2771
|
W0949:
|
2772
2772
|
classes:
|
2773
2773
|
- "UNC:X99"
|
@@ -2775,7 +2775,7 @@ message_definition:
|
|
2775
2775
|
W0950:
|
2776
2776
|
classes:
|
2777
2777
|
- "UNC:X99"
|
2778
|
-
format: "
|
2778
|
+
format: "Integer constant `%s' is specified directly as an array size."
|
2779
2779
|
W1026:
|
2780
2780
|
classes:
|
2781
2781
|
- "UNC:X99"
|
@@ -2963,7 +2963,7 @@ message_definition:
|
|
2963
2963
|
W1073:
|
2964
2964
|
classes:
|
2965
2965
|
- "UNC:X99"
|
2966
|
-
format: "
|
2966
|
+
format: "Return value of the function `%s' is discarded."
|
2967
2967
|
W1074:
|
2968
2968
|
classes:
|
2969
2969
|
- "UNC:X99"
|
@@ -2975,7 +2975,7 @@ message_definition:
|
|
2975
2975
|
W1076:
|
2976
2976
|
classes:
|
2977
2977
|
- "UNC:X99"
|
2978
|
-
format: "`%s'
|
2978
|
+
format: "`%s' has internal-linkage without any prototype declarations."
|
2979
2979
|
W1077:
|
2980
2980
|
classes:
|
2981
2981
|
- "UNC:X99"
|
@@ -2983,7 +2983,7 @@ message_definition:
|
|
2983
2983
|
W9001:
|
2984
2984
|
classes:
|
2985
2985
|
- "UNC:X99"
|
2986
|
-
format: "
|
2986
|
+
format: "Control never reaches to this statement."
|
2987
2987
|
W9002:
|
2988
2988
|
classes:
|
2989
2989
|
- "UNC:X99"
|