adlint 3.2.0 → 3.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (371) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS +1 -2
  3. data/ChangeLog +196 -5236
  4. data/INSTALL +1 -1
  5. data/MANIFEST +4 -2
  6. data/NEWS +30 -13
  7. data/README +2 -2
  8. data/Rakefile +2 -2
  9. data/TODO +1 -1
  10. data/bin/adlint +2 -2
  11. data/bin/adlint_chk +2 -2
  12. data/bin/adlint_cma +2 -2
  13. data/bin/adlint_sma +2 -2
  14. data/bin/adlintize +2 -2
  15. data/etc/conf.d/fallback/cinit.erb +1 -1
  16. data/etc/conf.d/fallback/traits.erb +1 -1
  17. data/etc/conf.d/i686-cygwin/cinit-gcc_4.3.4.erb +1 -1
  18. data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +1 -1
  19. data/etc/conf.d/i686-devkit/cinit-gcc_4.5.2.erb +1 -1
  20. data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +1 -1
  21. data/etc/conf.d/i686-linux/cinit-gcc_4.5.1.erb +1 -1
  22. data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +1 -1
  23. data/etc/conf.d/i686-mingw/cinit-gcc_4.6.1.erb +1 -1
  24. data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +1 -1
  25. data/etc/conf.d/noarch/GNUmakefile.erb +1 -1
  26. data/etc/conf.d/noarch/adlint_all_bat.erb +1 -1
  27. data/etc/conf.d/noarch/adlint_all_sh.erb +1 -1
  28. data/etc/conf.d/noarch/pinit.erb +1 -1
  29. data/etc/conf.d/x86_64-centos_6.4/cinit-gcc_4.4.7.erb +150 -0
  30. data/etc/conf.d/x86_64-centos_6.4/traits-gcc_4.4.7.erb +290 -0
  31. data/etc/conf.d/x86_64-ubuntu_12.04/cinit-gcc_4.6.3.erb +1 -1
  32. data/etc/conf.d/x86_64-ubuntu_12.04/traits-gcc_4.6.3.erb +1 -1
  33. data/etc/mesg.d/c_builtin/en_US/messages.yml +2 -2
  34. data/etc/mesg.d/c_builtin/ja_JP/messages.yml +3 -3
  35. data/etc/mesg.d/core/en_US/messages.yml +6 -2
  36. data/etc/mesg.d/core/ja_JP/messages.yml +6 -2
  37. data/features/code_check/E0008.feature +122 -0
  38. data/features/code_check/E0016.feature +49 -0
  39. data/features/code_check/E0018.feature +99 -0
  40. data/features/code_check/W0460.feature +8 -8
  41. data/lib/adlint.rb +2 -2
  42. data/lib/adlint/analyzer.rb +2 -2
  43. data/lib/adlint/annot.rb +2 -2
  44. data/lib/adlint/cc1.rb +2 -2
  45. data/lib/adlint/cc1/branch.rb +2 -2
  46. data/lib/adlint/cc1/builtin.rb +2 -2
  47. data/lib/adlint/cc1/const.rb +2 -2
  48. data/lib/adlint/cc1/conv.rb +2 -2
  49. data/lib/adlint/cc1/ctrlexpr.rb +2 -2
  50. data/lib/adlint/cc1/domain.rb +2 -2
  51. data/lib/adlint/cc1/enum.rb +2 -2
  52. data/lib/adlint/cc1/environ.rb +2 -2
  53. data/lib/adlint/cc1/expr.rb +110 -48
  54. data/lib/adlint/cc1/format.rb +2 -2
  55. data/lib/adlint/cc1/interp.rb +46 -12
  56. data/lib/adlint/cc1/lexer.rb +44 -11
  57. data/lib/adlint/cc1/mediator.rb +16 -2
  58. data/lib/adlint/cc1/object.rb +2 -2
  59. data/lib/adlint/cc1/operator.rb +2 -2
  60. data/lib/adlint/cc1/option.rb +3 -3
  61. data/lib/adlint/cc1/parser.rb +1011 -999
  62. data/lib/adlint/cc1/parser.y +20 -11
  63. data/lib/adlint/cc1/phase.rb +2 -2
  64. data/lib/adlint/cc1/resolver.rb +2 -2
  65. data/lib/adlint/cc1/scanner.rb +2 -2
  66. data/lib/adlint/cc1/scope.rb +2 -2
  67. data/lib/adlint/cc1/seqp.rb +2 -2
  68. data/lib/adlint/cc1/syntax.rb +42 -10
  69. data/lib/adlint/cc1/trace.rb +2 -2
  70. data/lib/adlint/cc1/type.rb +72 -2
  71. data/lib/adlint/cc1/util.rb +2 -2
  72. data/lib/adlint/cc1/value.rb +9 -3
  73. data/lib/adlint/code.rb +2 -2
  74. data/lib/adlint/cpp.rb +2 -2
  75. data/lib/adlint/cpp/asm.rb +2 -2
  76. data/lib/adlint/cpp/constexpr.rb +1 -1
  77. data/lib/adlint/cpp/constexpr.y +2 -2
  78. data/lib/adlint/cpp/eval.rb +2 -2
  79. data/lib/adlint/cpp/lexer.rb +13 -3
  80. data/lib/adlint/cpp/macro.rb +2 -2
  81. data/lib/adlint/cpp/phase.rb +2 -2
  82. data/lib/adlint/cpp/scanner.rb +2 -2
  83. data/lib/adlint/cpp/source.rb +2 -2
  84. data/lib/adlint/cpp/subst.rb +6 -2
  85. data/lib/adlint/cpp/syntax.rb +2 -2
  86. data/lib/adlint/cpp/util.rb +2 -2
  87. data/lib/adlint/driver.rb +2 -2
  88. data/lib/adlint/error.rb +2 -2
  89. data/lib/adlint/exam.rb +20 -8
  90. data/lib/adlint/exam/c_builtin.rb +4 -6
  91. data/lib/adlint/exam/c_builtin/cc1_check.rb +1380 -461
  92. data/lib/adlint/exam/c_builtin/cc1_code.rb +25 -25
  93. data/lib/adlint/exam/c_builtin/cc1_metric.rb +180 -209
  94. data/lib/adlint/exam/c_builtin/cpp_check.rb +211 -50
  95. data/lib/adlint/exam/c_builtin/cpp_code.rb +19 -19
  96. data/lib/adlint/exam/c_builtin/ld_check.rb +2 -2
  97. data/lib/adlint/exam/c_builtin/ld_metric.rb +2 -2
  98. data/lib/adlint/lang.rb +2 -2
  99. data/lib/adlint/ld.rb +2 -2
  100. data/lib/adlint/ld/object.rb +3 -3
  101. data/lib/adlint/ld/phase.rb +2 -2
  102. data/lib/adlint/ld/typedef.rb +2 -2
  103. data/lib/adlint/ld/util.rb +2 -2
  104. data/lib/adlint/lexer.rb +2 -2
  105. data/lib/adlint/location.rb +2 -2
  106. data/lib/adlint/memo.rb +2 -2
  107. data/lib/adlint/message.rb +2 -2
  108. data/lib/adlint/metric.rb +2 -2
  109. data/lib/adlint/monitor.rb +2 -2
  110. data/lib/adlint/phase.rb +2 -2
  111. data/lib/adlint/prelude.rb +2 -2
  112. data/lib/adlint/report.rb +4 -4
  113. data/lib/adlint/source.rb +2 -2
  114. data/lib/adlint/supp.rb +2 -2
  115. data/lib/adlint/symbol.rb +2 -2
  116. data/lib/adlint/token.rb +2 -2
  117. data/lib/adlint/traits.rb +2 -2
  118. data/lib/adlint/util.rb +2 -2
  119. data/lib/adlint/version.rb +6 -6
  120. data/share/HEADER +2 -2
  121. data/share/doc/developers_guide_ja.html +20 -9
  122. data/share/doc/developers_guide_ja.texi +18 -7
  123. data/share/doc/samples/GNUmakefile +1 -1
  124. data/share/doc/samples/adlint_traits.yml +1 -1
  125. data/share/doc/users_guide_en.html +6177 -6138
  126. data/share/doc/users_guide_en.texi +35 -5
  127. data/share/doc/users_guide_ja.html +6192 -6153
  128. data/share/doc/users_guide_ja.texi +35 -5
  129. data/share/sample/bison-2.5/adlint/GNUmakefile +1 -1
  130. data/share/sample/bison-2.5/adlint/adlint_traits.yml +1 -1
  131. data/share/sample/bison-2.5/adlint/lib/GNUmakefile +1 -1
  132. data/share/sample/bison-2.5/adlint/lib/adlint_cinit.h +1 -1
  133. data/share/sample/bison-2.5/adlint/lib/adlint_pinit.h +1 -1
  134. data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +1 -1
  135. data/share/sample/bison-2.5/adlint/src/GNUmakefile +1 -1
  136. data/share/sample/bison-2.5/adlint/src/adlint_cinit.h +1 -1
  137. data/share/sample/bison-2.5/adlint/src/adlint_pinit.h +1 -1
  138. data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +1 -1
  139. data/share/sample/ctags-5.8/adlint/GNUmakefile +1 -1
  140. data/share/sample/ctags-5.8/adlint/adlint_cinit.h +1 -1
  141. data/share/sample/ctags-5.8/adlint/adlint_pinit.h +1 -1
  142. data/share/sample/ctags-5.8/adlint/adlint_traits.yml +1 -1
  143. data/share/sample/flex-2.5.35/adlint/GNUmakefile +1 -1
  144. data/share/sample/flex-2.5.35/adlint/adlint_cinit.h +1 -1
  145. data/share/sample/flex-2.5.35/adlint/adlint_pinit.h +1 -1
  146. data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +1 -1
  147. data/share/sample/ruby-1.9.3-p0/adlint/GNUmakefile +1 -1
  148. data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +1 -1
  149. data/share/sample/ruby-1.9.3-p0/adlint/core/GNUmakefile +1 -1
  150. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_cinit.h +1 -1
  151. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_pinit.h +1 -1
  152. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +1 -1
  153. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/GNUmakefile +1 -1
  154. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_cinit.h +1 -1
  155. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_pinit.h +1 -1
  156. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +1 -1
  157. data/share/sample/ruby-1.9.3-p0/adlint/enc/GNUmakefile +1 -1
  158. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_cinit.h +1 -1
  159. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_pinit.h +1 -1
  160. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +1 -1
  161. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/GNUmakefile +1 -1
  162. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_cinit.h +1 -1
  163. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_pinit.h +1 -1
  164. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +1 -1
  165. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/GNUmakefile +1 -1
  166. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_cinit.h +1 -1
  167. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_pinit.h +1 -1
  168. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +1 -1
  169. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/GNUmakefile +1 -1
  170. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_cinit.h +1 -1
  171. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_pinit.h +1 -1
  172. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +1 -1
  173. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/GNUmakefile +1 -1
  174. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_cinit.h +1 -1
  175. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_pinit.h +1 -1
  176. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +1 -1
  177. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/GNUmakefile +1 -1
  178. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_cinit.h +1 -1
  179. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_pinit.h +1 -1
  180. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +1 -1
  181. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/GNUmakefile +1 -1
  182. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_cinit.h +1 -1
  183. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_pinit.h +1 -1
  184. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +1 -1
  185. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/GNUmakefile +1 -1
  186. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_cinit.h +1 -1
  187. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_pinit.h +1 -1
  188. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +1 -1
  189. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/GNUmakefile +1 -1
  190. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_cinit.h +1 -1
  191. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_pinit.h +1 -1
  192. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +1 -1
  193. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/GNUmakefile +1 -1
  194. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_cinit.h +1 -1
  195. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_pinit.h +1 -1
  196. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +1 -1
  197. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/GNUmakefile +1 -1
  198. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_cinit.h +1 -1
  199. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_pinit.h +1 -1
  200. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +1 -1
  201. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/GNUmakefile +1 -1
  202. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_cinit.h +1 -1
  203. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_pinit.h +1 -1
  204. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +1 -1
  205. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/GNUmakefile +1 -1
  206. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_cinit.h +1 -1
  207. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_pinit.h +1 -1
  208. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +1 -1
  209. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/GNUmakefile +1 -1
  210. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_cinit.h +1 -1
  211. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_pinit.h +1 -1
  212. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +1 -1
  213. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/GNUmakefile +1 -1
  214. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_cinit.h +1 -1
  215. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_pinit.h +1 -1
  216. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +1 -1
  217. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/GNUmakefile +1 -1
  218. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_cinit.h +1 -1
  219. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_pinit.h +1 -1
  220. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +1 -1
  221. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/GNUmakefile +1 -1
  222. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_cinit.h +1 -1
  223. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_pinit.h +1 -1
  224. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +1 -1
  225. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/GNUmakefile +1 -1
  226. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_cinit.h +1 -1
  227. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_pinit.h +1 -1
  228. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +1 -1
  229. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/GNUmakefile +1 -1
  230. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_cinit.h +1 -1
  231. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_pinit.h +1 -1
  232. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +1 -1
  233. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/GNUmakefile +1 -1
  234. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_cinit.h +1 -1
  235. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_pinit.h +1 -1
  236. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +1 -1
  237. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/GNUmakefile +1 -1
  238. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_cinit.h +1 -1
  239. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_pinit.h +1 -1
  240. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +1 -1
  241. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/GNUmakefile +1 -1
  242. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_cinit.h +1 -1
  243. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_pinit.h +1 -1
  244. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +1 -1
  245. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/GNUmakefile +1 -1
  246. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_cinit.h +1 -1
  247. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_pinit.h +1 -1
  248. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +1 -1
  249. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/GNUmakefile +1 -1
  250. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_cinit.h +1 -1
  251. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_pinit.h +1 -1
  252. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +1 -1
  253. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/GNUmakefile +1 -1
  254. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_cinit.h +1 -1
  255. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_pinit.h +1 -1
  256. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +1 -1
  257. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/GNUmakefile +1 -1
  258. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_cinit.h +1 -1
  259. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_pinit.h +1 -1
  260. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +1 -1
  261. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/GNUmakefile +1 -1
  262. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_cinit.h +1 -1
  263. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_pinit.h +1 -1
  264. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +1 -1
  265. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/GNUmakefile +1 -1
  266. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_cinit.h +1 -1
  267. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_pinit.h +1 -1
  268. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +1 -1
  269. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/GNUmakefile +1 -1
  270. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_cinit.h +1 -1
  271. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_pinit.h +1 -1
  272. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +1 -1
  273. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/GNUmakefile +1 -1
  274. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_cinit.h +1 -1
  275. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_pinit.h +1 -1
  276. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +1 -1
  277. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/GNUmakefile +1 -1
  278. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_cinit.h +1 -1
  279. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_pinit.h +1 -1
  280. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +1 -1
  281. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/GNUmakefile +1 -1
  282. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_cinit.h +1 -1
  283. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_pinit.h +1 -1
  284. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +1 -1
  285. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/GNUmakefile +1 -1
  286. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_cinit.h +1 -1
  287. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_pinit.h +1 -1
  288. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +1 -1
  289. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/GNUmakefile +1 -1
  290. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_cinit.h +1 -1
  291. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_pinit.h +1 -1
  292. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +1 -1
  293. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/GNUmakefile +1 -1
  294. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_cinit.h +1 -1
  295. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_pinit.h +1 -1
  296. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +1 -1
  297. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/GNUmakefile +1 -1
  298. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_cinit.h +1 -1
  299. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_pinit.h +1 -1
  300. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +1 -1
  301. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/GNUmakefile +1 -1
  302. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_cinit.h +1 -1
  303. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_pinit.h +1 -1
  304. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +1 -1
  305. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/GNUmakefile +1 -1
  306. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_cinit.h +1 -1
  307. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_pinit.h +1 -1
  308. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +1 -1
  309. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/GNUmakefile +1 -1
  310. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_cinit.h +1 -1
  311. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_pinit.h +1 -1
  312. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +1 -1
  313. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/GNUmakefile +1 -1
  314. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_cinit.h +1 -1
  315. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_pinit.h +1 -1
  316. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +1 -1
  317. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/GNUmakefile +1 -1
  318. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_cinit.h +1 -1
  319. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_pinit.h +1 -1
  320. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +1 -1
  321. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/GNUmakefile +1 -1
  322. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_cinit.h +1 -1
  323. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_pinit.h +1 -1
  324. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +1 -1
  325. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/GNUmakefile +1 -1
  326. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_cinit.h +1 -1
  327. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_pinit.h +1 -1
  328. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +1 -1
  329. data/share/sample/screen-4.0.3/adlint/GNUmakefile +1 -1
  330. data/share/sample/screen-4.0.3/adlint/adlint_cinit.h +1 -1
  331. data/share/sample/screen-4.0.3/adlint/adlint_pinit.h +1 -1
  332. data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +1 -1
  333. data/share/sample/vim-7.3/adlint/vim/GNUmakefile +1 -1
  334. data/share/sample/vim-7.3/adlint/vim/adlint_cinit.h +1 -1
  335. data/share/sample/vim-7.3/adlint/vim/adlint_pinit.h +1 -1
  336. data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +1 -1
  337. data/share/sample/vim-7.3/adlint/xxd/GNUmakefile +1 -1
  338. data/share/sample/vim-7.3/adlint/xxd/adlint_cinit.h +1 -1
  339. data/share/sample/vim-7.3/adlint/xxd/adlint_pinit.h +1 -1
  340. data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +1 -1
  341. data/share/sample/zsh-4.3.15/adlint/GNUmakefile +1 -1
  342. data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +1 -1
  343. data/share/sample/zsh-4.3.15/adlint/builtins/GNUmakefile +1 -1
  344. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_cinit.h +1 -1
  345. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_pinit.h +1 -1
  346. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +1 -1
  347. data/share/sample/zsh-4.3.15/adlint/core/GNUmakefile +1 -1
  348. data/share/sample/zsh-4.3.15/adlint/core/adlint_cinit.h +1 -1
  349. data/share/sample/zsh-4.3.15/adlint/core/adlint_pinit.h +1 -1
  350. data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +1 -1
  351. data/share/sample/zsh-4.3.15/adlint/modules/GNUmakefile +1 -1
  352. data/share/sample/zsh-4.3.15/adlint/modules/adlint_cinit.h +1 -1
  353. data/share/sample/zsh-4.3.15/adlint/modules/adlint_pinit.h +1 -1
  354. data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +1 -1
  355. data/share/sample/zsh-4.3.15/adlint/zle/GNUmakefile +1 -1
  356. data/share/sample/zsh-4.3.15/adlint/zle/adlint_cinit.h +1 -1
  357. data/share/sample/zsh-4.3.15/adlint/zle/adlint_pinit.h +1 -1
  358. data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +1 -1
  359. data/spec/adlint/cc1/ctrlexpr_spec.rb +3 -3
  360. data/spec/adlint/cc1/domain_spec.rb +2 -2
  361. data/spec/adlint/cc1/operator_spec.rb +2 -2
  362. data/spec/adlint/cc1/syntax_spec.rb +4 -4
  363. data/spec/adlint/cc1/type_spec.rb +2 -2
  364. data/spec/adlint/location_spec.rb +2 -2
  365. data/spec/conf.d/default_traits.yml +1 -1
  366. data/spec/conf.d/empty_cinit.h +1 -1
  367. data/spec/conf.d/empty_pinit.h +1 -1
  368. data/spec/spec_helper.rb +2 -2
  369. metadata +29 -28
  370. data/lib/adlint/exam/c_builtin/cc1_check_shima.rb +0 -963
  371. data/lib/adlint/exam/c_builtin/cpp_check_shima.rb +0 -204
