adlint 1.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.
Files changed (465) hide show
  1. data/AUTHORS +27 -0
  2. data/COPYING +674 -0
  3. data/ChangeLog +820 -0
  4. data/INSTALL +78 -0
  5. data/MANIFEST +464 -0
  6. data/NEWS +38 -0
  7. data/README +74 -0
  8. data/Rakefile +167 -0
  9. data/TODO +29 -0
  10. data/bin/adlint +141 -0
  11. data/bin/adlint_chk +129 -0
  12. data/bin/adlint_cma +122 -0
  13. data/bin/adlint_sma +129 -0
  14. data/bin/adlintize +286 -0
  15. data/etc/conf.d/fallback/cinit.erb +11 -0
  16. data/etc/conf.d/fallback/traits.erb +216 -0
  17. data/etc/conf.d/i686-cygwin/cinit-gcc_4.3.4.erb +149 -0
  18. data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +227 -0
  19. data/etc/conf.d/i686-devkit/cinit-gcc_4.5.2.erb +224 -0
  20. data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +226 -0
  21. data/etc/conf.d/i686-linux/cinit-gcc_4.5.1.erb +219 -0
  22. data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +224 -0
  23. data/etc/conf.d/i686-mingw/cinit-gcc_4.6.1.erb +234 -0
  24. data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +226 -0
  25. data/etc/conf.d/noarch/GNUmakefile.erb +119 -0
  26. data/etc/conf.d/noarch/adlint_all_bat.erb +9 -0
  27. data/etc/conf.d/noarch/adlint_all_sh.erb +10 -0
  28. data/etc/conf.d/noarch/pinit.erb +11 -0
  29. data/etc/mesg.d/en_US/messages.yml +784 -0
  30. data/etc/mesg.d/ja_JP/messages.yml +784 -0
  31. data/lib/adlint/analyzer.rb +294 -0
  32. data/lib/adlint/c/branch.rb +251 -0
  33. data/lib/adlint/c/builtin.rb +92 -0
  34. data/lib/adlint/c/code.rb +490 -0
  35. data/lib/adlint/c/const.rb +465 -0
  36. data/lib/adlint/c/conv.rb +212 -0
  37. data/lib/adlint/c/ctrlexpr.rb +949 -0
  38. data/lib/adlint/c/domain.rb +7499 -0
  39. data/lib/adlint/c/environ.rb +133 -0
  40. data/lib/adlint/c/expr.rb +1725 -0
  41. data/lib/adlint/c/format.rb +3209 -0
  42. data/lib/adlint/c/interp.rb +1740 -0
  43. data/lib/adlint/c/lexer.rb +241 -0
  44. data/lib/adlint/c/mediator.rb +313 -0
  45. data/lib/adlint/c/message.rb +13597 -0
  46. data/lib/adlint/c/metric.rb +765 -0
  47. data/lib/adlint/c/object.rb +1018 -0
  48. data/lib/adlint/c/parser.rb +3800 -0
  49. data/lib/adlint/c/parser.y +2054 -0
  50. data/lib/adlint/c/phase.rb +712 -0
  51. data/lib/adlint/c/resolver.rb +270 -0
  52. data/lib/adlint/c/scanner.rb +248 -0
  53. data/lib/adlint/c/scope.rb +74 -0
  54. data/lib/adlint/c/syntax.rb +4279 -0
  55. data/lib/adlint/c/type.rb +7506 -0
  56. data/lib/adlint/c/util.rb +91 -0
  57. data/lib/adlint/c/value.rb +2310 -0
  58. data/lib/adlint/c.rb +56 -0
  59. data/lib/adlint/code.rb +500 -0
  60. data/lib/adlint/cpp/code.rb +189 -0
  61. data/lib/adlint/cpp/constexpr.rb +721 -0
  62. data/lib/adlint/cpp/constexpr.y +389 -0
  63. data/lib/adlint/cpp/eval.rb +1012 -0
  64. data/lib/adlint/cpp/lexer.rb +860 -0
  65. data/lib/adlint/cpp/macro.rb +637 -0
  66. data/lib/adlint/cpp/message.rb +992 -0
  67. data/lib/adlint/cpp/phase.rb +176 -0
  68. data/lib/adlint/cpp/scanner.rb +93 -0
  69. data/lib/adlint/cpp/source.rb +169 -0
  70. data/lib/adlint/cpp/subst.rb +300 -0
  71. data/lib/adlint/cpp/syntax.rb +1412 -0
  72. data/lib/adlint/cpp/util.rb +97 -0
  73. data/lib/adlint/cpp.rb +43 -0
  74. data/lib/adlint/driver.rb +147 -0
  75. data/lib/adlint/error.rb +179 -0
  76. data/lib/adlint/lang.rb +97 -0
  77. data/lib/adlint/ld/message.rb +259 -0
  78. data/lib/adlint/ld/metric.rb +57 -0
  79. data/lib/adlint/ld/object.rb +542 -0
  80. data/lib/adlint/ld/phase.rb +193 -0
  81. data/lib/adlint/ld/typedef.rb +109 -0
  82. data/lib/adlint/ld/util.rb +88 -0
  83. data/lib/adlint/ld.rb +37 -0
  84. data/lib/adlint/lexer.rb +293 -0
  85. data/lib/adlint/message.rb +368 -0
  86. data/lib/adlint/metric.rb +805 -0
  87. data/lib/adlint/monitor.rb +144 -0
  88. data/lib/adlint/phase.rb +90 -0
  89. data/lib/adlint/prelude.rb +314 -0
  90. data/lib/adlint/report.rb +617 -0
  91. data/lib/adlint/source.rb +155 -0
  92. data/lib/adlint/symbol.rb +127 -0
  93. data/lib/adlint/token.rb +215 -0
  94. data/lib/adlint/traits.rb +643 -0
  95. data/lib/adlint/util.rb +524 -0
  96. data/lib/adlint/version.rb +71 -0
  97. data/lib/adlint.rb +66 -0
  98. data/share/HEADER +45 -0
  99. data/share/demo/Makefile +110 -0
  100. data/share/demo/ambig_operator/ambig_operator.c +289 -0
  101. data/share/demo/arg_points_unset/arg_points_unset.c +37 -0
  102. data/share/demo/array_range/array_range.c +62 -0
  103. data/share/demo/bad_bitfields/bad_bitfields.c +74 -0
  104. data/share/demo/bad_brace/bad_brace.c +19 -0
  105. data/share/demo/bad_charset/abcde$.h +0 -0
  106. data/share/demo/bad_charset/bad_charset.c +22 -0
  107. data/share/demo/bad_comment/bad_comment.c +3 -0
  108. data/share/demo/bad_const/bad_const.c +19 -0
  109. data/share/demo/bad_conv/bad_conv.c +48 -0
  110. data/share/demo/bad_indent/bad_indent.c +50 -0
  111. data/share/demo/bad_init/bad_init.c +49 -0
  112. data/share/demo/bad_macro/bad_macro.c +97 -0
  113. data/share/demo/bitwise_expr/bitwise_expr.c +19 -0
  114. data/share/demo/call_by_value/call_by_value.c +26 -0
  115. data/share/demo/cross_ref/cross_ref.c +21 -0
  116. data/share/demo/dangling_else/dangling_else.c +20 -0
  117. data/share/demo/dead_code/dead_code.c +237 -0
  118. data/share/demo/deep_nest/deep_nest.c +57 -0
  119. data/share/demo/dense_switch/dense_switch.c +62 -0
  120. data/share/demo/direct_recur/direct_recur.c +15 -0
  121. data/share/demo/div_by_zero/div_by_zero.c +35 -0
  122. data/share/demo/dos_source/dos_source.c +7 -0
  123. data/share/demo/funptr_cast/funptr_cast.c +26 -0
  124. data/share/demo/goto_stmt/goto_stmt.c +19 -0
  125. data/share/demo/id_hiding/id_hiding.c +19 -0
  126. data/share/demo/ill_defined/ill_defined.c +13 -0
  127. data/share/demo/implicit_conv/implicit_conv.c +60 -0
  128. data/share/demo/implicit_int/implicit_int.c +14 -0
  129. data/share/demo/incomplete_type/incomplete_type.c +49 -0
  130. data/share/demo/indirect_recur/indirect_recur_1.c +14 -0
  131. data/share/demo/indirect_recur/indirect_recur_1.h +7 -0
  132. data/share/demo/indirect_recur/indirect_recur_2.c +12 -0
  133. data/share/demo/indirect_recur/indirect_recur_2.h +6 -0
  134. data/share/demo/indirect_recur/indirect_recur_3.c +6 -0
  135. data/share/demo/indirect_recur/indirect_recur_3.h +6 -0
  136. data/share/demo/indirect_recur/indirect_recur_4.c +25 -0
  137. data/share/demo/intro_demo/intro_demo.c +76 -0
  138. data/share/demo/intro_demo/intro_demo.h +12 -0
  139. data/share/demo/intro_demo/useless_header.h +5 -0
  140. data/share/demo/invalid_call/invalid_call.c +32 -0
  141. data/share/demo/kandr_fundef/kandr_fundef.c +10 -0
  142. data/share/demo/line_comment/line_comment.c +12 -0
  143. data/share/demo/local_decl/local_decl.c +9 -0
  144. data/share/demo/logical_trick/logical_trick.c +36 -0
  145. data/share/demo/long_sym/long_sym.c +5 -0
  146. data/share/demo/loop_var/loop_var.c +92 -0
  147. data/share/demo/malloc_or_die/malloc_or_die.c +43 -0
  148. data/share/demo/may_be_null/may_be_null.c +52 -0
  149. data/share/demo/may_be_null_arith/may_be_null_arith.c +15 -0
  150. data/share/demo/may_be_unset/may_be_unset.c +34 -0
  151. data/share/demo/mmapped_io/mmapped_io.c +23 -0
  152. data/share/demo/multi_break/multi_break.c +33 -0
  153. data/share/demo/multi_decl/multi_decl_1.c +17 -0
  154. data/share/demo/multi_decl/multi_decl_1.h +6 -0
  155. data/share/demo/multi_decl/multi_decl_2.c +13 -0
  156. data/share/demo/multi_decl/multi_decl_2.h +6 -0
  157. data/share/demo/multi_decl/multi_decl_3.c +22 -0
  158. data/share/demo/multi_def/multi_def_1.c +36 -0
  159. data/share/demo/multi_def/multi_def_1.h +6 -0
  160. data/share/demo/multi_def/multi_def_2.c +22 -0
  161. data/share/demo/multi_def/multi_def_2.h +6 -0
  162. data/share/demo/multi_def/multi_def_3.c +6 -0
  163. data/share/demo/multi_typedef/multi_typedef.c +11 -0
  164. data/share/demo/multi_typedef/multi_typedef_1.h +1 -0
  165. data/share/demo/multi_typedef/multi_typedef_2.h +1 -0
  166. data/share/demo/must_be_false/must_be_false.c +53 -0
  167. data/share/demo/must_be_null/must_be_null.c +13 -0
  168. data/share/demo/must_be_null_arith/must_be_null_arith.c +14 -0
  169. data/share/demo/must_be_true/must_be_true.c +21 -0
  170. data/share/demo/no_eof_nl/no_eof_nl.c +4 -0
  171. data/share/demo/no_void_arg/no_void_arg.c +14 -0
  172. data/share/demo/null_stmt/null_stmt.c +19 -0
  173. data/share/demo/octal_const/octal_const.c +20 -0
  174. data/share/demo/output_by_param/output_by_param.c +17 -0
  175. data/share/demo/overflow/overflow.c +74 -0
  176. data/share/demo/press_release/press_release.c +40 -0
  177. data/share/demo/retn_lvar_addr/retn_lvar_addr.c +47 -0
  178. data/share/demo/shift_expr/shift_expr.c +14 -0
  179. data/share/demo/should_be_typedef/should_be_typedef.c +51 -0
  180. data/share/demo/static_paths/static_paths.c +153 -0
  181. data/share/demo/static_vars/static_vars.c +39 -0
  182. data/share/demo/tag_hiding/tag_hiding.c +18 -0
  183. data/share/demo/tricky_incdec/tricky_incdec.c +12 -0
  184. data/share/demo/undefined_macro/undefined_macro.c +17 -0
  185. data/share/demo/uninit_vars/uninit_vars.c +28 -0
  186. data/share/demo/union_type/union_type.c +23 -0
  187. data/share/demo/unmatch_decl/unmatch_decl_1.c +12 -0
  188. data/share/demo/unmatch_decl/unmatch_decl_1.h +8 -0
  189. data/share/demo/unmatch_decl/unmatch_decl_2.c +10 -0
  190. data/share/demo/unmatch_decl/unmatch_decl_2.h +8 -0
  191. data/share/demo/unmatch_decl/unmatch_decl_3.c +7 -0
  192. data/share/demo/unmatch_paren_macro/unmatch_paren_macro.c +15 -0
  193. data/share/demo/unreachable/unreachable.c +34 -0
  194. data/share/demo/useless_exp_funs/useless_exp_funs_1.c +14 -0
  195. data/share/demo/useless_exp_funs/useless_exp_funs_1.h +1 -0
  196. data/share/demo/useless_exp_funs/useless_exp_funs_2.c +6 -0
  197. data/share/demo/useless_exp_vars/useless_export_1.c +8 -0
  198. data/share/demo/useless_exp_vars/useless_export_1.h +1 -0
  199. data/share/demo/useless_exp_vars/useless_export_2.c +7 -0
  200. data/share/demo/useless_expr/useless_expr.c +17 -0
  201. data/share/demo/useless_funs/useless_funs_1.c +21 -0
  202. data/share/demo/useless_funs/useless_funs_1.h +8 -0
  203. data/share/demo/useless_funs/useless_funs_2.c +6 -0
  204. data/share/demo/useless_header/useless_header.c +9 -0
  205. data/share/demo/useless_header/useless_header_1.h +12 -0
  206. data/share/demo/useless_header/useless_header_2.h +6 -0
  207. data/share/demo/useless_header/useless_header_3.h +9 -0
  208. data/share/demo/useless_header/useless_header_4.h +3 -0
  209. data/share/demo/useless_vars/useless_vars.c +17 -0
  210. data/share/demo/va_funcall/va_funcall.c +25 -0
  211. data/share/demo/various_fundef/various_fundef.c +36 -0
  212. data/share/demo/wchar_wstring/wchar_wstring.c +7 -0
  213. data/share/demo/wrap_around/wrap_around.c +38 -0
  214. data/share/doc/Makefile +16 -0
  215. data/share/doc/adlint_on_adqua.png +0 -0
  216. data/share/doc/adlint_on_eclipse_en.png +0 -0
  217. data/share/doc/adlint_on_eclipse_ja.png +0 -0
  218. data/share/doc/adlint_on_vim_en.png +0 -0
  219. data/share/doc/adlint_on_vim_ja.png +0 -0
  220. data/share/doc/developers_guide_ja.html +171 -0
  221. data/share/doc/developers_guide_ja.texi +87 -0
  222. data/share/doc/gen_mesg_sections.rb +39 -0
  223. data/share/doc/samples/GNUmakefile +162 -0
  224. data/share/doc/samples/adlint_traits.yml +238 -0
  225. data/share/doc/texinfo.css +22 -0
  226. data/share/doc/users_guide_en.html +39975 -0
  227. data/share/doc/users_guide_en.texi +32640 -0
  228. data/share/doc/users_guide_ja.html +40505 -0
  229. data/share/doc/users_guide_ja.texi +33189 -0
  230. data/share/logo/adlint-110.png +0 -0
  231. data/share/logo/adlint-524.png +0 -0
  232. data/share/logo/adlint.svg +4637 -0
  233. data/share/sample/README +6 -0
  234. data/share/sample/bison-2.5/adlint/GNUmakefile +170 -0
  235. data/share/sample/bison-2.5/adlint/adlint_traits.yml +225 -0
  236. data/share/sample/bison-2.5/adlint/lib/GNUmakefile +198 -0
  237. data/share/sample/bison-2.5/adlint/lib/adlint_cinit.h +228 -0
  238. data/share/sample/bison-2.5/adlint/lib/adlint_pinit.h +21 -0
  239. data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +238 -0
  240. data/share/sample/bison-2.5/adlint/src/GNUmakefile +166 -0
  241. data/share/sample/bison-2.5/adlint/src/adlint_cinit.h +228 -0
  242. data/share/sample/bison-2.5/adlint/src/adlint_pinit.h +21 -0
  243. data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +239 -0
  244. data/share/sample/ctags-5.8/adlint/GNUmakefile +169 -0
  245. data/share/sample/ctags-5.8/adlint/adlint_cinit.h +219 -0
  246. data/share/sample/ctags-5.8/adlint/adlint_pinit.h +13 -0
  247. data/share/sample/ctags-5.8/adlint/adlint_traits.yml +225 -0
  248. data/share/sample/flex-2.5.35/adlint/GNUmakefile +140 -0
  249. data/share/sample/flex-2.5.35/adlint/adlint_cinit.h +219 -0
  250. data/share/sample/flex-2.5.35/adlint/adlint_pinit.h +14 -0
  251. data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +225 -0
  252. data/share/sample/ruby-1.9.3-p0/adlint/GNUmakefile +314 -0
  253. data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +225 -0
  254. data/share/sample/ruby-1.9.3-p0/adlint/core/GNUmakefile +204 -0
  255. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_cinit.h +228 -0
  256. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_pinit.h +28 -0
  257. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +240 -0
  258. data/share/sample/ruby-1.9.3-p0/adlint/enc/GNUmakefile +163 -0
  259. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_cinit.h +228 -0
  260. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_pinit.h +24 -0
  261. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +240 -0
  262. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/GNUmakefile +149 -0
  263. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_cinit.h +228 -0
  264. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_pinit.h +24 -0
  265. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +240 -0
  266. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/GNUmakefile +131 -0
  267. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_cinit.h +228 -0
  268. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_pinit.h +24 -0
  269. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +241 -0
  270. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/GNUmakefile +131 -0
  271. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_cinit.h +228 -0
  272. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_pinit.h +24 -0
  273. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +241 -0
  274. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/GNUmakefile +131 -0
  275. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_cinit.h +228 -0
  276. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_pinit.h +24 -0
  277. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +241 -0
  278. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/GNUmakefile +131 -0
  279. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_cinit.h +228 -0
  280. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_pinit.h +24 -0
  281. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +241 -0
  282. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/GNUmakefile +134 -0
  283. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_cinit.h +228 -0
  284. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_pinit.h +24 -0
  285. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +241 -0
  286. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/GNUmakefile +131 -0
  287. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_cinit.h +228 -0
  288. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_pinit.h +24 -0
  289. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +241 -0
  290. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/GNUmakefile +131 -0
  291. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_cinit.h +228 -0
  292. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_pinit.h +24 -0
  293. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +241 -0
  294. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/GNUmakefile +131 -0
  295. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_cinit.h +228 -0
  296. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_pinit.h +24 -0
  297. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +242 -0
  298. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/GNUmakefile +132 -0
  299. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_cinit.h +228 -0
  300. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_pinit.h +24 -0
  301. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +242 -0
  302. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/GNUmakefile +132 -0
  303. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_cinit.h +228 -0
  304. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_pinit.h +24 -0
  305. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +242 -0
  306. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/GNUmakefile +132 -0
  307. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_cinit.h +228 -0
  308. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_pinit.h +24 -0
  309. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +242 -0
  310. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/GNUmakefile +132 -0
  311. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_cinit.h +228 -0
  312. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_pinit.h +24 -0
  313. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +242 -0
  314. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/GNUmakefile +134 -0
  315. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_cinit.h +228 -0
  316. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_pinit.h +24 -0
  317. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +241 -0
  318. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/GNUmakefile +140 -0
  319. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_cinit.h +228 -0
  320. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_pinit.h +24 -0
  321. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +242 -0
  322. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/GNUmakefile +131 -0
  323. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_cinit.h +228 -0
  324. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_pinit.h +24 -0
  325. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +241 -0
  326. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/GNUmakefile +131 -0
  327. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_cinit.h +228 -0
  328. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_pinit.h +24 -0
  329. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +241 -0
  330. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/GNUmakefile +131 -0
  331. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_cinit.h +228 -0
  332. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_pinit.h +24 -0
  333. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +241 -0
  334. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/GNUmakefile +134 -0
  335. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_cinit.h +228 -0
  336. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_pinit.h +24 -0
  337. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +242 -0
  338. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/GNUmakefile +131 -0
  339. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_cinit.h +228 -0
  340. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_pinit.h +24 -0
  341. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +241 -0
  342. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/GNUmakefile +131 -0
  343. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_cinit.h +228 -0
  344. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_pinit.h +24 -0
  345. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +241 -0
  346. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/GNUmakefile +131 -0
  347. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_cinit.h +228 -0
  348. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_pinit.h +24 -0
  349. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +241 -0
  350. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/GNUmakefile +131 -0
  351. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_cinit.h +228 -0
  352. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_pinit.h +24 -0
  353. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +241 -0
  354. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/GNUmakefile +131 -0
  355. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_cinit.h +228 -0
  356. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_pinit.h +24 -0
  357. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +241 -0
  358. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/GNUmakefile +131 -0
  359. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_cinit.h +228 -0
  360. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_pinit.h +24 -0
  361. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +241 -0
  362. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/GNUmakefile +131 -0
  363. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_cinit.h +228 -0
  364. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_pinit.h +24 -0
  365. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +241 -0
  366. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/GNUmakefile +131 -0
  367. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_cinit.h +228 -0
  368. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_pinit.h +24 -0
  369. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +241 -0
  370. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/GNUmakefile +131 -0
  371. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_cinit.h +228 -0
  372. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_pinit.h +24 -0
  373. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +241 -0
  374. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/GNUmakefile +131 -0
  375. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_cinit.h +228 -0
  376. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_pinit.h +24 -0
  377. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +241 -0
  378. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/GNUmakefile +162 -0
  379. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_cinit.h +228 -0
  380. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_pinit.h +24 -0
  381. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +241 -0
  382. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/GNUmakefile +131 -0
  383. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_cinit.h +228 -0
  384. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_pinit.h +24 -0
  385. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +241 -0
  386. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/GNUmakefile +135 -0
  387. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_cinit.h +228 -0
  388. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_pinit.h +24 -0
  389. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +241 -0
  390. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/GNUmakefile +131 -0
  391. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_cinit.h +228 -0
  392. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_pinit.h +24 -0
  393. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +241 -0
  394. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/GNUmakefile +131 -0
  395. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_cinit.h +228 -0
  396. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_pinit.h +24 -0
  397. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +241 -0
  398. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/GNUmakefile +131 -0
  399. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_cinit.h +228 -0
  400. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_pinit.h +24 -0
  401. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +241 -0
  402. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/GNUmakefile +131 -0
  403. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_cinit.h +228 -0
  404. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_pinit.h +24 -0
  405. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +241 -0
  406. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/GNUmakefile +132 -0
  407. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_cinit.h +228 -0
  408. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_pinit.h +24 -0
  409. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +241 -0
  410. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/GNUmakefile +144 -0
  411. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_cinit.h +228 -0
  412. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_pinit.h +24 -0
  413. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +241 -0
  414. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/GNUmakefile +131 -0
  415. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_cinit.h +228 -0
  416. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_pinit.h +24 -0
  417. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +241 -0
  418. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/GNUmakefile +131 -0
  419. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_cinit.h +228 -0
  420. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_pinit.h +24 -0
  421. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +241 -0
  422. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/GNUmakefile +140 -0
  423. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_cinit.h +228 -0
  424. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_pinit.h +24 -0
  425. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +241 -0
  426. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/GNUmakefile +131 -0
  427. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_cinit.h +228 -0
  428. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_pinit.h +24 -0
  429. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +241 -0
  430. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/GNUmakefile +131 -0
  431. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_cinit.h +228 -0
  432. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_pinit.h +24 -0
  433. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +241 -0
  434. data/share/sample/screen-4.0.3/adlint/GNUmakefile +162 -0
  435. data/share/sample/screen-4.0.3/adlint/adlint_cinit.h +228 -0
  436. data/share/sample/screen-4.0.3/adlint/adlint_pinit.h +21 -0
  437. data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +238 -0
  438. data/share/sample/vim-7.3/adlint/vim/GNUmakefile +185 -0
  439. data/share/sample/vim-7.3/adlint/vim/adlint_cinit.h +228 -0
  440. data/share/sample/vim-7.3/adlint/vim/adlint_pinit.h +25 -0
  441. data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +250 -0
  442. data/share/sample/vim-7.3/adlint/xxd/GNUmakefile +131 -0
  443. data/share/sample/vim-7.3/adlint/xxd/adlint_cinit.h +228 -0
  444. data/share/sample/vim-7.3/adlint/xxd/adlint_pinit.h +24 -0
  445. data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +237 -0
  446. data/share/sample/zsh-4.3.15/adlint/GNUmakefile +146 -0
  447. data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +225 -0
  448. data/share/sample/zsh-4.3.15/adlint/builtins/GNUmakefile +132 -0
  449. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_cinit.h +228 -0
  450. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_pinit.h +24 -0
  451. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +240 -0
  452. data/share/sample/zsh-4.3.15/adlint/core/GNUmakefile +153 -0
  453. data/share/sample/zsh-4.3.15/adlint/core/adlint_cinit.h +228 -0
  454. data/share/sample/zsh-4.3.15/adlint/core/adlint_pinit.h +23 -0
  455. data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +239 -0
  456. data/share/sample/zsh-4.3.15/adlint/modules/GNUmakefile +147 -0
  457. data/share/sample/zsh-4.3.15/adlint/modules/adlint_cinit.h +228 -0
  458. data/share/sample/zsh-4.3.15/adlint/modules/adlint_pinit.h +24 -0
  459. data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +240 -0
  460. data/share/sample/zsh-4.3.15/adlint/zle/GNUmakefile +144 -0
  461. data/share/sample/zsh-4.3.15/adlint/zle/adlint_cinit.h +228 -0
  462. data/share/sample/zsh-4.3.15/adlint/zle/adlint_pinit.h +24 -0
  463. data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +239 -0
  464. data/spec/MUST_WRITE_SPECS_WITH_RSPEC +0 -0
  465. metadata +532 -0
