adlint 2.6.14 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
# This file is part of AdLint.
|
|
8
8
|
#
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
# Schema version of the traits file.
|
|
23
23
|
# DO NOT EDIT MANUALLY!
|
|
24
|
-
version: "
|
|
24
|
+
version: "3.0.0"
|
|
25
25
|
|
|
26
26
|
# List of names of source code examination packages.
|
|
27
27
|
#
|
|
@@ -42,19 +42,32 @@ project_traits:
|
|
|
42
42
|
# Project root directory.
|
|
43
43
|
project_root: "../../vim73"
|
|
44
44
|
|
|
45
|
-
#
|
|
45
|
+
# Analysys target selection.
|
|
46
46
|
# Ex.
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
|
|
47
|
+
# target_files:
|
|
48
|
+
# inclusion_paths:
|
|
49
|
+
# - "../foo"
|
|
50
|
+
# - "../bar"
|
|
51
|
+
# exclusion_paths:
|
|
52
|
+
# - "../bar/baz"
|
|
53
|
+
target_files:
|
|
54
|
+
inclusion_paths:
|
|
55
|
+
- "../../vim73"
|
|
56
|
+
exclusion_paths:
|
|
52
57
|
|
|
53
58
|
# Pathname of the project specific initial header file.
|
|
54
59
|
# This header file is automatically included above the first line of the
|
|
55
60
|
# target source file.
|
|
56
61
|
initial_header: "adlint_pinit.h"
|
|
57
62
|
|
|
63
|
+
# Project specific additional include paths.
|
|
64
|
+
# Ex.
|
|
65
|
+
# file_search_paths:
|
|
66
|
+
# - "include/foo"
|
|
67
|
+
# - "../include/bar"
|
|
68
|
+
# - "/opt/baz/include"
|
|
69
|
+
file_search_paths:
|
|
70
|
+
|
|
58
71
|
#
|
|
59
72
|
# Project specific coding style section
|
|
60
73
|
#
|
|
@@ -113,10 +126,20 @@ compiler_traits:
|
|
|
113
126
|
# project specific initial header file.
|
|
114
127
|
initial_header: "adlint_cinit.h"
|
|
115
128
|
|
|
129
|
+
# Compiler specific include paths.
|
|
130
|
+
# Ex.
|
|
131
|
+
# file_search_paths:
|
|
132
|
+
# - "/usr/include"
|
|
133
|
+
# - "/usr/local/include"
|
|
134
|
+
file_search_paths:
|
|
135
|
+
- "/usr/local/include"
|
|
136
|
+
- "/usr/include"
|
|
137
|
+
- "/usr/lib/gcc/i686-redhat-linux/4.5.1/include"
|
|
138
|
+
|
|
116
139
|
#
|
|
117
140
|
# Compiler specific standard type section
|
|
118
141
|
#
|
|
119
|
-
|
|
142
|
+
standard_types:
|
|
120
143
|
|
|
121
144
|
# Bit size of the `char' type family.
|
|
122
145
|
char_size: 8
|
|
@@ -171,30 +194,23 @@ compiler_traits:
|
|
|
171
194
|
# Treat the `char' type as same as the `unsigned char' type?
|
|
172
195
|
char_as_unsigned_char: true
|
|
173
196
|
|
|
174
|
-
# Compiler specific include paths.
|
|
175
|
-
# Ex.
|
|
176
|
-
# include_path:
|
|
177
|
-
# - "/usr/include"
|
|
178
|
-
# - "/usr/local/include"
|
|
179
|
-
include_path:
|
|
180
|
-
- "/usr/local/include"
|
|
181
|
-
- "/usr/include"
|
|
182
|
-
- "/usr/lib/gcc/i686-redhat-linux/4.5.1/include"
|
|
183
|
-
|
|
184
197
|
# Treat the `>>' operator as a logical shift, not an arithmetic shift?
|
|
185
198
|
arithmetic:
|
|
186
199
|
logical_right_shift: true
|
|
187
200
|
|
|
201
|
+
# Max length of all symbols can be identified by the compiler.
|
|
202
|
+
identifier_max: 128
|
|
203
|
+
|
|
188
204
|
# Token substitution setting to warn the use of compiler specific extensions.
|
|
189
205
|
#
|
|
190
206
|
# If your compiler supports `__attribute__(...)' extension and you want to
|
|
191
207
|
# know the use of this extension, specify as below.
|
|
192
|
-
#
|
|
208
|
+
# extension_substitutions:
|
|
193
209
|
# "__attribute__(__adlint__any)": ""
|
|
194
210
|
# The token sequence consists of `__attribute__', `(', any kind of tokens,
|
|
195
211
|
# `)' will be replaced with nothing (erased) after the preprocessing phase.
|
|
196
212
|
# And this substitution will be warned by the message W0061.
|
|
197
|
-
|
|
213
|
+
extension_substitutions:
|
|
198
214
|
"__extension__": ""
|
|
199
215
|
"__attribute__(__adlint__any)": ""
|
|
200
216
|
"__inline__": "inline"
|
|
@@ -205,21 +221,18 @@ compiler_traits:
|
|
|
205
221
|
#
|
|
206
222
|
# If your compiler supports `__asm__ volatile (...)' extension and you do not
|
|
207
223
|
# mind the use of this extension, specify as below.
|
|
208
|
-
#
|
|
224
|
+
# arbitrary_substitutions:
|
|
209
225
|
# "__asm__ __adlint__any(__adlint__any)": ""
|
|
210
226
|
# The token sequence consists of `__asm__', any kind of tokens, `(', any kind
|
|
211
227
|
# of tokens, `)' will be replaced with nothing (erased) silently after the
|
|
212
228
|
# preprocessing phase.
|
|
213
|
-
|
|
229
|
+
arbitrary_substitutions:
|
|
214
230
|
"typeof": "__typeof__"
|
|
215
231
|
"__typeof": "__typeof__"
|
|
216
232
|
"alignof": "__alignof__"
|
|
217
233
|
"__alignof": "__alignof__"
|
|
218
234
|
"__signed__": "signed"
|
|
219
235
|
|
|
220
|
-
# Max length of all symbols can be identified by the compiler.
|
|
221
|
-
identifier_max: 128
|
|
222
|
-
|
|
223
236
|
#
|
|
224
237
|
# Linker specific traits section
|
|
225
238
|
#
|
|
@@ -241,21 +254,8 @@ message_traits:
|
|
|
241
254
|
# Please help to translate the message catalog into your language.
|
|
242
255
|
language: "ja_JP"
|
|
243
256
|
|
|
244
|
-
#
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
# Warn only files in the specified directory.
|
|
248
|
-
# If omitted, all files including system headers will be warned.
|
|
249
|
-
warn_files_in:
|
|
250
|
-
- "../../vim73"
|
|
251
|
-
|
|
252
|
-
# Don't warn files in the specified directory.
|
|
253
|
-
# You can specify 3rd-party library header directories imported in the
|
|
254
|
-
# project to suppress warnings about unconcerned headers.
|
|
255
|
-
warn_files_not_in:
|
|
256
|
-
|
|
257
|
-
# Enable translation-unit specific code check selection?
|
|
258
|
-
individual_selection: true
|
|
257
|
+
# Enable inline annotation based message suppression?
|
|
258
|
+
individual_suppression: true
|
|
259
259
|
|
|
260
260
|
# Project-wide code check exclusion settings.
|
|
261
261
|
# Ex.
|
|
@@ -269,6 +269,14 @@ message_traits:
|
|
|
269
269
|
# W0002: "c_ansi"
|
|
270
270
|
exclusion:
|
|
271
271
|
|
|
272
|
+
# Project-wide code check inclusion settings.
|
|
273
|
+
# Ex.
|
|
274
|
+
# inclusion:
|
|
275
|
+
# messages:
|
|
276
|
+
# W0001: "c_builtin"
|
|
277
|
+
# W0002: "c_ansi"
|
|
278
|
+
inclusion:
|
|
279
|
+
|
|
272
280
|
# Message text replacement.
|
|
273
281
|
# Ex.
|
|
274
282
|
# change_list:
|
|
@@ -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
|
#
|
|
@@ -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
|
#
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
# Schema version of the traits file.
|
|
23
23
|
# DO NOT EDIT MANUALLY!
|
|
24
|
-
version: "
|
|
24
|
+
version: "3.0.0"
|
|
25
25
|
|
|
26
26
|
# List of names of source code examination packages.
|
|
27
27
|
#
|
|
@@ -42,19 +42,32 @@ project_traits:
|
|
|
42
42
|
# Project root directory.
|
|
43
43
|
project_root: "../zsh-4.3.15"
|
|
44
44
|
|
|
45
|
-
#
|
|
45
|
+
# Analysys target selection.
|
|
46
46
|
# Ex.
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
|
|
47
|
+
# target_files:
|
|
48
|
+
# inclusion_paths:
|
|
49
|
+
# - "../foo"
|
|
50
|
+
# - "../bar"
|
|
51
|
+
# exclusion_paths:
|
|
52
|
+
# - "../bar/baz"
|
|
53
|
+
target_files:
|
|
54
|
+
inclusion_paths:
|
|
55
|
+
- "../zsh-4.3.15"
|
|
56
|
+
exclusion_paths:
|
|
52
57
|
|
|
53
58
|
# Pathname of the project specific initial header file.
|
|
54
59
|
# This header file is automatically included above the first line of the
|
|
55
60
|
# target source file.
|
|
56
61
|
initial_header:
|
|
57
62
|
|
|
63
|
+
# Project specific additional include paths.
|
|
64
|
+
# Ex.
|
|
65
|
+
# file_search_paths:
|
|
66
|
+
# - "include/foo"
|
|
67
|
+
# - "../include/bar"
|
|
68
|
+
# - "/opt/baz/include"
|
|
69
|
+
file_search_paths:
|
|
70
|
+
|
|
58
71
|
#
|
|
59
72
|
# Project specific coding style section
|
|
60
73
|
#
|
|
@@ -113,10 +126,17 @@ compiler_traits:
|
|
|
113
126
|
# project specific initial header file.
|
|
114
127
|
initial_header:
|
|
115
128
|
|
|
129
|
+
# Compiler specific include paths.
|
|
130
|
+
# Ex.
|
|
131
|
+
# file_search_paths:
|
|
132
|
+
# - "/usr/include"
|
|
133
|
+
# - "/usr/local/include"
|
|
134
|
+
file_search_paths:
|
|
135
|
+
|
|
116
136
|
#
|
|
117
137
|
# Compiler specific standard type section
|
|
118
138
|
#
|
|
119
|
-
|
|
139
|
+
standard_types:
|
|
120
140
|
|
|
121
141
|
# Bit size of the `char' type family.
|
|
122
142
|
char_size: 8
|
|
@@ -171,42 +191,35 @@ compiler_traits:
|
|
|
171
191
|
# Treat the `char' type as same as the `unsigned char' type?
|
|
172
192
|
char_as_unsigned_char: true
|
|
173
193
|
|
|
174
|
-
# Compiler specific include paths.
|
|
175
|
-
# Ex.
|
|
176
|
-
# include_path:
|
|
177
|
-
# - "/usr/include"
|
|
178
|
-
# - "/usr/local/include"
|
|
179
|
-
include_path:
|
|
180
|
-
|
|
181
194
|
# Treat the `>>' operator as a logical shift, not an arithmetic shift?
|
|
182
195
|
arithmetic:
|
|
183
196
|
logical_right_shift: true
|
|
184
197
|
|
|
198
|
+
# Max length of all symbols can be identified by the compiler.
|
|
199
|
+
identifier_max: 128
|
|
200
|
+
|
|
185
201
|
# Token substitution setting to warn the use of compiler specific extensions.
|
|
186
202
|
#
|
|
187
203
|
# If your compiler supports `__attribute__(...)' extension and you want to
|
|
188
204
|
# know the use of this extension, specify as below.
|
|
189
|
-
#
|
|
205
|
+
# extension_substitutions:
|
|
190
206
|
# "__attribute__(__adlint__any)": ""
|
|
191
207
|
# The token sequence consists of `__attribute__', `(', any kind of tokens,
|
|
192
208
|
# `)' will be replaced with nothing (erased) after the preprocessing phase.
|
|
193
209
|
# And this substitution will be warned by the message W0061.
|
|
194
|
-
|
|
210
|
+
extension_substitutions:
|
|
195
211
|
|
|
196
212
|
# Token substitution setting to silently ignore the use of compiler specific
|
|
197
213
|
# extensions.
|
|
198
214
|
#
|
|
199
215
|
# If your compiler supports `__asm__ volatile (...)' extension and you do not
|
|
200
216
|
# mind the use of this extension, specify as below.
|
|
201
|
-
#
|
|
217
|
+
# arbitrary_substitutions:
|
|
202
218
|
# "__asm__ __adlint__any(__adlint__any)": ""
|
|
203
219
|
# The token sequence consists of `__asm__', any kind of tokens, `(', any kind
|
|
204
220
|
# of tokens, `)' will be replaced with nothing (erased) silently after the
|
|
205
221
|
# preprocessing phase.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
# Max length of all symbols can be identified by the compiler.
|
|
209
|
-
identifier_max: 128
|
|
222
|
+
arbitrary_substitutions:
|
|
210
223
|
|
|
211
224
|
#
|
|
212
225
|
# Linker specific traits section
|
|
@@ -229,21 +242,8 @@ message_traits:
|
|
|
229
242
|
# Please help to translate the message catalog into your language.
|
|
230
243
|
language: "ja_JP"
|
|
231
244
|
|
|
232
|
-
#
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
# Warn only files in the specified directory.
|
|
236
|
-
# If omitted, all files including system headers will be warned.
|
|
237
|
-
warn_files_in:
|
|
238
|
-
- "../zsh-4.3.15"
|
|
239
|
-
|
|
240
|
-
# Don't warn files in the specified directory.
|
|
241
|
-
# You can specify 3rd-party library header directories imported in the
|
|
242
|
-
# project to suppress warnings about unconcerned headers.
|
|
243
|
-
warn_files_not_in:
|
|
244
|
-
|
|
245
|
-
# Enable translation-unit specific code check selection?
|
|
246
|
-
individual_selection: true
|
|
245
|
+
# Enable inline annotation based message suppression?
|
|
246
|
+
individual_suppression: true
|
|
247
247
|
|
|
248
248
|
# Project-wide code check exclusion settings.
|
|
249
249
|
# Ex.
|
|
@@ -257,6 +257,14 @@ message_traits:
|
|
|
257
257
|
# W0002: "c_ansi"
|
|
258
258
|
exclusion:
|
|
259
259
|
|
|
260
|
+
# Project-wide code check inclusion settings.
|
|
261
|
+
# Ex.
|
|
262
|
+
# inclusion:
|
|
263
|
+
# messages:
|
|
264
|
+
# W0001: "c_builtin"
|
|
265
|
+
# W0002: "c_ansi"
|
|
266
|
+
inclusion:
|
|
267
|
+
|
|
260
268
|
# Message text replacement.
|
|
261
269
|
# Ex.
|
|
262
270
|
# change_list:
|
|
@@ -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
|
#
|
|
@@ -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
|
*
|
|
@@ -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
|
*
|
|
@@ -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
|
#
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
# Schema version of the traits file.
|
|
23
23
|
# DO NOT EDIT MANUALLY!
|
|
24
|
-
version: "
|
|
24
|
+
version: "3.0.0"
|
|
25
25
|
|
|
26
26
|
# List of names of source code examination packages.
|
|
27
27
|
#
|
|
@@ -42,22 +42,35 @@ project_traits:
|
|
|
42
42
|
# Project root directory.
|
|
43
43
|
project_root: "../../zsh-4.3.15"
|
|
44
44
|
|
|
45
|
+
# Analysys target selection.
|
|
46
|
+
# Ex.
|
|
47
|
+
# target_files:
|
|
48
|
+
# inclusion_paths:
|
|
49
|
+
# - "../foo"
|
|
50
|
+
# - "../bar"
|
|
51
|
+
# exclusion_paths:
|
|
52
|
+
# - "../bar/baz"
|
|
53
|
+
target_files:
|
|
54
|
+
inclusion_paths:
|
|
55
|
+
- "../../zsh-4.3.15"
|
|
56
|
+
exclusion_paths:
|
|
57
|
+
|
|
58
|
+
# Pathname of the project specific initial header file.
|
|
59
|
+
# This header file is automatically included above the first line of the
|
|
60
|
+
# target source file.
|
|
61
|
+
initial_header: "adlint_pinit.h"
|
|
62
|
+
|
|
45
63
|
# Project specific additional include paths.
|
|
46
64
|
# Ex.
|
|
47
|
-
#
|
|
65
|
+
# file_search_paths:
|
|
48
66
|
# - "include/foo"
|
|
49
67
|
# - "../include/bar"
|
|
50
68
|
# - "/opt/baz/include"
|
|
51
|
-
|
|
69
|
+
file_search_paths:
|
|
52
70
|
- "../../zsh-4.3.15/Src/Modules"
|
|
53
71
|
- "../../zsh-4.3.15/Src"
|
|
54
72
|
- "../../zsh-4.3.15/Src/Zle"
|
|
55
73
|
|
|
56
|
-
# Pathname of the project specific initial header file.
|
|
57
|
-
# This header file is automatically included above the first line of the
|
|
58
|
-
# target source file.
|
|
59
|
-
initial_header: "adlint_pinit.h"
|
|
60
|
-
|
|
61
74
|
#
|
|
62
75
|
# Project specific coding style section
|
|
63
76
|
#
|
|
@@ -116,10 +129,20 @@ compiler_traits:
|
|
|
116
129
|
# project specific initial header file.
|
|
117
130
|
initial_header: "adlint_cinit.h"
|
|
118
131
|
|
|
132
|
+
# Compiler specific include paths.
|
|
133
|
+
# Ex.
|
|
134
|
+
# file_search_paths:
|
|
135
|
+
# - "/usr/include"
|
|
136
|
+
# - "/usr/local/include"
|
|
137
|
+
file_search_paths:
|
|
138
|
+
- "/usr/local/include"
|
|
139
|
+
- "/usr/include"
|
|
140
|
+
- "/usr/lib/gcc/i686-redhat-linux/4.5.1/include"
|
|
141
|
+
|
|
119
142
|
#
|
|
120
143
|
# Compiler specific standard type section
|
|
121
144
|
#
|
|
122
|
-
|
|
145
|
+
standard_types:
|
|
123
146
|
|
|
124
147
|
# Bit size of the `char' type family.
|
|
125
148
|
char_size: 8
|
|
@@ -174,30 +197,23 @@ compiler_traits:
|
|
|
174
197
|
# Treat the `char' type as same as the `unsigned char' type?
|
|
175
198
|
char_as_unsigned_char: true
|
|
176
199
|
|
|
177
|
-
# Compiler specific include paths.
|
|
178
|
-
# Ex.
|
|
179
|
-
# include_path:
|
|
180
|
-
# - "/usr/include"
|
|
181
|
-
# - "/usr/local/include"
|
|
182
|
-
include_path:
|
|
183
|
-
- "/usr/local/include"
|
|
184
|
-
- "/usr/include"
|
|
185
|
-
- "/usr/lib/gcc/i686-redhat-linux/4.5.1/include"
|
|
186
|
-
|
|
187
200
|
# Treat the `>>' operator as a logical shift, not an arithmetic shift?
|
|
188
201
|
arithmetic:
|
|
189
202
|
logical_right_shift: true
|
|
190
203
|
|
|
204
|
+
# Max length of all symbols can be identified by the compiler.
|
|
205
|
+
identifier_max: 128
|
|
206
|
+
|
|
191
207
|
# Token substitution setting to warn the use of compiler specific extensions.
|
|
192
208
|
#
|
|
193
209
|
# If your compiler supports `__attribute__(...)' extension and you want to
|
|
194
210
|
# know the use of this extension, specify as below.
|
|
195
|
-
#
|
|
211
|
+
# extension_substitutions:
|
|
196
212
|
# "__attribute__(__adlint__any)": ""
|
|
197
213
|
# The token sequence consists of `__attribute__', `(', any kind of tokens,
|
|
198
214
|
# `)' will be replaced with nothing (erased) after the preprocessing phase.
|
|
199
215
|
# And this substitution will be warned by the message W0061.
|
|
200
|
-
|
|
216
|
+
extension_substitutions:
|
|
201
217
|
"__extension__": ""
|
|
202
218
|
"__attribute__(__adlint__any)": ""
|
|
203
219
|
"__inline__": "inline"
|
|
@@ -208,21 +224,18 @@ compiler_traits:
|
|
|
208
224
|
#
|
|
209
225
|
# If your compiler supports `__asm__ volatile (...)' extension and you do not
|
|
210
226
|
# mind the use of this extension, specify as below.
|
|
211
|
-
#
|
|
227
|
+
# arbitrary_substitutions:
|
|
212
228
|
# "__asm__ __adlint__any(__adlint__any)": ""
|
|
213
229
|
# The token sequence consists of `__asm__', any kind of tokens, `(', any kind
|
|
214
230
|
# of tokens, `)' will be replaced with nothing (erased) silently after the
|
|
215
231
|
# preprocessing phase.
|
|
216
|
-
|
|
232
|
+
arbitrary_substitutions:
|
|
217
233
|
"typeof": "__typeof__"
|
|
218
234
|
"__typeof": "__typeof__"
|
|
219
235
|
"alignof": "__alignof__"
|
|
220
236
|
"__alignof": "__alignof__"
|
|
221
237
|
"__signed__": "signed"
|
|
222
238
|
|
|
223
|
-
# Max length of all symbols can be identified by the compiler.
|
|
224
|
-
identifier_max: 128
|
|
225
|
-
|
|
226
239
|
#
|
|
227
240
|
# Linker specific traits section
|
|
228
241
|
#
|
|
@@ -244,21 +257,8 @@ message_traits:
|
|
|
244
257
|
# Please help to translate the message catalog into your language.
|
|
245
258
|
language: "ja_JP"
|
|
246
259
|
|
|
247
|
-
#
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
# Warn only files in the specified directory.
|
|
251
|
-
# If omitted, all files including system headers will be warned.
|
|
252
|
-
warn_files_in:
|
|
253
|
-
- "../../zsh-4.3.15"
|
|
254
|
-
|
|
255
|
-
# Don't warn files in the specified directory.
|
|
256
|
-
# You can specify 3rd-party library header directories imported in the
|
|
257
|
-
# project to suppress warnings about unconcerned headers.
|
|
258
|
-
warn_files_not_in:
|
|
259
|
-
|
|
260
|
-
# Enable translation-unit specific code check selection?
|
|
261
|
-
individual_selection: true
|
|
260
|
+
# Enable inline annotation based message suppression?
|
|
261
|
+
individual_suppression: true
|
|
262
262
|
|
|
263
263
|
# Project-wide code check exclusion settings.
|
|
264
264
|
# Ex.
|
|
@@ -272,6 +272,14 @@ message_traits:
|
|
|
272
272
|
# W0002: "c_ansi"
|
|
273
273
|
exclusion:
|
|
274
274
|
|
|
275
|
+
# Project-wide code check inclusion settings.
|
|
276
|
+
# Ex.
|
|
277
|
+
# inclusion:
|
|
278
|
+
# messages:
|
|
279
|
+
# W0001: "c_builtin"
|
|
280
|
+
# W0002: "c_ansi"
|
|
281
|
+
inclusion:
|
|
282
|
+
|
|
275
283
|
# Message text replacement.
|
|
276
284
|
# Ex.
|
|
277
285
|
# change_list:
|