data/INSTALL CHANGED
@@ -3,7 +3,7 @@
3
3
  / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
4
4
  / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
5
5
  / __ |/ /_/ / /___/ / /| / / /
6
- /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
 
8
8
  This file is part of AdLint.
9
9
 
data/MANIFEST CHANGED
@@ -26,6 +26,8 @@ etc/conf.d/noarch/GNUmakefile.erb
26
26
  etc/conf.d/noarch/adlint_all_bat.erb
27
27
  etc/conf.d/noarch/adlint_all_sh.erb
28
28
  etc/conf.d/noarch/pinit.erb
29
+ etc/conf.d/x86_64-centos_6.4/cinit-gcc_4.4.7.erb
30
+ etc/conf.d/x86_64-centos_6.4/traits-gcc_4.4.7.erb
29
31
  etc/conf.d/x86_64-ubuntu_12.04/cinit-gcc_4.6.3.erb
30
32
  etc/conf.d/x86_64-ubuntu_12.04/traits-gcc_4.6.3.erb
31
33
  etc/mesg.d/c_builtin/en_US/messages.yml
@@ -34,6 +36,8 @@ etc/mesg.d/core/en_US/messages.yml
34
36
  etc/mesg.d/core/ja_JP/messages.yml
35
37
  features/code_check/E0008.feature