@@ -0,0 +1,149 @@
1
+ /* ___ ____ __ ___ _________
2
+ * / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
3
+ * / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
4
+ * / __ |/ /_/ / /___/ / /| / / /
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
6
+ *
7
+ * Initial header for GCC 4.3.4 on Cygwin generated by adlintize <%= AdLint::SHORT_VERSION %>
8
+ * at <%= Time.now %>.
9
+ */
10
+
11
+ #define __DBL_MIN_EXP__ (-1021)
12
+ #define __pentiumpro__ 1
13
+ #define __FLT_MIN__ 1.17549435e-38F
14
+ #define __DEC64_DEN__ 0.000000000000001E-383DD
15
+ #define __CHAR_BIT__ 8
16
+ #define __WCHAR_MAX__ 65535U
17
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
18
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
19
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
20
+ #define __DBL_DENORM_MIN__ 4.9406564584124654e-324
21
+ #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
22
+ #define __FLT_EVAL_METHOD__ 2
23
+ #define __unix__ 1
24
+ #define __DBL_MIN_10_EXP__ (-307)
25
+ #define __FINITE_MATH_ONLY__ 0
26
+ #define __GNUC_PATCHLEVEL__ 4
27
+ #define _stdcall __attribute__((__stdcall__))
28
+ #define __DEC64_MAX_EXP__ 384
29
+ #define __SHRT_MAX__ 32767
30
+ #define __LDBL_MAX__ 1.18973149535723176502e+4932L
31
+ #define __GXX_TYPEINFO_EQUALITY_INLINE 0
32
+ #define __UINTMAX_TYPE__ long long unsigned int
33
+ #define __DEC32_EPSILON__ 1E-6DF
34
+ #define __unix 1
35
+ #define __LDBL_MAX_EXP__ 16384
36
+ #define __SCHAR_MAX__ 127
37
+ #define __DBL_DIG__ 15
38
+ #define __SIZEOF_INT__ 4
39
+ #define __SIZEOF_POINTER__ 4
40
+ #define __USER_LABEL_PREFIX__ _
41
+ #define __STDC_HOSTED__ 1
42
+ #define __LDBL_HAS_INFINITY__ 1
43
+ #define __FLT_EPSILON__ 1.19209290e-7F
44
+ #define __LDBL_MIN__ 3.36210314311209350626e-4932L
45
+ #define __DEC32_MAX__ 9.999999E96DF
46
+ #define __SIZEOF_LONG__ 4
47
+ #define __DECIMAL_DIG__ 21
48
+ #define __LDBL_HAS_QUIET_NAN__ 1
49
+ #define __GNUC__ 4
50
+ #define _cdecl __attribute__((__cdecl__))
51
+ #define __FLT_HAS_DENORM__ 1
52
+ #define __SIZEOF_LONG_DOUBLE__ 12
53
+ #define __i686 1
54
+ #define __DBL_MAX__ 1.7976931348623157e+308
55
+ #define __DBL_HAS_INFINITY__ 1
56
+ #define __DEC32_MIN_EXP__ (-95)
57
+ #define _fastcall __attribute__((__fastcall__))
58
+ #define __LDBL_HAS_DENORM__ 1
59
+ #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
60
+ #define __DEC32_MIN__ 1E-95DF
61
+ #define __DBL_MAX_EXP__ 1024
62
+ #define __DEC128_EPSILON__ 1E-33DL
63
+ #define __LONG_LONG_MAX__ 9223372036854775807LL
64
+ #define __SIZEOF_SIZE_T__ 4
65
+ #define __SIZEOF_WINT_T__ 4
66
+ #define __GXX_ABI_VERSION 1002
67
+ #define __FLT_MIN_EXP__ (-125)
68
+ #define __i686__ 1
69
+ #define __DBL_MIN__ 2.2250738585072014e-308
70
+ #define __DEC128_MIN__ 1E-6143DL
71
+ #define __REGISTER_PREFIX__
72
+ #define __DBL_HAS_DENORM__ 1
73
+ #define __cdecl __attribute__((__cdecl__))
74
+ #define __NO_INLINE__ 1
75
+ #define __i386 1
76
+ #define __FLT_MANT_DIG__ 24
77
+ #define __VERSION__ "4.3.4 20090804 (release) 1"
78
+ #define _X86_ 1
79
+ #define __DEC64_EPSILON__ 1E-15DD
80
+ #define __DEC128_MIN_EXP__ (-6143)
81
+ #define unix 1
82
+ #define __i386__ 1
83
+ #define __SIZE_TYPE__ unsigned int
84
+ #define __DEC32_DEN__ 0.000001E-95DF
85
+ #define __FLT_RADIX__ 2
86
+ #define __LDBL_EPSILON__ 1.08420217248550443401e-19L
87
+ #define __SIZEOF_PTRDIFF_T__ 4
88
+ #define __CYGWIN__ 1
89
+ #define __pentiumpro 1
90
+ #define __FLT_HAS_QUIET_NAN__ 1
91
+ #define __FLT_MAX_10_EXP__ 38
92
+ #define __LONG_MAX__ 2147483647L
93
+ #define __FLT_HAS_INFINITY__ 1
94
+ #define __DEC64_MAX__ 9.999999999999999E384DD
95
+ #define __DEC64_MANT_DIG__ 16
96
+ #define __DEC32_MAX_EXP__ 96
97
+ #define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
98
+ #define __GXX_MERGED_TYPEINFO_NAMES 0
99
+ #define __stdcall __attribute__((__stdcall__))
100
+ #define __LDBL_MANT_DIG__ 64
101
+ #define __DBL_HAS_QUIET_NAN__ 1
102
+ #define __WCHAR_TYPE__ short unsigned int
103
+ #define __SIZEOF_FLOAT__ 4
104
+ #define __DEC64_MIN_EXP__ (-383)
105
+ #define __FLT_DIG__ 6
106
+ #define __INT_MAX__ 2147483647
107
+ #define __FLT_MAX_EXP__ 128
108
+ #define __DBL_MANT_DIG__ 53
109
+ #define __DEC64_MIN__ 1E-383DD
110
+ #define __WINT_TYPE__ unsigned int
111
+ #define __SIZEOF_SHORT__ 2
112
+ #define __LDBL_MIN_EXP__ (-16381)
113
+ #define __LDBL_MAX_10_EXP__ 4932
114
+ #define __DBL_EPSILON__ 2.2204460492503131e-16
115
+ #define __SIZEOF_WCHAR_T__ 2
116
+ #define __fastcall __attribute__((__fastcall__))
117
+ #define __CYGWIN32__ 1
118
+ #define __DEC_EVAL_METHOD__ 2
119
+ #define __INTMAX_MAX__ 9223372036854775807LL
120
+ #define __FLT_DENORM_MIN__ 1.40129846e-45F
121
+ #define __FLT_MAX__ 3.40282347e+38F
122
+ #define __SIZEOF_DOUBLE__ 8
123
+ #define __FLT_MIN_10_EXP__ (-37)
124
+ #define __INTMAX_TYPE__ long long int
125
+ #define i386 1
126
+ #define __DEC128_MAX_EXP__ 6144
127
+ #define __GNUC_MINOR__ 3
128
+ #define __DEC32_MANT_DIG__ 7
129
+ #define __DBL_MAX_10_EXP__ 308
130
+ #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
131
+ #define __STDC__ 1
132
+ #define __PTRDIFF_TYPE__ int
133
+ #define __DEC128_MANT_DIG__ 34
134
+ #define __LDBL_MIN_10_EXP__ (-4931)
135
+ #define __SIZEOF_LONG_LONG__ 8
136
+ #define __LDBL_DIG__ 18
137
+ #define __GNUC_GNU_INLINE__ 1
138
+ #define __declspec(x) __attribute__((x))
139
+
140
+ #define __const const
141
+ #define __restrict restrict
142
+ #define __inline inline
143
+ #define __builtin_va_list void *
144
+ #define __builtin_va_start(a, b) (0)
145
+ #define __builtin_va_end(a) (0)
146
+ #define __builtin_va_arg(ar, t) (0)
147
+ #define __builtin_va_copy(d, s) (0)
148
+ #define __builtin_offsetof(type, member) (0)
149
+ #define __alignof__(type) (0)
@@ -0,0 +1,227 @@
1
+ # ___ ____ __ ___ _________
2
+ # / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
3
+ # / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
4
+ # / __ |/ /_/ / /___/ / /| / / /
5
+ # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
6
+ #
7
+ # Traits file generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>.
8
+
9
+ # Schema version of the traits file.
10
+ # DO NOT EDIT MANUALLY!
11
+ version: "<%= AdLint::SHORT_VERSION %>"
12
+
13
+ #
14
+ # Project specific traits section
15
+ #
16
+ project_traits:
17
+
18
+ # Project name.
19
+ project_name: "<%= project_name %>"
20
+
21
+ # Project specific additional include paths.
22
+ # Ex.
23
+ # include_path:
24
+ # - "include/foo"
25
+ # - "../include/bar"
26
+ # - "/opt/baz/include"
27
+ include_path:
28
+
29
+ # Pathname of the project specific initial header file.
30
+ # This header file is automatically included above the first line of the
31
+ # target source file.
32
+ initial_header: "<%= pinit_fpath.basename %>"
33
+
34
+ #
35
+ # Project specific coding style section
36
+ #
37
+ coding_style:
38
+
39
+ # Indent style which is a convention governing the identation of blocks.
40
+ # Select from "K&R", "Allman" and "GNU".
41
+ #
42
+ # The value "K&R" means...
43
+ # int foo(int i)
44
+ # {
45
+ # if (i == 0) {
46
+ # return 0;
47
+ # }
48
+ # return i;
49
+ # }
50
+ #
51
+ # The value "Allman" means...
52
+ # int foo(int i)
53
+ # {
54
+ # if (i == 0)
55
+ # {
56
+ # return 0;
57
+ # }
58
+ # return i;
59
+ # }
60
+ #
61
+ # The value "GNU" means...
62
+ # int
63
+ # foo(int i)
64
+ # {
65
+ # if (i == 0)
66
+ # {
67
+ # return 0;
68
+ # }
69
+ # return i;
70
+ # }
71
+ indent_style: "K&R"
72
+
73
+ # Appearance width of a TAB character.
74
+ tab_width: 8
75
+
76
+ # Appearance width of 1-level of the indentation.
77
+ indent_width: 4
78
+
79
+ # Character encoding of source files.
80
+ file_encoding:
81
+
82
+ #
83
+ # Compiler specific traits section
84
+ #
85
+ compiler_traits:
86
+
87
+ # Pathname of the compiler specific initial header file.
88
+ # This header file is automatically included above the first line of the
89
+ # project specific initial header file.
90
+ initial_header: "<%= cinit_fpath.basename %>"
91
+
92
+ #
93
+ # Compiler specific standard type section
94
+ #
95
+ standard_type:
96
+
97
+ # Bit size of the `char' type family.
98
+ char_size: 8
99
+ # Bit size of the alignment of the `char' type family.
100
+ char_alignment: 8
101
+
102
+ # Bit size of the `short' type family.
103
+ short_size: 16
104
+ # Bit size of the alignment of the `short' type family.
105
+ short_alignment: 16
106
+
107
+ # Bit size of the `int' type family.
108
+ int_size: 32
109
+ # Bit size of the alignment of the `int' type family.
110
+ int_alignment: 32
111
+
112
+ # Bit size of the `long int' type family.
113
+ long_size: 32
114
+ # Bit size of the alignment of the `long int' type family.
115
+ long_alignment: 32
116
+
117
+ # Bit size of the `long long int' type family.
118
+ long_long_size: 64
119
+ # Bit size of the alignment of the `long long int' type family.
120
+ long_long_alignment: 64
121
+
122
+ # Bit size of the `float' type.
123
+ float_size: 32
124
+ # Bit size of the alignment of the `float' type.
125
+ float_alignment: 32
126
+
127
+ # Bit size of the `double' type.
128
+ double_size: 64
129
+ # Bit size of the alignment of the `double' type.
130
+ double_alignment: 64
131
+
132
+ # Bit size of the `long double' type.
133
+ long_double_size: 96
134
+ # Bit size of the alignment of the `long double' type.
135
+ long_double_alignment: 96
136
+
137
+ # Bit size of the pointer to functions.
138
+ code_ptr_size: 32
139
+ # Bit size of the alignment of the pointer to functions.
140
+ code_ptr_alignment: 32
141
+
142
+ # Bit size of the pointer to data.
143
+ data_ptr_size: 32
144
+ # Bit size of the alignment of the pointer to data.
145
+ data_ptr_alignment: 32
146
+
147
+ # Treat the `char' type as same as the `unsigned char' type?
148
+ char_as_unsigned_char: true
149
+
150
+ # Compiler specific include paths.
151
+ # Ex.
152
+ # include_path:
153
+ # - "/usr/include"
154
+ # - "/usr/local/include"
155
+ include_path:
156
+ - "/lib/gcc/i686-pc-cygwin/4.3.4/include"
157
+ - "/lib/gcc/i686-pc-cygwin/4.3.4/include-fixed"
158
+ - "/usr/include"
159
+ - "/usr/include/w32api"
160
+
161
+ # Treat the `>>' operator as a logical shift, not an arithmetic shift?
162
+ arithmetic:
163
+ logical_right_shift: true
164
+
165
+ # Token substitution setting to warn the use of compiler specific extensions.
166
+ #
167
+ # If your compiler supports `__attribute__(...)' extension and you want to
168
+ # know the use of this extension, specify as below.
169
+ # extension_substitution:
170
+ # "__attribute__(__adlint__any)": ""
171
+ # The token sequence consists of `__attribute__', `(', any kind of tokens,
172
+ # `)' will be replaced with nothing (erased) after the preprocessing phase.
173
+ # And this substitution will be warned by the message W0061.
174
+ extension_substitution:
175
+ "__extension__": ""
176
+ "__attribute__(__adlint__any)": ""
177
+ "__cdecl": ""
178
+ "__inline__": "inline"
179
+ "__asm__ __adlint__any(__adlint__any)": ""
180
+ "near": ""
181
+ "far": ""
182
+
183
+ # Token substitution setting to silently ignore the use of compiler specific
184
+ # extensions.
185
+ #
186
+ # If your compiler supports `__asm__ volatile (...)' extension and you do not
187
+ # mind the use of this extension, specify as below.
188
+ # arbitrary_substitution:
189
+ # "__asm__ __adlint__any(__adlint__any)": ""
190
+ # The token sequence consists of `__asm__', any kind of tokens, `(', any kind
191
+ # of tokens, `)' will be replaced with nothing (erased) silently after the
192
+ # preprocessing phase.
193
+ arbitrary_substitution:
194
+ "typeof": "__typeof__"
195
+ "__typeof": "__typeof__"
196
+ "alignof": "__alignof__"
197
+ "__alignof": "__alignof__"
198
+
199
+ # Max length of all symbols can be identified by the compiler.
200
+ identifier_max: 128
201
+
202
+ #
203
+ # Linker specific traits section
204
+ #
205
+ linker_traits:
206
+
207
+ # Max length of external symbols can be identified by the linker.
208
+ identifier_max: 128
209
+
210
+ # Are external symbols identified without case by the linker?
211
+ identifier_ignore_case: false
212
+
213
+ #
214
+ # Message traits section
215
+ #
216
+ message_traits:
217
+
218
+ # Language of the message text.
219
+ # Currently, "en_US" and "ja_JP" are supported.
220
+ # Please help to translate the message catalog into your language.
221
+ language: "<%= lang %>"
222
+
223
+ # Message text replacement.
224
+ # Ex.
225
+ # change_list:
226
+ # W9999: "Your custom message for the warning of #9999."
227
+ change_list:
@@ -0,0 +1,224 @@
1
+ /* ___ ____ __ ___ _________
2
+ * / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
3
+ * / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
4
+ * / __ |/ /_/ / /___/ / /| / / /
5
+ * /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
6
+ *
7
+ * Initial header for GCC 4.5.2 on DevKit generated by adlintize <%= AdLint::SHORT_VERSION %>
8
+ * at <%= Time.now %>.
9
+ */
10
+
11
+ #define __DBL_MIN_EXP__ (-1021)
12
+ #define __UINT_LEAST16_MAX__ 65535
13
+ #define __FLT_MIN__ 1.17549435082228750797e-38F
14
+ #define __UINT_LEAST8_TYPE__ unsigned char
15
+ #define _WIN32 1
16
+ #define __INTMAX_C(c) c ## LL
17
+ #define __CHAR_BIT__ 8
18
+ #define __UINT8_MAX__ 255
19
+ #define __WINT_MAX__ 65535
20
+ #define __SIZE_MAX__ 4294967295U
21
+ #define __WCHAR_MAX__ 65535
22
+ #define __DBL_DENORM_MIN__ ((double)4.94065645841246544177e-324L)
23
+ #define __FLT_EVAL_METHOD__ 2
24
+ #define __UINT_FAST64_MAX__ 18446744073709551615ULL
25
+ #define __SIG_ATOMIC_TYPE__ int
26
+ #define __DBL_MIN_10_EXP__ (-307)
27
+ #define __FINITE_MATH_ONLY__ 0
28
+ #define __GNUC_PATCHLEVEL__ 2
29
+ #define __UINT_FAST8_MAX__ 255
30
+ #define _stdcall __attribute__((__stdcall__))
31
+ #define __DEC64_MAX_EXP__ 385
32
+ #define __INT8_C(c) c
33
+ #define __UINT_LEAST64_MAX__ 18446744073709551615ULL
34
+ #define __SHRT_MAX__ 32767
35
+ #define __LDBL_MAX__ 1.18973149535723176502e+4932L
36
+ #define __UINT_LEAST8_MAX__ 255
37
+ #define __GXX_TYPEINFO_EQUALITY_INLINE 0
38
+ #define __UINTMAX_TYPE__ long long unsigned int
39
+ #define __DEC32_EPSILON__ 1E-6DF
40
+ #define __UINT32_MAX__ 4294967295U
41
+ #define __LDBL_MAX_EXP__ 16384
42
+ #define __WINT_MIN__ 0
43
+ #define __SCHAR_MAX__ 127
44
+ #define __WCHAR_MIN__ 0
45
+ #define __INT64_C(c) c ## LL
46
+ #define __DBL_DIG__ 15
47
+ #define __SIZEOF_INT__ 4
48
+ #define __SIZEOF_POINTER__ 4
49
+ #define __USER_LABEL_PREFIX__ _
50
+ #define __STDC_HOSTED__ 1
51
+ #define __WIN32 1
52
+ #define __LDBL_HAS_INFINITY__ 1
53
+ #define __FLT_EPSILON__ 1.19209289550781250000e-7F
54
+ #define __LDBL_MIN__ 3.36210314311209350626e-4932L
55
+ #define __DEC32_MAX__ 9.999999E96DF
56
+ #define __MINGW32__ 1
57
+ #define __INT32_MAX__ 2147483647
58
+ #define __SIZEOF_LONG__ 4
59
+ #define __UINT16_C(c) c
60
+ #define __DECIMAL_DIG__ 21
61
+ #define __LDBL_HAS_QUIET_NAN__ 1
62
+ #define __GNUC__ 4
63
+ #define _cdecl __attribute__((__cdecl__))
64
+ #define __FLT_HAS_DENORM__ 1
65
+ #define __SIZEOF_LONG_DOUBLE__ 12
66
+ #define __BIGGEST_ALIGNMENT__ 16
67
+ #define __DBL_MAX__ ((double)1.79769313486231570815e+308L)
68
+ #define __INT_FAST32_MAX__ 2147483647
69
+ #define __WINNT 1
70
+ #define __DBL_HAS_INFINITY__ 1
71
+ #define __WINNT__ 1
72
+ #define __DEC32_MIN_EXP__ (-94)
73
+ #define __INT_FAST16_TYPE__ short int
74
+ #define _fastcall __attribute__((__fastcall__))
75
+ #define __LDBL_HAS_DENORM__ 1
76
+ #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
77
+ #define __INT_LEAST32_MAX__ 2147483647
78
+ #define __USING_SJLJ_EXCEPTIONS__ 1
79
+ #define __DEC32_MIN__ 1E-95DF
80
+ #define __DBL_MAX_EXP__ 1024
81
+ #define __DEC128_EPSILON__ 1E-33DL
82
+ #define __WIN32__ 1
83
+ #define __PTRDIFF_MAX__ 2147483647
84
+ #define __LONG_LONG_MAX__ 9223372036854775807LL
85
+ #define __SIZEOF_SIZE_T__ 4
86
+ #define __SIZEOF_WINT_T__ 2
87
+ #define __GXX_ABI_VERSION 1002
88
+ #define __FLT_MIN_EXP__ (-125)
89
+ #define __INT_FAST64_TYPE__ long long int
90
+ #define __DBL_MIN__ ((double)2.22507385850720138309e-308L)
91
+ #define __tune_i386__ 1
92
+ #define __DEC128_MIN__ 1E-6143DL
93
+ #define __REGISTER_PREFIX__
94
+ #define __UINT16_MAX__ 65535
95
+ #define __DBL_HAS_DENORM__ 1
96
+ #define __cdecl __attribute__((__cdecl__))
97
+ #define __UINT8_TYPE__ unsigned char
98
+ #define __NO_INLINE__ 1
99
+ #define __i386 1
100
+ #define __FLT_MANT_DIG__ 24
101
+ #define __VERSION__ "4.5.2"
102
+ #define __UINT64_C(c) c ## ULL
103
+ #define _X86_ 1
104
+ #define __INT32_C(c) c
105
+ #define __DEC64_EPSILON__ 1E-15DD
106
+ #define __DEC128_MIN_EXP__ (-6142)
107
+ #define __INT_FAST32_TYPE__ int
108
+ #define __UINT_LEAST16_TYPE__ short unsigned int
109
+ #define __INT16_MAX__ 32767
110
+ #define __i386__ 1
111
+ #define __SIZE_TYPE__ unsigned int
112
+ #define __UINT64_MAX__ 18446744073709551615ULL
113
+ #define __INT8_TYPE__ signed char
114
+ #define __FLT_RADIX__ 2
115
+ #define __INT_LEAST16_TYPE__ short int
116
+ #define __LDBL_EPSILON__ 1.08420217248550443401e-19L
117
+ #define __UINTMAX_C(c) c ## ULL
118
+ #define __SIG_ATOMIC_MAX__ 2147483647
119
+ #define __SIZEOF_PTRDIFF_T__ 4
120
+ #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
121
+ #define __MSVCRT__ 1
122
+ #define __INT_FAST16_MAX__ 32767
123
+ #define __UINT_FAST32_MAX__ 4294967295U
124
+ #define __UINT_LEAST64_TYPE__ long long unsigned int
125
+ #define __FLT_HAS_QUIET_NAN__ 1
126
+ #define __FLT_MAX_10_EXP__ 38
127
+ #define __LONG_MAX__ 2147483647L
128
+ #define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
129
+ #define __FLT_HAS_INFINITY__ 1
130
+ #define __UINT_FAST16_TYPE__ short unsigned int
131
+ #define __DEC64_MAX__ 9.999999999999999E384DD
132
+ #define __CHAR16_TYPE__ short unsigned int
133
+ #define __PRAGMA_REDEFINE_EXTNAME 1
134
+ #define __INT_LEAST16_MAX__ 32767
135
+ #define __DEC64_MANT_DIG__ 16
136
+ #define __INT64_MAX__ 9223372036854775807LL
137
+ #define __UINT_LEAST32_MAX__ 4294967295U
138
+ #define __INT_LEAST64_TYPE__ long long int
139
+ #define __INT16_TYPE__ short int
140
+ #define __INT_LEAST8_TYPE__ signed char
141
+ #define __DEC32_MAX_EXP__ 97
142
+ #define __INT_FAST8_MAX__ 127
143
+ #define __INTPTR_MAX__ 2147483647
144
+ #define __GXX_MERGED_TYPEINFO_NAMES 0
145
+ #define __stdcall __attribute__((__stdcall__))
146
+ #define __LDBL_MANT_DIG__ 64
147
+ #define __DBL_HAS_QUIET_NAN__ 1
148
+ #define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
149
+ #define __INTPTR_TYPE__ int
150
+ #define __UINT16_TYPE__ short unsigned int
151
+ #define __WCHAR_TYPE__ short unsigned int
152
+ #define __SIZEOF_FLOAT__ 4
153
+ #define __UINTPTR_MAX__ 4294967295U
154
+ #define __DEC64_MIN_EXP__ (-382)
155
+ #define __INT_FAST64_MAX__ 9223372036854775807LL
156
+ #define __FLT_DIG__ 6
157
+ #define __UINT_FAST64_TYPE__ long long unsigned int
158
+ #define __INT_MAX__ 2147483647
159
+ #define WIN32 1
160
+ #define __INT64_TYPE__ long long int
161
+ #define __FLT_MAX_EXP__ 128
162
+ #define __DBL_MANT_DIG__ 53
163
+ #define __INT_LEAST64_MAX__ 9223372036854775807LL
164
+ #define __DEC64_MIN__ 1E-383DD
165
+ #define __WINT_TYPE__ short unsigned int
166
+ #define __UINT_LEAST32_TYPE__ unsigned int
167
+ #define __SIZEOF_SHORT__ 2
168
+ #define __LDBL_MIN_EXP__ (-16381)
169
+ #define __INT_LEAST8_MAX__ 127
170
+ #define __LDBL_MAX_10_EXP__ 4932
171
+ #define __DBL_EPSILON__ ((double)2.22044604925031308085e-16L)
172
+ #define __UINT8_C(c) c
173
+ #define __INT_LEAST32_TYPE__ int
174
+ #define __SIZEOF_WCHAR_T__ 2
175
+ #define __UINT64_TYPE__ long long unsigned int
176
+ #define __INT_FAST8_TYPE__ signed char
177
+ #define __fastcall __attribute__((__fastcall__))
178
+ #define __DEC_EVAL_METHOD__ 2
179
+ #define __UINT32_C(c) c ## U
180
+ #define __INTMAX_MAX__ 9223372036854775807LL
181
+ #define WINNT 1
182
+ #define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F
183
+ #define __INT8_MAX__ 127
184
+ #define __UINT_FAST32_TYPE__ unsigned int
185
+ #define __CHAR32_TYPE__ unsigned int
186
+ #define __FLT_MAX__ 3.40282346638528859812e+38F
187
+ #define __INT32_TYPE__ int
188
+ #define __SIZEOF_DOUBLE__ 8
189
+ #define __FLT_MIN_10_EXP__ (-37)
190
+ #define __INTMAX_TYPE__ long long int
191
+ #define i386 1
192
+ #define _INTEGRAL_MAX_BITS 64
193
+ #define __DEC128_MAX_EXP__ 6145
194
+ #define __GNUC_MINOR__ 5
195
+ #define __UINTMAX_MAX__ 18446744073709551615ULL
196
+ #define __DEC32_MANT_DIG__ 7
197
+ #define __DBL_MAX_10_EXP__ 308
198
+ #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
199
+ #define __INT16_C(c) c
200
+ #define __STDC__ 1
201
+ #define __PTRDIFF_TYPE__ int
202
+ #define __UINT32_TYPE__ unsigned int
203
+ #define __UINTPTR_TYPE__ unsigned int
204
+ #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
205
+ #define __DEC128_MANT_DIG__ 34
206
+ #define __LDBL_MIN_10_EXP__ (-4931)
207
+ #define __SIZEOF_LONG_LONG__ 8
208
+ #define __LDBL_DIG__ 18
209
+ #define __UINT_FAST16_MAX__ 65535
210
+ #define __GNUC_GNU_INLINE__ 1
211
+ #define __UINT_FAST8_TYPE__ unsigned char
212
+ #define __declspec(x) __attribute__((x))
213
+
214
+ #define __const const
215
+ #define __restrict restrict
216
+ #define __restrict__ restrict
217
+ #define __inline inline
218
+ #define __builtin_va_list void *
219
+ #define __builtin_va_start(a, b) (0)
220
+ #define __builtin_va_end(a) (0)
221
+ #define __builtin_va_arg(ar, t) (0)
222
+ #define __builtin_va_copy(d, s) (0)
223
+ #define __builtin_offsetof(type, member) (0)
224
+ #define __alignof__(type) (0)