adlint 1.18.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +287 -188
- data/MANIFEST +278 -92
- data/NEWS +16 -4
- data/bin/adlintize +124 -3
- data/etc/conf.d/fallback/traits.erb +54 -1
- data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +54 -1
- data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +54 -1
- data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +54 -1
- data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +54 -1
- data/etc/mesg.d/c_builtin/en_US/messages.yml +2998 -0
- data/etc/mesg.d/c_builtin/ja_JP/messages.yml +2998 -0
- data/etc/mesg.d/core/en_US/messages.yml +134 -0
- data/etc/mesg.d/core/ja_JP/messages.yml +134 -0
- data/features/{message_detection → code_check}/E0013.feature +2 -2
- data/features/{message_detection → code_check}/W0001.feature +4 -4
- data/features/{message_detection → code_check}/W0002.feature +6 -6
- data/features/{message_detection → code_check}/W0003.feature +8 -8
- data/features/{message_detection → code_check}/W0007.feature +16 -16
- data/features/{message_detection → code_check}/W0010.feature +8 -8
- data/features/{message_detection → code_check}/W0013.feature +16 -16
- data/features/code_check/W0016.feature +200 -0
- data/features/code_check/W0017.feature +270 -0
- data/features/code_check/W0025.feature +66 -0
- data/features/code_check/W0026.feature +143 -0
- data/features/{message_detection → code_check}/W0093.feature +6 -6
- data/features/{message_detection → code_check}/W0104.feature +14 -14
- data/features/{message_detection → code_check}/W0109.feature +6 -6
- data/features/code_check/W0119.feature +151 -0
- data/features/code_check/W0120.feature +137 -0
- data/features/code_check/W0121.feature +147 -0
- data/features/code_check/W0122.feature +142 -0
- data/features/code_check/W0123.feature +147 -0
- data/features/code_check/W0124.feature +142 -0
- data/features/code_check/W0125.feature +147 -0
- data/features/code_check/W0126.feature +142 -0
- data/features/code_check/W0127.feature +147 -0
- data/features/code_check/W0128.feature +147 -0
- data/features/code_check/W0129.feature +147 -0
- data/features/code_check/W0130.feature +159 -0
- data/features/code_check/W0131.feature +154 -0
- data/features/code_check/W0132.feature +137 -0
- data/features/code_check/W0133.feature +151 -0
- data/features/code_check/W0134.feature +151 -0
- data/features/code_check/W0135.feature +147 -0
- data/features/code_check/W0136.feature +151 -0
- data/features/code_check/W0137.feature +147 -0
- data/features/code_check/W0138.feature +151 -0
- data/features/code_check/W0139.feature +147 -0
- data/features/code_check/W0140.feature +159 -0
- data/features/code_check/W0141.feature +155 -0
- data/features/code_check/W0142.feature +152 -0
- data/features/code_check/W0143.feature +147 -0
- data/features/code_check/W0144.feature +146 -0
- data/features/code_check/W0145.feature +147 -0
- data/features/code_check/W0146.feature +146 -0
- data/features/code_check/W0147.feature +146 -0
- data/features/code_check/W0148.feature +147 -0
- data/features/code_check/W0149.feature +146 -0
- data/features/code_check/W0150.feature +146 -0
- data/features/code_check/W0151.feature +146 -0
- data/features/code_check/W0152.feature +155 -0
- data/features/code_check/W0153.feature +155 -0
- data/features/code_check/W0154.feature +154 -0
- data/features/code_check/W0155.feature +154 -0
- data/features/code_check/W0156.feature +167 -0
- data/features/code_check/W0157.feature +152 -0
- data/features/code_check/W0158.feature +147 -0
- data/features/code_check/W0159.feature +147 -0
- data/features/code_check/W0160.feature +147 -0
- data/features/code_check/W0161.feature +151 -0
- data/features/code_check/W0162.feature +146 -0
- data/features/code_check/W0163.feature +146 -0
- data/features/code_check/W0164.feature +146 -0
- data/features/code_check/W0165.feature +151 -0
- data/features/code_check/W0166.feature +146 -0
- data/features/code_check/W0167.feature +146 -0
- data/features/code_check/W0168.feature +146 -0
- data/features/code_check/W0169.feature +151 -0
- data/features/code_check/W0170.feature +146 -0
- data/features/code_check/W0171.feature +146 -0
- data/features/code_check/W0172.feature +146 -0
- data/features/code_check/W0173.feature +159 -0
- data/features/code_check/W0174.feature +159 -0
- data/features/code_check/W0175.feature +158 -0
- data/features/code_check/W0176.feature +158 -0
- data/features/code_check/W0177.feature +159 -0
- data/features/code_check/W0178.feature +155 -0
- data/features/code_check/W0179.feature +154 -0
- data/features/code_check/W0180.feature +154 -0
- data/features/code_check/W0181.feature +167 -0
- data/features/code_check/W0182.feature +147 -0
- data/features/code_check/W0183.feature +147 -0
- data/features/code_check/W0184.feature +148 -0
- data/features/code_check/W0185.feature +142 -0
- data/features/code_check/W0186.feature +142 -0
- data/features/code_check/W0187.feature +142 -0
- data/features/code_check/W0188.feature +142 -0
- data/features/code_check/W0189.feature +142 -0
- data/features/code_check/W0190.feature +142 -0
- data/features/code_check/W0191.feature +142 -0
- data/features/code_check/W0192.feature +142 -0
- data/features/code_check/W0193.feature +143 -0
- data/features/code_check/W0194.feature +142 -0
- data/features/code_check/W0195.feature +142 -0
- data/features/code_check/W0196.feature +142 -0
- data/features/code_check/W0197.feature +142 -0
- data/features/code_check/W0198.feature +142 -0
- data/features/code_check/W0199.feature +143 -0
- data/features/code_check/W0200.feature +142 -0
- data/features/code_check/W0201.feature +142 -0
- data/features/code_check/W0202.feature +142 -0
- data/features/code_check/W0203.feature +142 -0
- data/features/code_check/W0204.feature +142 -0
- data/features/code_check/W0205.feature +143 -0
- data/features/code_check/W0206.feature +150 -0
- data/features/code_check/W0207.feature +150 -0
- data/features/code_check/W0208.feature +150 -0
- data/features/code_check/W0209.feature +151 -0
- data/features/code_check/W0210.feature +151 -0
- data/features/code_check/W0211.feature +151 -0
- data/features/code_check/W0212.feature +147 -0
- data/features/code_check/W0213.feature +142 -0
- data/features/code_check/W0214.feature +147 -0
- data/features/code_check/W0215.feature +142 -0
- data/features/code_check/W0216.feature +142 -0
- data/features/code_check/W0217.feature +142 -0
- data/features/code_check/W0218.feature +142 -0
- data/features/code_check/W0219.feature +142 -0
- data/features/code_check/W0220.feature +142 -0
- data/features/code_check/W0221.feature +147 -0
- data/features/code_check/W0222.feature +142 -0
- data/features/code_check/W0223.feature +147 -0
- data/features/code_check/W0224.feature +142 -0
- data/features/code_check/W0225.feature +142 -0
- data/features/code_check/W0226.feature +142 -0
- data/features/code_check/W0227.feature +142 -0
- data/features/code_check/W0228.feature +142 -0
- data/features/code_check/W0229.feature +142 -0
- data/features/code_check/W0230.feature +147 -0
- data/features/code_check/W0231.feature +142 -0
- data/features/code_check/W0232.feature +148 -0
- data/features/code_check/W0233.feature +142 -0
- data/features/code_check/W0234.feature +143 -0
- data/features/code_check/W0235.feature +142 -0
- data/features/code_check/W0236.feature +143 -0
- data/features/code_check/W0237.feature +142 -0
- data/features/code_check/W0238.feature +143 -0
- data/features/code_check/W0239.feature +154 -0
- data/features/code_check/W0240.feature +155 -0
- data/features/code_check/W0241.feature +154 -0
- data/features/code_check/W0242.feature +155 -0
- data/features/code_check/W0243.feature +154 -0
- data/features/code_check/W0244.feature +155 -0
- data/features/code_check/W0245.feature +147 -0
- data/features/code_check/W0246.feature +147 -0
- data/features/code_check/W0247.feature +147 -0
- data/features/code_check/W0248.feature +142 -0
- data/features/code_check/W0249.feature +142 -0
- data/features/code_check/W0250.feature +146 -0
- data/features/code_check/W0251.feature +159 -0
- data/features/code_check/W0252.feature +155 -0
- data/features/code_check/W0253.feature +154 -0
- data/features/code_check/W0254.feature +154 -0
- data/features/code_check/W0477.feature +77 -0
- data/features/code_check/W0478.feature +103 -0
- data/features/code_check/W0479.feature +65 -0
- data/features/code_check/W0480.feature +119 -0
- data/features/code_check/W0481.feature +28 -0
- data/features/code_check/W0482.feature +64 -0
- data/features/code_check/W0483.feature +62 -0
- data/features/code_check/W0573.feature +91 -0
- data/features/{message_detection → code_check}/W0583.feature +2 -2
- data/features/{message_detection → code_check}/W0606.feature +2 -2
- data/features/{message_detection → code_check}/W0641.feature +16 -16
- data/features/{message_detection → code_check}/W0643.feature +12 -12
- data/features/{message_detection → code_check}/W0644.feature +50 -50
- data/features/{message_detection → code_check}/W0645.feature +16 -16
- data/features/{message_detection → code_check}/W0646.feature +16 -16
- data/features/{message_detection → code_check}/W0649.feature +28 -28
- data/features/{message_detection → code_check}/W0650.feature +24 -24
- data/features/code_check/W0685.feature +120 -0
- data/features/code_check/W0686.feature +92 -0
- data/features/{message_detection → code_check}/W0687.feature +4 -4
- data/features/{message_detection → code_check}/W0688.feature +12 -12
- data/features/{message_detection → code_check}/W0689.feature +8 -8
- data/features/{message_detection → code_check}/W0690.feature +6 -6
- data/features/{message_detection → code_check}/W0691.feature +14 -14
- data/features/{message_detection → code_check}/W0692.feature +4 -4
- data/features/{message_detection → code_check}/W0694.feature +10 -10
- data/features/code_check/W0695.feature +78 -0
- data/features/{message_detection → code_check}/W0697.feature +18 -18
- data/features/{message_detection → code_check}/W0698.feature +2 -2
- data/features/{message_detection → code_check}/W0699.feature +2 -2
- data/features/{message_detection → code_check}/W0700.feature +6 -6
- data/features/{message_detection → code_check}/W0703.feature +6 -6
- data/features/{message_detection → code_check}/W0705.feature +24 -24
- data/features/{message_detection → code_check}/W0707.feature +20 -20
- data/features/{message_detection → code_check}/W0711.feature +10 -10
- data/features/{message_detection → code_check}/W0712.feature +10 -10
- data/features/{message_detection → code_check}/W0713.feature +10 -10
- data/features/{message_detection → code_check}/W0714.feature +10 -10
- data/features/{message_detection → code_check}/W0715.feature +11 -11
- data/features/{message_detection → code_check}/W0716.feature +6 -6
- data/features/{message_detection → code_check}/W0717.feature +6 -6
- data/features/{message_detection → code_check}/W0718.feature +6 -6
- data/features/{message_detection → code_check}/W0719.feature +16 -16
- data/features/{message_detection → code_check}/W0723.feature +6 -6
- data/features/code_check/W0726.feature +95 -0
- data/features/{message_detection → code_check}/W0732.feature +6 -6
- data/features/{message_detection → code_check}/W0733.feature +6 -6
- data/features/{message_detection → code_check}/W0734.feature +16 -16
- data/features/{message_detection → code_check}/W0735.feature +16 -16
- data/features/{message_detection → code_check}/W0745.feature +10 -10
- data/features/code_check/W0747.feature +146 -0
- data/features/code_check/W0748.feature +148 -0
- data/features/code_check/W0749.feature +146 -0
- data/features/code_check/W0750.feature +146 -0
- data/features/code_check/W0751.feature +148 -0
- data/features/code_check/W0752.feature +143 -0
- data/features/code_check/W0753.feature +146 -0
- data/features/code_check/W0754.feature +146 -0
- data/features/code_check/W0755.feature +142 -0
- data/features/code_check/W0756.feature +148 -0
- data/features/code_check/W0757.feature +143 -0
- data/features/code_check/W0758.feature +143 -0
- data/features/code_check/W0759.feature +154 -0
- data/features/code_check/W0760.feature +154 -0
- data/features/code_check/W0761.feature +154 -0
- data/features/code_check/W0762.feature +154 -0
- data/features/code_check/W0763.feature +156 -0
- data/features/code_check/W0764.feature +151 -0
- data/features/code_check/W0765.feature +151 -0
- data/features/code_check/W0766.feature +151 -0
- data/features/code_check/W0767.feature +142 -0
- data/features/code_check/W0768.feature +142 -0
- data/features/code_check/W0769.feature +142 -0
- data/features/{message_detection → code_check}/W0780.feature +12 -12
- data/features/code_check/W0781.feature +145 -0
- data/features/{message_detection → code_check}/W0783.feature +8 -8
- data/features/{message_detection → code_check}/W0792.feature +16 -16
- data/features/{message_detection → code_check}/W0793.feature +16 -16
- data/features/{message_detection → code_check}/W0794.feature +10 -10
- data/features/code_check/W0801.feature +84 -0
- data/features/{message_detection → code_check}/W0805.feature +14 -14
- data/features/code_check/W0806.feature +24 -0
- data/features/code_check/W0807.feature +35 -0
- data/features/code_check/W0808.feature +34 -0
- data/features/code_check/W0809.feature +114 -0
- data/features/{message_detection → code_check}/W0811.feature +10 -10
- data/features/{message_detection → code_check}/W0830.feature +12 -12
- data/features/{message_detection → code_check}/W0833.feature +30 -30
- data/features/{message_detection → code_check}/W0834.feature +26 -26
- data/features/{message_detection → code_check}/W1026.feature +8 -8
- data/features/code_check/W1030.feature +84 -0
- data/features/{message_detection → code_check}/W1031.feature +36 -36
- data/features/{message_detection → code_check}/W1039.feature +24 -24
- data/features/{message_detection → code_check}/W1040.feature +8 -8
- data/features/{message_detection → code_check}/W1041.feature +2 -2
- data/features/{message_detection → code_check}/W1046.feature +6 -6
- data/features/{message_detection → code_check}/W1047.feature +12 -12
- data/features/{message_detection → code_check}/W1052.feature +6 -6
- data/features/{message_detection → code_check}/W1066.feature +6 -6
- data/features/{message_detection → code_check}/W1067.feature +6 -6
- data/features/{message_detection → code_check}/W1068.feature +6 -6
- data/features/{message_detection → code_check}/W1069.feature +10 -10
- data/features/{message_detection → code_check}/W1070.feature +15 -15
- data/features/{message_detection → code_check}/W1071.feature +8 -8
- data/features/{message_detection → code_check}/W1072.feature +2 -2
- data/features/{message_detection → code_check}/W1073.feature +14 -14
- data/features/{message_detection → code_check}/W1074.feature +10 -10
- data/features/{message_detection → code_check}/W1075.feature +10 -10
- data/features/{message_detection → code_check}/W1076.feature +8 -8
- data/features/{message_detection → code_check}/W1077.feature +18 -18
- data/features/{message_detection → code_check}/W9001.feature +2 -2
- data/features/{message_detection → code_check}/W9003.feature +12 -12
- data/features/step_definitions/{message_detection_steps.rb → code_check_steps.rb} +1 -1
- data/features/support/env.rb +19 -3
- data/lib/adlint.rb +1 -0
- data/lib/adlint/analyzer.rb +17 -1
- data/lib/adlint/c.rb +0 -4
- data/lib/adlint/c/phase.rb +55 -745
- data/lib/adlint/code.rb +0 -24
- data/lib/adlint/cpp.rb +0 -3
- data/lib/adlint/cpp/phase.rb +50 -112
- data/lib/adlint/driver.rb +2 -2
- data/lib/adlint/error.rb +4 -4
- data/lib/adlint/exam.rb +143 -0
- data/lib/adlint/exam/c_builtin.rb +813 -0
- data/lib/adlint/{c/message.rb → exam/c_builtin/c_check.rb} +2130 -798
- data/lib/adlint/{c/message_shima.rb → exam/c_builtin/c_check_shima.rb} +99 -28
- data/lib/adlint/{c/code.rb → exam/c_builtin/c_code.rb} +31 -5
- data/lib/adlint/{c/metric.rb → exam/c_builtin/c_metric.rb} +43 -11
- data/lib/adlint/{cpp/message.rb → exam/c_builtin/cpp_check.rb} +177 -73
- data/lib/adlint/{cpp/message_shima.rb → exam/c_builtin/cpp_check_shima.rb} +28 -8
- data/lib/adlint/{cpp/code.rb → exam/c_builtin/cpp_code.rb} +14 -3
- data/lib/adlint/{ld/message.rb → exam/c_builtin/ld_check.rb} +33 -12
- data/lib/adlint/{ld/metric.rb → exam/c_builtin/ld_metric.rb} +8 -3
- data/lib/adlint/lang.rb +2 -2
- data/lib/adlint/ld.rb +0 -2
- data/lib/adlint/ld/phase.rb +101 -101
- data/lib/adlint/message.rb +155 -98
- data/lib/adlint/metric.rb +0 -27
- data/lib/adlint/phase.rb +28 -3
- data/lib/adlint/report.rb +22 -12
- data/lib/adlint/traits.rb +97 -5
- data/lib/adlint/util.rb +100 -11
- data/lib/adlint/version.rb +5 -5
- data/share/doc/developers_guide_ja.html +3 -3
- data/share/doc/developers_guide_ja.texi +1 -1
- data/share/doc/users_guide_en.html +1817 -1648
- data/share/doc/users_guide_en.texi +202 -22
- data/share/doc/users_guide_ja.html +1836 -1663
- data/share/doc/users_guide_ja.texi +203 -20
- data/share/sample/bison-2.5/adlint/adlint_traits.yml +55 -2
- data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +47 -2
- data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +47 -2
- data/share/sample/ctags-5.8/adlint/adlint_traits.yml +47 -2
- data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +47 -2
- data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +47 -2
- data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +47 -2
- data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +47 -2
- data/spec/conf.d/default_traits.yml +56 -3
- metadata +280 -94
- data/etc/mesg.d/en_US/messages.yml +0 -797
- data/etc/mesg.d/ja_JP/messages.yml +0 -797
@@ -3,7 +3,7 @@ Feature: W0606
|
|
3
3
|
W0606 detects that floating point in union.
|
4
4
|
|
5
5
|
Scenario: floating point in union
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
union UNI { /* W0606 */
|
9
9
|
float a;
|
@@ -11,7 +11,7 @@ Feature: W0606
|
|
11
11
|
};
|
12
12
|
|
13
13
|
"""
|
14
|
-
When I successfully run `adlint
|
14
|
+
When I successfully run `adlint fixture.c` on noarch
|
15
15
|
Then the output should exactly match with:
|
16
16
|
| mesg | line | column |
|
17
17
|
| W0551 | 1 | 7 |
|
@@ -4,14 +4,14 @@ Feature: W0641
|
|
4
4
|
number and pointer to a variable is found.
|
5
5
|
|
6
6
|
Scenario: converting `float' into pointer to `int' variable
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
int *foo(const float f)
|
10
10
|
{
|
11
11
|
return (int *) f; /* W0641 */
|
12
12
|
}
|
13
13
|
"""
|
14
|
-
When I successfully run `adlint
|
14
|
+
When I successfully run `adlint fixture.c` on noarch
|
15
15
|
Then the output should exactly match with:
|
16
16
|
| mesg | line | column |
|
17
17
|
| W0117 | 1 | 6 |
|
@@ -19,14 +19,14 @@ Feature: W0641
|
|
19
19
|
| W0628 | 1 | 6 |
|
20
20
|
|
21
21
|
Scenario: converting `double' into pointer to `int' variable
|
22
|
-
Given a target source named "
|
22
|
+
Given a target source named "fixture.c" with:
|
23
23
|
"""
|
24
24
|
int *foo(const double f)
|
25
25
|
{
|
26
26
|
return (int *) f; /* W0641 */
|
27
27
|
}
|
28
28
|
"""
|
29
|
-
When I successfully run `adlint
|
29
|
+
When I successfully run `adlint fixture.c` on noarch
|
30
30
|
Then the output should exactly match with:
|
31
31
|
| mesg | line | column |
|
32
32
|
| W0117 | 1 | 6 |
|
@@ -34,14 +34,14 @@ Feature: W0641
|
|
34
34
|
| W0628 | 1 | 6 |
|
35
35
|
|
36
36
|
Scenario: converting `long double' into pointer to `int' variable
|
37
|
-
Given a target source named "
|
37
|
+
Given a target source named "fixture.c" with:
|
38
38
|
"""
|
39
39
|
int *foo(const long double f)
|
40
40
|
{
|
41
41
|
return (int *) f; /* W0641 */
|
42
42
|
}
|
43
43
|
"""
|
44
|
-
When I successfully run `adlint
|
44
|
+
When I successfully run `adlint fixture.c` on noarch
|
45
45
|
Then the output should exactly match with:
|
46
46
|
| mesg | line | column |
|
47
47
|
| W0117 | 1 | 6 |
|
@@ -49,14 +49,14 @@ Feature: W0641
|
|
49
49
|
| W0628 | 1 | 6 |
|
50
50
|
|
51
51
|
Scenario: converting `int' into pointer to `float' variable
|
52
|
-
Given a target source named "
|
52
|
+
Given a target source named "fixture.c" with:
|
53
53
|
"""
|
54
54
|
float foo(int *p)
|
55
55
|
{
|
56
56
|
return (float) p; /* W0641 */
|
57
57
|
}
|
58
58
|
"""
|
59
|
-
When I successfully run `adlint
|
59
|
+
When I successfully run `adlint fixture.c` on noarch
|
60
60
|
Then the output should exactly match with:
|
61
61
|
| mesg | line | column |
|
62
62
|
| W0117 | 1 | 7 |
|
@@ -66,14 +66,14 @@ Feature: W0641
|
|
66
66
|
| W0628 | 1 | 7 |
|
67
67
|
|
68
68
|
Scenario: converting `int' into pointer to `double' variable
|
69
|
-
Given a target source named "
|
69
|
+
Given a target source named "fixture.c" with:
|
70
70
|
"""
|
71
71
|
double foo(int *p)
|
72
72
|
{
|
73
73
|
return (double) p; /* W0641 */
|
74
74
|
}
|
75
75
|
"""
|
76
|
-
When I successfully run `adlint
|
76
|
+
When I successfully run `adlint fixture.c` on noarch
|
77
77
|
Then the output should exactly match with:
|
78
78
|
| mesg | line | column |
|
79
79
|
| W0117 | 1 | 8 |
|
@@ -83,14 +83,14 @@ Feature: W0641
|
|
83
83
|
| W0628 | 1 | 8 |
|
84
84
|
|
85
85
|
Scenario: converting `int' into pointer to `long double'
|
86
|
-
Given a target source named "
|
86
|
+
Given a target source named "fixture.c" with:
|
87
87
|
"""
|
88
88
|
long double foo(int *p)
|
89
89
|
{
|
90
90
|
return (long double) p; /* W0641 */
|
91
91
|
}
|
92
92
|
"""
|
93
|
-
When I successfully run `adlint
|
93
|
+
When I successfully run `adlint fixture.c` on noarch
|
94
94
|
Then the output should exactly match with:
|
95
95
|
| mesg | line | column |
|
96
96
|
| W0117 | 1 | 13 |
|
@@ -100,28 +100,28 @@ Feature: W0641
|
|
100
100
|
| W0628 | 1 | 13 |
|
101
101
|
|
102
102
|
Scenario: converting `float' to `int'
|
103
|
-
Given a target source named "
|
103
|
+
Given a target source named "fixture.c" with:
|
104
104
|
"""
|
105
105
|
int foo(const float f)
|
106
106
|
{
|
107
107
|
return (int) f; /* OK */
|
108
108
|
}
|
109
109
|
"""
|
110
|
-
When I successfully run `adlint
|
110
|
+
When I successfully run `adlint fixture.c` on noarch
|
111
111
|
Then the output should exactly match with:
|
112
112
|
| mesg | line | column |
|
113
113
|
| W0117 | 1 | 5 |
|
114
114
|
| W0628 | 1 | 5 |
|
115
115
|
|
116
116
|
Scenario: converting `float' into pointer to `void *'
|
117
|
-
Given a target source named "
|
117
|
+
Given a target source named "fixture.c" with:
|
118
118
|
"""
|
119
119
|
void *foo(float f)
|
120
120
|
{
|
121
121
|
return (void *) f; /* W0641 */
|
122
122
|
}
|
123
123
|
"""
|
124
|
-
When I successfully run `adlint
|
124
|
+
When I successfully run `adlint fixture.c` on noarch
|
125
125
|
Then the output should exactly match with:
|
126
126
|
| mesg | line | column |
|
127
127
|
| W0117 | 1 | 7 |
|
@@ -4,12 +4,12 @@ Feature: W0643
|
|
4
4
|
operator in the function-like macro.
|
5
5
|
|
6
6
|
Scenario: one backslash
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
#define MACRO(x) #x
|
10
10
|
const char *str = MACRO(foo\); /* W0643 */
|
11
11
|
"""
|
12
|
-
When I successfully run `adlint
|
12
|
+
When I successfully run `adlint fixture.c` on noarch
|
13
13
|
Then the output should exactly match with:
|
14
14
|
| mesg | line | column |
|
15
15
|
| W0442 | 1 | 1 |
|
@@ -17,24 +17,24 @@ Feature: W0643
|
|
17
17
|
| W0117 | 2 | 13 |
|
18
18
|
|
19
19
|
Scenario: two backslashes
|
20
|
-
Given a target source named "
|
20
|
+
Given a target source named "fixture.c" with:
|
21
21
|
"""
|
22
22
|
#define MACRO(x) #x
|
23
23
|
const char *str = MACRO(foo\\); /* OK */
|
24
24
|
"""
|
25
|
-
When I successfully run `adlint
|
25
|
+
When I successfully run `adlint fixture.c` on noarch
|
26
26
|
Then the output should exactly match with:
|
27
27
|
| mesg | line | column |
|
28
28
|
| W0442 | 1 | 1 |
|
29
29
|
| W0117 | 2 | 13 |
|
30
30
|
|
31
31
|
Scenario: three backslashes
|
32
|
-
Given a target source named "
|
32
|
+
Given a target source named "fixture.c" with:
|
33
33
|
"""
|
34
34
|
#define MACRO(x) #x
|
35
35
|
const char *str = MACRO(foo\\\); /* W0643 */
|
36
36
|
"""
|
37
|
-
When I successfully run `adlint
|
37
|
+
When I successfully run `adlint fixture.c` on noarch
|
38
38
|
Then the output should exactly match with:
|
39
39
|
| mesg | line | column |
|
40
40
|
| W0442 | 1 | 1 |
|
@@ -42,36 +42,36 @@ Feature: W0643
|
|
42
42
|
| W0117 | 2 | 13 |
|
43
43
|
|
44
44
|
Scenario: four backslashes
|
45
|
-
Given a target source named "
|
45
|
+
Given a target source named "fixture.c" with:
|
46
46
|
"""
|
47
47
|
#define MACRO(x) #x
|
48
48
|
const char *str = MACRO(foo\\\\); /* OK */
|
49
49
|
"""
|
50
|
-
When I successfully run `adlint
|
50
|
+
When I successfully run `adlint fixture.c` on noarch
|
51
51
|
Then the output should exactly match with:
|
52
52
|
| mesg | line | column |
|
53
53
|
| W0442 | 1 | 1 |
|
54
54
|
| W0117 | 2 | 13 |
|
55
55
|
|
56
56
|
Scenario: no backslashes
|
57
|
-
Given a target source named "
|
57
|
+
Given a target source named "fixture.c" with:
|
58
58
|
"""
|
59
59
|
#define MACRO(x) #x
|
60
60
|
const char *str = MACRO(foo); /* OK */
|
61
61
|
"""
|
62
|
-
When I successfully run `adlint
|
62
|
+
When I successfully run `adlint fixture.c` on noarch
|
63
63
|
Then the output should exactly match with:
|
64
64
|
| mesg | line | column |
|
65
65
|
| W0442 | 1 | 1 |
|
66
66
|
| W0117 | 2 | 13 |
|
67
67
|
|
68
68
|
Scenario: backslashes middle of argument tokens
|
69
|
-
Given a target source named "
|
69
|
+
Given a target source named "fixture.c" with:
|
70
70
|
"""
|
71
71
|
#define MACRO(x) #x
|
72
72
|
const char *str = MACRO(foo \ bar \\ baz); /* OK */
|
73
73
|
"""
|
74
|
-
When I successfully run `adlint
|
74
|
+
When I successfully run `adlint fixture.c` on noarch
|
75
75
|
Then the output should exactly match with:
|
76
76
|
| mesg | line | column |
|
77
77
|
| W0442 | 1 | 1 |
|
@@ -3,7 +3,7 @@ Feature: W0644
|
|
3
3
|
W0644 detects that an expression refers the value of a `void' expression.
|
4
4
|
|
5
5
|
Scenario: casting value of the `void' function
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
extern void foo(void);
|
9
9
|
|
@@ -12,7 +12,7 @@ Feature: W0644
|
|
12
12
|
return (int) foo(); /* W0644 */
|
13
13
|
}
|
14
14
|
"""
|
15
|
-
When I successfully run `adlint
|
15
|
+
When I successfully run `adlint fixture.c` on noarch
|
16
16
|
Then the output should exactly match with:
|
17
17
|
| mesg | line | column |
|
18
18
|
| W0118 | 1 | 13 |
|
@@ -22,7 +22,7 @@ Feature: W0644
|
|
22
22
|
|
23
23
|
Scenario: referring value of the `void' function in
|
24
24
|
array-subscript-expression
|
25
|
-
Given a target source named "
|
25
|
+
Given a target source named "fixture.c" with:
|
26
26
|
"""
|
27
27
|
extern void foo(void);
|
28
28
|
|
@@ -31,7 +31,7 @@ Feature: W0644
|
|
31
31
|
return a[foo()]; /* W0644 */
|
32
32
|
}
|
33
33
|
"""
|
34
|
-
When I successfully run `adlint
|
34
|
+
When I successfully run `adlint fixture.c` on noarch
|
35
35
|
Then the output should exactly match with:
|
36
36
|
| mesg | line | column |
|
37
37
|
| W0118 | 1 | 13 |
|
@@ -41,7 +41,7 @@ Feature: W0644
|
|
41
41
|
| W0628 | 3 | 5 |
|
42
42
|
|
43
43
|
Scenario: referring value of the `void' function in function-call-expression
|
44
|
-
Given a target source named "
|
44
|
+
Given a target source named "fixture.c" with:
|
45
45
|
"""
|
46
46
|
extern void foo(void);
|
47
47
|
extern void bar(int);
|
@@ -51,7 +51,7 @@ Feature: W0644
|
|
51
51
|
bar(foo()); /* W0644 */
|
52
52
|
}
|
53
53
|
"""
|
54
|
-
When I successfully run `adlint
|
54
|
+
When I successfully run `adlint fixture.c` on noarch
|
55
55
|
Then the output should exactly match with:
|
56
56
|
| mesg | line | column |
|
57
57
|
| W0118 | 1 | 13 |
|
@@ -62,7 +62,7 @@ Feature: W0644
|
|
62
62
|
| W0628 | 4 | 6 |
|
63
63
|
|
64
64
|
Scenario: referring value of the `void' function in multiplicative-expression
|
65
|
-
Given a target source named "
|
65
|
+
Given a target source named "fixture.c" with:
|
66
66
|
"""
|
67
67
|
extern void foo(void);
|
68
68
|
|
@@ -71,7 +71,7 @@ Feature: W0644
|
|
71
71
|
return i * foo(); /* W0644 */
|
72
72
|
}
|
73
73
|
"""
|
74
|
-
When I successfully run `adlint
|
74
|
+
When I successfully run `adlint fixture.c` on noarch
|
75
75
|
Then the output should exactly match with:
|
76
76
|
| mesg | line | column |
|
77
77
|
| W0118 | 1 | 13 |
|
@@ -82,7 +82,7 @@ Feature: W0644
|
|
82
82
|
|
83
83
|
Scenario: referring two values of the `void' function in
|
84
84
|
multiplicative-expression
|
85
|
-
Given a target source named "
|
85
|
+
Given a target source named "fixture.c" with:
|
86
86
|
"""
|
87
87
|
extern void foo(void);
|
88
88
|
|
@@ -91,7 +91,7 @@ Feature: W0644
|
|
91
91
|
return foo() / foo(); /* W0644 */
|
92
92
|
}
|
93
93
|
"""
|
94
|
-
When I successfully run `adlint
|
94
|
+
When I successfully run `adlint fixture.c` on noarch
|
95
95
|
Then the output should exactly match with:
|
96
96
|
| mesg | line | column |
|
97
97
|
| W0118 | 1 | 13 |
|
@@ -100,7 +100,7 @@ Feature: W0644
|
|
100
100
|
| W0628 | 3 | 5 |
|
101
101
|
|
102
102
|
Scenario: referring value of the `void' function in additive-expression
|
103
|
-
Given a target source named "
|
103
|
+
Given a target source named "fixture.c" with:
|
104
104
|
"""
|
105
105
|
extern void foo(void);
|
106
106
|
|
@@ -109,7 +109,7 @@ Feature: W0644
|
|
109
109
|
return i + foo(); /* W0644 */
|
110
110
|
}
|
111
111
|
"""
|
112
|
-
When I successfully run `adlint
|
112
|
+
When I successfully run `adlint fixture.c` on noarch
|
113
113
|
Then the output should exactly match with:
|
114
114
|
| mesg | line | column |
|
115
115
|
| W0118 | 1 | 13 |
|
@@ -119,7 +119,7 @@ Feature: W0644
|
|
119
119
|
| W0628 | 3 | 5 |
|
120
120
|
|
121
121
|
Scenario: referring two values of the `void' function in additive-expression
|
122
|
-
Given a target source named "
|
122
|
+
Given a target source named "fixture.c" with:
|
123
123
|
"""
|
124
124
|
extern void foo(void);
|
125
125
|
|
@@ -128,7 +128,7 @@ Feature: W0644
|
|
128
128
|
return foo() + foo(); /* W0644 */
|
129
129
|
}
|
130
130
|
"""
|
131
|
-
When I successfully run `adlint
|
131
|
+
When I successfully run `adlint fixture.c` on noarch
|
132
132
|
Then the output should exactly match with:
|
133
133
|
| mesg | line | column |
|
134
134
|
| W0118 | 1 | 13 |
|
@@ -137,7 +137,7 @@ Feature: W0644
|
|
137
137
|
| W0628 | 3 | 5 |
|
138
138
|
|
139
139
|
Scenario: referring value of the `void' function in shift-expression
|
140
|
-
Given a target source named "
|
140
|
+
Given a target source named "fixture.c" with:
|
141
141
|
"""
|
142
142
|
extern void foo(void);
|
143
143
|
|
@@ -146,7 +146,7 @@ Feature: W0644
|
|
146
146
|
return i << foo(); /* W0644 */
|
147
147
|
}
|
148
148
|
"""
|
149
|
-
When I successfully run `adlint
|
149
|
+
When I successfully run `adlint fixture.c` on noarch
|
150
150
|
Then the output should exactly match with:
|
151
151
|
| mesg | line | column |
|
152
152
|
| W0118 | 1 | 13 |
|
@@ -159,7 +159,7 @@ Feature: W0644
|
|
159
159
|
| W0628 | 3 | 5 |
|
160
160
|
|
161
161
|
Scenario: referring two values of the `void' function in shift-expression
|
162
|
-
Given a target source named "
|
162
|
+
Given a target source named "fixture.c" with:
|
163
163
|
"""
|
164
164
|
extern void foo(void);
|
165
165
|
|
@@ -168,7 +168,7 @@ Feature: W0644
|
|
168
168
|
return foo() << foo(); /* W0644 */
|
169
169
|
}
|
170
170
|
"""
|
171
|
-
When I successfully run `adlint
|
171
|
+
When I successfully run `adlint fixture.c` on noarch
|
172
172
|
Then the output should exactly match with:
|
173
173
|
| mesg | line | column |
|
174
174
|
| W0118 | 1 | 13 |
|
@@ -177,7 +177,7 @@ Feature: W0644
|
|
177
177
|
| W0628 | 3 | 5 |
|
178
178
|
|
179
179
|
Scenario: referring value of the `void' function in relational-expression
|
180
|
-
Given a target source named "
|
180
|
+
Given a target source named "fixture.c" with:
|
181
181
|
"""
|
182
182
|
extern void foo(void);
|
183
183
|
|
@@ -186,7 +186,7 @@ Feature: W0644
|
|
186
186
|
return i < foo(); /* W0644 */
|
187
187
|
}
|
188
188
|
"""
|
189
|
-
When I successfully run `adlint
|
189
|
+
When I successfully run `adlint fixture.c` on noarch
|
190
190
|
Then the output should exactly match with:
|
191
191
|
| mesg | line | column |
|
192
192
|
| W0118 | 1 | 13 |
|
@@ -198,7 +198,7 @@ Feature: W0644
|
|
198
198
|
|
199
199
|
Scenario: referring two values of the `void' function in
|
200
200
|
relational-expression
|
201
|
-
Given a target source named "
|
201
|
+
Given a target source named "fixture.c" with:
|
202
202
|
"""
|
203
203
|
extern void foo(void);
|
204
204
|
|
@@ -207,7 +207,7 @@ Feature: W0644
|
|
207
207
|
return foo() > foo(); /* W0644 */
|
208
208
|
}
|
209
209
|
"""
|
210
|
-
When I successfully run `adlint
|
210
|
+
When I successfully run `adlint fixture.c` on noarch
|
211
211
|
Then the output should exactly match with:
|
212
212
|
| mesg | line | column |
|
213
213
|
| W0118 | 1 | 13 |
|
@@ -216,7 +216,7 @@ Feature: W0644
|
|
216
216
|
| W0628 | 3 | 5 |
|
217
217
|
|
218
218
|
Scenario: referring value of the `void' function in equality-expression
|
219
|
-
Given a target source named "
|
219
|
+
Given a target source named "fixture.c" with:
|
220
220
|
"""
|
221
221
|
extern void foo(void);
|
222
222
|
|
@@ -225,7 +225,7 @@ Feature: W0644
|
|
225
225
|
return i == foo(); /* W0644 */
|
226
226
|
}
|
227
227
|
"""
|
228
|
-
When I successfully run `adlint
|
228
|
+
When I successfully run `adlint fixture.c` on noarch
|
229
229
|
Then the output should exactly match with:
|
230
230
|
| mesg | line | column |
|
231
231
|
| W0118 | 1 | 13 |
|
@@ -236,7 +236,7 @@ Feature: W0644
|
|
236
236
|
|
237
237
|
Scenario: referring two values of the `void' function in
|
238
238
|
relational-expression
|
239
|
-
Given a target source named "
|
239
|
+
Given a target source named "fixture.c" with:
|
240
240
|
"""
|
241
241
|
extern void foo(void);
|
242
242
|
|
@@ -245,7 +245,7 @@ Feature: W0644
|
|
245
245
|
return foo() != foo(); /* W0644 */
|
246
246
|
}
|
247
247
|
"""
|
248
|
-
When I successfully run `adlint
|
248
|
+
When I successfully run `adlint fixture.c` on noarch
|
249
249
|
Then the output should exactly match with:
|
250
250
|
| mesg | line | column |
|
251
251
|
| W0118 | 1 | 13 |
|
@@ -254,7 +254,7 @@ Feature: W0644
|
|
254
254
|
| W0628 | 3 | 5 |
|
255
255
|
|
256
256
|
Scenario: referring value of the `void' function in and-expression
|
257
|
-
Given a target source named "
|
257
|
+
Given a target source named "fixture.c" with:
|
258
258
|
"""
|
259
259
|
extern void foo(void);
|
260
260
|
|
@@ -263,7 +263,7 @@ Feature: W0644
|
|
263
263
|
return i & foo(); /* W0644 */
|
264
264
|
}
|
265
265
|
"""
|
266
|
-
When I successfully run `adlint
|
266
|
+
When I successfully run `adlint fixture.c` on noarch
|
267
267
|
Then the output should exactly match with:
|
268
268
|
| mesg | line | column |
|
269
269
|
| W0118 | 1 | 13 |
|
@@ -274,7 +274,7 @@ Feature: W0644
|
|
274
274
|
| W0628 | 3 | 5 |
|
275
275
|
|
276
276
|
Scenario: referring two values of the `void' function in and-expression
|
277
|
-
Given a target source named "
|
277
|
+
Given a target source named "fixture.c" with:
|
278
278
|
"""
|
279
279
|
extern void foo(void);
|
280
280
|
|
@@ -283,7 +283,7 @@ Feature: W0644
|
|
283
283
|
return foo() & foo(); /* W0644 */
|
284
284
|
}
|
285
285
|
"""
|
286
|
-
When I successfully run `adlint
|
286
|
+
When I successfully run `adlint fixture.c` on noarch
|
287
287
|
Then the output should exactly match with:
|
288
288
|
| mesg | line | column |
|
289
289
|
| W0118 | 1 | 13 |
|
@@ -292,7 +292,7 @@ Feature: W0644
|
|
292
292
|
| W0628 | 3 | 5 |
|
293
293
|
|
294
294
|
Scenario: referring value of the `void' function in exclusive-or-expression
|
295
|
-
Given a target source named "
|
295
|
+
Given a target source named "fixture.c" with:
|
296
296
|
"""
|
297
297
|
extern void foo(void);
|
298
298
|
|
@@ -301,7 +301,7 @@ Feature: W0644
|
|
301
301
|
return i ^ foo(); /* W0644 */
|
302
302
|
}
|
303
303
|
"""
|
304
|
-
When I successfully run `adlint
|
304
|
+
When I successfully run `adlint fixture.c` on noarch
|
305
305
|
Then the output should exactly match with:
|
306
306
|
| mesg | line | column |
|
307
307
|
| W0118 | 1 | 13 |
|
@@ -313,7 +313,7 @@ Feature: W0644
|
|
313
313
|
|
314
314
|
Scenario: referring two values of the `void' function in
|
315
315
|
exclusive-or-expression
|
316
|
-
Given a target source named "
|
316
|
+
Given a target source named "fixture.c" with:
|
317
317
|
"""
|
318
318
|
extern void foo(void);
|
319
319
|
|
@@ -322,7 +322,7 @@ Feature: W0644
|
|
322
322
|
return foo() ^ foo(); /* W0644 */
|
323
323
|
}
|
324
324
|
"""
|
325
|
-
When I successfully run `adlint
|
325
|
+
When I successfully run `adlint fixture.c` on noarch
|
326
326
|
Then the output should exactly match with:
|
327
327
|
| mesg | line | column |
|
328
328
|
| W0118 | 1 | 13 |
|
@@ -331,7 +331,7 @@ Feature: W0644
|
|
331
331
|
| W0628 | 3 | 5 |
|
332
332
|
|
333
333
|
Scenario: referring value of the `void' function in inclusive-or-expression
|
334
|
-
Given a target source named "
|
334
|
+
Given a target source named "fixture.c" with:
|
335
335
|
"""
|
336
336
|
extern void foo(void);
|
337
337
|
|
@@ -340,7 +340,7 @@ Feature: W0644
|
|
340
340
|
return i | foo(); /* W0644 */
|
341
341
|
}
|
342
342
|
"""
|
343
|
-
When I successfully run `adlint
|
343
|
+
When I successfully run `adlint fixture.c` on noarch
|
344
344
|
Then the output should exactly match with:
|
345
345
|
| mesg | line | column |
|
346
346
|
| W0118 | 1 | 13 |
|
@@ -352,7 +352,7 @@ Feature: W0644
|
|
352
352
|
|
353
353
|
Scenario: referring two values of the `void' function in
|
354
354
|
inclusive-or-expression
|
355
|
-
Given a target source named "
|
355
|
+
Given a target source named "fixture.c" with:
|
356
356
|
"""
|
357
357
|
extern void foo(void);
|
358
358
|
|
@@ -361,7 +361,7 @@ Feature: W0644
|
|
361
361
|
return foo() | foo(); /* W0644 */
|
362
362
|
}
|
363
363
|
"""
|
364
|
-
When I successfully run `adlint
|
364
|
+
When I successfully run `adlint fixture.c` on noarch
|
365
365
|
Then the output should exactly match with:
|
366
366
|
| mesg | line | column |
|
367
367
|
| W0118 | 1 | 13 |
|
@@ -370,7 +370,7 @@ Feature: W0644
|
|
370
370
|
| W0628 | 3 | 5 |
|
371
371
|
|
372
372
|
Scenario: referring value of the `void' function in logical-and-expression
|
373
|
-
Given a target source named "
|
373
|
+
Given a target source named "fixture.c" with:
|
374
374
|
"""
|
375
375
|
extern void foo(void);
|
376
376
|
|
@@ -383,7 +383,7 @@ Feature: W0644
|
|
383
383
|
return i && foo(); /* W0644 */
|
384
384
|
}
|
385
385
|
"""
|
386
|
-
When I successfully run `adlint
|
386
|
+
When I successfully run `adlint fixture.c` on noarch
|
387
387
|
Then the output should exactly match with:
|
388
388
|
| mesg | line | column |
|
389
389
|
| W0118 | 1 | 13 |
|
@@ -401,7 +401,7 @@ Feature: W0644
|
|
401
401
|
|
402
402
|
Scenario: referring two values of the `void' function in
|
403
403
|
exclusive-or-expression
|
404
|
-
Given a target source named "
|
404
|
+
Given a target source named "fixture.c" with:
|
405
405
|
"""
|
406
406
|
extern void foo(void);
|
407
407
|
|
@@ -414,7 +414,7 @@ Feature: W0644
|
|
414
414
|
return foo() && foo(); /* W0644 */
|
415
415
|
}
|
416
416
|
"""
|
417
|
-
When I successfully run `adlint
|
417
|
+
When I successfully run `adlint fixture.c` on noarch
|
418
418
|
Then the output should exactly match with:
|
419
419
|
| mesg | line | column |
|
420
420
|
| W0118 | 1 | 13 |
|
@@ -430,7 +430,7 @@ Feature: W0644
|
|
430
430
|
| W0628 | 3 | 5 |
|
431
431
|
|
432
432
|
Scenario: referring value of the `void' function in logical-or-expression
|
433
|
-
Given a target source named "
|
433
|
+
Given a target source named "fixture.c" with:
|
434
434
|
"""
|
435
435
|
extern void foo(void);
|
436
436
|
|
@@ -443,7 +443,7 @@ Feature: W0644
|
|
443
443
|
return i || foo(); /* W0644 */
|
444
444
|
}
|
445
445
|
"""
|
446
|
-
When I successfully run `adlint
|
446
|
+
When I successfully run `adlint fixture.c` on noarch
|
447
447
|
Then the output should exactly match with:
|
448
448
|
| mesg | line | column |
|
449
449
|
| W0118 | 1 | 13 |
|
@@ -461,7 +461,7 @@ Feature: W0644
|
|
461
461
|
|
462
462
|
Scenario: referring two values of the `void' function in
|
463
463
|
exclusive-or-expression
|
464
|
-
Given a target source named "
|
464
|
+
Given a target source named "fixture.c" with:
|
465
465
|
"""
|
466
466
|
extern void foo(void);
|
467
467
|
|
@@ -474,7 +474,7 @@ Feature: W0644
|
|
474
474
|
return foo() || foo(); /* W0644 */
|
475
475
|
}
|
476
476
|
"""
|
477
|
-
When I successfully run `adlint
|
477
|
+
When I successfully run `adlint fixture.c` on noarch
|
478
478
|
Then the output should exactly match with:
|
479
479
|
| mesg | line | column |
|
480
480
|
| W0118 | 1 | 13 |
|
@@ -490,7 +490,7 @@ Feature: W0644
|
|
490
490
|
| W0628 | 3 | 5 |
|
491
491
|
|
492
492
|
Scenario: referring value of the `void' function in assignment-expression
|
493
|
-
Given a target source named "
|
493
|
+
Given a target source named "fixture.c" with:
|
494
494
|
"""
|
495
495
|
extern void foo(void);
|
496
496
|
|
@@ -499,7 +499,7 @@ Feature: W0644
|
|
499
499
|
i = foo(); /* W0644 */
|
500
500
|
}
|
501
501
|
"""
|
502
|
-
When I successfully run `adlint
|
502
|
+
When I successfully run `adlint fixture.c` on noarch
|
503
503
|
Then the output should exactly match with:
|
504
504
|
| mesg | line | column |
|
505
505
|
| W0118 | 1 | 13 |
|
@@ -509,7 +509,7 @@ Feature: W0644
|
|
509
509
|
|
510
510
|
Scenario: referring value of the `void' function in
|
511
511
|
compound-assignment-expression
|
512
|
-
Given a target source named "
|
512
|
+
Given a target source named "fixture.c" with:
|
513
513
|
"""
|
514
514
|
extern void foo(void);
|
515
515
|
|
@@ -518,7 +518,7 @@ Feature: W0644
|
|
518
518
|
i += foo(); /* W0644 */
|
519
519
|
}
|
520
520
|
"""
|
521
|
-
When I successfully run `adlint
|
521
|
+
When I successfully run `adlint fixture.c` on noarch
|
522
522
|
Then the output should exactly match with:
|
523
523
|
| mesg | line | column |
|
524
524
|
| W0118 | 1 | 13 |
|