36
38
  features/code_check/E0013.feature
39
+ features/code_check/E0016.feature
40
+ features/code_check/E0018.feature
37
41
  features/code_check/W0001.feature
38
42
  features/code_check/W0002.feature
39
43
  features/code_check/W0003.feature
@@ -410,11 +414,9 @@ lib/adlint/error.rb
410
414
  lib/adlint/exam.rb
411
415
  lib/adlint/exam/c_builtin.rb
412
416
  lib/adlint/exam/c_builtin/cc1_check.rb
413
- lib/adlint/exam/c_builtin/cc1_check_shima.rb
414
417
  lib/adlint/exam/c_builtin/cc1_code.rb
415
418
  lib/adlint/exam/c_builtin/cc1_metric.rb
416
419
  lib/adlint/exam/c_builtin/cpp_check.rb
417
- lib/adlint/exam/c_builtin/cpp_check_shima.rb
418
420
  lib/adlint/exam/c_builtin/cpp_code.rb
419
421
  lib/adlint/exam/c_builtin/ld_check.rb
420
422
  lib/adlint/exam/c_builtin/ld_metric.rb
data/NEWS CHANGED
@@ -3,7 +3,7 @@
3
3
  / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
4
4
  / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
5
5
  / __ |/ /_/ / /___/ / /| / / /
6
- /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
 
8
8
  This file is part of AdLint.
9
9
 
@@ -21,6 +21,24 @@
21
21
 
22
22
  ++
23
23
 
24
+ === \AdLint 3.2.6 is released (2014-01-09)
25
+
26
+ ==== Changes since the 3.2.0 release
27
+
28
+ * Add patch of identifier to typedef-name translation mode in order not to
29
+ abend when multiple typedefed types of struct/union/enum is redeclared in a
30
+ single typedef declaration again
31
+ * Fix typo in C0001 message text
32
+ * Fix pattern matchig algorithm of the token substitution feature so that the
33
+ pattern \`{ __adlint__any }' can match with both \`{}' and \`{ ... }'
34
+ * Fix group skip logic of the preprocessor in order to treat string-literals
35
+ and character-constants in the skipping group correctly
36
+ * Revise the parser generation rule in order to accept extra semicolons in the
37
+ global scope
38
+
39
+ See the file {ChangeLog}[https://github.com/yanoh/adlint/blob/master/ChangeLog]
40
+ for more details.
41
+
24
42
  === \AdLint 3.2.0 is released (2013-08-28)
25
43
 
26
44
  ==== Changes since the 3.0.10 release
@@ -28,9 +46,6 @@
28
46
  * Support experimental context-tracing feature so that the warning message can
29
47
  be complemented with the context messages
30
48
 
31
- See the file {ChangeLog}[https://github.com/yanoh/adlint/blob/master/ChangeLog]
32
- for more details.
33
-
34
49
  === \AdLint 3.0.10 is released (2013-06-28)
35
50
 
36
51
  ==== Changes since the 3.0.8 release
@@ -68,7 +83,7 @@ for more details.
68
83
  * Fix bad variable defining behavor in order to correctly evaluate
69
84
  sizeof-expression that refers defining variable in the initializer
70
85
  * Revise specification of W0642 code check in order to warn about all the
71
- illegal address derivation from the object declared as `register'
86
+ illegal address derivation from the object declared as \`register'
72
87
  * Fix abend problem in parsing unnamed bit-field declaration
73
88
  * Fix W0786 code check in order not to warn when a typedefed type which is same
74
89
  as signed or unsigned int is specified as a base of the bit-field
@@ -77,7 +92,8 @@ for more details.
77
92
  initialization
78
93
  * Fix incomplete object cross-reference graph and function call graph in order
79
94
  to correctly warn about useless objects
80
- * Fix bad `##' operator evaluation in order to comply with the ISO C99 standard
95
+ * Fix bad \`##' operator evaluation in order to comply with the ISO C99
96
+ standard
81
97
 
82
98
  === \AdLint 3.0.4 is released (2013-04-12)
83
99
 
@@ -129,10 +145,11 @@ for more details.
129
145
  ==== Changes since the 2.6.12 release
130
146
 
131
147
  * Revise specification of code checks about implicit conversion from or to
132
- `char' type to clarify warning's intention
148
+ \`char' type to clarify warning's intention
133
149
  * Improve the library interface to easily integrate \AdLint with other products
134
- * Support lint and \AdLint specific predefined macros; `__LINT__', `lint',
135
- `__lint', `__lint__', `__ADLINT__', `adlint', `__adlint' and `__adlint__'
150
+ * Support lint and \AdLint specific predefined macros; \`__LINT__', \`lint',
151
+ \`__lint', \`__lint__', \`__ADLINT__', \`adlint', \`__adlint' and
152
+ \`__adlint__'
136
153
  * Revise code checks' output specification of W0051, W0052, W0491, W0492,
137
154
  W0703, W0704, W0770, W0771, W0787, W0788, W0789, W0790 and W1037 to add
138
155
  context messages telling where is the problematic pair identifiers
@@ -186,7 +203,7 @@ for more details.
186
203
  * Fix W0609 and w0610 detections not to over-warn about explicit controlling
187
204
  expressions of for-statements by adding workarounds for the interpreter
188
205
  * Fix W0088 detection not to warn about controlling expression of for-statement
189
- * Fix W0723 detection in order to correctly warn about signed `-' expression
206
+ * Fix W0723 detection in order to correctly warn about signed \`-' expression
190
207
  * Fix bad parameter type convertibility check and bad type convertibility check
191
208
  of pointer to arbitrary types to void-pointer
192
209
  * Revise string representation of typedefed type so that message and metric
@@ -214,7 +231,7 @@ for more details.
214
231
 
215
232
  * Fix bad controlling statement evaluation in order to manage value domain of
216
233
  the controlling variable correctly
217
- * Fix bad argument type specification of `%s', `%p' and `%n'
234
+ * Fix bad argument type specification of \`%s', \`%p' and \`%n'
218
235
  conversion-specifiers of *printf standard functions in order to detect W0635
219
236
  correctly
220
237
 
@@ -224,7 +241,7 @@ for more details.
224
241
 
225
242
  * Fix W0425 detection not to warn when a selection-statement or a
226
243
  iteration-statement is written in a line
227
- * Fix evaluation of sizeof expression to return `size_t' value or `unsigned
244
+ * Fix evaluation of sizeof expression to return \`size_t' value or \`unsigned
228
245
  long' value if size_t is not declared
229
246
  * Fix evaluation of function-definition in order to refer symbols of return
230
247
  type and parameter types
@@ -237,7 +254,7 @@ for more details.
237
254
  * Fix W0100 detection not to over-warn about variables updated in an
238
255
  iteration-statement
239
256
  * Fix bad preprocess behavior when an empty argument is given to a
240
- function-like macro call which applies `##' operator to the empty perameter
257
+ function-like macro call which applies \`##' operator to the empty perameter
241
258
  * Fix #include directive evaluation in order to correctly read header file with
242
259
  an absolute path when any include_path items are not specified
243
260
 
data/README CHANGED
@@ -3,7 +3,7 @@
3
3
  / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
4
4
  / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
5
5
  / __ |/ /_/ / /___/ / /| / / /
6
- /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
 
8
8
  This file is part of AdLint.
9
9
 
@@ -40,7 +40,7 @@ For more details, visit our project homepage at
40
40
 
41
41
  == License
42
42
 
43
- Copyright (C) 2010-2013, {OGIS-RI}[http://www.ogis-ri.co.jp/] Co.,Ltd.
43
+ Copyright (C) 2010-2014, {OGIS-RI}[http://www.ogis-ri.co.jp/] Co.,Ltd.
44
44
 
45
45
  \AdLint is free software: you can redistribute it and/or modify it under the
46
46
  terms of the GNU General Public License as published by the Free Software
data/Rakefile CHANGED
@@ -3,7 +3,7 @@
3
3
  # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
4
4
  # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
5
5
  # / __ |/ /_/ / /___/ / /| / / /
6
- # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  #
8
8
  # This file is part of AdLint.
9
9
  #
@@ -67,7 +67,7 @@ EOS
67
67
  / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
68
68
  / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
69
69
  / __ |/ /_/ / /___/ / /| / / /
70
- /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
70
+ /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
71
71
 
72
72
  Thanks for installing AdLint!
73
73
  Please visit our project homepage at <http://adlint.sourceforge.net/>.
data/TODO CHANGED
@@ -3,7 +3,7 @@
3
3
  / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
4
4
  / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
5
5
  / __ |/ /_/ / /___/ / /| / / /
6
- /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
 
8
8
  This file is part of AdLint.
9
9
 
data/bin/adlint CHANGED
@@ -3,7 +3,7 @@
3
3
  # All in one analyzer.
4
4
  #
5
5
  # Author:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
6
- # Copyright:: Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ # Copyright:: Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  # License:: GPLv3+: GNU General Public License version 3 or later
8
8
  #
9
9
  # Owner:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
@@ -13,7 +13,7 @@
13
13
  # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
14
14
  # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
15
15
  # / __ |/ /_/ / /___/ / /| / / /
16
- # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
16
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
17
17
  #
18
18
  # This file is part of AdLint.
19
19
  #
data/bin/adlint_chk CHANGED
@@ -3,7 +3,7 @@
3
3
  # Configuration validator.
4
4
  #
5
5
  # Author:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
6
- # Copyright:: Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ # Copyright:: Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  # License:: GPLv3+: GNU General Public License version 3 or later
8
8
  #
9
9
  # Owner:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
@@ -13,7 +13,7 @@
13
13
  # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
14
14
  # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
15
15
  # / __ |/ /_/ / /___/ / /| / / /
16
- # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
16
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
17
17
  #
18
18
  # This file is part of AdLint.
19
19
  #
data/bin/adlint_cma CHANGED
@@ -3,7 +3,7 @@
3
3
  # Cross module analyzer.
4
4
  #
5
5
  # Author:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
6
- # Copyright:: Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ # Copyright:: Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  # License:: GPLv3+: GNU General Public License version 3 or later
8
8
  #
9
9
  # Owner:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
@@ -13,7 +13,7 @@
13
13
  # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
14
14
  # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
15
15
  # / __ |/ /_/ / /___/ / /| / / /
16
- # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
16
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
17
17
  #
18
18
  # This file is part of AdLint.
19
19
  #
data/bin/adlint_sma CHANGED
@@ -3,7 +3,7 @@
3
3
  # Single module analyzer.
4
4
  #
5
5
  # Author:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
6
- # Copyright:: Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ # Copyright:: Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  # License:: GPLv3+: GNU General Public License version 3 or later
8
8
  #
9
9
  # Owner:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
@@ -13,7 +13,7 @@
13
13
  # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
14
14
  # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
15
15
  # / __ |/ /_/ / /___/ / /| / / /
16
- # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
16
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
17
17
  #
18
18
  # This file is part of AdLint.
19
19
  #
data/bin/adlintize CHANGED
@@ -3,7 +3,7 @@
3
3
  # AdLint project generator.
4
4
  #
5
5
  # Author:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
6
- # Copyright:: Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
6
+ # Copyright:: Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  # License:: GPLv3+: GNU General Public License version 3 or later
8
8
  #
9
9
  # Owner:: Yutaka Yanoh <mailto:yanoh@users.sourceforge.net>
@@ -13,7 +13,7 @@
13
13
  # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
14
14
  # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
15
15
  # / __ |/ /_/ / /___/ / /| / / /
16
- # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
16
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
17
17
  #
18
18
  # This file is part of AdLint.
19
19
  #
@@ -2,7 +2,7 @@
2
2
  * / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
3
3
  * / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
4
4
  * / __ |/ /_/ / /___/ / /| / / /
5
- * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  *
7
7
  * Compiler 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-2013, OGIS-RI Co.,Ltd.
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  #
7
7
  # Traits file 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-2013, OGIS-RI Co.,Ltd.
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  *
7
7
  * Initial header for GCC 4.3.4 on Cygwin 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-2013, OGIS-RI Co.,Ltd.
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  #
7
7
  # Traits file 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-2013, OGIS-RI Co.,Ltd.
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  *
7
7
  * Initial header for GCC 4.5.2 on DevKit 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-2013, OGIS-RI Co.,Ltd.
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  #
7
7
  # Traits file 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-2013, OGIS-RI Co.,Ltd.
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  *
7
7
  * Initial header for GCC 4.5.1 on Linux 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-2013, OGIS-RI Co.,Ltd.
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  #
7
7
  # Traits file 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-2013, OGIS-RI Co.,Ltd.
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, 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-2013, OGIS-RI Co.,Ltd.
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  #
7
7
  # Traits file 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-2013, OGIS-RI Co.,Ltd.
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, 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-2013, OGIS-RI Co.,Ltd.
5
+ : /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, 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-2013, OGIS-RI Co.,Ltd.
6
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
7
7
  #
8
8
  # Shell script generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>
9
9
 
@@ -2,7 +2,7 @@
2
2
  * / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
3
3
  * / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
4
4
  * / __ |/ /_/ / /___/ / /| / / /
5
- * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
6
  *
7
7
  * Project specific initial header file generated by adlintize <%= AdLint::SHORT_VERSION %>
8
8
  * at <%= Time.now %>.
@@ -0,0 +1,150 @@
1
+ /* ___ ____ __ ___ _________
2
+ * / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
3
+ * / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
4
+ * / __ |/ /_/ / /___/ / /| / / /
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
6
+ *
7
+ * Initial header for GCC 4.4.7 on CentOS 6.4 (64bit) generated by adlintize <%= AdLint::SHORT_VERSION %>
8
+ */
9
+
10
+ #define __DBL_MIN_EXP__ (-1021)
11
+ #define __FLT_MIN__ 1.17549435e-38F
12
+ #define __CHAR_BIT__ 8
13
+ #define __WCHAR_MAX__ 2147483647
14
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
15
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
16
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
17
+ #define __DBL_DENORM_MIN__ 4.9406564584124654e-324
18
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
19
+ #define __FLT_EVAL_METHOD__ 0
20
+ #define __unix__ 1
21
+ #define __x86_64 1
22
+ #define __DBL_MIN_10_EXP__ (-307)
23
+ #define __FINITE_MATH_ONLY__ 0
24
+ #define __GNUC_PATCHLEVEL__ 7
25
+ #define __DEC64_MAX_EXP__ 385
26
+ #define __SHRT_MAX__ 32767
27
+ #define __LDBL_MAX__ 1.18973149535723176502e+4932L
28
+ #define __UINTMAX_TYPE__ long unsigned int
29
+ #define __linux 1
30
+ #define __DEC32_EPSILON__ 1E-6DF
31
+ #define __unix 1
32
+ #define __LDBL_MAX_EXP__ 16384
33
+ #define __linux__ 1
34
+ #define __SCHAR_MAX__ 127
35
+ #define __DBL_DIG__ 15
36
+ #define __SIZEOF_INT__ 4
37
+ #define __SIZEOF_POINTER__ 8
38
+ #define __USER_LABEL_PREFIX__
39
+ #define __STDC_HOSTED__ 1
40
+ #define __LDBL_HAS_INFINITY__ 1
41
+ #define __FLT_EPSILON__ 1.19209290e-7F
42
+ #define __LDBL_MIN__ 3.36210314311209350626e-4932L
43
+ #define __DEC32_MAX__ 9.999999E96DF
44
+ #define __SIZEOF_LONG__ 8
45
+ #define __DECIMAL_DIG__ 21
46
+ #define __gnu_linux__ 1
47
+ #define __LDBL_HAS_QUIET_NAN__ 1
48
+ #define __GNUC__ 4
49
+ #define __MMX__ 1
50
+ #define __FLT_HAS_DENORM__ 1
51
+ #define __SIZEOF_LONG_DOUBLE__ 16
52
+ #define __BIGGEST_ALIGNMENT__ 16
53
+ #define __DBL_MAX__ 1.7976931348623157e+308
54
+ #define __DBL_HAS_INFINITY__ 1
55
+ #define __DEC32_MIN_EXP__ (-94)
56
+ #define __LDBL_HAS_DENORM__ 1
57
+ #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
58
+ #define __DEC32_MIN__ 1E-95DF
59
+ #define __DBL_MAX_EXP__ 1024
60
+ #define __DEC128_EPSILON__ 1E-33DL
61
+ #define __SSE2_MATH__ 1
62
+ #define __amd64 1
63
+ #define __LONG_LONG_MAX__ 9223372036854775807LL
64
+ #define __SIZEOF_SIZE_T__ 8
65
+ #define __SIZEOF_WINT_T__ 4
66
+ #define __GCC_HAVE_DWARF2_CFI_ASM 1
67
+ #define __GXX_ABI_VERSION 1002
68
+ #define __FLT_MIN_EXP__ (-125)
69
+ #define __DBL_MIN__ 2.2250738585072014e-308
70
+ #define __LP64__ 1
71
+ #define __DECIMAL_BID_FORMAT__ 1
72
+ #define __DEC128_MIN__ 1E-6143DL
73
+ #define __REGISTER_PREFIX__
74
+ #define __DBL_HAS_DENORM__ 1
75
+ #define __NO_INLINE__ 1
76
+ #define __FLT_MANT_DIG__ 24
77
+ #define __VERSION__ "4.4.7 20120313 (Red Hat 4.4.7-3)"
78
+ #define __DEC64_EPSILON__ 1E-15DD
79
+ #define __DEC128_MIN_EXP__ (-6142)
80
+ #define unix 1
81
+ #define __SIZE_TYPE__ long unsigned int
82
+ #define __ELF__ 1
83
+ #define __FLT_RADIX__ 2
84
+ #define __LDBL_EPSILON__ 1.08420217248550443401e-19L
85
+ #define __GNUC_RH_RELEASE__ 3
86
+ #define __SSE_MATH__ 1
87
+ #define __k8 1
88
+ #define __SIZEOF_PTRDIFF_T__ 8
89
+ #define __x86_64__ 1
90
+ #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
91
+ #define __FLT_HAS_QUIET_NAN__ 1
92
+ #define __FLT_MAX_10_EXP__ 38
93
+ #define __LONG_MAX__ 9223372036854775807L
94
+ #define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
95
+ #define __FLT_HAS_INFINITY__ 1
96
+ #define __DEC64_MAX__ 9.999999999999999E384DD
97
+ #define __CHAR16_TYPE__ short unsigned int
98
+ #define __DEC64_MANT_DIG__ 16
99
+ #define __DEC32_MAX_EXP__ 97
100
+ #define linux 1
101
+ #define __SSE2__ 1
102
+ #define __LDBL_MANT_DIG__ 64
103
+ #define __DBL_HAS_QUIET_NAN__ 1
104
+ #define __k8__ 1
105
+ #define __WCHAR_TYPE__ int
106
+ #define __SIZEOF_FLOAT__ 4
107
+ #define __DEC64_MIN_EXP__ (-382)
108
+ #define __FLT_DIG__ 6
109
+ #define __INT_MAX__ 2147483647
110
+ #define __amd64__ 1
111
+ #define __FLT_MAX_EXP__ 128
112
+ #define __DBL_MANT_DIG__ 53
113
+ #define __DEC64_MIN__ 1E-383DD
114
+ #define __WINT_TYPE__ unsigned int
115
+ #define __SIZEOF_SHORT__ 2
116
+ #define __SSE__ 1
117
+ #define __LDBL_MIN_EXP__ (-16381)
118
+ #define __LDBL_MAX_10_EXP__ 4932
119
+ #define __DBL_EPSILON__ 2.2204460492503131e-16
120
+ #define _LP64 1
121
+ #define __SIZEOF_WCHAR_T__ 4
122
+ #define __DEC_EVAL_METHOD__ 2
123
+ #define __INTMAX_MAX__ 9223372036854775807L
124
+ #define __FLT_DENORM_MIN__ 1.40129846e-45F
125
+ #define __CHAR32_TYPE__ unsigned int
126
+ #define __FLT_MAX__ 3.40282347e+38F
127
+ #define __SIZEOF_DOUBLE__ 8
128
+ #define __FLT_MIN_10_EXP__ (-37)
129
+ #define __INTMAX_TYPE__ long int
130
+ #define __DEC128_MAX_EXP__ 6145
131
+ #define __GNUC_MINOR__ 4
132
+ #define __DEC32_MANT_DIG__ 7
133
+ #define __DBL_MAX_10_EXP__ 308
134
+ #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
135
+ #define __STDC__ 1
136
+ #define __PTRDIFF_TYPE__ long int
137
+ #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
138
+ #define __DEC128_MANT_DIG__ 34
139
+ #define __LDBL_MIN_10_EXP__ (-4931)
140
+ #define __SIZEOF_LONG_LONG__ 8
141
+ #define __LDBL_DIG__ 18
142
+ #define __GNUC_GNU_INLINE__ 1
143
+
144
+ #define __const const
145
+ #define __restrict restrict
146
+ #define __inline inline
147
+ #define __builtin_va_list void *
148
+ #define __builtin_va_arg(ar, t) (0)
149
+ #define __builtin_offsetof(type, member) (0)
150
+ #define __alignof__(type) (0)