1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 23889 23890 23891 23892 23893 23894 23895 23896 23897 23898 23899 23900 23901 23902 23903 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124 24125 24126 24127 24128 24129 24130 24131 24132 24133 24134 24135 24136 24137 24138 24139 24140 24141 24142 24143 24144 24145 24146 24147 24148 24149 24150 24151 24152 24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 24261 24262 24263 24264 24265 24266 24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 24341 24342 24343 24344 24345 24346 24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 24393 24394 24395 24396 24397 24398 24399 24400 24401 24402 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 24561 24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 24620 24621 24622 24623 24624 24625 24626 24627 24628 24629 24630 24631 24632 24633 24634 24635 24636 24637 24638 24639 24640 24641 24642 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 24654 24655 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 24670 24671 24672 24673 24674 24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 24780 24781 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 24861 24862 24863 24864 24865 24866 24867 24868 24869 24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951 24952 24953 24954 24955 24956 24957 24958 24959 24960 24961 24962 24963 24964 24965 24966 24967 24968 24969 24970 24971 24972 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020 25021 25022 25023 25024 25025 25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 25094 25095 25096 25097 25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 25152 25153 25154 25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 25191 25192 25193 25194 25195 25196 25197 25198 25199 25200 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 25277 25278 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 25620 25621 25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 26446 26447 26448 26449 26450 26451 26452 26453 26454 26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 26692 26693 26694 26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 26750 26751 26752 26753 26754 26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 27008 27009 27010 27011 27012 27013 27014 27015 27016 27017 27018 27019 27020 27021 27022 27023 27024 27025 27026 27027 27028 27029 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 27040 27041 27042 27043 27044 27045 27046 27047 27048 27049 27050 27051 27052 27053 27054 27055 27056 27057 27058 27059 27060 27061 27062 27063 27064 27065 27066 27067 27068 27069 27070 27071 27072 27073 27074 27075 27076 27077 27078 27079 27080 27081 27082 27083 27084 27085 27086 27087 27088 27089 27090 27091 27092 27093 27094 27095 27096 27097 27098 27099 27100 27101 27102 27103 27104 27105 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 27302 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 27313 27314 27315 27316 27317 27318 27319 27320 27321 27322 27323 27324 27325 27326 27327 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 27338 27339 27340 27341 27342 27343 27344 27345 27346 27347 27348 27349 27350 27351 27352 27353 27354 27355 27356 27357 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 27369 27370 27371 27372 27373 27374 27375 27376 27377 27378 27379 27380 27381 27382 27383 27384 27385 27386 27387 27388 27389 27390 27391 27392 27393 27394 27395 27396 27397 27398 27399 27400 27401 27402 27403 27404 27405 27406 27407 27408 27409 27410 27411 27412 27413 27414 27415 27416 27417 27418 27419 27420 27421 27422 27423 27424 27425 27426 27427 27428 27429 27430 27431 27432 27433 27434 27435 27436 27437 27438 27439 27440 27441 27442 27443 27444 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 27455 27456 27457 27458 27459 27460 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 27480 27481 27482 27483 27484 27485 27486 27487 27488 27489 27490 27491 27492 27493 27494 27495 27496 27497 27498 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509 27510 27511 27512 27513 27514 27515 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 27533 27534 27535 27536 27537 27538 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 27556 27557 27558 27559 27560 27561 27562 27563 27564 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739 27740 27741 27742 27743 27744 27745 27746 27747 27748 27749 27750 27751 27752 27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 27766 27767 27768 27769 27770 27771 27772 27773 27774 27775 27776 27777 27778 27779 27780 27781 27782 27783 27784 27785 27786 27787 27788 27789 27790 27791 27792 27793 27794 27795 27796 27797 27798 27799 27800 27801 27802 27803 27804 27805 27806 27807 27808 27809 27810 27811 27812 27813 27814 27815 27816 27817 27818 27819 27820 27821 27822 27823 27824 27825 27826 27827 27828 27829 27830 27831 27832 27833 27834 27835 27836 27837 27838 27839 27840 27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868 27869 27870 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 27889 27890 27891 27892 27893 27894 27895 27896 27897 27898 27899 27900 27901 27902 27903 27904 27905 27906 27907 27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 27923 27924 27925 27926 27927 27928 27929 27930 27931 27932 27933 27934 27935 27936 27937 27938 27939 27940 27941 27942 27943 27944 27945 27946 27947 27948 27949 27950 27951 27952 27953 27954 27955 27956 27957 27958 27959 27960 27961 27962 27963 27964 27965 27966 27967 27968 27969 27970 27971 27972 27973 27974 27975 27976 27977 27978 27979 27980 27981 27982 27983 27984 27985 27986 27987 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 28031 28032 28033 28034 28035 28036 28037 28038 28039 28040 28041 28042 28043 28044 28045 28046 28047 28048 28049 28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 28060 28061 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 28086 28087 28088 28089 28090 28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 28101 28102 28103 28104 28105 28106 28107 28108 28109 28110 28111 28112 28113 28114 28115 28116 28117 28118 28119 28120 28121 28122 28123 28124 28125 28126 28127 28128 28129 28130 28131 28132 28133 28134 28135 28136 28137 28138 28139 28140 28141 28142 28143 28144 28145 28146 28147 28148 28149 28150 28151 28152 28153 28154 28155 28156 28157 28158 28159 28160 28161 28162 28163 28164 28165 28166 28167 28168 28169 28170 28171 28172 28173 28174 28175 28176 28177 28178 28179 28180 28181 28182 28183 28184 28185 28186 28187 28188 28189 28190 28191 28192 28193 28194 28195 28196 28197 28198 28199 28200 28201 28202 28203 28204 28205 28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 28267 28268 28269 28270 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 28282 28283 28284 28285 28286 28287 28288 28289 28290 28291 28292 28293 28294 28295 28296 28297 28298 28299 28300 28301 28302 28303 28304 28305 28306 28307 28308 28309 28310 28311 28312 28313 28314 28315 28316 28317 28318 28319 28320 28321 28322 28323 28324 28325 28326 28327 28328 28329 28330 28331 28332 28333 28334 28335 28336 28337 28338 28339 28340 28341 28342 28343 28344 28345 28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 28400 28401 28402 28403 28404 28405 28406 28407 28408 28409 28410 28411 28412 28413 28414 28415 28416 28417 28418 28419 28420 28421 28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 28450 28451 28452 28453 28454 28455 28456 28457 28458 28459 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 28481 28482 28483 28484 28485 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 28545 28546 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 28672 28673 28674 28675 28676 28677 28678 28679 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 28695 28696 28697 28698 28699 28700 28701 28702 28703 28704 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 28737 28738 28739 28740 28741 28742 28743 28744 28745 28746 28747 28748 28749 28750 28751 28752 28753 28754 28755 28756 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 28769 28770 28771 28772 28773 28774 28775 28776 28777 28778 28779 28780 28781 28782 28783 28784 28785 28786 28787 28788 28789 28790 28791 28792 28793 28794 28795 28796 28797 28798 28799 28800 28801 28802 28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 28886 28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022 29023 29024 29025 29026 29027 29028 29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 29047 29048 29049 29050 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166 29167 29168 29169 29170 29171 29172 29173 29174 29175 29176 29177 29178 29179 29180 29181 29182 29183 29184 29185 29186 29187 29188 29189 29190 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 29206 29207 29208 29209 29210 29211 29212 29213 29214 29215 29216 29217 29218 29219 29220 29221 29222 29223 29224 29225 29226 29227 29228 29229 29230 29231 29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 29243 29244 29245 29246 29247 29248 29249 29250 29251 29252 29253 29254 29255 29256 29257 29258 29259 29260 29261 29262 29263 29264 29265 29266 29267 29268 29269 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 29285 29286 29287 29288 29289 29290 29291 29292 29293 29294 29295 29296 29297 29298 29299 29300 29301 29302 29303 29304 29305 29306 29307 29308 29309 29310 29311 29312 29313 29314 29315 29316 29317 29318 29319 29320 29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 29454 29455 29456 29457 29458 29459 29460 29461 29462 29463 29464 29465 29466 29467 29468 29469 29470 29471 29472 29473 29474 29475 29476 29477 29478 29479 29480 29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 29499 29500 29501 29502 29503 29504 29505 29506 29507 29508 29509 29510 29511 29512 29513 29514 29515 29516 29517 29518 29519 29520 29521 29522 29523 29524 29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 29539 29540 29541 29542 29543 29544 29545 29546 29547 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 29564 29565 29566 29567 29568 29569 29570 29571 29572 29573 29574 29575 29576 29577 29578 29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 29601 29602 29603 29604 29605 29606 29607 29608 29609 29610 29611 29612 29613 29614 29615 29616 29617 29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 29673 29674 29675 29676 29677 29678 29679 29680 29681 29682 29683 29684 29685 29686 29687 29688 29689 29690 29691 29692 29693 29694 29695 29696 29697 29698 29699 29700 29701 29702 29703 29704 29705 29706 29707 29708 29709 29710 29711 29712 29713 29714 29715 29716 29717 29718 29719 29720 29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 29821 29822 29823 29824 29825 29826 29827 29828 29829 29830 29831 29832 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 29896 29897 29898 29899 29900 29901 29902 29903 29904 29905 29906 29907 29908 29909 29910 29911 29912 29913 29914 29915 29916 29917 29918 29919 29920 29921 29922 29923 29924 29925 29926 29927 29928 29929 29930 29931 29932 29933 29934 29935 29936 29937 29938 29939 29940 29941 29942 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 30119 30120 30121 30122 30123 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 30206 30207 30208 30209 30210 30211 30212 30213 30214 30215 30216 30217 30218 30219 30220 30221 30222 30223 30224 30225 30226 30227 30228 30229 30230 30231 30232 30233 30234 30235 30236 30237 30238 30239 30240 30241 30242 30243 30244 30245 30246 30247 30248 30249 30250 30251 30252 30253 30254 30255 30256 30257 30258 30259 30260 30261 30262 30263 30264 30265 30266 30267 30268 30269 30270 30271 30272 30273 30274 30275 30276 30277 30278 30279 30280 30281 30282 30283 30284 30285 30286 30287 30288 30289 30290 30291 30292 30293 30294 30295 30296 30297 30298 30299 30300 30301 30302 30303 30304 30305 30306 30307 30308 30309 30310 30311 30312 30313 30314 30315 30316 30317 30318 30319 30320 30321 30322 30323 30324 30325 30326 30327 30328 30329 30330 30331 30332 30333 30334 30335 30336 30337 30338 30339 30340 30341 30342 30343 30344 30345 30346 30347 30348 30349 30350 30351 30352 30353 30354 30355 30356 30357 30358 30359 30360 30361 30362 30363 30364 30365 30366 30367 30368 30369 30370 30371 30372 30373 30374 30375 30376 30377 30378 30379 30380 30381 30382 30383 30384 30385 30386 30387 30388 30389 30390 30391 30392 30393 30394 30395 30396 30397 30398 30399 30400 30401 30402 30403 30404 30405 30406 30407 30408 30409 30410 30411 30412 30413 30414 30415 30416 30417 30418 30419 30420 30421 30422 30423 30424 30425 30426 30427 30428 30429 30430 30431 30432 30433 30434 30435 30436 30437 30438 30439 30440 30441 30442 30443 30444 30445 30446 30447 30448 30449 30450 30451 30452 30453 30454 30455 30456 30457 30458 30459 30460 30461 30462 30463 30464 30465 30466 30467 30468 30469 30470 30471 30472 30473 30474 30475 30476 30477 30478 30479 30480 30481 30482 30483 30484 30485 30486 30487 30488 30489 30490 30491 30492 30493 30494 30495 30496 30497 30498 30499 30500 30501 30502 30503 30504 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 30565 30566 30567 30568 30569 30570 30571 30572 30573 30574 30575 30576 30577 30578 30579 30580 30581 30582 30583 30584 30585 30586 30587 30588 30589 30590 30591 30592 30593 30594 30595 30596 30597 30598 30599 30600 30601 30602 30603 30604 30605 30606 30607 30608 30609 30610 30611 30612 30613 30614 30615 30616 30617 30618 30619 30620 30621 30622 30623 30624 30625 30626 30627 30628 30629 30630 30631 30632 30633 30634 30635 30636 30637 30638 30639 30640 30641 30642 30643 30644 30645 30646 30647 30648 30649 30650 30651 30652 30653 30654 30655 30656 30657 30658 30659 30660 30661 30662 30663 30664 30665 30666 30667 30668 30669 30670 30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 30681 30682 30683 30684 30685 30686 30687 30688 30689 30690 30691 30692 30693 30694 30695 30696 30697 30698 30699 30700 30701 30702 30703 30704 30705 30706 30707 30708 30709 30710 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 30729 30730 30731 30732 30733 30734 30735 30736 30737 30738 30739 30740 30741 30742 30743 30744 30745 30746 30747 30748 30749 30750 30751 30752 30753 30754 30755 30756 30757 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775 30776 30777 30778 30779 30780 30781 30782 30783 30784 30785 30786 30787 30788 30789 30790 30791 30792 30793 30794 30795 30796 30797 30798 30799 30800 30801 30802 30803 30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 30831 30832 30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 30885 30886 30887 30888 30889 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 30900 30901 30902 30903 30904 30905 30906 30907 30908 30909 30910 30911 30912 30913 30914 30915 30916 30917 30918 30919 30920 30921 30922 30923 30924 30925 30926 30927 30928 30929 30930 30931 30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 30946 30947 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 30974 30975 30976 30977 30978 30979 30980 30981 30982 30983 30984 30985 30986 30987 30988 30989 30990 30991 30992 30993 30994 30995 30996 30997 30998 30999 31000 31001 31002 31003 31004 31005 31006 31007 31008 31009 31010 31011 31012 31013 31014 31015 31016 31017 31018 31019 31020 31021 31022 31023 31024 31025 31026 31027 31028 31029 31030 31031 31032 31033 31034 31035 31036 31037 31038 31039 31040 31041 31042 31043 31044 31045 31046 31047 31048 31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 31069 31070 31071 31072 31073 31074 31075 31076 31077 31078 31079 31080 31081 31082 31083 31084 31085 31086 31087 31088 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 31112 31113 31114 31115 31116 31117 31118 31119 31120 31121 31122 31123 31124 31125 31126 31127 31128 31129 31130 31131 31132 31133 31134 31135 31136 31137 31138 31139 31140 31141 31142 31143 31144 31145 31146 31147 31148 31149 31150 31151 31152 31153 31154 31155 31156 31157 31158 31159 31160 31161 31162 31163 31164 31165 31166 31167 31168 31169 31170 31171 31172 31173 31174 31175 31176 31177 31178 31179 31180 31181 31182 31183 31184 31185 31186 31187 31188 31189 31190 31191 31192 31193 31194 31195 31196 31197 31198 31199 31200 31201 31202 31203 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 31295 31296 31297 31298 31299 31300 31301 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312 31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364 31365 31366 31367 31368 31369 31370 31371 31372 31373 31374 31375 31376 31377 31378 31379 31380 31381 31382 31383 31384 31385 31386 31387 31388 31389 31390 31391 31392 31393 31394 31395 31396 31397 31398 31399 31400 31401 31402 31403 31404 31405 31406 31407 31408 31409 31410 31411 31412 31413 31414 31415 31416 31417 31418 31419 31420 31421 31422 31423 31424 31425 31426 31427 31428 31429 31430 31431 31432 31433 31434 31435 31436 31437 31438 31439 31440 31441 31442 31443 31444 31445 31446 31447 31448 31449 31450 31451 31452 31453 31454 31455 31456 31457 31458 31459 31460 31461 31462 31463 31464 31465 31466 31467 31468 31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488 31489 31490 31491 31492 31493 31494 31495 31496 31497 31498 31499 31500 31501 31502 31503 31504 31505 31506 31507 31508 31509 31510 31511 31512 31513 31514 31515 31516 31517 31518 31519 31520 31521 31522 31523 31524 31525 31526 31527 31528 31529 31530 31531 31532 31533 31534 31535 31536 31537 31538 31539 31540 31541 31542 31543 31544 31545 31546 31547 31548 31549 31550 31551 31552 31553 31554 31555 31556 31557 31558 31559 31560 31561 31562 31563 31564 31565 31566 31567 31568 31569 31570 31571 31572 31573 31574 31575 31576 31577 31578 31579 31580 31581 31582 31583 31584 31585 31586 31587 31588 31589 31590 31591 31592 31593 31594 31595 31596 31597 31598 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 31609 31610 31611 31612 31613 31614 31615 31616 31617 31618 31619 31620 31621 31622 31623 31624 31625 31626 31627 31628 31629 31630 31631 31632 31633 31634 31635 31636 31637 31638 31639 31640 31641 31642 31643 31644 31645 31646 31647 31648 31649 31650 31651 31652 31653 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 31676 31677 31678 31679 31680 31681 31682 31683 31684 31685 31686 31687 31688 31689 31690 31691 31692 31693 31694 31695 31696 31697 31698 31699 31700 31701 31702 31703 31704 31705 31706 31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 31751 31752 31753 31754 31755 31756 31757 31758 31759 31760 31761 31762 31763 31764 31765 31766 31767 31768 31769 31770 31771 31772 31773 31774 31775 31776 31777 31778 31779 31780 31781 31782 31783 31784 31785 31786 31787 31788 31789 31790 31791 31792 31793 31794 31795 31796 31797 31798 31799 31800 31801 31802 31803 31804 31805 31806 31807 31808 31809 31810 31811 31812 31813 31814 31815 31816 31817 31818 31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 31830 31831 31832 31833 31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844 31845 31846 31847 31848 31849 31850 31851 31852 31853 31854 31855 31856 31857 31858 31859 31860 31861 31862 31863 31864 31865 31866 31867 31868 31869 31870 31871 31872 31873 31874 31875 31876 31877 31878 31879 31880 31881 31882 31883 31884 31885 31886 31887 31888 31889 31890 31891 31892 31893 31894 31895 31896 31897 31898 31899 31900 31901 31902 31903 31904 31905 31906 31907 31908 31909 31910 31911 31912 31913 31914 31915 31916 31917 31918 31919 31920 31921 31922 31923 31924 31925 31926 31927 31928 31929 31930 31931 31932 31933 31934 31935 31936 31937 31938 31939 31940 31941 31942 31943 31944 31945 31946 31947 31948 31949 31950 31951 31952 31953 31954 31955 31956 31957 31958 31959 31960 31961 31962 31963 31964 31965 31966 31967 31968 31969 31970 31971 31972 31973 31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026 32027 32028 32029 32030 32031 32032 32033 32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 32045 32046 32047 32048 32049 32050 32051 32052 32053 32054 32055 32056 32057 32058 32059 32060 32061 32062 32063 32064 32065 32066 32067 32068 32069 32070 32071 32072 32073 32074 32075 32076 32077 32078 32079 32080 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 32280 32281 32282 32283 32284 32285 32286 32287 32288 32289 32290 32291 32292 32293 32294 32295 32296 32297 32298 32299 32300 32301 32302 32303 32304 32305 32306 32307 32308 32309 32310 32311 32312 32313 32314 32315 32316 32317 32318 32319 32320 32321 32322 32323 32324 32325 32326 32327 32328 32329 32330 32331 32332 32333 32334 32335 32336 32337 32338 32339 32340 32341 32342 32343 32344 32345 32346 32347 32348 32349 32350 32351 32352 32353 32354 32355 32356 32357 32358 32359 32360 32361 32362 32363 32364 32365 32366 32367 32368 32369 32370 32371 32372 32373 32374 32375 32376 32377 32378 32379 32380 32381 32382 32383 32384 32385 32386 32387 32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 32399 32400 32401 32402 32403 32404 32405 32406 32407 32408 32409 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 32421 32422 32423 32424 32425 32426 32427 32428 32429 32430 32431 32432 32433 32434 32435 32436 32437 32438 32439 32440 32441 32442 32443 32444 32445 32446 32447 32448 32449 32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 32461 32462 32463 32464 32465 32466 32467 32468 32469 32470 32471 32472 32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 32505 32506 32507 32508 32509 32510 32511 32512 32513 32514 32515 32516 32517 32518 32519 32520 32521 32522 32523 32524 32525 32526 32527 32528 32529 32530 32531 32532 32533 32534 32535 32536 32537 32538 32539 32540 32541 32542 32543 32544 32545 32546 32547 32548 32549 32550 32551 32552 32553 32554 32555 32556 32557 32558 32559 32560 32561 32562 32563 32564 32565 32566 32567 32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 32585 32586 32587 32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 32610 32611 32612 32613 32614 32615 32616 32617 32618 32619 32620 32621 32622 32623 32624 32625 32626 32627 32628 32629 32630 32631 32632 32633 32634 32635 32636 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652 32653 32654 32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 32709 32710 32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 32743 32744 32745 32746 32747 32748 32749 32750 32751 32752 32753 32754 32755 32756 32757 32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 32822 32823 32824 32825 32826 32827 32828 32829 32830 32831 32832 32833 32834 32835 32836 32837 32838 32839 32840 32841 32842 32843 32844 32845 32846 32847 32848 32849 32850 32851 32852 32853 32854 32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 32920 32921 32922 32923 32924 32925 32926 32927 32928 32929 32930 32931 32932 32933 32934 32935 32936 32937 32938 32939 32940 32941 32942 32943 32944 32945 32946 32947 32948 32949 32950 32951 32952 32953 32954 32955 32956 32957 32958 32959 32960 32961 32962 32963 32964 32965 32966 32967 32968 32969 32970 32971 32972 32973 32974 32975 32976 32977 32978 32979 32980 32981 32982 32983 32984 32985 32986 32987 32988 32989 32990 32991 32992 32993 32994 32995 32996 32997 32998 32999 33000 33001 33002 33003 33004 33005 33006 33007 33008 33009 33010 33011 33012 33013 33014 33015 33016 33017 33018 33019 33020 33021 33022 33023 33024 33025 33026 33027 33028 33029 33030 33031 33032 33033 33034 33035 33036 33037 33038 33039 33040 33041 33042 33043 33044 33045 33046 33047 33048 33049 33050 33051 33052 33053 33054 33055 33056 33057 33058 33059 33060 33061 33062 33063 33064 33065 33066 33067 33068 33069 33070 33071 33072 33073 33074 33075 33076 33077 33078 33079 33080 33081 33082 33083 33084 33085 33086 33087 33088 33089 33090 33091 33092 33093 33094 33095 33096 33097 33098 33099 33100 33101 33102 33103 33104 33105 33106 33107 33108 33109 33110 33111 33112 33113 33114 33115 33116 33117 33118 33119 33120 33121 33122 33123 33124 33125 33126 33127 33128 33129 33130 33131 33132 33133 33134 33135 33136 33137 33138 33139 33140 33141 33142 33143 33144 33145 33146 33147 33148 33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 33182 33183 33184 33185 33186 33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 33201 33202 33203 33204 33205 33206 33207 33208 33209 33210 33211 33212 33213 33214 33215 33216 33217 33218 33219 33220 33221 33222 33223 33224 33225 33226 33227 33228 33229 33230 33231 33232 33233 33234 33235 33236 33237 33238 33239 33240 33241 33242 33243 33244 33245 33246 33247 33248 33249 33250 33251 33252 33253 33254 33255 33256 33257 33258 33259 33260 33261 33262 33263 33264 33265 33266 33267 33268 33269 33270 33271 33272 33273 33274 33275 33276 33277 33278 33279 33280 33281 33282 33283 33284 33285 33286 33287 33288 33289 33290 33291 33292 33293 33294 33295 33296 33297 33298 33299 33300 33301 33302 33303 33304 33305 33306 33307 33308 33309 33310 33311 33312 33313 33314 33315 33316 33317 33318 33319 33320 33321 33322 33323 33324 33325 33326 33327 33328 33329 33330 33331 33332 33333 33334 33335 33336 33337 33338 33339 33340 33341 33342 33343 33344 33345 33346 33347 33348 33349 33350 33351 33352 33353 33354 33355 33356 33357 33358 33359 33360 33361 33362 33363 33364 33365 33366 33367 33368 33369 33370 33371 33372 33373 33374 33375 33376 33377 33378 33379 33380 33381 33382 33383 33384 33385 33386 33387 33388 33389 33390 33391 33392 33393 33394 33395 33396 33397 33398 33399 33400 33401 33402 33403 33404 33405 33406 33407 33408 33409 33410 33411 33412 33413 33414 33415 33416 33417 33418 33419 33420 33421 33422 33423 33424 33425 33426 33427 33428 33429 33430 33431 33432 33433 33434 33435 33436 33437 33438 33439 33440 33441 33442 33443 33444 33445 33446 33447 33448 33449 33450 33451 33452 33453 33454 33455 33456 33457 33458 33459 33460 33461 33462 33463 33464 33465 33466 33467 33468 33469 33470 33471 33472 33473 33474 33475 33476 33477 33478 33479 33480 33481 33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 33492 33493 33494 33495 33496 33497 33498 33499 33500 33501 33502 33503 33504 33505 33506 33507 33508 33509 33510 33511 33512 33513 33514 33515 33516 33517 33518 33519 33520 33521 33522 33523 33524 33525 33526 33527 33528 33529 33530 33531 33532 33533 33534 33535 33536 33537 33538 33539 33540 33541 33542 33543 33544 33545 33546 33547 33548 33549 33550 33551 33552 33553 33554 33555 33556 33557 33558 33559 33560 33561 33562 33563 33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 33574 33575 33576 33577 33578 33579 33580 33581 33582 33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 33607 33608 33609 33610 33611 33612 33613 33614 33615 33616 33617 33618 33619 33620 33621 33622 33623 33624 33625 33626 33627 33628 33629 33630 33631 33632 33633 33634 33635 33636 33637 33638 33639 33640 33641 33642 33643 33644 33645 33646 33647 33648 33649 33650 33651 33652 33653 33654 33655 33656 33657 33658 33659 33660 33661 33662 33663 33664 33665 33666 33667 33668 33669 33670 33671 33672 33673 33674 33675 33676 33677 33678 33679 33680 33681 33682 33683 33684 33685 33686 33687 33688 33689 33690 33691 33692 33693 33694 33695 33696 33697 33698 33699 33700 33701 33702 33703 33704 33705 33706 33707 33708 33709 33710 33711 33712 33713 33714 33715 33716 33717 33718 33719 33720 33721 33722 33723 33724 33725 33726 33727 33728 33729 33730 33731 33732 33733 33734 33735 33736 33737 33738 33739 33740 33741 33742 33743 33744 33745 33746 33747 33748 33749 33750 33751 33752 33753 33754 33755 33756 33757 33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 33777 33778 33779 33780 33781 33782 33783 33784 33785 33786 33787 33788 33789 33790 33791 33792 33793 33794 33795 33796 33797 33798 33799 33800 33801 33802 33803 33804 33805 33806 33807 33808 33809 33810 33811 33812 33813 33814 33815 33816 33817 33818 33819 33820 33821 33822 33823 33824 33825 33826 33827 33828 33829 33830 33831 33832 33833 33834 33835 33836 33837 33838 33839 33840 33841 33842 33843 33844 33845 33846 33847 33848 33849 33850 33851 33852 33853 33854 33855 33856 33857 33858 33859 33860 33861 33862 33863 33864 33865 33866 33867 33868 33869 33870 33871 33872 33873 33874 33875 33876 33877 33878 33879 33880 33881 33882 33883 33884 33885 33886 33887 33888 33889 33890 33891 33892 33893 33894 33895 33896 33897 33898 33899 33900 33901 33902 33903 33904 33905 33906 33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 33917 33918 33919 33920 33921 33922 33923 33924 33925 33926 33927 33928 33929 33930 33931 33932 33933 33934 33935 33936 33937 33938 33939 33940 33941 33942 33943 33944 33945 33946 33947 33948 33949 33950 33951 33952 33953 33954 33955 33956 33957 33958 33959 33960 33961 33962 33963 33964 33965 33966 33967 33968 33969 33970 33971 33972 33973 33974 33975 33976 33977 33978 33979 33980 33981 33982 33983 33984 33985 33986 33987 33988 33989 33990 33991 33992 33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 34011 34012 34013 34014 34015 34016 34017 34018 34019 34020 34021 34022 34023 34024 34025 34026 34027 34028 34029 34030 34031 34032 34033 34034 34035 34036 34037 34038 34039 34040 34041 34042 34043 34044 34045 34046 34047 34048 34049 34050 34051 34052 34053 34054 34055 34056 34057 34058 34059 34060 34061 34062 34063 34064 34065 34066 34067 34068 34069 34070 34071 34072 34073 34074 34075 34076 34077 34078 34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 34100 34101 34102 34103 34104 34105 34106 34107 34108 34109 34110 34111 34112 34113 34114 34115 34116 34117 34118 34119 34120 34121 34122 34123 34124 34125 34126 34127 34128 34129 34130 34131 34132 34133 34134 34135 34136 34137 34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 34149 34150 34151 34152 34153 34154 34155 34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 34177 34178 34179 34180 34181 34182 34183 34184 34185 34186 34187 34188 34189 34190 34191 34192 34193 34194 34195 34196 34197 34198 34199 34200 34201 34202 34203 34204 34205 34206 34207 34208 34209 34210 34211 34212 34213 34214 34215 34216 34217 34218 34219 34220 34221 34222 34223 34224 34225 34226 34227 34228 34229 34230 34231 34232 34233 34234 34235 34236 34237 34238 34239 34240 34241 34242 34243 34244 34245 34246 34247 34248 34249 34250 34251 34252 34253 34254 34255 34256 34257 34258 34259 34260 34261 34262 34263 34264 34265 34266 34267 34268 34269 34270 34271 34272 34273 34274 34275 34276 34277 34278 34279 34280 34281 34282 34283 34284 34285 34286 34287 34288 34289 34290 34291 34292 34293 34294 34295 34296 34297 34298 34299 34300 34301 34302 34303 34304 34305 34306 34307 34308 34309 34310 34311 34312 34313 34314 34315 34316 34317 34318 34319 34320 34321 34322 34323 34324 34325 34326 34327 34328 34329 34330 34331 34332 34333 34334 34335 34336 34337 34338 34339 34340 34341 34342 34343 34344 34345 34346 34347 34348 34349 34350 34351 34352 34353 34354 34355 34356 34357 34358 34359 34360 34361 34362 34363 34364 34365 34366 34367 34368 34369 34370 34371 34372 34373 34374 34375 34376 34377 34378 34379 34380 34381 34382 34383 34384 34385 34386 34387 34388 34389 34390 34391 34392 34393 34394 34395 34396 34397 34398 34399 34400 34401 34402 34403 34404 34405 34406 34407 34408 34409 34410 34411 34412 34413 34414 34415 34416 34417 34418 34419 34420 34421 34422 34423 34424 34425 34426 34427 34428 34429 34430 34431 34432 34433 34434 34435 34436 34437 34438 34439 34440 34441 34442 34443 34444 34445 34446 34447 34448 34449 34450 34451 34452 34453 34454 34455 34456 34457 34458 34459 34460 34461 34462 34463 34464 34465 34466 34467 34468 34469 34470 34471 34472 34473 34474 34475 34476 34477 34478 34479 34480 34481 34482 34483 34484 34485 34486 34487 34488 34489 34490 34491 34492 34493 34494 34495 34496 34497 34498 34499 34500 34501 34502 34503 34504 34505 34506 34507 34508 34509 34510 34511 34512 34513 34514 34515 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547 34548 34549 34550 34551 34552 34553 34554 34555 34556 34557 34558 34559 34560 34561 34562 34563 34564 34565 34566 34567 34568 34569 34570 34571 34572 34573 34574 34575 34576 34577 34578 34579 34580 34581 34582 34583 34584 34585 34586 34587 34588 34589 34590 34591 34592 34593 34594 34595 34596 34597 34598 34599 34600 34601 34602 34603 34604 34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 34616 34617 34618 34619 34620 34621 34622 34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 34658 34659 34660 34661 34662 34663 34664 34665 34666 34667 34668 34669 34670 34671 34672 34673 34674 34675 34676 34677 34678 34679 34680 34681 34682 34683 34684 34685 34686 34687 34688 34689 34690 34691 34692 34693 34694 34695 34696 34697 34698 34699 34700 34701 34702 34703 34704 34705 34706 34707 34708 34709 34710 34711 34712 34713 34714 34715 34716 34717 34718 34719 34720 34721 34722 34723 34724 34725 34726 34727 34728 34729 34730 34731 34732 34733 34734 34735 34736 34737 34738 34739 34740 34741 34742 34743 34744 34745 34746 34747 34748 34749 34750 34751 34752 34753 34754 34755 34756 34757 34758 34759 34760 34761 34762 34763 34764 34765 34766 34767 34768 34769 34770 34771 34772 34773 34774 34775 34776 34777 34778 34779 34780 34781 34782 34783 34784 34785 34786 34787 34788 34789 34790 34791 34792 34793 34794 34795 34796 34797 34798 34799 34800 34801 34802 34803 34804 34805 34806 34807 34808 34809 34810 34811 34812 34813 34814 34815 34816 34817 34818 34819 34820 34821 34822 34823 34824 34825 34826 34827 34828 34829 34830 34831 34832 34833 34834 34835 34836 34837 34838 34839 34840 34841 34842 34843 34844 34845 34846 34847 34848 34849 34850 34851 34852 34853 34854 34855 34856 34857 34858 34859 34860 34861 34862 34863 34864 34865 34866 34867 34868 34869 34870 34871 34872 34873 34874 34875 34876 34877 34878 34879 34880 34881 34882 34883 34884 34885 34886 34887 34888 34889 34890 34891 34892 34893 34894 34895 34896 34897 34898 34899 34900 34901 34902 34903 34904 34905 34906 34907 34908 34909 34910 34911 34912 34913 34914 34915 34916 34917 34918 34919 34920 34921 34922 34923 34924 34925 34926 34927 34928 34929 34930 34931 34932 34933 34934 34935 34936 34937 34938 34939 34940 34941 34942 34943 34944 34945 34946 34947 34948 34949 34950 34951 34952 34953 34954 34955 34956 34957 34958 34959 34960 34961 34962 34963 34964 34965 34966 34967 34968 34969 34970 34971 34972 34973 34974 34975 34976 34977 34978 34979 34980 34981 34982 34983 34984 34985 34986 34987 34988 34989 34990 34991 34992 34993 34994 34995 34996 34997 34998 34999 35000 35001 35002 35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 35015 35016 35017 35018 35019 35020 35021 35022 35023 35024 35025 35026 35027 35028 35029 35030 35031 35032 35033 35034 35035 35036 35037 35038 35039 35040 35041 35042 35043 35044 35045 35046 35047 35048 35049 35050 35051 35052 35053 35054 35055 35056 35057 35058 35059 35060 35061 35062 35063 35064 35065 35066 35067 35068 35069 35070 35071 35072 35073 35074 35075 35076 35077 35078 35079 35080 35081 35082 35083 35084 35085 35086 35087 35088 35089 35090 35091 35092 35093 35094 35095 35096 35097 35098 35099 35100 35101 35102 35103 35104 35105 35106 35107 35108 35109 35110 35111 35112 35113 35114 35115 35116 35117 35118 35119 35120 35121 35122 35123 35124 35125 35126 35127 35128 35129 35130 35131 35132 35133 35134 35135 35136 35137 35138 35139 35140 35141 35142 35143 35144 35145 35146 35147 35148 35149 35150 35151 35152 35153 35154 35155 35156 35157 35158 35159 35160 35161 35162 35163 35164 35165 35166 35167 35168 35169 35170 35171 35172 35173 35174 35175 35176 35177 35178 35179 35180 35181 35182 35183 35184 35185 35186 35187 35188 35189 35190 35191 35192 35193 35194 35195 35196 35197 35198 35199 35200 35201 35202 35203 35204 35205 35206 35207 35208 35209 35210 35211 35212 35213 35214 35215 35216 35217 35218 35219 35220 35221 35222 35223 35224 35225 35226 35227 35228 35229 35230 35231 35232 35233 35234 35235 35236 35237 35238 35239 35240 35241 35242 35243 35244 35245 35246 35247 35248 35249 35250 35251 35252 35253 35254 35255 35256 35257 35258 35259 35260 35261 35262 35263 35264 35265 35266 35267 35268 35269 35270 35271 35272 35273 35274 35275 35276 35277 35278 35279 35280 35281 35282 35283 35284 35285 35286 35287 35288 35289 35290 35291 35292 35293 35294 35295 35296 35297 35298 35299 35300 35301 35302 35303 35304 35305 35306 35307 35308 35309 35310 35311 35312 35313 35314 35315 35316 35317 35318 35319 35320 35321 35322 35323 35324 35325 35326 35327 35328 35329 35330 35331 35332 35333 35334 35335 35336 35337 35338 35339 35340 35341 35342 35343 35344 35345 35346 35347 35348 35349 35350 35351 35352 35353 35354 35355 35356 35357 35358 35359 35360 35361 35362 35363 35364 35365 35366 35367 35368 35369 35370 35371 35372 35373 35374 35375 35376 35377 35378 35379 35380 35381 35382 35383 35384 35385 35386 35387 35388 35389 35390 35391 35392 35393 35394 35395 35396 35397 35398 35399 35400 35401 35402 35403 35404 35405 35406 35407 35408 35409 35410 35411 35412 35413 35414 35415 35416 35417 35418 35419 35420 35421 35422 35423 35424 35425 35426 35427 35428 35429 35430 35431 35432 35433 35434 35435 35436 35437 35438 35439 35440 35441 35442 35443 35444 35445 35446 35447 35448 35449 35450 35451 35452 35453 35454 35455 35456 35457 35458 35459 35460 35461 35462 35463 35464 35465 35466 35467 35468 35469 35470 35471 35472 35473 35474 35475 35476 35477 35478 35479 35480 35481 35482 35483 35484 35485 35486 35487 35488 35489 35490 35491 35492 35493 35494 35495 35496 35497 35498 35499 35500 35501 35502 35503 35504 35505 35506 35507 35508 35509 35510 35511 35512 35513 35514 35515 35516 35517 35518 35519 35520 35521 35522 35523 35524 35525 35526 35527 35528 35529 35530 35531 35532 35533 35534 35535 35536 35537 35538 35539 35540 35541 35542 35543 35544 35545 35546 35547 35548 35549 35550 35551 35552 35553 35554 35555 35556 35557 35558 35559 35560 35561 35562 35563 35564 35565 35566 35567 35568 35569 35570 35571 35572 35573 35574 35575 35576 35577 35578 35579 35580 35581 35582 35583 35584 35585 35586 35587 35588 35589 35590 35591 35592 35593 35594 35595 35596 35597 35598 35599 35600 35601 35602 35603 35604 35605 35606 35607 35608 35609 35610 35611 35612 35613 35614 35615 35616 35617 35618 35619 35620 35621 35622 35623 35624 35625 35626 35627 35628 35629 35630 35631 35632 35633 35634 35635 35636 35637 35638 35639 35640 35641 35642 35643 35644 35645 35646 35647 35648 35649 35650 35651 35652 35653 35654 35655 35656 35657 35658 35659 35660 35661 35662 35663 35664 35665 35666 35667 35668 35669 35670 35671 35672 35673 35674 35675 35676 35677 35678 35679 35680 35681 35682 35683 35684 35685 35686 35687 35688 35689 35690 35691 35692 35693 35694 35695 35696 35697 35698 35699 35700 35701 35702 35703 35704 35705 35706 35707 35708 35709 35710 35711 35712 35713 35714 35715 35716 35717 35718 35719 35720 35721 35722 35723 35724 35725 35726 35727 35728 35729 35730 35731 35732 35733 35734 35735 35736 35737 35738 35739 35740 35741 35742 35743 35744 35745 35746 35747 35748 35749 35750 35751 35752 35753 35754 35755 35756 35757 35758 35759 35760 35761 35762 35763 35764 35765 35766 35767 35768 35769 35770 35771 35772 35773 35774 35775 35776 35777 35778 35779 35780 35781 35782 35783 35784 35785 35786 35787 35788 35789 35790 35791 35792 35793 35794 35795 35796 35797 35798 35799 35800 35801 35802 35803 35804 35805 35806 35807 35808 35809 35810 35811 35812 35813 35814 35815 35816 35817 35818 35819 35820 35821 35822 35823 35824 35825 35826 35827 35828 35829 35830 35831 35832 35833 35834 35835 35836 35837 35838 35839 35840 35841 35842 35843 35844 35845 35846 35847 35848 35849 35850 35851 35852 35853 35854 35855 35856 35857 35858 35859 35860 35861 35862 35863 35864 35865 35866 35867 35868 35869 35870 35871 35872 35873 35874 35875 35876 35877 35878 35879 35880 35881 35882 35883 35884 35885 35886 35887 35888 35889 35890 35891 35892 35893 35894 35895 35896 35897 35898 35899 35900 35901 35902 35903 35904 35905 35906 35907 35908 35909 35910 35911 35912 35913 35914 35915 35916 35917 35918 35919 35920 35921 35922 35923 35924 35925 35926 35927 35928 35929 35930 35931 35932 35933 35934 35935 35936 35937 35938 35939 35940 35941 35942 35943 35944 35945 35946 35947 35948 35949 35950 35951 35952 35953 35954 35955 35956 35957 35958 35959 35960 35961 35962 35963 35964 35965 35966 35967 35968 35969 35970 35971 35972 35973 35974 35975 35976 35977 35978 35979 35980 35981 35982 35983 35984 35985 35986 35987 35988 35989 35990 35991 35992 35993 35994 35995 35996 35997 35998 35999 36000 36001 36002 36003 36004 36005 36006 36007 36008 36009 36010 36011 36012 36013 36014 36015 36016 36017 36018 36019 36020 36021 36022 36023 36024 36025 36026 36027 36028 36029 36030 36031 36032 36033 36034 36035 36036 36037 36038 36039 36040 36041 36042 36043 36044 36045 36046 36047 36048 36049 36050 36051 36052 36053 36054 36055 36056 36057 36058 36059 36060 36061 36062 36063 36064 36065 36066 36067 36068 36069 36070 36071 36072 36073 36074 36075 36076 36077 36078 36079 36080 36081 36082 36083 36084 36085 36086 36087 36088 36089 36090 36091 36092 36093 36094 36095 36096 36097 36098 36099 36100 36101 36102 36103 36104 36105 36106 36107 36108 36109 36110 36111 36112 36113 36114 36115 36116 36117 36118 36119 36120 36121 36122 36123 36124 36125 36126 36127 36128 36129 36130 36131 36132 36133 36134 36135 36136 36137 36138 36139 36140 36141 36142 36143 36144 36145 36146 36147 36148 36149 36150 36151 36152 36153 36154 36155 36156 36157 36158 36159 36160 36161 36162 36163 36164 36165 36166 36167 36168 36169 36170 36171 36172 36173 36174 36175 36176 36177 36178 36179 36180 36181 36182 36183 36184 36185 36186 36187 36188 36189 36190 36191 36192 36193 36194 36195 36196 36197 36198 36199 36200 36201 36202 36203 36204 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 36218 36219 36220 36221 36222 36223 36224 36225 36226 36227 36228 36229 36230 36231 36232 36233 36234 36235 36236 36237 36238 36239 36240 36241 36242 36243 36244 36245 36246 36247 36248 36249 36250 36251 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 36267 36268 36269 36270 36271 36272 36273 36274 36275 36276 36277 36278 36279 36280 36281 36282 36283 36284 36285 36286 36287 36288 36289 36290 36291 36292 36293 36294 36295 36296 36297 36298 36299 36300 36301 36302 36303 36304 36305 36306 36307 36308 36309 36310 36311 36312 36313 36314 36315 36316 36317 36318 36319 36320 36321 36322 36323 36324 36325 36326 36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 36385 36386 36387 36388 36389 36390 36391 36392 36393 36394 36395 36396 36397 36398 36399 36400 36401 36402 36403 36404 36405 36406 36407 36408 36409 36410 36411 36412 36413 36414 36415 36416 36417 36418 36419 36420 36421 36422 36423 36424 36425 36426 36427 36428 36429 36430 36431 36432 36433 36434 36435 36436 36437 36438 36439 36440 36441 36442 36443 36444 36445 36446 36447 36448 36449 36450 36451 36452 36453 36454 36455 36456 36457 36458 36459 36460 36461 36462 36463 36464 36465 36466 36467 36468 36469 36470 36471 36472 36473 36474 36475 36476 36477 36478 36479 36480 36481 36482 36483 36484 36485 36486 36487 36488 36489 36490 36491 36492 36493 36494 36495 36496 36497 36498 36499 36500 36501 36502 36503 36504 36505 36506 36507 36508 36509 36510 36511 36512 36513 36514 36515 36516 36517 36518 36519 36520 36521 36522 36523 36524 36525 36526 36527 36528 36529 36530 36531 36532 36533 36534 36535 36536 36537 36538 36539 36540 36541 36542 36543 36544 36545 36546 36547 36548 36549 36550 36551 36552 36553 36554 36555 36556 36557 36558 36559 36560 36561 36562 36563 36564 36565 36566 36567 36568 36569 36570 36571 36572 36573 36574 36575 36576 36577 36578 36579 36580 36581 36582 36583 36584 36585 36586 36587 36588 36589 36590 36591 36592 36593 36594 36595 36596 36597 36598 36599 36600 36601 36602 36603 36604 36605 36606 36607 36608 36609 36610 36611 36612 36613 36614 36615 36616 36617 36618 36619 36620 36621 36622 36623 36624 36625 36626 36627 36628 36629 36630 36631 36632 36633 36634 36635 36636 36637 36638 36639 36640 36641 36642 36643 36644 36645 36646 36647 36648 36649 36650 36651 36652 36653 36654 36655 36656 36657 36658 36659 36660 36661 36662 36663 36664 36665 36666 36667 36668 36669 36670 36671 36672 36673 36674 36675 36676 36677 36678 36679 36680 36681 36682 36683 36684 36685 36686 36687 36688 36689 36690 36691 36692 36693 36694 36695 36696 36697 36698 36699 36700 36701 36702 36703 36704 36705 36706 36707 36708 36709 36710 36711 36712 36713 36714 36715 36716 36717 36718 36719 36720 36721 36722 36723 36724 36725 36726 36727 36728 36729 36730 36731 36732 36733 36734 36735 36736 36737 36738 36739 36740 36741 36742 36743 36744 36745 36746 36747 36748 36749 36750 36751 36752 36753 36754 36755 36756 36757 36758 36759 36760 36761 36762 36763 36764 36765 36766 36767 36768 36769 36770 36771 36772 36773 36774 36775 36776 36777 36778 36779 36780 36781 36782 36783 36784 36785 36786 36787 36788 36789 36790 36791 36792 36793 36794 36795 36796 36797 36798 36799 36800 36801 36802 36803 36804 36805 36806 36807 36808 36809 36810 36811 36812 36813 36814 36815 36816 36817 36818 36819 36820 36821 36822 36823 36824 36825 36826 36827 36828 36829 36830 36831 36832 36833 36834 36835 36836 36837 36838 36839 36840 36841 36842 36843 36844 36845 36846 36847 36848 36849 36850 36851 36852 36853 36854 36855 36856 36857 36858 36859 36860 36861 36862 36863 36864 36865 36866 36867 36868 36869 36870 36871 36872 36873 36874 36875 36876 36877 36878 36879 36880 36881 36882 36883 36884 36885 36886 36887 36888 36889 36890 36891 36892 36893 36894 36895 36896 36897 36898 36899 36900 36901 36902 36903 36904 36905 36906 36907 36908 36909 36910 36911 36912 36913 36914 36915 36916 36917 36918 36919 36920 36921 36922 36923 36924 36925 36926 36927 36928 36929 36930 36931 36932 36933 36934 36935 36936 36937 36938 36939 36940 36941 36942 36943 36944 36945 36946 36947 36948 36949 36950 36951 36952 36953 36954 36955 36956 36957 36958 36959 36960 36961 36962 36963 36964 36965 36966 36967 36968 36969 36970 36971 36972 36973 36974 36975 36976 36977 36978 36979 36980 36981 36982 36983 36984 36985 36986 36987 36988 36989 36990 36991 36992 36993 36994 36995 36996 36997 36998 36999 37000 37001 37002 37003 37004 37005 37006 37007 37008 37009 37010 37011 37012 37013 37014 37015 37016 37017 37018 37019 37020 37021 37022 37023 37024 37025 37026 37027 37028 37029 37030 37031 37032 37033 37034 37035 37036 37037 37038 37039 37040 37041 37042 37043 37044 37045 37046 37047 37048 37049 37050 37051 37052 37053 37054 37055 37056 37057 37058 37059 37060 37061 37062 37063 37064 37065 37066 37067 37068 37069 37070 37071 37072 37073 37074 37075 37076 37077 37078 37079 37080 37081 37082 37083 37084 37085 37086 37087 37088 37089 37090 37091 37092 37093 37094 37095 37096 37097 37098 37099 37100 37101 37102 37103 37104 37105 37106 37107 37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 37119 37120 37121 37122 37123 37124 37125 37126 37127 37128 37129 37130 37131 37132 37133 37134 37135 37136 37137 37138 37139 37140 37141 37142 37143 37144 37145 37146 37147 37148 37149 37150 37151 37152 37153 37154 37155 37156 37157 37158 37159 37160 37161 37162 37163 37164 37165 37166 37167 37168 37169 37170 37171 37172 37173 37174 37175 37176 37177 37178 37179 37180 37181 37182 37183 37184 37185 37186 37187 37188 37189 37190 37191 37192 37193 37194 37195 37196 37197 37198 37199 37200 37201 37202 37203 37204 37205 37206 37207 37208 37209 37210 37211 37212 37213 37214 37215 37216 37217 37218 37219 37220 37221 37222 37223 37224 37225 37226 37227 37228 37229 37230 37231 37232 37233 37234 37235 37236 37237 37238 37239 37240 37241 37242 37243 37244 37245 37246 37247 37248 37249 37250 37251 37252 37253 37254 37255 37256 37257 37258 37259 37260 37261 37262 37263 37264 37265 37266 37267 37268 37269 37270 37271 37272 37273 37274 37275 37276 37277 37278 37279 37280 37281 37282 37283 37284 37285 37286 37287 37288 37289 37290 37291 37292 37293 37294 37295 37296 37297 37298 37299 37300 37301 37302 37303 37304 37305 37306 37307 37308 37309 37310 37311 37312 37313 37314 37315 37316 37317 37318 37319 37320 37321 37322 37323 37324 37325 37326 37327 37328 37329 37330 37331 37332 37333 37334 37335 37336 37337 37338 37339 37340 37341 37342 37343 37344 37345 37346 37347 37348 37349 37350 37351 37352 37353 37354 37355 37356 37357 37358 37359 37360 37361 37362 37363 37364 37365 37366 37367 37368 37369 37370 37371 37372 37373 37374 37375 37376 37377 37378 37379 37380 37381 37382 37383 37384 37385 37386 37387 37388 37389 37390 37391 37392 37393 37394 37395 37396 37397 37398 37399 37400 37401 37402 37403 37404 37405 37406 37407 37408 37409 37410 37411 37412 37413 37414 37415 37416 37417 37418 37419 37420 37421 37422 37423 37424 37425 37426 37427 37428 37429 37430 37431 37432 37433 37434 37435 37436 37437 37438 37439 37440 37441 37442 37443 37444 37445 37446 37447 37448 37449 37450 37451 37452 37453 37454 37455 37456 37457 37458 37459 37460 37461 37462 37463 37464 37465 37466 37467 37468 37469 37470 37471 37472 37473 37474 37475 37476 37477 37478 37479 37480 37481 37482 37483 37484 37485 37486 37487 37488 37489 37490 37491 37492 37493 37494 37495 37496 37497 37498 37499 37500 37501 37502 37503 37504 37505 37506 37507 37508 37509 37510 37511 37512 37513 37514 37515 37516 37517 37518 37519 37520 37521 37522 37523 37524 37525 37526 37527 37528 37529 37530 37531 37532 37533 37534 37535 37536 37537 37538 37539 37540 37541 37542 37543 37544 37545 37546 37547 37548 37549 37550 37551 37552 37553 37554 37555 37556 37557 37558 37559 37560 37561 37562 37563 37564 37565 37566 37567 37568 37569 37570 37571 37572 37573 37574 37575 37576 37577 37578 37579 37580 37581 37582 37583 37584 37585 37586 37587 37588 37589 37590 37591 37592 37593 37594 37595 37596 37597 37598 37599 37600 37601 37602 37603 37604 37605 37606 37607 37608 37609 37610 37611 37612 37613 37614 37615 37616 37617 37618 37619 37620 37621 37622 37623 37624 37625 37626 37627 37628 37629 37630 37631 37632 37633 37634 37635 37636 37637 37638 37639 37640 37641 37642 37643 37644 37645 37646 37647 37648 37649 37650 37651 37652 37653 37654 37655 37656 37657 37658 37659 37660 37661 37662 37663 37664 37665 37666 37667 37668 37669 37670 37671 37672 37673 37674 37675 37676 37677 37678 37679 37680 37681 37682 37683 37684 37685 37686 37687 37688 37689 37690 37691 37692 37693 37694 37695 37696 37697 37698 37699 37700 37701 37702 37703 37704 37705 37706 37707 37708 37709 37710 37711 37712 37713 37714 37715 37716 37717 37718 37719 37720 37721 37722 37723 37724 37725 37726 37727 37728 37729 37730 37731 37732 37733 37734 37735 37736 37737 37738 37739 37740 37741 37742 37743 37744 37745 37746 37747 37748 37749 37750 37751 37752 37753 37754 37755 37756 37757 37758 37759 37760 37761 37762 37763 37764 37765 37766 37767 37768 37769 37770 37771 37772 37773 37774 37775 37776 37777 37778 37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 37790 37791 37792 37793 37794 37795 37796 37797 37798 37799 37800 37801 37802 37803 37804 37805 37806 37807 37808 37809 37810 37811 37812 37813 37814 37815 37816 37817 37818 37819 37820 37821 37822 37823 37824 37825 37826 37827 37828 37829 37830 37831 37832 37833 37834 37835 37836 37837 37838 37839 37840 37841 37842 37843 37844 37845 37846 37847 37848 37849 37850 37851 37852 37853 37854 37855 37856 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 37868 37869 37870 37871 37872 37873 37874 37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 37891 37892 37893 37894 37895 37896 37897 37898 37899 37900 37901 37902 37903 37904 37905 37906 37907 37908 37909 37910 37911 37912 37913 37914 37915 37916 37917 37918 37919 37920 37921 37922 37923 37924 37925 37926 37927 37928 37929 37930 37931 37932 37933 37934 37935 37936 37937 37938 37939 37940 37941 37942 37943 37944 37945 37946 37947 37948 37949 37950 37951 37952 37953 37954 37955 37956 37957 37958 37959 37960 37961 37962 37963 37964 37965 37966 37967 37968 37969 37970 37971 37972 37973 37974 37975 37976 37977 37978 37979 37980 37981 37982 37983 37984 37985 37986 37987 37988 37989 37990 37991 37992 37993 37994 37995 37996 37997 37998 37999 38000 38001 38002 38003 38004 38005 38006 38007 38008 38009 38010 38011 38012 38013 38014 38015 38016 38017 38018 38019 38020 38021 38022 38023 38024 38025 38026 38027 38028 38029 38030 38031 38032 38033 38034 38035 38036 38037 38038 38039 38040 38041 38042 38043 38044 38045 38046 38047 38048 38049 38050 38051 38052 38053 38054 38055 38056 38057 38058 38059 38060 38061 38062 38063 38064 38065 38066 38067 38068 38069 38070 38071 38072 38073 38074 38075 38076 38077 38078 38079 38080 38081 38082 38083 38084 38085 38086 38087 38088 38089 38090 38091 38092 38093 38094 38095 38096 38097 38098 38099 38100 38101 38102 38103 38104 38105 38106 38107 38108 38109 38110 38111 38112 38113 38114 38115 38116 38117 38118 38119 38120 38121 38122 38123 38124 38125 38126 38127 38128 38129 38130 38131 38132 38133 38134 38135 38136 38137 38138 38139 38140 38141 38142 38143 38144 38145 38146 38147 38148 38149 38150 38151 38152 38153 38154 38155 38156 38157 38158 38159 38160 38161 38162 38163 38164 38165 38166 38167 38168 38169 38170 38171 38172 38173 38174 38175 38176 38177 38178 38179 38180 38181 38182 38183 38184 38185 38186 38187 38188 38189 38190 38191 38192 38193 38194 38195 38196 38197 38198 38199 38200 38201 38202 38203 38204 38205 38206 38207 38208 38209 38210 38211 38212 38213 38214 38215 38216 38217 38218 38219 38220 38221 38222 38223 38224 38225 38226 38227 38228 38229 38230 38231 38232 38233 38234 38235 38236 38237 38238 38239 38240 38241 38242 38243 38244 38245 38246 38247 38248 38249 38250 38251 38252 38253 38254 38255 38256 38257 38258 38259 38260 38261 38262 38263 38264 38265 38266 38267 38268 38269 38270 38271 38272 38273 38274 38275 38276 38277 38278 38279 38280 38281 38282 38283 38284 38285 38286 38287 38288 38289 38290 38291 38292 38293 38294 38295 38296 38297 38298 38299 38300 38301 38302 38303 38304 38305 38306 38307 38308 38309 38310 38311 38312 38313 38314 38315 38316 38317 38318 38319 38320 38321 38322 38323 38324 38325 38326 38327 38328 38329 38330 38331 38332 38333 38334 38335 38336 38337 38338 38339 38340 38341 38342 38343 38344 38345 38346 38347 38348 38349 38350 38351 38352 38353 38354 38355 38356 38357 38358 38359 38360 38361 38362 38363 38364 38365 38366 38367 38368 38369 38370 38371 38372 38373 38374 38375 38376 38377 38378 38379 38380 38381 38382 38383 38384 38385 38386 38387 38388 38389 38390 38391 38392 38393 38394 38395 38396 38397 38398 38399 38400 38401 38402 38403 38404 38405 38406 38407 38408 38409 38410 38411 38412 38413 38414 38415 38416 38417 38418 38419 38420 38421 38422 38423 38424 38425 38426 38427 38428 38429 38430 38431 38432 38433 38434 38435 38436 38437 38438 38439 38440 38441 38442 38443 38444 38445 38446 38447 38448 38449 38450 38451 38452 38453 38454 38455 38456 38457 38458 38459 38460 38461 38462 38463 38464 38465 38466 38467 38468 38469 38470 38471 38472 38473 38474 38475 38476 38477 38478 38479 38480 38481 38482 38483 38484 38485 38486 38487 38488 38489 38490 38491 38492 38493 38494 38495 38496 38497 38498 38499 38500 38501 38502 38503 38504 38505 38506 38507 38508 38509 38510 38511 38512 38513 38514 38515 38516 38517 38518 38519 38520 38521 38522 38523 38524 38525 38526 38527 38528 38529 38530 38531 38532 38533 38534 38535 38536 38537 38538 38539 38540 38541 38542 38543 38544 38545 38546 38547 38548 38549 38550 38551 38552 38553 38554 38555 38556 38557 38558 38559 38560 38561 38562 38563 38564 38565 38566 38567 38568 38569 38570 38571 38572 38573 38574 38575 38576 38577 38578 38579 38580 38581 38582 38583 38584 38585 38586 38587 38588 38589 38590 38591 38592 38593 38594 38595 38596 38597 38598 38599 38600 38601 38602 38603 38604 38605 38606 38607 38608 38609 38610 38611 38612 38613 38614 38615 38616 38617 38618 38619 38620 38621 38622 38623 38624 38625 38626 38627 38628 38629 38630 38631 38632 38633 38634 38635 38636 38637 38638 38639 38640 38641 38642 38643 38644 38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 38658 38659 38660 38661 38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 38681 38682 38683 38684 38685 38686 38687 38688 38689 38690 38691 38692 38693 38694 38695 38696 38697 38698 38699 38700 38701 38702 38703 38704 38705 38706 38707 38708 38709 38710 38711 38712 38713 38714 38715 38716 38717 38718 38719 38720 38721 38722 38723 38724 38725 38726 38727 38728 38729 38730 38731 38732 38733 38734 38735 38736 38737 38738 38739 38740 38741 38742 38743 38744 38745 38746 38747 38748 38749 38750 38751 38752 38753 38754 38755 38756 38757 38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 38769 38770 38771 38772 38773 38774 38775 38776 38777 38778 38779 38780 38781 38782 38783 38784 38785 38786 38787 38788 38789 38790 38791 38792 38793 38794 38795 38796 38797 38798 38799 38800 38801 38802 38803 38804 38805 38806 38807 38808 38809 38810 38811 38812 38813 38814 38815 38816 38817 38818 38819 38820 38821 38822 38823 38824 38825 38826 38827 38828 38829 38830 38831 38832 38833 38834 38835 38836 38837 38838 38839 38840 38841 38842 38843 38844 38845 38846 38847 38848 38849 38850 38851 38852 38853 38854 38855 38856 38857 38858 38859 38860 38861 38862 38863 38864 38865 38866 38867 38868 38869 38870 38871 38872 38873 38874 38875 38876 38877 38878 38879 38880 38881 38882 38883 38884 38885 38886 38887 38888 38889 38890 38891 38892 38893 38894 38895 38896 38897 38898 38899 38900 38901 38902 38903 38904 38905 38906 38907 38908 38909 38910 38911 38912 38913 38914 38915 38916 38917 38918 38919 38920 38921 38922 38923 38924 38925 38926 38927 38928 38929 38930 38931 38932 38933 38934 38935 38936 38937 38938 38939 38940 38941 38942 38943 38944 38945 38946 38947 38948 38949 38950 38951 38952 38953 38954 38955 38956 38957 38958 38959 38960 38961 38962 38963 38964 38965 38966 38967 38968 38969 38970 38971 38972 38973 38974 38975 38976 38977 38978 38979 38980 38981 38982 38983 38984 38985 38986 38987 38988 38989 38990 38991 38992 38993 38994 38995 38996 38997 38998 38999 39000 39001 39002 39003 39004 39005 39006 39007 39008 39009 39010 39011 39012 39013 39014 39015 39016 39017 39018 39019 39020 39021 39022 39023 39024 39025 39026 39027 39028 39029 39030 39031 39032 39033 39034 39035 39036 39037 39038 39039 39040 39041 39042 39043 39044 39045 39046 39047 39048 39049 39050 39051 39052 39053 39054 39055 39056 39057 39058 39059 39060 39061 39062 39063 39064 39065 39066 39067 39068 39069 39070 39071 39072 39073 39074 39075 39076 39077 39078 39079 39080 39081 39082 39083 39084 39085 39086 39087 39088 39089 39090 39091 39092 39093 39094 39095 39096 39097 39098 39099 39100 39101 39102 39103 39104 39105 39106 39107 39108 39109 39110 39111 39112 39113 39114 39115 39116 39117 39118 39119 39120 39121 39122 39123 39124 39125 39126 39127 39128 39129 39130 39131 39132 39133 39134 39135 39136 39137 39138 39139 39140 39141 39142 39143 39144 39145 39146 39147 39148 39149 39150 39151 39152 39153 39154 39155 39156 39157 39158 39159 39160 39161 39162 39163 39164 39165 39166 39167 39168 39169 39170 39171 39172 39173 39174 39175 39176 39177 39178 39179 39180 39181 39182 39183 39184 39185 39186 39187 39188 39189 39190 39191 39192 39193 39194 39195 39196 39197 39198 39199 39200 39201 39202 39203 39204 39205 39206 39207 39208 39209 39210 39211 39212 39213 39214 39215 39216 39217 39218 39219 39220 39221 39222 39223 39224 39225 39226 39227 39228 39229 39230 39231 39232 39233 39234 39235 39236 39237 39238 39239 39240 39241 39242 39243 39244 39245 39246 39247 39248 39249 39250 39251 39252 39253 39254 39255 39256 39257 39258 39259 39260 39261 39262 39263 39264 39265 39266 39267 39268 39269 39270 39271 39272 39273 39274 39275 39276 39277 39278 39279 39280 39281 39282 39283 39284 39285 39286 39287 39288 39289 39290 39291 39292 39293 39294 39295 39296 39297 39298 39299 39300 39301 39302 39303 39304 39305 39306 39307 39308 39309 39310 39311 39312 39313 39314 39315 39316 39317 39318 39319 39320 39321 39322 39323 39324 39325 39326 39327 39328 39329 39330 39331 39332 39333 39334 39335 39336 39337 39338 39339 39340 39341 39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 39379 39380 39381 39382 39383 39384 39385 39386 39387 39388 39389 39390 39391 39392 39393 39394 39395 39396 39397 39398 39399 39400 39401 39402 39403 39404 39405 39406 39407 39408 39409 39410 39411 39412 39413 39414 39415 39416 39417 39418 39419 39420 39421 39422 39423 39424 39425 39426 39427 39428 39429 39430 39431 39432 39433 39434 39435 39436 39437 39438 39439 39440 39441 39442 39443 39444 39445 39446 39447 39448 39449 39450 39451 39452 39453 39454 39455 39456 39457 39458 39459 39460 39461 39462 39463 39464 39465 39466 39467 39468 39469 39470 39471 39472 39473 39474 39475 39476 39477 39478 39479 39480 39481 39482 39483 39484 39485 39486 39487 39488 39489 39490 39491 39492 39493 39494 39495 39496 39497 39498 39499 39500 39501 39502 39503 39504 39505 39506 39507 39508 39509 39510 39511 39512 39513 39514 39515 39516 39517 39518 39519 39520 39521 39522 39523 39524 39525 39526 39527 39528 39529 39530 39531 39532 39533 39534 39535 39536 39537 39538 39539 39540 39541 39542 39543 39544 39545 39546 39547 39548 39549 39550 39551 39552 39553 39554 39555 39556 39557 39558 39559 39560 39561 39562 39563 39564 39565 39566 39567 39568 39569 39570 39571 39572 39573 39574 39575 39576 39577 39578 39579 39580 39581 39582 39583 39584 39585 39586 39587 39588 39589 39590 39591 39592 39593 39594 39595 39596 39597 39598 39599 39600 39601 39602 39603 39604 39605 39606 39607 39608 39609 39610 39611 39612 39613 39614 39615 39616 39617 39618 39619 39620 39621 39622 39623 39624 39625 39626 39627 39628 39629 39630 39631 39632 39633 39634 39635 39636 39637 39638 39639 39640 39641 39642 39643 39644 39645 39646 39647 39648 39649 39650 39651 39652 39653 39654 39655 39656 39657 39658 39659 39660 39661 39662 39663 39664 39665 39666 39667 39668 39669 39670 39671 39672 39673 39674 39675 39676 39677 39678 39679 39680 39681 39682 39683 39684 39685 39686 39687 39688 39689 39690 39691 39692 39693 39694 39695 39696 39697 39698 39699 39700 39701 39702 39703 39704 39705 39706 39707 39708 39709 39710 39711 39712 39713 39714 39715 39716 39717 39718 39719 39720 39721 39722 39723 39724 39725 39726 39727 39728 39729 39730 39731 39732 39733 39734 39735 39736 39737 39738 39739 39740 39741 39742 39743 39744 39745 39746 39747 39748 39749 39750 39751 39752 39753 39754 39755 39756 39757 39758 39759 39760 39761 39762 39763 39764 39765 39766 39767 39768 39769 39770 39771 39772 39773 39774 39775 39776 39777 39778 39779 39780 39781 39782 39783 39784 39785 39786 39787 39788 39789 39790 39791 39792 39793 39794 39795 39796 39797 39798 39799 39800 39801 39802 39803 39804 39805 39806 39807 39808 39809 39810 39811 39812 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 39829 39830 39831 39832 39833 39834 39835 39836 39837 39838 39839 39840 39841 39842 39843 39844 39845 39846 39847 39848 39849 39850 39851 39852 39853 39854 39855 39856 39857 39858 39859 39860 39861 39862 39863 39864 39865 39866 39867 39868 39869 39870 39871 39872 39873 39874 39875 39876 39877 39878 39879 39880 39881 39882 39883 39884 39885 39886 39887 39888 39889 39890 39891 39892 39893 39894 39895 39896 39897 39898 39899 39900 39901 39902 39903 39904 39905 39906 39907 39908 39909 39910 39911 39912 39913 39914 39915 39916 39917 39918 39919 39920 39921 39922 39923 39924 39925 39926 39927 39928 39929 39930 39931 39932 39933 39934 39935 39936 39937 39938 39939 39940 39941 39942 39943 39944 39945 39946 39947 39948 39949 39950 39951 39952 39953 39954 39955 39956 39957 39958 39959 39960 39961 39962 39963 39964 39965 39966 39967 39968 39969 39970 39971 39972 39973 39974 39975 39976 39977 39978 39979 39980 39981 39982 39983 39984 39985 39986 39987 39988 39989 39990 39991 39992 39993 39994 39995 39996 39997 39998 39999 40000 40001 40002 40003 40004 40005 40006 40007 40008 40009 40010 40011 40012 40013 40014 40015 40016 40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 40035 40036 40037 40038 40039 40040 40041 40042 40043 40044 40045 40046 40047 40048 40049 40050 40051 40052 40053 40054 40055 40056 40057 40058 40059 40060 40061 40062 40063 40064 40065 40066 40067 40068 40069 40070 40071 40072 40073 40074 40075 40076 40077 40078 40079 40080 40081 40082 40083 40084 40085 40086 40087 40088 40089 40090 40091 40092 40093 40094 40095 40096 40097 40098 40099 40100 40101 40102 40103 40104 40105 40106 40107 40108 40109 40110 40111 40112 40113 40114 40115 40116 40117 40118 40119 40120 40121 40122 40123 40124 40125 40126 40127 40128 40129 40130 40131 40132 40133 40134 40135 40136 40137 40138 40139 40140 40141 40142 40143 40144 40145 40146 40147 40148 40149 40150 40151 40152 40153 40154 40155 40156 40157 40158 40159 40160 40161 40162 40163 40164 40165 40166 40167 40168 40169 40170 40171 40172 40173 40174 40175 40176 40177 40178 40179 40180 40181 40182 40183 40184 40185 40186 40187 40188 40189 40190 40191 40192 40193 40194 40195 40196 40197 40198 40199 40200 40201 40202 40203 40204 40205 40206 40207 40208 40209 40210 40211 40212 40213 40214 40215 40216 40217 40218 40219 40220 40221 40222 40223 40224 40225 40226 40227 40228 40229 40230 40231 40232 40233 40234 40235 40236 40237 40238 40239 40240 40241 40242 40243 40244 40245 40246 40247 40248 40249 40250 40251 40252 40253 40254 40255 40256 40257 40258 40259 40260 40261 40262 40263 40264 40265 40266 40267 40268 40269 40270 40271 40272 40273 40274 40275 40276 40277 40278 40279 40280 40281 40282 40283 40284 40285 40286 40287 40288 40289 40290 40291 40292 40293 40294 40295 40296 40297 40298 40299 40300 40301 40302 40303 40304 40305 40306 40307 40308 40309 40310 40311 40312 40313 40314 40315 40316 40317 40318 40319 40320 40321 40322 40323 40324 40325 40326 40327 40328 40329 40330 40331 40332 40333 40334 40335 40336 40337 40338 40339 40340 40341 40342 40343 40344 40345 40346 40347 40348 40349 40350 40351 40352 40353 40354 40355 40356 40357 40358 40359 40360 40361 40362 40363 40364 40365 40366 40367 40368 40369 40370 40371 40372 40373 40374 40375 40376 40377 40378 40379 40380 40381 40382 40383 40384 40385 40386 40387 40388 40389 40390 40391 40392 40393 40394 40395 40396 40397 40398 40399 40400 40401 40402 40403 40404 40405 40406 40407 40408 40409 40410 40411 40412 40413 40414 40415 40416 40417 40418 40419 40420 40421 40422 40423 40424 40425 40426 40427 40428 40429 40430 40431 40432 40433 40434 40435 40436 40437 40438 40439 40440 40441 40442 40443 40444 40445 40446 40447 40448 40449 40450 40451 40452 40453 40454 40455 40456 40457 40458 40459 40460 40461 40462 40463 40464 40465 40466 40467 40468 40469 40470 40471 40472 40473 40474 40475 40476 40477 40478 40479 40480 40481 40482 40483 40484 40485 40486 40487 40488 40489 40490 40491 40492 40493 40494 40495 40496 40497 40498 40499 40500 40501 40502 40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 40513 40514 40515 40516 40517 40518 40519 40520 40521 40522 40523 40524 40525 40526 40527 40528 40529 40530 40531 40532 40533 40534 40535 40536 40537 40538 40539 40540 40541 40542 40543 40544 40545 40546 40547 40548 40549 40550 40551 40552 40553 40554 40555 40556 40557 40558 40559 40560 40561 40562 40563 40564 40565 40566 40567 40568 40569 40570 40571 40572 40573 40574 40575 40576 40577 40578 40579 40580 40581 40582 40583 40584 40585 40586 40587 40588 40589 40590 40591 40592 40593 40594 40595 40596 40597 40598 40599 40600 40601 40602 40603 40604 40605 40606 40607 40608 40609 40610 40611 40612 40613 40614 40615 40616 40617 40618 40619 40620 40621 40622 40623 40624 40625 40626 40627 40628 40629 40630 40631 40632 40633 40634 40635 40636 40637 40638 40639 40640 40641 40642 40643 40644 40645 40646 40647 40648 40649 40650 40651 40652 40653 40654 40655 40656 40657 40658 40659 40660 40661 40662 40663 40664 40665 40666 40667 40668 40669 40670 40671 40672 40673 40674 40675 40676 40677 40678 40679 40680 40681 40682 40683 40684 40685 40686 40687 40688 40689 40690 40691 40692 40693 40694 40695 40696 40697 40698 40699 40700 40701 40702 40703 40704 40705 40706 40707 40708 40709 40710 40711 40712 40713 40714 40715 40716 40717 40718 40719 40720 40721 40722 40723 40724 40725 40726 40727 40728 40729 40730 40731 40732 40733 40734 40735 40736 40737 40738 40739 40740 40741 40742 40743 40744 40745 40746 40747 40748 40749 40750 40751 40752 40753 40754 40755 40756 40757 40758 40759 40760 40761 40762 40763 40764 40765 40766 40767 40768 40769 40770 40771 40772 40773 40774 40775 40776 40777 40778 40779 40780 40781 40782 40783 40784 40785 40786 40787 40788 40789 40790 40791 40792 40793 40794 40795 40796 40797 40798 40799 40800 40801 40802 40803 40804 40805 40806 40807 40808 40809 40810 40811 40812 40813
|
2012-04-15 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: 1.54: updated
version numbers
2012-04-15 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: minor update to notes
2012-04-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3714 (segmentation
fault of cppcheck checking libtiff)
2012-04-14 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.cpp, gui/selectfilesdialog.cpp,
gui/selectfilesdialog.h, man/cppcheck.1.xml: Fixed/Improved
description of -rp/--relative-paths run astyle
2012-04-14 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.cpp, lib/path.cpp, test/testpath.cpp: Fixed
crash when "-rp=" or "--relative-paths=" is given - print Error.
2012-04-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Add -rp to man file
2012-04-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/selectfilesdialog.cpp, gui/selectfilesdialog.h: Add missing
license text to gui/selectfilesdialog.* files
2012-04-13 PKEuS <philipp.kloke@web.de>
* lib/templatesimplifier.cpp, test/testsimplifytokens.cpp: Fixed
#3722: Handle associative law correctly for operator*
2012-04-13 PKEuS <philipp.kloke@web.de>
* cli/pathmatch.h, lib/templatesimplifier.cpp: Removed code that
became unnecessary after 7be01da8e909174d4b3afcbcf3c8f4b0287c7cd2.
Fixed wrong comment in cli/pathmatch.h (doxygen warning)
2012-04-13 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3712 (false
positive: syntax error on valid C code ( K&R function style ))
2012-04-12 Ettl Martin <ettl.martin78@googlemail.com>
* lib/mathlib.cpp, lib/mathlib.h, test/testmathlib.cpp,
test/testother.cpp: fixed ticket 3693. Added modulus operator to
Mathlib + unittests. Added a test to checkother to ensure the
testcase of ticket 3693 does not trigger an error message.
2012-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Reverted 81318b3f to get rid of #3669 false
positives
2012-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: astyle formatting
2012-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h: Tokenizer:
allow that time is measured for certain slow simplifications
2012-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #3705
(cppcheck crash (null pointer exception))
2012-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3700 (false
positive: (style) Variable 'H' is not assigned a value)
2012-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.cpp, test/testunusedprivfunc.cpp: Fixed #3661
(False positive: unusedPrivateFunction)
2012-04-09 PKEuS <philipp.kloke@web.de>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
false negative in unused functions check when function returns
reference Removed some unnecessary loops
2012-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: false poitive - invalid
iterator after break
2012-04-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3609
(clarifyCondition delivers false positives when using Windows-Traits
as a template)
2012-04-08 Daniel Marjamäki <danielm77@spray.se>
* cli/threadexecutor.cpp: fixed compiler errors
2012-04-08 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp, lib/cppcheck.h:
Removed unused variable CppCheck::_errout.
2012-04-08 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: recommend that xml format version 2 is
used
2012-04-08 PKEuS <philipp.kloke@web.de>
* cli/filelister.cpp: Improvements to filelister under Windows: - Passed string parameters as const references - Give correct string size to WinAPI functions (they take the number
of characters, not the size in bytes (as used two times) and not the
size in bytes plus 1 (as used one time)) - Fixed compiler warning C4293 by hiding the code for 32bit systems - store result of wcslen(ffd.cFileName) instead of calculating it
twice
2012-04-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: CheckOther: Use reportInconclusiveError to
report inconclusive error
2012-04-08 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp: Fixed crash when --errorlist is given
(#3711)
2012-04-07 PKEuS <philipp.kloke@web.de>
* : Merge pull request #93 from simartin/clang_warn_fix Avoid clang warning.
2012-04-07 PKEuS <philipp.kloke@web.de>
* cli/threadexecutor.cpp: Fixed compilation error (#3709)
2012-04-06 PKEuS <philipp.kloke@web.de>
* lib/cppcheck.cpp, lib/errorlogger.cpp, lib/settings.cpp,
lib/settings.h: Refactorizations: - Added forgotten initialization of Settings::_relativePaths - Some PCRE-Rules specific code hidden behind HAVE_RULES - Use initialization list in
ErrorLogger::ErrorMessage::ErrorMessage() and CppCheck::CppCheck - Avoided unnecessary copies of std::strings in cppcheck.cpp - Moved "// Alert only about unique errors"-code to make it work in
debugFalsePositive mode
2012-04-06 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
gui/checkthread.cpp, lib/cppcheck.cpp, lib/cppcheck.h,
test/testsuppressions.cpp: Avoid copying Settings in
CppCheckExecutor
2012-04-06 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.cpp, lib/path.cpp, lib/path.h,
lib/preprocessor.cpp, lib/settings.h, lib/tokenize.cpp,
test/testcmdlineparser.cpp, test/testpath.cpp: Implemented #2990:
Print relative paths if -rp or --relative-paths is given
2012-04-05 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#3383: If there is an empty line between subsequent break
statements, only issue a message for inconclusive checking
2012-04-05 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, lib/checkclass.h: Improvements in
checkclass.cpp: - Generalized CheckClass::noMemset: -- Checking for all three
mem...-functions for all patterns, generalized them so that we need
less patterns -- Use nextArgument() to jump over irrelevant
arguments - Replaced CheckClass::hasDeallocation by CheckClass::hasAllocation:
-- Reduced number of false negatives by returning also true whenever
a member variable is allocated (also without previous deallocation)
-- Reduced code duplication - Removed indendation counter and redundant variable in
CheckClass::initializeVarList
2012-04-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3650 (Variable
declaration: Doesn't handle template usage well)
2012-04-04 Stefan Weil <sw@weilnetz.de>
* lib/checkclass.cpp: Fix compiler warning gcc warning: lib/checkclass.cpp: In member function ‘void
CheckClass::checkConst()’: lib/checkclass.cpp:1197: warning:
declaration of ‘name’ shadows a member of 'this' Rename local variable 'name' to 's'. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2012-04-04 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, test/teststl.cpp: Improved checks in CheckStl: - Generalized check for inefficient emptiness check to detect
!%var%.size() calls also outside of if and while; detect it also for
%var%.size() when linked with && or ||. Refactorizations in
CheckStl: - Removed an indendation counter and an offset variable - Reduced distance given to tokAt calls in
CheckStl::redundantCondition - Rearranged code in CheckStl::missingComparison to use more
efficient comparision of varIds instead of variable names. Use varId
in pattern instead of variable name.
2012-04-04 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Improved
checks in CheckStl: - Improved message of stlIfStrFind according to discussion on github
(77d9ed18775bd2181ec518b1e7d2c842bb3da644) - Generalized pattern for substr in CheckStl::uselessCalls; added
check for substr calls like ".substr(%any%,0)" which result in an
empty string.
2012-04-03 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Make 'const' the new variable 'funcName'.
2012-04-03 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3162: Check whole
condition for suspicious find calls.
2012-04-03 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3703 (false
positive: syntax error on valid C-code ( K&R - style )).
2012-04-03 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3701 (false
positive: syntax error on valid C code ( K&R function style ).
2012-04-02 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Improved
CheckOther::checkComparisonOfBoolWithInt and
CheckOther::checkComparisonOfBoolExpressionWithInt: - Added support for comparision of bool constant with number
constant (-> fixed #1877) and integer variable with boolean
expression - Moved a check from checkComparisonOfBoolWithInt to
checkComparisonOfBoolExpressionWithInt - Generalized some patterns - Made error message more accurate concnerning the "neither 0 nor 1"
part. - Reduced number of Token::Match calls
2012-04-02 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Improved
nullpointer check: - Fixed #3673 - Fixed potential issue with constructor calls (like #3697) - Added support for operator+ on std::string
2012-04-02 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed #3676.
2012-04-02 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3697.
2012-04-01 Ettl Martin <ettl.martin78@googlemail.com>
* test/testnullpointer.cpp: astyle run
2012-04-01 Ettl Martin <ettl.martin78@googlemail.com>
* test/testnullpointer.cpp: #1927 added testcase.
2012-03-31 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3580
(syntax error in multi variable declaration header).
2012-03-31 PKEuS <philipp.kloke@web.de>
* lib/executionpath.cpp: Fixed another memory leak in
executionpath.cpp
2012-03-31 PKEuS <philipp.kloke@web.de>
* : Merge pull request #92 from HeisSpiter/master Fix memory leak
2012-03-31 Daniel Marjamäki <danielm77@spray.se>
* lib/templatesimplifier.cpp, test/testsimplifytokens.cpp: Fixed
#3532 (false positive : missing constructor)
2012-03-28 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #91 from
HeisSpiter/e46c7eb32033b520374e9df8c13bc8589c0602d0 Handle Rtl memory functions in
Tokenizer::simplifyMicrosoftMemoryFunctions()
2012-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Fixed
#3594 (false positive: returning reference to auto variable)
2012-03-27 PKEuS <philipp.kloke@web.de>
* lib/checkother.h, lib/templatesimplifier.cpp, test/testother.cpp:
Improved simplification of calculations: - Use more generic patterns - Look on operator precedence more consequently -> Made a TODO test
case from a test case that worked previously, because the
calculation is simplified so that the problem isn't detected any
more. Changed comment "Coding style checks" to "Checks", because it
didn't fit
2012-03-27 Pierre Schweitzer <pierre@reactos.org>
* lib/tokenize.cpp, test/testtokenize.cpp: Add the RTL memory
functions for the simplifications on Windows code.
2012-03-27 Daniel Marjamäki <danielm77@spray.se>
* test/testpreprocessor.cpp: Preprocessor: fixed tests
2012-03-27 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkstl.h, lib/checkuninitvar.h, test/testbufferoverrun.cpp:
Refactorizations: - Increased encapsulation by making some functions private - Removed redundant function CheckBufferOverrun::ArrayInfo::declare - Avoided copy of ArrayInfo object - Removed unnecessary and suspicious "if(sizeof(int) == 4)"
2012-03-27 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h, lib/tokenize.cpp,
test/testpreprocessor.cpp: Fixed #3534 (Broken support for dollar
signs in identifiers)
2012-03-26 PKEuS <philipp.kloke@web.de>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3687: Don't
treat catched variables as local ones.
2012-03-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #3573
(Preprocessor: handle '!(X)' the same as '!X')
2012-03-25 Daniel Marjamäki <danielm77@spray.se>
* webreport.sh: webreport.sh: changed pmd version back to 4.2.6
2012-03-25 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Made
invalidPointerCast message inconclusive for casting from floating
point type* to char* (Fixed #3639)
2012-03-25 Daniel Marjamäki <danielm77@spray.se>
* test/testerrorlogger.cpp: xml: fixed test case.
2012-03-25 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: xml: Add attribute 'inconclusive' to the xml
(format version 2)
2012-03-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/token.cpp: astyle formatting
2012-03-25 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #89 from HeisSpiter/master Merged two checks to get a better one regarding sizeof
2012-03-25 PKEuS <philipp.kloke@web.de>
* test/testsimplifytokens.cpp: Added test case for #3619
2012-02-25 August Sodora <augsod@gmail.com>
* lib/tokenize.cpp: 3619 Check that tok2->next() exists before using
2012-03-24 Edoardo Prezioso <edo88@email.it>
* cli/threadexecutor.cpp, lib/token.cpp: Nitpicky style change: use
'for(;;)' construct instead of 'while(true)' in the code.
2012-03-24 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, lib/symboldatabase.cpp,
test/testsymboldatabase.cpp: Fixed #3360: "type const* var;" is now
recognized as variable declaration.
2012-03-24 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #3252 Make use of
std::isupper instead of custom implementation
2012-03-24 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp: Check for unused private functions now handles
overloads - removed redundant and less powerful duplicate of
CheckClass::isVirtualFunc. CheckClass::initializerList does now
also check copy constructors Started fix for #3682: use
reportInconclusiveError
2012-03-24 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #88 from leg0/ticket_3675 Fixed ticket #3675.
2012-03-23 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkstl.cpp, lib/symboldatabase.cpp,
lib/symboldatabase.h, test/testsymboldatabase.cpp: Store functions
which are declared but not implemented in the function list of the
containing scope -> Fixed #3679 Refactorizations: - Simplified some code - Improved condition in findVariableType to reduce unnecessary
comparisions of empty strings.
2012-03-23 Ahti Legonkov <ahti.legonkov@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket
#3675.
2012-03-21 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #87 from HeisSpiter/master Fix a bug introduced with a previous commit and add a new check
2012-03-21 PKEuS <philipp.kloke@web.de>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testunusedvar.cpp:
Fixed #3677 Added forgotten testcase for #3672
2012-03-20 Pierre Schweitzer <pierre@reactos.org>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fix line number
displayed on leakNoVarr error
2012-03-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3648 (Internal
error: Token::Match called with varid 0)
2012-03-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, lib/checkunusedvar.h, lib/tokenize.cpp,
lib/tokenize.h, test/testtokenize.cpp: Revert "Fixed #3648 (Internal
error: Token::Match called with varid 0)" This reverts commit 1fa1ddccbaaf1b0e3506b71bdcb337d952f60be3.
2012-03-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, lib/checkunusedvar.h, lib/tokenize.cpp,
lib/tokenize.h, test/testtokenize.cpp: Fixed #3648 (Internal error:
Token::Match called with varid 0)
2012-03-19 PKEuS <philipp.kloke@web.de>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp:
Implemented support for C++11 right angle brackets (>>) Implemented
support for linkage between < and > (Information: It is possible
that under certain circumstances comparision operators are linked,
since its sometimes difficult to separate between them.)
2012-03-19 PKEuS <philipp.kloke@web.de>
* lib/checkunusedvar.cpp, lib/checkunusedvar.h, lib/tokenize.cpp,
test/testtokenize.cpp: Fixed #3672: bitwise and operator in if/while
does no longer confuse setVarId code Improvements to CheckUnusedVar: - Improved handling of arrays of struct/class instances - Differ between addressof and bitwise-and operator - Made some members private to improve encapsulation - Replaced some simple patterns by direct function calls - Removed an unnecessary condition
2012-03-01 Stefan Weil <sw@weilnetz.de>
* test/testpreprocessor.cpp: test: Fix preprocessor code in test
data This is not valid preprocessor code: #ifdef A == 1 Signed-off-by: Stefan Weil <sw@weilnetz.de>
2012-01-18 Stefan Weil <sw@weilnetz.de>
* gui/help/manual.html, man/manual.docbook: manual: fix grammar in
documentation
2012-03-18 Pierre Schweitzer <pierre@reactos.org>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Updated error
message about not taking return value from function that returns
allocated memory
2012-03-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3671 (False
positive: Resource leak: fd)
2012-03-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #3670 (false positive: Allocation with
open never assigned)
2012-03-17 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h:
Refactorizations on buffer overrun check: - Replaced a few indendation counters by smaller and faster code - Make use of safer nextArgument() function instead of some local
implementations - Replaced some simple patterns by direct function calls - Made a strncpy/strncat search pattern more generic - Replaced offset variable by incrementation of Token* to avoid
subsequent calls to tokAt - Increased data encapsulation in header
2012-03-17 PKEuS <philipp.kloke@web.de>
* lib/tokenize.cpp, lib/tokenize.h: Refactorizations in tokenizer: - getSourceFilePath returns a const reference now - Replaced some simple patterns by string comparisions/direct
function calls - Replaced a few indendation counters by easier code - Replaced one offset variable by token pointer to avoid subsequent
calls to tokAt with the same number
2012-03-17 PKEuS <philipp.kloke@web.de>
* lib/checkmemoryleak.cpp: Fixed crash in checkmemoryleak.cpp
reported by HeisSpiter
2012-03-16 PKEuS <philipp.kloke@web.de>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: Refactorizations
in checkmemoryleak: - Replaced two indendation counters and one variable storage by
symboldatabase functions - Removed zero-element at end of two static arrays - More accurate algorithm for finding a parameter by varid - Replaced some simple tokens by direct string comparision - Made some functions in checkmemoryleak.h private to improve
encapsulation
2012-03-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3666 (False
positive: Uninitialized variable (taking address))
2012-03-16 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, lib/checknullpointer.h,
test/testnullpointer.cpp: Improved nullpointer check: Detect
dereferences by streams (#410) Refactorizations: - Replaced || by %oror% in Token::Match patterns - Replaced some simple patterns by direct comparisions, replaced
Match call with simpleMatch - Increased data encapsulation by making more members private in
CheckNullpointer
2012-03-15 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h: Fixed recently introduced
assertion failure in debug mode
2012-03-15 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Improved
CheckOther::checkIncorrectLogicOperator: - Added a lot of additional pattern - Rewrote error messages to make them more understandable and better
fitting to the situation. (Fixed #3664) - Cleanup in unit tests Improved message of static string
comparision check
2012-03-15 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Fixed #3536 (Preprocessor #if fails to
correctly compare two #defined values)
2012-03-15 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #84 from HeisSpiter/master Fix for bug #3439
2012-03-15 Pierre Schweitzer <pierre@reactos.org>
* lib/checkmemoryleak.h: Set back getErrorMessages() as private
2012-03-14 Pierre Schweitzer <pierre@reactos.org>
* test/testmemleak.cpp: Add two tests for the new memory leak
detection
2012-03-14 Pierre Schweitzer <pierre@reactos.org>
* lib/checkmemoryleak.h: Define error messages for --errorlist for
CheckMemoryLeakNoVar class
2012-03-14 Pierre Schweitzer <pierre@reactos.org>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: Detect and display
an error on leaks due to return of a function that allocates
something is ignored. This fixes #3439
2012-03-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: CheckMemoryLeak: report debug warning
when variable id is 0. Ticket #3527
2012-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Fixed #3569 (false negative: buffer
access out of bounds)
2012-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: CheckBufferOverrun: move condition
before loop
2012-03-12 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Improved
CheckOther::checkIncorrectLogicOperator: - Implemented automatic swapping of conditions and operands - Added several patterns - Added support for conditions outside of if/while
2012-03-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify known
variable value inside conditional block
2012-03-11 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp: Renamed ID uninitialized member variables in
constructors to "uninitMemberVar" to avoid ambiguity (#2715)
Refactorizations: - Replaced another single-token-pattern - Replaced a "continue" with a "break" statement, because its safe
to assume that only one variable with a specific ID can exist in a
scope
2012-03-11 PKEuS <philipp.kloke@web.de>
* lib/checkclass.h, lib/checkother.cpp, lib/checkother.h,
test/testother.cpp: Improved static string comparision check:
Implemented #3214 Fixed false negative on argument count of
fnprintf/snprintf when first variable argument is a string. (#3655)
Uncommented call of virtualDestructorError in getErrorMessages in
checkclass.h Refactorizations: - Rearranged code in checkother.h to make ordering more consistent
and to increase encapsulation of private data - Replaced some single-token-patterns
2012-03-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testcharvar.cpp: charvar: dont write
warning about char type array index when array is small and the full
valid range is accessible with the char type. If there are out of
bounds access then, it is not because the type of the variable.
2012-03-08 PKEuS <philipp.kloke@web.de>
* : Merge pull request #83 from simartin/clang_warn_fix Fixed shadowing warning
2012-03-07 August Sodora <augsod@gmail.com>
* lib/checknullpointer.cpp, lib/templatesimplifier.cpp,
test/testnullpointer.cpp, test/testtokenize.cpp: Fixed #3567 (False
positives in boolean expressions)
2012-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: fixed #3649 (False
Positive: Uninitialized variable using operator assignment)
2012-03-04 larudwer <larudwer@freenet.de>
* gui/resultstree.cpp: on Windows Backslashes in Pathnames must be
double quoted, otherwise some editors like e.c. SciTE are not able
to open the file.
2012-03-03 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Improved bitwise on
boolean check to make it working on more code patterns Refactorizations in checkother.cpp: - Make use of symboldabase instead of: indentation counters, manual
detection of variable declarations - Removed some indexing variables to reduce calls to tokAt and the
numbers given to this function - Use tok->nextArgument() to jump to a specific argument
2012-03-02 PKEuS <philipp.kloke@web.de>
* AUTHORS, gui/cppcheck_de.ts: Updated german translation (nearly
complete) Added my name to AUTHORS (forgotten for a long time)
2012-03-01 PKEuS <philipp.kloke@web.de>
* : Merge pull request #82 from vBm/master Cosmetics regarding AUTHORS
2012-03-01 PKEuS <philipp.kloke@web.de>
* : Merge pull request #81 from vBm/master Updated Serbian localization file. (yet to be translated)
2012-02-29 Stefan Weil <sw@weilnetz.de>
* lib/cppcheck.cpp: Fix compilation with HAVE_RULES=yes Signed-off-by: Stefan Weil <sw@weilnetz.de>
2012-03-01 PKEuS <philipp.kloke@web.de>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkother.cpp, test/testautovariables.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp: Improved
checkautovariables: - Added support for checking a few more code patterns - Simplified code by using more information from the symboldatabase - Moved redundant part of c_str-check to checkstl Two fixes
according to output of pvs studio in testsimplifytokens.cpp
2012-02-29 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp, lib/checkunusedvar.cpp: Refactorized
doAssignement: - Enhanced performance by directly iterating through the token list
instead of index access - Added more allocation functions - Simplified code Replaced avoidable strlen call in
cppcheckexecutor.cpp
2012-02-29 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
better handling of '#if A==1'
2012-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3596 (memory leak
false positive on libedit sources)
2012-02-27 Ettl Martin <ettl.martin78@googlemail.com>
* lib/checkother.cpp: fixed compiler warning (gcc-4.6.1)
2012-02-26 Ettl Martin <ettl.martin@gmx.de>
* lib/checkunusedfunctions.cpp: fixed regression
2012-02-26 PKEuS <philipp.kloke@web.de>
* lib/check.h, lib/checkbufferoverrun.cpp, lib/checkother.cpp,
lib/checkother.h, lib/cppcheck.cpp, lib/symboldatabase.cpp,
lib/tokenize.cpp, lib/tokenize.h, test/testcharvar.cpp,
test/testother.cpp: Added check for invalid pointer casts (#1255)
Detect sign extension problems when variable is a reference (#3637)
Refactorizations: - Tokenizer::getFiles returns a reference instead of a pointer,
because its guaranteed that no nullpointer is returned - Remove signed/unsigned in one step for "%type% signed|unsigned" - Fixed recently introduced compiler warning in symboldatabase.cpp
2012-02-26 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: dmake: move . this fixes compiler
errors when compiling with some old gcc 3.X compiler
2012-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3633 (False
positive: struct array not assigned a value)
2012-02-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improve
'Tokenizer::elseif' code in order to not touch 'else if' inside a
macro parenthesis.
2012-02-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3583 (False
positive Variable X is assigned a value that is never used)
2012-02-25 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, lib/checkstl.h, lib/tokenize.cpp,
lib/tokenize.h, test/teststl.cpp: Improved STL checks: - Added performance checking for .c_str() for return values and
function parameters (#1079) - Added more containers (basic_string, C++11 containers) and more
functions to checking (.at, .resize, .reserve, ...) - Make use of symboldatabase in missingComparision check
2012-02-24 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.h, lib/checkclass.cpp, lib/cppcheck.cpp,
lib/cppcheck.h, lib/symboldatabase.cpp, lib/symboldatabase.h,
lib/templatesimplifier.h, lib/tokenize.h,
test/testsymboldatabase.cpp, test/testunusedprivfunc.cpp: Improved
unused private function check: - Fixed #3628 - Added support for friend Improved symbol database: - friend scopes are now set - Added findScopeByName function Refactorizations: - Removed some unnecessary "virtual" keywords - Removed unnecessary _filename member variable, pass it as argument
instead - Made CppCheck::replaceAll static, since it is independant from a
specific CppCheck instance, Pass string to be modified by reference
2012-02-19 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/filelister.cpp, cli/filelister.h, cli/pathmatch.cpp,
cli/pathmatch.h, cli/threadexecutor.cpp, cli/threadexecutor.h,
lib/cppcheck.cpp, lib/cppcheck.h, test/testfilelister.cpp,
test/testpathmatch.cpp, test/testsuppressions.cpp,
test/testthreadexecutor.cpp: Refactored STL container usage in CLI.
Pathmatcher masks are converted to lowercase only once when instance
is created
2012-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3608
(unreadVariable when variable used in inline assembly)
2012-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3603 (False
Positive: Variable is assigned a value that is never used)
2012-02-18 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp, lib/check.h, lib/check64bit.h,
lib/checkassignif.h, lib/checkautovariables.h, lib/checkboost.h,
lib/checkbufferoverrun.h, lib/checkclass.h,
lib/checkexceptionsafety.h, lib/checkinternal.h,
lib/checkmemoryleak.h, lib/checknonreentrantfunctions.h,
lib/checknullpointer.h, lib/checkobsoletefunctions.h,
lib/checkother.h, lib/checkpostfixoperator.h, lib/checkstl.h,
lib/checkuninitvar.h, lib/checkunusedfunctions.h,
lib/checkunusedvar.h, lib/cppcheck.h, lib/timer.cpp, lib/timer.h,
lib/tokenize.cpp, lib/tokenize.h: Some refactorizations
2012-02-18 Zachary Blair <zack_blair@hotmail.com>
* test/testother.cpp: Ticket #3598 - Added a missing ASSERT_EQUALS()
statement to the end of checkDoubleFree()
2012-02-18 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #3616
(segmentation fault of cppcheck).
2012-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testuninitvar.cpp:
Tokenizer::simplifyVarDecl: Don't simplify inside parenhteses
2012-02-18 PKEuS <philipp.kloke@web.de>
* cli/pathmatch.cpp, cli/pathmatch.h, lib/cppcheck.cpp,
lib/cppcheck.h, lib/errorlogger.cpp, lib/settings.h,
lib/suppressions.cpp, lib/suppressions.h, test/redirect.h: Some
refactorizations
2012-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::simplifyCasts:
don't simplify 'f((double)(v1)*v2)' to 'f(*v2)'
2012-02-18 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.h, cli/cppcheckexecutor.cpp,
lib/errorlogger.cpp, lib/path.cpp, test/testutils.h: Some
refactorizations
2012-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/templatesimplifier.cpp, test/testsimplifytokens.cpp: Fixed
#3529 (False 'Boolean result is used in bitwise operation' in a
template)
2012-02-17 Edoardo Prezioso <edo88@email.it>
* lib/settings.cpp: Fixed warning about order of variable
initialisations in Settings constructor.
2012-02-17 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #3604
(cppcheck(1.53) crash).
2012-02-17 Edoardo Prezioso <edo88@email.it>
* Makefile, tools/dmake.cpp: Fixed typo in make file generation.
2012-02-17 PKEuS <philipp.kloke@web.de>
* lib/mathlib.cpp, lib/mathlib.h, lib/tokenize.cpp,
test/testtokenize.cpp: Refactorizations in MathLib. Fixed recently
introduced bug on floating point numbers with multiple preceding
zeros (for example 004.123)
2012-02-17 PKEuS <philipp.kloke@web.de>
* test/testclass.cpp: Fixed compiler error
2012-02-17 PKEuS <philipp.kloke@web.de>
* lib/cppcheck.cpp, lib/mathlib.cpp, lib/settings.cpp,
lib/settings.h, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: - Improved support for numbers in code: -- Use MathLib::toLongNumber
for conversion in tokenizer (Fix #3610) -- Handle octal numbers in
tokenizer - Refactorizations in MathLib::toLongNumber and Settings
2012-02-16 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #3598 (false
positive: (error) Memory pointed to by 'a' is freed twice.)
2012-02-15 Ettl Martin <ettl.martin@gmx.de>
* gui/resultstree.h: gui: fixed wrong spelled words in comments.
2012-02-15 Ettl Martin <ettl.martin@gmx.de>
* lib/tokenize.cpp: fixed wrong spelled word.
2012-02-15 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: lib: fix for my previous commit. If there are no
dependencies then don't insert dependencies
2012-02-15 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/cppcheck.h: lib: allow that file
dependencies are taken from Cppcheck after a check
2012-02-14 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/mainwindow.cpp,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/threadhandler.cpp, gui/threadhandler.h,
gui/threadresult.cpp: GUI: Recheck changed files. Ticket: #816
2012-02-13 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3591
2012-02-13 PKEuS <philipp.kloke@web.de>
* lib/token.cpp: Fixed compiler error
2012-02-13 PKEuS <philipp.kloke@web.de>
* lib/token.cpp, lib/tokenize.cpp, test/testsimplifytokens.cpp:
Improved Tokens and Tokenizer: - Better handling of deleteThis() as last element of token list - Code simplified
2012-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3584 (2 internal
errors : Token::Match called with varid 0)
2012-02-12 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Makefile, tools/dmake.cpp: dmake: keep some dummy debug code in
release Makefiles to make the debug/release more similar
2012-02-12 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* gui/about.ui: GUI: updated copyright text in about dialog
2012-02-12 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* gui/cppcheck_en.ts, gui/gui.pro, gui/translationhandler.cpp: GUI:
Removed translations for english. There is no reason to translate a
string from english to english.
2012-02-11 Daniel Marjamäki <danielm77@spray.se>
* htdocs/index.php: htdocs: updated download link on main page
2012-02-11 Erik Lax <erik@datahack.se>
* AUTHORS, lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed
#3518 (False negative: Possible null pointer dereference (in the
same condition))
2012-02-11 Daniel Marjamäki <danielm77@spray.se>
* win_installer/build1.bat, win_installer/build2.bat,
win_installer/build3.bat: windows installer: removed build1.bat,
build2.bat and build3.bat. The cppcheck.wixproj should be used
instead.
2012-02-11 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, lib/symboldatabase.cpp,
lib/symboldatabase.h, test/testnullpointer.cpp,
test/testobsoletefunctions.cpp: - Improved nullpointer check: Fixed #1171 - Improved accuracy of function analysis in symboldatabase - Code cleanups
2012-02-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Makefile: Makefile: Set debug mode
2012-02-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Makefile: 1.53: Updated Makefile
2012-02-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Changelog: 1.53: Updated changelog
2012-02-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: 1.53: Updated
version info
2012-02-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/executionpath.cpp: fixed cppcheck inconclusive warning,
possible null pointer dereference otherwise condition is redundant
2012-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, man/cppcheck.1.xml: Fix #3578 (--std help
text in cli is confusing)
http://sourceforge.net/apps/trac/cppcheck/ticket/3578
2012-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3587 (Wrong
tokenizer simplification - variable assigned by operator>>)
2012-02-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Another fix for false positives when it's known that
inner conditions are true
2012-02-06 Daniel Marjamäki <danielm77@spray.se>
* test/testuninitvar.cpp: Revert "Uninit var: Added TODO test case" The test case was not valid because the variable assignment is
redundant and is therefore removed by the tokenizer. This reverts commit 548a43fc49496af9a07a0053a8117c472c641b0a.
2012-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives when goto is simplified and inner
condition is known to be true/false
2012-02-06 Daniel Marjamäki <danielm77@spray.se>
* test/testuninitvar.cpp: Uninit var: Added TODO test case
2012-02-05 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Fixed #3577 (Preprocessor: Defines given
on command line are not used in the code)
2012-02-05 Daniel Marjamaki <danielm77@spray.se>
* cli/cmdlineparser.cpp: Fixed #3351 (--includes-file is not working
as expected)
2012-02-04 Zachary Blair <zack_blair@hotmail.com>
* test/testother.cpp: Ticket #3581 - added missing newlines to the
test code
2012-02-04 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, test/testother.cpp: FIxed #3581 (double free
false positive when exception rethrown)
2012-02-04 Daniel Marjamaki <danielm77@spray.se>
* cli/cmdlineparser.cpp: fixed handling of -i in windows
2012-02-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Add --std to the man file
2012-02-02 PKEuS <philipp.kloke@web.de>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkother.cpp, lib/checkother.h, lib/symboldatabase.h,
test/testexceptionsafety.cpp, test/testother.cpp: - Moved checkCatchExceptionByValue from CheckOther to
CheckExceptionSafety - Fixed false positive: throw outerCatchVar; in inner catch is now
correctly handled - Added eTry and eCatch to Scope::isLocal -> Scopes inside catch are
now detected by symbol database
2012-02-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testbufferoverrun.cpp,
test/testtokenize.cpp: Fixed #3538 (false positive caused by bad
tokenizer simplification)
2012-02-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3570
(False Postive for 'nullPointer' check)
2012-01-31 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #3572
(segmentation fault).
2012-01-31 Edoardo Prezioso <edo88@email.it>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: Fixed ticket
#3543 (segmentation fault of cppcheck).
2012-01-31 Edoardo Prezioso <edo88@email.it>
* test/testbufferoverrun.cpp: Run astyle.
2012-01-31 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3571
(segmentation fault of cppcheck while scanning gcc-testsuite).
2012-01-31 Edoardo Prezioso <edo88@email.it>
* test/testsimplifytokens.cpp: Added test case from #3533
(segmentation fault of cppcheck).
2012-01-31 Ettl Martin <ettl.martin@gmx.de>
* test/testbufferoverrun.cpp: fixed wrong testcase
2012-01-31 Ettl Martin <ettl.martin@gmx.de>
* test/testbufferoverrun.cpp: ticket 3569: added further testcases
2012-01-31 Ettl Martin <ettl.martin@gmx.de>
* test/testbufferoverrun.cpp: added tests for ticket #3569
2012-01-31 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/executionpath.cpp,
test/testnullpointer.cpp: Fixes for #3480 and #3568.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3558
(Tokenizer: improve simplifyVarDecl to take count of undefined size
VLA's).
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Related to ticket #3560 (conditional pointer
user): remove also dead code in the lower scope if the actual scope
isn't special.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef: some optimizations
on new code.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': finished.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef: redundant assignment
to 'offset'.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': work in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': in progress..
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef:
'tokAt(offset)=>tokOffset': begin conversion.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyTypedef: to be sure there are
no problems, promote to 'int' the variable 'offset'.
2012-01-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer:: Use 'link' instead of 'parens'
variable.
2012-01-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testtokenize.cpp: Revert "really fix #3527 (Internal error.
Token::Match called with varid 0. Please report this to Cppcheck
developers)" This reverts commit a37031944e5d26f169e2026aec182b5aae7bc88d. I don't want this hard coding of macro names. Feel free to come with
a more generic solution if you want.
2012-01-29 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #78 from lioncash/master Updated the Japanese translation file.
2012-01-28 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testtokenize.cpp: really fix #3527 (Internal error.
Token::Match called with varid 0. Please report this to Cppcheck
developers)
2012-01-28 Edoardo Prezioso <edo88@email.it>
* lib/checkmemoryleak.cpp: Improve 'CheckMemoryLeakInClass::check'.
2012-01-28 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: it's possible to set null lower bound
for eraseDeadCode when used inside simplifyFlowControl. Remove now
unused 'beginindent' and moved 'goto' simplification together with
'return' group.
2012-01-28 lioncash <mathew1900@hotmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: Update the Japanese language
translation file. When I updated it through QT, it added some missing things to the
other translation files, I hope that doesn't break anything :x So far from what I've tested, everything works fine.
2012-01-28 Edoardo Prezioso <edo88@email.it>
* lib/checknullpointer.cpp, lib/checkother.cpp, lib/tokenize.cpp:
Fixed: (warning) Found simple pattern inside Token::Match() call.
2012-01-28 PKEuS <philipp.kloke@web.de>
* lib/check.h, lib/checkautovariables.cpp, lib/checkother.cpp,
lib/checkother.h, lib/checkunusedvar.cpp, lib/checkunusedvar.h,
test/testdivision.cpp: - checkUnsignedDivision checks for variable/variable (inconclusive).
General bailout for if-statements. - Make use of recently implemented symboldatabase functions
(catch-support, reference-support) - Other refactorizations
2012-01-28 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkmemoryleak.cpp: Fixed #3527 (Internal error. Token::Match
called with varid 0. Please report this to Cppcheck developers)
2012-01-28 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
fixed false positive when '?' is used in return statement. Ticket:
#3560
2012-01-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/tokenize.cpp,
test/testsymboldatabase.cpp: fix #3561 (SymbolDatabase: throw foo;
creates a variable with type throw)
2012-01-27 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: Stylish change to condition.
2012-01-27 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Temporary
workaround to ticket #3459 (Simplify goto before loop) : don't
simplify code which contains the label pointed by 'goto'.
2012-01-27 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: Add 'BOOST_FOREACH' pattern where it
was missing.
2012-01-27 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: extract realloc simplification and simplify also when
each argument is done by more than one token. Restyling of a
comment in tokenize.h.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: simplifyCondition:
handle also '( a || true || b)' -> '(true)' and '( a && false && b)'
-> '(false)'. Clarify a comment about previous commit.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::removeRedundantCondition: refactoring
due to various reasons. 1) Remove the dead code with 'eraseDeadCode', not with 'eraseTokens'
because of the possible presence of labels. 2) It's impossible that in tokenizer there is pattern like 'if
(true|false) {code;} else if (cond) {code_cond;}' because the
function 'Tokenizer::elseif' adds '{' between 'else' and 'if', hence
a code path is redundant, so it's removed from code.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* test/testtokenize.cpp: TestTokenizer: moved test to proper place.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyQuestionMark: use links
instead of indentation level number.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed ticket #3557 (Tokenizer: simplification of '[]' doesn't work
well): extract undefined size array simplification and handle
multiple arrays and combos between pointers and arrays, don't handle
the definitions as arguments of function.
2012-01-26 PKEuS <philipp.kloke@web.de>
* lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp: Added support for references to
symboldatabase
2012-01-26 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checkexceptionsafety.cpp,
lib/checknullpointer.cpp, lib/checkuninitvar.cpp,
lib/executionpath.cpp, lib/executionpath.h,
test/testnullpointer.cpp: - initialising std::string with 0 in initialisation list is
partially detected in nullpointer check (#3520) - executionpath checking makes use of symboldatabase - CheckExceptionSafety::checkRethrowCopy makes use of symboldatabase
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improve
simplifyReturnStrncat when each argument is not composed by one
token.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/checknullpointer.cpp: Fixed gcc warning: variable which
shadows a member of 'this'.
2012-01-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h: Change 'simplifyReturn' to
'simplifyReturnStrncat' because it's not clear what this function
does.
2012-01-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.h, test/testsymboldatabase.cpp: symbol
database: add simple try/catch tests
2012-01-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: symbol database: add
preliminary support for throw/catch block scopes. Just like the
rest of cppcheck, ... is not handled properly for variables. Deep
namespaces are also not handled properly yet. This is not an issue
because this new capability is not used by any checks so it should
be harmless.
2012-01-25 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, lib/checknullpointer.h,
lib/checkuninitvar.cpp, test/testnullpointer.cpp: Improved
nullpointer check: - More accurate checking for dereferences and non-dereferences - improved checking for nullpointer dereferences after return
statement - Supports pointer dereferences by std::string - Code optimization/refactorization
2012-01-24 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
ticket #3550 (false positive: (error) Memory pointed to by 'pxpm' is
freed twice)
2012-01-24 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: symbol database: add missing variable flag
debug printing
2012-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #3323
(#undef needs different handling)
2012-01-23 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed ticket #3528 (Tokenizer: improve
simplifyFunctionParameters to take count of square brackets)
2012-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3509 (FP:
Variable 'itemList' is not assigned a value, when << operator is
used)
2012-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3502 (segmentation
fault of cppcheck (struct{x y:};))
2012-01-22 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: symbol database: add missing endl in debug
dump
2012-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: Fixed #3508
(Symbol database: mixing up constructors and destructors)
2012-01-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* : Remove binary file from samples
2012-01-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* samples/memleak/bad.c, samples/memleak/good.c,
samples/resourceLeak/bad.c, samples/resourceLeak/good.c: Fixing
#3515 (Add samples/id/good|bad.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/3515
2012-01-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* runastyle, samples/arrayIndexOutOfBounds/bad.c,
samples/arrayIndexOutOfBounds/good.c, samples/autoVariables/bad.c,
samples/autoVariables/good.c,
samples/bufferAccessOutOfBounds/bad.c,
samples/bufferAccessOutOfBounds/good.c, samples/erase/bad.cpp,
samples/erase/good.cpp, samples/outOfBounds/bad.c,
samples/outOfBounds/good.c, samples/syntaxError/bad.c,
samples/syntaxError/good.c: Fixing #3515 (Add
samples/id/good|bad.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/3515
2012-01-22 Edoardo Prezioso <edo88@email.it>
* lib/token.cpp: Token::replace: Little style change.
2012-01-21 Edoardo Prezioso <edo88@email.it>
* lib/token.cpp: Token::move|replace: update progressValues
correctly.
2012-01-21 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3497 (False
positive: Uninitialized variable)
2012-01-21 PKEuS <philipp.kloke@web.de>
* lib/checkinternal.cpp, lib/checknullpointer.cpp,
lib/checkother.cpp, lib/settings.cpp, lib/templatesimplifier.cpp,
lib/tokenize.cpp: - Solved FIXME: Made detection of code that is no
pointer-dereference more robust, uncommented code
(checknullpointer.cpp) - Removed more indendation level counters - Make use of symbol database more often - Other refactorizations
2012-01-21 PKEuS <philipp.kloke@web.de>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
test/testexceptionsafety.cpp: Refactorized check for dead pointers
after throw: - Less bailouts for inconclusive checking - Support for static variables - Changed severity to warning (error is not certain)
2012-01-21 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer::copyTokens: add
optional parameter which preserve the line number differences
between tokens to be copied.
2012-01-21 Ahti Legonkov <ahti.legonkov@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #3531 (When
macro definition contains parenthesis, the #defined symbol does not
get #defined.)
2012-01-21 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h, lib/checkclass.cpp,
lib/checkother.cpp, lib/checkunusedvar.cpp, lib/symboldatabase.cpp,
lib/templatesimplifier.cpp, test/testcppcheck.cpp,
test/testsuite.h, test/testsymboldatabase.cpp: - Correctly set Scope::function variable in symboldatabase - Refactorizations - Fixed some cppcheck warnings
2012-01-21 Edoardo Prezioso <edo88@email.it>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: Remove some
redundant 'errout.str("")' in some checks because it's already done
inside tok call.
2012-01-19 Zachary Blair <zack_blair@hotmail.com>
* : commit b89adff9fd264e23dc30f59d7b53a3b876165e2d Author: Zachary
Blair <zack_blair@hotmail.com> Date: Sat Jan 14 16:19:34 2012
-0800
2012-01-19 seb777 <sebastien.debrard@gmail.com>
* lib/preprocessor.cpp: It is a good practice to clear container
after deleted all the items
2012-01-18 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #3490 (False
positive: sscanf with %c)
2012-01-18 Stefan Weil <sw@weilnetz.de>
* lib/checkother.cpp, test/testcharvar.cpp: Fixed #3519 (Wrong line
number in warning charBitOpError)
2012-01-18 seb777 <sebastien.debrard@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix ticket #3530 (Add
some windows data types to tokenizer)
2012-01-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* runastyle, samples/AssignmentAddressToInteger/bad.c,
samples/AssignmentAddressToInteger/good.c: Start fixing #3515 (Add
samples/id/good|bad.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/3515
2012-01-17 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: various improvements to code.
2012-01-16 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Reverted some changes in commits
4b05c3e19f58f5b53e4e306e7fc1d8aae37a6e8f and
4b08b13845609c0ac17ecd7fd20268bb4ea0f490.
2012-01-15 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyIfAddBraces: improve
comments; handle independently 'a = { .. };'; reduce use of
'Token::(simple)Match' functions.
2012-01-15 Edoardo Prezioso <edo88@email.it>
* test/testtokenize.cpp: TestTokenizer: Remove redundant ';' in
'inlineasm' testcases.
2012-01-15 Edoardo Prezioso <edo88@email.it>
* test/testtokenize.cpp: Run astyle.
2012-01-15 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: reduce usage of Token::Match in some
cases.
2012-01-15 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: report syntaxError if there's
nothing after 'if|for|while ()' and if there's nothing inside round
brackets; TestTokenizer: change test cases accordingly;
TestSimplifyTokens: ditto.
2012-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/templatesimplifier.cpp, test/testtokenize.cpp: Fixed #3496
(false positive: syntax error)
2012-01-15 PKEuS <philipp.kloke@web.de>
* lib/checkother.h, test/testother.cpp: Fixed #3517 and #3513
2012-01-15 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, lib/checknullpointer.cpp, lib/checkother.cpp,
lib/checkstl.cpp, lib/checkuninitvar.cpp: Removed more indendation
counters.
2012-01-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/templatesimplifier.cpp: Fixed segfault in
TestTokenizer::cpp0xtemplate3
2012-01-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/templatesimplifier.cpp: TemplateSimplifier : Fixed bug in
recent commit.
2012-01-15 Daniel Marjamäki <danielm77@spray.se>
* gui/selectfilesdialog.cpp: GUI: Refactorings. Changed names. Added
comments.
2012-01-15 Daniel Marjamäki <danielm77@spray.se>
* gui/selectfilesdialog.cpp: GUI: In the selectfiles dialog use
partial selection if some children are checked and others are not
2012-01-14 Edoardo Prezioso <edo88@email.it>
* lib/checkstl.cpp: Code style: Use 'linkAt' instead of
'tokAt(..)->link'.
2012-01-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fix #3516 (inaccurate
warning: "An unsigned variable will always be positive" (unsigned n;
if (n >=0);)) http://sourceforge.net/apps/trac/cppcheck/ticket/3516
2012-01-14 Edoardo Prezioso <edo88@email.it>
* lib/templatesimplifier.cpp, test/testtokenize.cpp: Fixed ticket
#3512 (segmentation fault of cppcheck ( 1 *p = const))
2012-01-13 Edoardo Prezioso <edo88@email.it>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed ticket #3486
(segmentation fault of cppcheck)
2012-01-13 Daniel Marjamäki <danielm77@spray.se>
* lib/templatesimplifier.cpp, test/testtokenize.cpp: Fixed #3504
(segmentation fault of cppcheck)
2012-01-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3497 (False
positive: Uninitialized variable)
2012-01-13 Daniel Marjamäki <danielm77@spray.se>
* gui/selectfilesdialog.ui: GUI: SelectFilesDialog: increased the
height somewhat
2012-01-13 Daniel Marjamäki <danielm77@spray.se>
* gui/selectfilesdialog.cpp: GUI: SelectFilesDialog: Changed text
for OK button to 'Check'
2012-01-13 Daniel Marjamäki <danielm77@spray.se>
* gui/selectfilesdialog.cpp: GUI: Fixed path match problem that
caused extra directories to be selected/unselected
2012-01-12 seb777 <sebastien.debrard@gmail.com>
* lib/checknonreentrantfunctions.h, lib/checkobsoletefunctions.h,
test/testnonreentrantfunctions.cpp: Fix ticket #3483 (POSIX.1-2008 -
obsolete functions) From POSIX.1-2008 specification (see
http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap01.html#tag_22_01_01_04):- remove obsolete functions ctime, asctime, rand, tmpnam (non
reentrant functions check) - add obsolete base functions (obsolete functions check): - rand_r - tmpnam, tmpnam_r - utime - asctime, asctime_r - ctime, ctime_r - update unit tests (non reentrant function) - update messages (cosmetic) (obsolete functions check)
2012-01-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, gui/selectfilesdialog.cpp,
test/redirect.h, test/testcmdlineparser.cpp: Fix #3510 (Improve
error message for --suppressions-list)
http://sourceforge.net/apps/trac/cppcheck/ticket/3510 Print
additional info to error message if we suspect that multiple files
were given.
2012-01-12 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* gui/mainwindow.cpp, gui/selectfilesdialog.cpp,
gui/selectfilesdialog.h, gui/selectfilesdialog.ui: GUI: Use
SelectFilesDialog result if OK button is pressed
2012-01-11 Daniel Marjamäki <danielm77@spray.se>
* gui/gui.pro, gui/selectfilesdialog.cpp, gui/selectfilesdialog.h,
gui/selectfilesdialog.ui: GUI: Added ui file for the
selectfilesdialog
2012-01-11 Daniel Marjamaki <danielm77@spray.se>
* gui/mainwindow.cpp, gui/selectfilesdialog.cpp,
gui/selectfilesdialog.h: GUI: give the SelectFilesDialog a parent
widget
2012-01-11 Daniel Marjamaki <danielm77@spray.se>
* gui/selectfilesdialog.cpp: GUI: SelectFilesDialog - tweaked
behaviour when unchecking a folder and checking a subfolder
2012-01-11 Daniel Marjamaki <danielm77@spray.se>
* gui/selectfilesdialog.cpp: GUI: SelectFilesDialog - set root path
to '/'. More files are selectable.
2012-01-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: add some more windows types
2012-01-10 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #75 from kimmov/guifixes GUI fixes + VS 2008 project files update
2012-01-10 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Add include paths as relative to
project file. When adding a new include path check if the path is relative path to
the project file's path. If path is relative then remove the begin
of the path making it a relative path in project file. Ticket: #3019 (GUI: Add project include paths as relative paths)
2012-01-10 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/mainwindow.cpp: GUI: Remeber last path where
project file was opened from. It is handy to remember the last location of the opened project
file. Currently the Open Project -dialog was always opened to
location of the executable file. Which is never the correct place.
But last opened project file location might at least be near the
location user wants to open next. Ticket: #3493 (GUI: remember last path in Open Project File)
2012-01-10 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Fix crash opening project file from
command line. The GUI crashed if the project file was tried to open from the
command line. The project file loading was run before the MRU menu
was created but tried to add a new item to it.
2012-01-10 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/testrunner.vcproj: Update VS2008 project
files.
2012-01-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Move rest of the
template simplification into TemplateSimplifier
simplifyCalculations() was temporarily moved into TemplateSimplifier
also, it should be moved to a better place.
2012-01-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp: Catch InternalError by
reference instead of creating a copy of it.
2012-01-09 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3485
(segmentation fault of cppcheck ( {a:1;}; ))
2012-01-09 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3482
(segmentation fault of cppcheck ( switch(){case} ))
2012-01-09 Edoardo Prezioso <edo88@email.it>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed ticket #3481
(segmentation fault of cppcheck)
2012-01-09 Edoardo Prezioso <edo88@email.it>
* lib/executionpath.cpp, test/testuninitvar.cpp: Fixed ticket #3480
(segmentation fault of cppcheck)
2012-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, lib/checkbufferoverrun.cpp, lib/cppcheck.cpp,
lib/errorlogger.cpp, lib/errorlogger.h, lib/mathlib.cpp,
lib/mathlib.h, lib/token.cpp, lib/tokenize.cpp,
test/testmathlib.cpp, test/testtoken.cpp: Add InternalError and
change MathLib to throw it in case of an error. - Previously MathLib errors did not provide a filename, but after
this change at least source file name should be printed and if token
is provided, also line number should be printed. - Change also Token to use InternalError - Modify Cppcheck-class to catch InternalError instead of Token - Run dmake to update Makefile
2012-01-08 PKEuS <philipp.kloke@web.de>
* lib/checkautovariables.cpp, test/testautovariables.cpp:
Refactorized checkautovariables.cpp. Removed indendation counters.
Fixed #3478
2012-01-08 Kamil Dudka <kdudka@redhat.com>
* lib/checkclass.cpp, test/testclass.cpp: Class: Don't warn about
uninitialized union members because they are often combined with a
second variable
2012-01-08 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #3472 (false
positive: (error) Passing value 0 to log() leads to undefined
result)
2012-01-08 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/path.cpp, test/testpath.cpp: Refactoring. Assume that .C files
contain C code on case insensitive filesystems.
2012-01-08 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3473 (False
positive: variable is assigned value that is never used (used in
return statement))
2012-01-08 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3467 (False
positive: Variable is not assigned a value (new))
2012-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Refactoring: Extract sizeof simplifying from
template simplifying
2012-01-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/path.cpp, test/testpath.cpp: In unix .C is considered C++.
Changed isC() and isCPP() to work like they were before refactoring.
2012-01-07 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* test/testsymboldatabase.cpp: Symbol database: Fixed comments
2012-01-07 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: Fixed #3320
(False positive: Member variable is not initialized in the
constructor (namespaces).)
2012-01-07 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp: Symbol database: dump if --debug and --verbose
is given
2012-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: astyle fix
2012-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/path.cpp, lib/path.h, lib/tokenize.cpp, lib/tokenize.h,
test/testpath.cpp: Refactor: Move file extension checks from
Tokenizer to Path class. This has also functional change as now also
file.JAVA is considered a Java file.
2012-01-06 PKEuS <philipp.kloke@web.de>
* cli/filelister.cpp, lib/path.cpp: Fixed missing include
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* cli/filelister.cpp, cli/filelister.h, lib/cppcheck.cpp,
lib/path.cpp, lib/path.h, lib/tokenize.h: Refactoring: Copy
FileLister::acceptFile to Path::acceptFile. Use
Path::getFilenameExtension and Path::acceptFile in Tokenizer. Use
Path::acceptFile in CppCheck::processFile instead of hardcoded
handling.
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/cppcheck.cpp: Refactoring: Disable debug warnings when file
extension is neither .c nor .cpp. To somewhat prevent that people
fix java/c# specific debug warnings.
2012-01-06 Edoardo Prezioso <edo88@email.it>
* lib/checkmemoryleak.cpp: Fixed ticket #2405 (debug messages
provide incorrect file:line information)
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* test/testmemleak.cpp: Fixed #3015 (xml-style error output when
running testrunner on particular tests)
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* test/testtoken.cpp: TestRunner: Make sure no xml output is
reported when running TestToken (#3015)
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Refactoring: Made
Preprocessor::simplifyCondition nonstatic
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.h, test/testpreprocessor.cpp: Refactoring: Made
Preprocessor::match_cfg_def nonstatic
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.cpp, lib/preprocessor.h: Refactoring: Removed
redundant settings parameter for Preprocessor::removeComments
2012-01-06 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/cppcheck.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
test/testother.cpp, test/testpreprocessor.cpp: Refactoring: Made
Preprocessor::getcode nonstatic
2012-01-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Move template code
into templatesimplifier: simplifyTemplatesExpandTemplate()
2012-01-05 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: cleanup
2012-01-05 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/symboldatabase.cpp: astyle formatting
2012-01-05 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/symboldatabase.cpp, lib/symboldatabase.h, lib/tokenize.cpp:
Use symbol database dump code written by Robert Reif. The symbol
database is dumped if --debug is used.
2012-01-05 Jussi Lehtola <jussilehtola@fedoraproject.org>
* test/testfilelister.cpp: fix gcc-4.7 compiler error (missing
include)
2012-01-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyGoto: process also derived class/structs.
2012-01-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Refactoring: replace forgotten code with
function call 'simplifyRedundantConsecutiveBraces'.
2012-01-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improve Tokenizer:
improve 'simplifyDoublePlusAndDoubleMinus' when there are negative
numbers.
2012-01-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Extract
various functions inside the Tokenizer class and fix tokenization of
'return __LINE__ ;'.
2012-01-04 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed false positives
related to %*[] in scanf format string (#3468)
2012-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Move template code
into templatesimplifier: simplifyTemplatesGetTemplateNamePosition()
2012-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Move template code
into templatesimplifier:
simplifyTemplatesUseDefaultArgumentValues(),
simplifyTemplatesInstantiateMatch()
2012-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/threadexecutor.cpp, cli/threadexecutor.h: Fix warnings with
-Wconversion in gcc in threadexecutor
2012-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/threadexecutor.cpp, cli/threadexecutor.h: Refactoring: Replace
'1', '2', '3' magic characters with enum names:
REPORT_OUT='1',REPORT_ERROR='2', CHILD_END='3' in ThreadExecutor.
2012-01-03 Edoardo Prezioso <edo88@email.it>
* test/testsuite.cpp, test/testsuite.h: testrunner: assert-like
functions should take linenr parameter as a 'unsigned int' (maybe in
the future these should be converted to 'size_t'?); fix discrepancy
between 'todoAssertEquals' and 'AssertEquals' so that the parameters
'expected, wanted, actual and current' are 'long long' types.
2012-01-03 Edoardo Prezioso <edo88@email.it>
* tools/dmake.cpp: tools/dmake.cpp: nitpicky reorder of commented
warnings in alphabet order with uncommented ones.
2012-01-03 PKEuS <philipp.kloke@web.de>
* lib/tokenize.cpp: Use std::stack instead of std::vector
Tokenizer::createTokens. Removed #pragma warning(disable: 4503)
2012-01-02 Edoardo Prezioso <edo88@email.it>
* lib/checkstl.cpp, test/teststl.cpp: Fixed ticket #3447 (Improve
void CheckStl::if_find())
2012-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Move template code
into templatesimplifier: simplifyTemplatesGetTemplateDeclarations(),
simplifyTemplatesGetTemplateInstantiations()
2012-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Move template code
into templatesimplifier: simplifyTemplatesExpandSpecialized()
2012-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp: Refactoring: Move template code into
templatesimplifier: removeTemplates()
2012-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp: Refactoring: Move code into templatesimplifier:
templateParameters()
2012-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/templatesimplifier.cpp, lib/templatesimplifier.h,
lib/tokenize.cpp: Refactoring: Move code into templatesimplifier
2012-01-02 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Reverted 9aa8a496. I
don't know why I made this fix.
2012-01-02 Edoardo Prezioso <edo88@email.it>
* test/testtokenize.cpp: Remove redundant testcase I forgot to
remove in previous commit.
2012-01-02 Edoardo Prezioso <edo88@email.it>
* lib/symboldatabase.cpp, lib/tokenize.cpp: Revert 'using' changes
as it was until some time ago.
2012-01-02 Daniel Marjamaki <danielm77@spray.se>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
test/testrunner.vcxproj, test/testrunner.vcxproj.filters: Visual
Studio: Generated new msvc2010 project files with qmake
2012-01-02 PKEuS <philipp.kloke@web.de>
* lib/preprocessor.cpp: Refactorizations in preprocessor.cpp
2012-01-02 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed #3461: Support for
%m* on scanf-functions
2012-01-02 Daniel Marjamäki <danielm77@spray.se>
* lib/standards.h: Fixed #3445 (Problems with lib/standards.h)
2012-01-02 PKEuS <philipp.kloke@web.de>
* lib/tokenize.cpp: Fixed compiler errors with GCC
2012-01-02 PKEuS <philipp.kloke@web.de>
* lib/preprocessor.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testpreprocessor.cpp: - Refactorizations in preprocessor.cpp and tokenizer.cpp - Bugfix: tok->stringify(tok) returns now "". - Removed most of the inline-asm handling in preprocessor; improved
the remaining handling of #asm/#endasm: Simplified to "asm(...);"
statement
2012-01-02 PKEuS <philipp.kloke@web.de>
* : commit 325b01b7370d89d23a2d2f23c24dd1da494d816e Author: Daniel
Marjamäki <danielm77@spray.se> Date: Mon Jan 2 12:49:15 2012
+0100
2012-01-02 Philipp K <philipp.kloke@web.de>
* lib/preprocessor.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testpreprocessor.cpp: - Refactorizations in preprocessor.cpp and tokenizer.cpp - Bugfix: tok->stringify(tok) returns now "". - Removed most of the inline-asm handling in preprocessor; improved
the remaining handling of #asm/#endasm: Simplified to "asm(...);"
statement
2012-01-02 PKEuS <philipp.kloke@web.de>
* lib/preprocessor.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testpreprocessor.cpp: Revert "- Refactorizations in
preprocessor.cpp and tokenizer.cpp" Committing with subversion seems to have issues. Sorry for that.
I'll the changes again, now using git. This reverts commit 69498de6cae9f5fbc8574bce8b91d2b9a02c3e9c.
2012-01-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3463
(Uninitialized variable variable pointer)
2012-01-02 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/settings.cpp, lib/settings.h, test/testcmdlineparser.cpp: Revert
"Fixed #3450 (CLI --report-progress is currently useless)" This reverts commit e769fe629427bf506252540b0df5f5049f0daac5.
2012-01-02 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/settings.cpp, lib/settings.h, test/testcmdlineparser.cpp: Fixed
#3450 (CLI --report-progress is currently useless)
2012-01-02 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: C# simplification: remove 'using var;' code from
the tokenizer.
2012-01-02 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Handle also C#
multidimensional arrays with no specified dimension.
2012-01-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile: Refactoring: Rerun dmake to update makefile, related to
previous commit.
2012-01-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cbp, lib/lib.pri, lib/templatesimplifier.cpp,
lib/templatesimplifier.h, lib/tokenize.cpp, lib/tokenize.h:
Refactoring: Add new file lib/templatesimplifier.cpp The plan is to
move template simplification into this new class to take some lines
from 10 000 line tokenizer.
2012-01-01 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/check64bit.cpp, lib/tokenize.cpp: Refactoring various issues in
cmdlineparser, cppcheckexecutor, check64bit and tokenize.
2012-01-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h,
cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/filelister.cpp, cli/filelister.h, cli/main.cpp,
cli/pathmatch.cpp, cli/pathmatch.h, cli/threadexecutor.cpp,
cli/threadexecutor.h, gui/aboutdialog.cpp, gui/aboutdialog.h,
gui/application.cpp, gui/application.h, gui/applicationdialog.cpp,
gui/applicationdialog.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/checkstatistics.cpp,
gui/checkstatistics.h, gui/checkthread.cpp, gui/checkthread.h,
gui/common.h, gui/csvreport.cpp, gui/csvreport.h,
gui/erroritem.cpp, gui/erroritem.h, gui/filelist.cpp,
gui/filelist.h, gui/fileviewdialog.cpp, gui/fileviewdialog.h,
gui/logview.cpp, gui/logview.h, gui/main.cpp, gui/mainwindow.cpp,
gui/mainwindow.h, gui/platforms.cpp, gui/platforms.h,
gui/project.cpp, gui/project.h, gui/projectfile.cpp,
gui/projectfile.h, gui/projectfiledialog.cpp,
gui/projectfiledialog.h, gui/report.cpp, gui/report.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/showtypes.cpp, gui/showtypes.h, gui/statsdialog.cpp,
gui/statsdialog.h, gui/test/benchmark/simple/benchmarksimple.cpp,
gui/test/benchmark/simple/benchmarksimple.h,
gui/test/data/benchmark/simple.cpp,
gui/test/filelist/testfilelist.cpp,
gui/test/filelist/testfilelist.h,
gui/test/projectfile/testprojectfile.cpp,
gui/test/projectfile/testprojectfile.h,
gui/test/translationhandler/testtranslationhandler.cpp,
gui/test/translationhandler/testtranslationhandler.h,
gui/test/xmlreport/testxmlreport.cpp,
gui/test/xmlreport/testxmlreport.h,
gui/test/xmlreportv1/testxmlreportv1.cpp,
gui/test/xmlreportv1/testxmlreportv1.h,
gui/test/xmlreportv2/testxmlreportv2.cpp,
gui/test/xmlreportv2/testxmlreportv2.h, gui/threadhandler.cpp,
gui/threadhandler.h, gui/threadresult.cpp, gui/threadresult.h,
gui/translationhandler.cpp, gui/translationhandler.h,
gui/txtreport.cpp, gui/txtreport.h, gui/xmlreport.cpp,
gui/xmlreport.h, gui/xmlreportv1.cpp, gui/xmlreportv1.h,
gui/xmlreportv2.cpp, gui/xmlreportv2.h, lib/check.h,
lib/check64bit.cpp, lib/check64bit.h, lib/checkassignif.cpp,
lib/checkassignif.h, lib/checkautovariables.cpp,
lib/checkautovariables.h, lib/checkboost.cpp, lib/checkboost.h,
lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h, lib/checkexceptionsafety.cpp,
lib/checkexceptionsafety.h, lib/checkinternal.cpp,
lib/checkinternal.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checknonreentrantfunctions.cpp,
lib/checknonreentrantfunctions.h, lib/checknullpointer.cpp,
lib/checknullpointer.h, lib/checkobsoletefunctions.cpp,
lib/checkobsoletefunctions.h, lib/checkother.cpp, lib/checkother.h,
lib/checkpostfixoperator.cpp, lib/checkpostfixoperator.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkuninitvar.cpp,
lib/checkuninitvar.h, lib/checkunusedfunctions.cpp,
lib/checkunusedfunctions.h, lib/checkunusedvar.cpp,
lib/checkunusedvar.h, lib/cppcheck.cpp, lib/cppcheck.h,
lib/errorlogger.cpp, lib/errorlogger.h, lib/executionpath.cpp,
lib/executionpath.h, lib/mathlib.cpp, lib/mathlib.h, lib/path.cpp,
lib/path.h, lib/preprocessor.cpp, lib/preprocessor.h,
lib/settings.cpp, lib/settings.h, lib/suppressions.cpp,
lib/suppressions.h, lib/symboldatabase.cpp, lib/symboldatabase.h,
lib/timer.cpp, lib/timer.h, lib/token.cpp, lib/token.h,
lib/tokenize.cpp, lib/tokenize.h, man/cppcheck.1.xml,
test/test64bit.cpp, test/testassignif.cpp,
test/testautovariables.cpp, test/testboost.cpp,
test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testcmdlineparser.cpp,
test/testconstructors.cpp, test/testcppcheck.cpp,
test/testdivision.cpp, test/testerrorlogger.cpp,
test/testexceptionsafety.cpp, test/testfilelister.cpp,
test/testincompletestatement.cpp, test/testinternal.cpp,
test/testmathlib.cpp, test/testmemleak.cpp,
test/testnonreentrantfunctions.cpp, test/testnullpointer.cpp,
test/testobsoletefunctions.cpp, test/testother.cpp,
test/testpath.cpp, test/testpathmatch.cpp,
test/testpostfixoperator.cpp, test/testpreprocessor.cpp,
test/testrunner.cpp, test/testsimplifytokens.cpp, test/teststl.cpp,
test/testsuite.cpp, test/testsuite.h, test/testsuppressions.cpp,
test/testsymboldatabase.cpp, test/testthreadexecutor.cpp,
test/testtoken.cpp, test/testtokenize.cpp, test/testuninitvar.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, test/testutils.h, tools/dmake.cpp: Update
year to 2012
2012-01-01 Erik Lax <erik@datahack.se>
* lib/checkother.cpp, test/testother.cpp: Fix #3457 (Statement
following goto can be executed)
http://sourceforge.net/apps/trac/cppcheck/ticket/3457
2011-12-31 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3448
(segmentation fault of cppcheck). Add testcase related to previous commit (add 'A f(&x);' as
declaration of variable).
2011-12-31 Edoardo Prezioso <edo88@email.it>
* lib/symboldatabase.cpp, lib/tokenize.cpp: - Re-elaborate 'using' keyword skipping in Tokenizer::setVarId and
Scope::getVariableList; - Improve setVarId: add possible declaration: 'A f(&x);' and change
from: 'if (...){}else{ continue; };' to: 'if (!...) continue;'; - Little refactoring of 'Tokenizer::removeTokens()'.
2011-12-31 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #3449
(segmentation fault of cppcheck)
2011-12-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/symboldatabase.cpp: astyle fix
2011-12-30 Edoardo Prezioso <edo88@email.it>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
test/testtokenize.cpp: Add testcase for previous commit.
2011-12-30 Edoardo Prezioso <edo88@email.it>
* lib/symboldatabase.cpp, lib/tokenize.cpp: Improve varId and
getVariableList filter, related to previous commit.
2011-12-30 Edoardo Prezioso <edo88@email.it>
* lib/symboldatabase.cpp: Fix debug message "Scope::checkVariable
found variable '%var%' with varid 0." in C# code with 'using
%var%;'.
2011-12-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Improve C# simplification
code with arrays of arrays.
2011-12-30 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Rewrite Tokenizer::hasEnumsWithTypedef by using
'findmatch' in order to shorten the code.
2011-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, test/testautovariables.cpp: #3382
(Clarify error message 'invalid deallocation')
2011-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3454 (false
positive: (style) Variable 'iFaktor' is assigned a value that is
never used)
2011-12-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/errorlogger.cpp: Partial fix to #3452
(ErrorLogger: complain/raise assertion when error message has extra
newlines etc) http://sourceforge.net/apps/trac/cppcheck/ticket/3452
Add assert for newlines.
2011-12-28 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #73 from kimmov/gui-disable-mru GUI: Disable project MRU items while checking.
2011-12-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3444 (False
positive using putenv)
2011-12-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/tokenize.cpp, lib/tokenize.h: Refactoring:
Remove duplicate function from tokenizer: code_is_c() -> isC()
2011-12-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: astyle fix
2011-12-28 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Always by pressing request, oops.
2011-12-28 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h: By pressing request, extract
method: simplifyJavaAndCSharp.
2011-12-28 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Move non-C++ simplification outside big loop.
Related to commit b2f8161862287f1de900382f5bf9d42aa0734669 .
2011-12-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checknullpointer.cpp, lib/tokenize.cpp, test/testother.cpp:
Fix astyle and test failures.
2011-12-28 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp: Fix ticket #3451 (A (style) type warning
witout message text).
2011-12-28 Edoardo Prezioso <edo88@email.it>
* lib/checkuninitvar.cpp, lib/tokenize.cpp: Rewrite fix of ticket
#3415 (Segmentation fault in new check for uninitialized variables):
new simplify: 'code ; ({ some_code ; });' to 'code ; some_code ;';
remove the sanity check in checkunusedvar, so when it crashes again
it's easy to spot a bigger problem; 'internal' reported
'Token::Match' with simple pattern. 'Tokenizer::tokenize()' refactorings: make one loop with many simple
simplifications instead of many loops with one simplification. some
style changes.
2011-12-28 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Disable project MRU items while checking. Project file can't be opened when the check is running. So the menu
items must be disabled. Fixes ticket: #3446 (GUI: MRU items must be disabled while checking)
2011-12-28 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp: CheckNullPointer: Use
Tokenizer::IsScopeNoReturn
2011-12-28 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* webreport.sh: webreport: updated script (use latest pmd)
2011-12-28 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp: Null pointer: Removed old code for
handling exit(). No testing affected.
2011-12-27 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #72 from kimmov/gui-standards Add standards support for the GUI
2011-12-27 Reijo Tomperi <dvice_null@yahoo.com>
* : Merge pull request #71 from neuschaefer/tokenizer Refactoring: Do language detection in one place, instead of
spreading it around the code. (There are still locations that need
to be fixed to use the new functions.)
2011-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Fix file order in project file.
2011-12-27 Jonathan Neuschäfer <j.neuschaefer@gmx.net>
* lib/checkmemoryleak.h: checkmemleak.h: use
Tokenizer::isJavaOrCSharp()
2011-12-27 Jonathan Neuschäfer <j.neuschaefer@gmx.net>
* lib/tokenize.cpp, lib/tokenize.h: tokenizer: proper checks for
Java and C#
2011-12-27 Jonathan Neuschäfer <j.neuschaefer@gmx.net>
* lib/tokenize.h: Refactoring: tokenizer: factor out fileExtension
2011-12-27 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp, lib/checkuninitvar.cpp,
lib/tokenize.cpp, lib/tokenize.h: Refactoring: Added utility
function that determine if scope ends with a call to a noreturn
function
2011-12-27 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #70 from kimmov/gui-filter-fix GUI: Fix bug in severity filtering.
2011-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/showtypes.cpp: GUI: Fix bug in severity filtering. There was (obviously) a copy-paste bug in code converting severities
to GUI's show types. This caused some severities not being filtered
correctly when severity selection in GUI was changed. Fixes ticket: #3242 (GUI: Unmatched suppression: message in wrong
category)
2011-12-27 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #69 from kimmov/gui-platforms GUI: Disable platform selection during checking.
2011-12-27 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Better
handling of array of function pointers
2011-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Disable platform
selection during checking. Fixes ticket: #3250 (GUI: platform type should not be changeable at
runtime)
2011-12-27 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #68 from kimmov/mru-fix GUI: Remove empty/space-only items from MRU list.
2011-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Remove empty/space-only items from MRU
list.
2011-12-27 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives when pointer is dereferenced in
unexpanded macro
2011-12-27 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp: Removed debug variables
2011-12-27 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fix false positives related to for loop
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives (caused by my 'check more
variables' commit)
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: Uninitialized variables: Better handling of
variable usage in condition
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: Uninitialized variables: Fixed false
positives caused by recent commit when potentially uninitialized
variable is read in condition
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives caused by recent improvement when
variable is potentially initialized in else block.
2011-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives for unconditional inner scopes
2011-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives when goto is used.
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: Uninitialized variables: check more
variables
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: Uninitialized variables: Improved checking
when there are multiple if/else and a certain path causes an error
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3201 (Checking
iterators from different objects)
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3438 (false
positive: (style) Variable 'dBuf' is not assigned a value)
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkautovariables.cpp: astyle formatting
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkautovariables.cpp, test/testautovariables.cpp: #3434
(False positive Returning reference to auto variable)
2011-12-26 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp, lib/tokenize.h,
test/testnullpointer.cpp: Null pointers: show inconclusive errors if
functions are called. Assume they won't assign the pointer. Ticket:
#3443
2011-12-26 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Fixed ticket #3416 (segmentation fault of
cppcheck)
2011-12-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Rename some
variables and funtions in tokenizer. Small logic change also for
count variable to make new name more logical.
2011-12-25 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp, lib/checknullpointer.h,
test/testnullpointer.cpp: Fixed #3443 (false positives: possible
null pointer dereference (calling unknown function))
2011-12-25 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: Fixed #3435
(False positive: (warning) Member variable 'A::m_Vec' is not
initialized in the constructor.)
2011-12-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Extract several
methods from tokenize()
2011-12-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Extract method:
simplifyDoublePlusAndDoubleMinus()
2011-12-24 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: reformatting cli help text to fit better on
normal terminal windows that are 80 characters wide
2011-12-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: C++ Builder: Fixed compiler error (weird error)
2011-12-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Refactoring: Rename some variables with too
short names, such as "s".
2011-12-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Rename variable
used -> templateInstantiations
2011-12-23 PKEuS <philipp.kloke@web.de>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkboost.cpp, lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkclass.h, lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/checkobsoletefunctions.h, lib/cppcheck.h, lib/errorlogger.h,
lib/mathlib.cpp, lib/preprocessor.cpp, lib/suppressions.cpp,
lib/symboldatabase.cpp, test/testclass.cpp, test/testcppcheck.cpp,
test/teststl.cpp, test/testthreadexecutor.cpp, test/testtoken.cpp,
test/testutils.h: Remove unnecessary includes Also add a unit test
related to #3427 Also improve the description text in checkclass and
remove unused variable.
2011-12-23 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Comparing bool with int:
Fixed false positives
2011-12-23 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: improving
checkSizeofForStrncmpSize
2011-12-23 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #3419 (false
positive: (style) Same expression on both sides of '&'.)
2011-12-23 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed #3441 (segmentation
fault of cppcheck (%: return ; ()))
2011-12-23 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Clarify calculation: Fixed
false positives when there are various function calls
2011-12-23 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false 'dangerous usage of strncpy' positive when
resulting string is used by strncpy
2011-12-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Split long function
in tokenizer. simplifyTemplatesInstantiate()
2011-12-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Make a 300 line
function a little smaller. simplifyTemplatesInstantiate()
2011-12-22 PKEuS <philipp.kloke@web.de>
* test/testsuite.cpp: Bugfix for recent testrunner output
improvement. Some output was not formatted well.
2011-12-22 Ettl Martin <ettl.martin@gmx.de>
* test/testsymboldatabase.cpp: ticket 3437: added missing testcase
2011-12-22 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/symboldatabase.cpp: Fixed #3437 (segmentation fault of
cppcheck)
2011-12-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3433 (False positive:
Same iterator is used with both myVector and myMap)
2011-12-20 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkother.cpp: CheckOther: Added line break to make the code
more readable
2011-12-20 PKEuS <philipp.kloke@web.de>
* test/testsuite.cpp, test/testsuite.h: Improvement of testrunner's
output - Separation between failures - \n is translated into "\\n\n" instead of "\\n", so that a newline
is inserted - Succeeded TODOs are no longer mentioned twice - Removed "" around messages
2011-12-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3410 (Comparing
bool against bool produces false positive)
2011-12-18 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkunusedvar.cpp, lib/checkunusedvar.h,
test/testunusedvar.cpp: Refactorized CheckUnusedVar
2011-12-18 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp: Fixed #3427 (False positive: (error) Dangerous
usage of c_str(). The returned value by c_str() is invalid after
this call.)
2011-12-18 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#3327 (printf with std::string as parameter)
2011-12-18 PKEuS <philipp.kloke@web.de>
* test/testtokenize.cpp: Activate tests in TestTokenizer
2011-12-18 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* test/testbufferoverrun.cpp: Array index out of bounds: Added test
case for #3428 (same name of structs)
2011-12-18 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp: Fixed #3428 (false negative: array
bounds errors not found when duplicate class names present)
2011-12-18 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp, lib/preprocessor.cpp, lib/token.cpp,
lib/token.h, lib/tokenize.cpp, test/testnullpointer.cpp,
test/testpreprocessor.cpp, test/testtokenize.cpp: Fixed #3425 (False
positive: Null pointer dereference (pointer is checked in macro))
2011-12-18 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Array
index out of bounds: Avoid false positives when there are duplicate
names for structs
2011-12-18 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: The tokenizer
didn't handle '0x0E-7' correctly
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Array
index out of bounds: Fixed false positive when taking address beyond
array using calculated array index
2011-12-17 OGAWA KenIchi <kenichi@ice.email.ne.jp>
* lib/checkexceptionsafety.cpp: Fixed #3422 (Internal error in
exceptRethrowCopy check)
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3424 (Tokenizer:
doesn't tokenize if-if-else-else correctly)
2011-12-17 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checknullpointer.cpp,
lib/checknullpointer.h, lib/checkother.cpp, lib/checkstl.cpp,
lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp: Improved support for references and
pointers in SymbolDatabase Replaced several isPointer functions by
Variable::isPointer function Refactorizations & Make use of
symbolDatabase more often
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives when sizeof is used in condition.
Ticket: #3369
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #3426
((error) Invalid number of character ({) when these macros are
defined:)
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Array
index out of bounds: Fixed false positive when size is not known.
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false positive when sizeof without parentheses are used
2011-12-17 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, lib/checkother.cpp: Refactorings. Use
reportError instead of reportInconclusiveError.
2011-12-17 PKEuS <philipp.kloke@web.de>
* lib/executionpath.cpp: Refactorizations for executionpath.cpp
(rearranged code, added some else before if)
2011-12-17 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Patch that
improves STL checking: Make use of SymbolDatabase, solved TODO
(about returning .c_str() value), check for deleting iterators by
value.
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives in sizeof. Ticket: #3369
2011-12-17 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positive when address of variable is taken
inside = { .. }. Ticket: #3369
2011-12-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3423
(Uninitialized variable in operator>>)
2011-12-16 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives when many 'if' are used. Ticket:
#3369
2011-12-16 PKEuS <philipp.kloke@web.de>
* lib/checkexceptionsafety.cpp, lib/checkother.cpp,
test/testother.cpp: Patch that fixes some bailouts for
isEnabled('style') in both directions. Improved
checkSizeofForNumericParameter's error message, made it 'warning',
made it non-experimental.
2011-12-16 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp: Uninitialized variables: Fixed false
positive for x 'a[x=1]'. Ticket: #3369
2011-12-16 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp: Uninitialized variables: Fix false
positives for '= { .. }'. Ticket: #3369
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* test/testuninitvar.cpp: Uninitialized variable: added TODO test
case. Ticket: #3369
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positive in for condition. Ticket: #3369
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives when there are assembler code.
Ticket: #3369
2011-12-15 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp,
test/testpathmatch.cpp: Fixed #3048, further improvements to const
correctness check.
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variable: Fixed test failure. Ticket: #3369
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp: Uninitialized variables: Fix false
positive if variable is used after return (goto). Ticket: #3369
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp: Uninitialized variables: Fixed false
positives when taking address. Ticket: #3369
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #3418
(preprocessor define assignment not propagated)
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3414 (false
positive: (error) Uninitialized variable: SOutput)
2011-12-15 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3417 (False
positive: Uninitialized variable when conditionally set)
2011-12-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: CheckNullPointer::isPointerDeref: better
checking if pointer is not dereferenced
2011-12-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: better handling of initialization with >>. Ticket: #3369
2011-12-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3415
(Segmentation fault in new check for uninitialized variables)
2011-12-14 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp,
test/testunusedprivfunc.cpp: refactorizations for CheckClass and for
less false negatives related to derived classes
2011-12-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Detect more errors when variable is given as array index.
Ticket: #3369
2011-12-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives for loops. Ticket: #3369
2011-12-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: Uninitialized variables: Detect more errors.
Ticket: #3369
2011-12-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positive in new checking when variable is
initialized in condition
2011-12-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: astyle formatting
2011-12-14 PKEuS <philipp.kloke@web.de>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #3296 (false
positive (inconclusive): 'C::operator=' should return 'C &')
2011-12-14 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: improved check to detect more errors. Ticket: #3369
2011-12-14 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positives for break/continue/throw
2011-12-13 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: remove redundant 'done' condition,
related to ticket #3409. Add more possible letters to
simplifyInitVar patterns. Replace 'tokAt(1)' with 'next()' and
'linkAt(1)' with 'next()->link()'. Little optimizing improvements
to simplifyAsm.
2011-12-13 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: Uninitialized variables: Started writing a
new check. Ticket: #3369
2011-12-13 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkuninitvar.cpp,
lib/checkunusedvar.cpp, lib/token.cpp, lib/token.h,
lib/tokenize.cpp, test/testother.cpp, test/testtokenize.cpp: Fixed
#3407 (False positive: (inconclusive) Found duplicate branches for
if and else. (inline assembler))
2011-12-13 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #3405
((error) Invalid number of character ({) when these macros are def
ined: 'WIN32'.)
2011-12-13 Edoardo Prezioso <edo88@email.it>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/symboldatabase.cpp: Workaround fixes to
shut up some cppcheck '--inconclusive' whinings.
2011-12-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::simplifyGoto: fix another memory read
error reported by Valgrind. Also improvements to Tokenizer are
done.
2011-12-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: some changes
to line numbers of some tokens: simplifyAsm: change line number of
newly added 'asm ( )' in order to be the same as next ';'.
simplifyIfAddBraces: Change line number of newly added '}' in order
to be the same as next 'else', except for '{ ; } else'.
2011-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checknullpointer.cpp: astyle fix
2011-12-12 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #3405 ((error) Invalid number of
character ({) when these macros are def ined: 'WIN32'.)
2011-12-12 Daniel Marjamäki <danielm77@spray.se>
* createrelease: Fixed #3401 (Run cppcheck on cppcheck source code
before release)
2011-12-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: Fix another Valgrind error in
simplifyErrNoInWhile. Add more jumping patterns to
simplifyIfAddBraces and simplifyDoWhileAddBraces.
2011-12-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: temporary fix for inconclusive false
warnings. there is not sufficient logic for determining when there
is NOT a pointer dereference.
2011-12-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: CheckNullPointer::isPointerDeRef: Skip
inconclusive checking when --inconclusive hasn't been given.
2011-12-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Fix Valgrind error in arraySize(): if there's
code like: 'int [ ] a = { 1 , 5 , }', 'end' is last '}', when 'tok2'
arrives to second ',' and cppcheck finds out that next token to
'tok2' is '}', remove this ',' with 'tok2->deleteThis()' but it
causes (maybe) a memory corruption to 'end' which will gave problems
later because 'tok' will be assigned to it or its next token.
2011-12-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h:
Tokenizer::simplifyDoWhileAddBraces: 1)rewrite fix for ticket #988
(just don't simplify inside macro parenthesis); 2)use a different
organization of the code: start from last token and proceed
backwards. This way 'simplifyDoWhileAddBracesHelper' can be called
just once, hence the 'Helper' code can be improved and moved in the
main function.
2011-12-11 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer::arraySize(): improve code structure,
fixed 'tok2' for-looping which didn't stop to the ending '}'
parenthesis.
2011-12-11 Edoardo Prezioso <edo88@email.it>
* test/testtokenize.cpp: Oops. Fix testrunner fail.
2011-12-11 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: simplifyIfAddBraces:
Remove restriction for jumping opening parenthesis '(' as a fix to
#2873, because even without this the original test case doesn't
crash anymore. Add more jumping patterns.
simplifyFunctionParameters: Add more jumping patterns and an
observation related to error message for equal parameter names, help
needed. Fix grammar mistake in comment.
2011-12-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, lib/checknullpointer.cpp:
CheckNullPointer::isPointerDeRef: Tweaks to reduce false warnings
when inconclusive is used.
2011-12-11 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #3168 (false negative: buffer
overflow in subfunction)
2011-12-11 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Other improvements to
tokenizer code. Handle SQL code better, even when there's no ';'
after 'EXEC SQL'. simplifyVarDecl: Check with 'Token::Match' once
when you have to check a pattern inside which there should be a
number or a variable. Use '%any%' and after that check if that
string is a number or a variable name later. simplifyGoto: process
also anonymous structs and unions which should have 'indentspecial'
incremented, skip code like 'var = { ... }'.
2011-12-10 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix code in commit
5f522fb84184fd725ee6ab4a906410e28465b800 and reapply it again.
2011-12-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, man/cppcheck.1.xml: Fix spelling error:
explicitely -> explicitly
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: reverted
5f522fb84184fd725ee6ab4a906410e28465b800, to avoid hang in
TestBufferOverrun::arrayInfo
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: reverted fix for #3168, I'll rewrite it
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #3168 (false negative: buffer
overflow in subfunction)
2011-12-10 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: improve code
and remove redundant checks. In particular: improve 'double sharp'
concatenation by handling also code which begins without the [{};].
Do the same with C# code. Also, in the labels simplification
function, skip also '{}' when the open bracket is after a '='.
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* lib/check64bit.h: Check64BitPortability: Wiki formatting update
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* cli/cmdlineparser.cpp, lib/checkinternal.h: --doc : don't write
internal checks in the doc output
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* htdocs/index.php: htdocs: updated download link to 1.52 installer
2011-12-10 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h: Improve labels simplification
code, remove redundant checking.
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* createrelease: createrelease: updated username in commands
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Makefile: Makefile: Set debug mode
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Makefile: 1.52: Updated Makefile
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* Changelog: 1.52: Updated Changelog
2011-12-10 Daniel Marjamäki <daniel.marjamaki@gmail.com>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: 1.52: Updated
version
2011-12-10 PKEuS <philipp.kloke@web.de>
* lib/checkmemoryleak.cpp, lib/checkstl.cpp: Memory leaks: Code
cleanups
2011-12-10 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #67 from makulik/master Fixed ticket #3389 '-U option doesn't supress include file handling
for #include statements inside #ifdef code paths'
2011-12-09 Edoardo Prezioso <edo88@email.it>
* lib/checkbufferoverrun.cpp:
CheckBufferOverrun::checkInsecureCmdLineArgs(): Remove recently
unused variable 'pattern'.
2011-12-09 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checknullpointer.cpp,
lib/checkother.cpp, lib/checkstl.cpp, test/teststl.cpp: Take symbol
database into use or improve its usage in some checks.
2011-12-09 makulik <g-makulik@t-online.de>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket
#3389 '-U option doesn't supress include file handling for #include
statements inside #ifdef code paths' Signed-off-by: makulik
<g-makulik@t-online.de>
2011-12-09 PKEuS <philipp.kloke@web.de>
* lib/checkassignif.cpp, test/test64bit.cpp, test/testassignif.cpp,
test/testautovariables.cpp, test/testcharvar.cpp,
test/testmemleak.cpp, test/testnonreentrantfunctions.cpp,
test/testobsoletefunctions.cpp, test/testother.cpp,
test/testpostfixoperator.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Code cleanup
2011-12-09 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: 1)Fixed ticket #3184 (Improve Tokenizer:
improve simplifyMulAnd to simplify weirder code); 2)Fix a test case
inside TestSimplifyTokens::flowControl.
2011-12-09 PKEuS <philipp.kloke@web.de>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp:
Exception safety: refactorings, use the symbol database
2011-12-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: C++ Builder : Fixed compiler error
2011-12-08 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: C++ Builder: Fixed compiler errors
2011-12-08 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Use const_iterator instead of
iterator where possible
2011-12-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: C++ Builder: Fixed compiler error
2011-12-08 PKEuS <philipp.kloke@web.de>
* cli/filelister.cpp, lib/checkbufferoverrun.cpp,
lib/checkclass.cpp, lib/checkmemoryleak.cpp, lib/checkstl.cpp,
lib/checkunusedvar.cpp, lib/mathlib.cpp, lib/preprocessor.cpp,
lib/tokenize.cpp, test/testexceptionsafety.cpp,
test/testpreprocessor.cpp, test/teststl.cpp, test/testtokenize.cpp:
Various code cleanups
2011-12-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3394
(False positive: possible null pointer dereference)
2011-12-08 PKEuS <philipp.kloke@web.de>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testmemleak.cpp, test/testnonreentrantfunctions.cpp,
test/testobsoletefunctions.cpp, test/testpostfixoperator.cpp:
Tokenizer: Code cleanups
2011-12-08 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Add more kind of code to process for
'removeExceptionSpecifications' (unions, anonymous unions and
structs).
2011-12-08 Edoardo Prezioso <edo88@email.it>
* lib/checkmemoryleak.cpp, lib/preprocessor.cpp, lib/token.cpp,
lib/token.h, lib/tokenize.cpp: 1)Remove newly copy of 'eraseTokens'
and replace every occurrence with 'deleteNext' with right parameter.
2)General improvements to code.
2011-12-07 Edoardo Prezioso <edo88@email.it>
* AUTHORS, lib/token.cpp, lib/token.h: Extend 'Token::deleteNext' by
introducing a new parameter which determines how many tokens should
be deleted. It's still not used, though.
2011-12-07 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: reverted last change. see
comments on github.
2011-12-07 PKEuS <philipp.kloke@web.de>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/testsimplifytokens.cpp, test/testtokenize.cpp: Tokenizer:
Refactorings and improvements. Better handling of []
2011-12-07 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed #3381 (false
positive: (style) Statements following return, break, continue, goto
or throw will never be executed)
2011-12-07 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: python 3 compatibility
updates
2011-12-07 Edoardo Prezioso <edo88@email.it>
* lib/checkmemoryleak.cpp, lib/preprocessor.cpp, lib/token.cpp,
lib/token.h, lib/tokenize.cpp: 1)Implement another declaration of
'Token::eraseTokens' with parameters: the starting token and the
number of times needed to call 'deleteNext'. 2)Use the overloaded
'eraseTokens' where needed instead of using consecutively
'deleteNext'. 3)Tokenizer: general optimizations about the deletion
of some tokens. 4)Run astyle.
2011-12-06 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Add 'exit' and
'abort' to the flow control list in order to simplify code after
them.
2011-12-06 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Partial fix ticket #3385
('throw' isn't removed if the argument of the function is type
'struct|class').
2011-12-06 Ettl Martin <ettl.martin@gmx.de>
* test/testbufferoverrun.cpp: sanity check for ticket #3387 ( buffer
access out of bounds)
2011-12-06 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Remove some redundant parenthesis - part 9
2011-12-05 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: use more 'deleteNext' instead of
'eraseTokens' where possible.
2011-12-05 Edoardo Prezioso <edo88@email.it>
* lib/checkmemoryleak.cpp: CheckMemoryLeakInFunction::simplifycode :
use properly 'deleteNext' instead of 'deleteThis' or 'eraseTokens'
and remove redundant conversion to 'std::string'.
2011-12-05 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Oops. I should eventually keep ';', not
'typedef'.
2011-12-05 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: use 'deleteNext()' or, even better,
'eraseTokens' instead of 'deleteThis()' where possible.
2011-12-04 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: create output folders if
they dont exist
2011-12-04 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp: Optimize checkother.cpp by taking
symbolDatabase into use.
2011-12-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Remove some
redundant semicolons - part 8
2011-12-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Remove some
redundant semicolons - part 7
2011-12-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Remove some
redundant semicolons - part 6
2011-12-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Remove some redundant semicolons - part 5
2011-12-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::simplifyConst
: handle also '%type% const' when the 'type' token is the first one
in the list.
2011-12-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: 1) Remove some redundant semicolons - part 4 ('typedef' !=
_tokens.str()); 2) Tokenizer: Use Token::eraseTokens instead of using the same
instructions as the ones inside such function.
2011-12-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3359 (False
positive: array[idx++] += val triggers unexpected 'Array index out
of bounds' error)
2011-12-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: improved
handling of inner templates. Partial fix for #3226
2011-12-03 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyFlowControl: 1) remove consecutive 'break' or
'continue', since they don't influence the CheckOther results; 2)
improve the code speed where possible; Tokenizer::eraseDeadCode:
Ditto.
2011-12-03 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/tokenize.cpp: The usual astyle run
2011-12-03 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #3350
(Analysis failed)
2011-12-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3358
(False null pointer dereference positive with ternary ?: operator)
2011-12-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp, lib/checkunusedfunctions.h,
test/testunusedfunctions.cpp: Fixed #3336 (False positive: Member
function is not used (used by template function))
2011-12-03 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#3375 (Improve check: Detect unreachable code)
2011-12-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Fixed gcc compiler warnings
2011-12-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3267 (False
positive: resource leak in vdr-xinelib)
2011-12-03 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: Add
'throw' to the flow control statements list for simplification of
dead code.
2011-12-02 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Remove some redundant semicolons - part 3
2011-12-02 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Remove some redundant
semicolons - part 2
2011-12-02 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Remove some redundant
semicolons - part 1
2011-12-02 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extractpython.py: cleanup
2011-12-02 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests: refactorings. dont include
dynamic strings in the listing
2011-12-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, lib/checkother.cpp,
test/testnullpointer.cpp, test/testother.cpp: Fixed #3373 (False
posititive: incorrect %* handling in sscanf)
2011-12-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3345
(false positive: possible null pointer dereference (guarded by &&))
2011-12-01 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp: Fix possible null pointer dereference
2011-12-01 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fix false positive with
non-const function calls
2011-12-01 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp: Refactor the same expression check Work out if a function is inconclusive when creating the entry in
the Expressions class instead of when checking the counts at the
end. Store the result in a new bool flag in the ExpressionTokens
helper struct. The pointer to symbol database and ref to list of const functions
are temporarily stored in the Expressions helper class to avoid
passing them in too on every endExpr(tok) call. Use a const reference to ExpressionTokens in the check loop to avoid
repeating the it->second several times, which clarifies what that
code does.
2011-12-01 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp: Coding fixes and refactorings
2011-12-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, lib/checkassignif.h: Fixed Visual Studio
compiler warnings
2011-12-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Fixed Visual Studio compiler warnings
2011-12-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3354 (Incorrect
both sides of '||' expression match when using increment in
expression.)
2011-12-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: checkDuplicateExpressions: validate tokens
instead of string. Fix for my previous commit.
2011-12-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3334 (Test for same
expression on both sides of '&' reports false positive)
2011-12-01 Edoardo Prezioso <edo88@email.it>
* lib/checkautovariables.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checknullpointer.cpp,
lib/checkother.cpp, lib/checkuninitvar.cpp, lib/preprocessor.cpp,
lib/tokenize.cpp: 1)internal check found a 'findmatch' with simple
string argument; 2)Style: uniform 'while (...)' when inside it
there's an assignment; 3)Replace '0' with 'NULL' where there's
comparison with a pointer.
2011-11-30 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #66 from makulik/master Fixed preprocessor testcases
2011-11-30 makulik <g-makulik@t-online.de>
* test/testpreprocessor.cpp: Removed int cast from undef
preprocessor testcases Signed-off-by: makulik <g-makulik@t-online.de>
2011-11-30 makulik <g-makulik@t-online.de>
* test/testpreprocessor.cpp: Fixed preprocessor testcases Signed-off-by: makulik <g-makulik@t-online.de>
2011-11-30 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #65 from makulik/master Solution for ticket #3353 'Allow explicit undef's for configuration'
2011-11-30 Edoardo Prezioso <edo88@email.it>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp: 1) Shut up GCC compiler for 'missing braces around assignment'; 2) Tokenizer::simplifyGoto: Code refactoring in order to skip code
inside '()|[]' parentheses without counting.
2011-11-30 makulik <g-makulik@t-online.de>
* cli/cmdlineparser.cpp: Run astyle Signed-off-by: makulik <g-makulik@t-online.de>
2011-11-30 makulik <g-makulik@t-online.de>
* cli/cmdlineparser.cpp, lib/preprocessor.cpp, lib/settings.h,
man/cppcheck.1.xml, test/testcmdlineparser.cpp,
test/testpreprocessor.cpp: Solution for ticket #3353 'Allow explicit
undef's for configuration' Signed-off-by: makulik <g-makulik@t-online.de>
2011-11-30 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, lib/checkother.cpp,
test/testnullpointer.cpp, test/testother.cpp: Fixed #3364 (Crash in
printf parsing)
2011-11-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3268 (False
positive: resource leak in vdr-xineliboutput)
2011-11-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp, test/testthreadexecutor.cpp: Fixed #3267
(False positive (experimental): resource leak in vdr-xinelib)
2011-11-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testsuppressions.cpp,
test/testuninitvar.cpp: Uninitvar: Reactivated the checking
2011-11-29 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py : improved errors.txt
output
2011-11-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: astyle formatting
2011-11-29 Akio Idehara <zbe64533@gmail.com>
* Makefile, tools/dmake.cpp: Fixed #3346 (cygwin detection for
_GLIBCXX_DEBUG in Makefile)
2011-11-29 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp: Fixed ticket #3366 (Build breakage)
2011-11-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3356 (false
positive: (warning) Comparison of a boolean with integer that is
neither 1 nor 0)
2011-11-29 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #61 from richq/sameexpr Fix for #3317 - same expression on both side of '&&' false positives
2011-11-29 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: minor code fixes of --code
handling
2011-11-28 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: added option to output
test files
2011-11-28 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Improvements
to Nullpointer dereference on function call check: printf format
string parser improved (similar to my recent patch on the argument
counter), frexp/modf supported (#1572), Code cleanup
2011-11-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3303 (false
positive: memory leak (reference count))
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: sizeof for numeric
constant : disabled check. see ticket #3179
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: improved command line
parser
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: cleaned up the code for
parsing of command line
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: exit if wrong command line
is given
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: reduce line lengths
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: close input file
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: renamed 'str' to 'string'
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: added docstrings. added
navigation links.
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: allow user to see 'error
cases only'
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: added function 'trimname'
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: Added a little help info
2011-11-27 Daniel Marjamäki <danielm77@spray.se>
* tools/extracttests.py: extracttests.py: Added tool for extracting
test information
2011-11-27 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #909
(improve check: out of bounds of memchr function and out of bounds
check)
2011-11-27 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp: code refactoring
2011-11-27 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checkother.cpp, lib/checkother.h,
test/testother.cpp: Fixed #3311, #3313 and #3339 (printf format
string false positives)
2011-11-26 PKEuS <philipp.kloke@web.de>
* lib/check64bit.cpp, lib/checkother.cpp, test/testnullpointer.cpp:
code cleanups and refactorings
2011-11-26 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checknullpointer.cpp, lib/path.cpp,
lib/path.h, lib/preprocessor.cpp, lib/tokenize.cpp: code cleanups
and refactorings
2011-11-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: memory leaks: Made leak checking inconclusive
instead of experimental
2011-11-25 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* gui/mainwindow.cpp: Fixed #3216 (GUI: Crash when cancel is clicked
in the New Project dialog)
2011-11-25 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* test/teststl.cpp: Fixed #1841 (STL: false negative for invalidated
iterator after erase)
2011-11-25 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/tokenize.cpp, test/testmemleak.cpp, test/testtokenize.cpp:
Fixed #3212 (Simplify the double pointer cast)
2011-11-24 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/tokenize.cpp: Use Token::simpleMatch instead of Token::Match "--enable=internal" reported: [lib/tokenize.cpp:3563]: (warning)
Found simple pattern inside Token::Match() call: ") ;"
2011-11-24 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testclass.cpp: Run astyle
2011-11-10 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fix
ticket #3317 (same expression false positives) Add a check for function calls that have no side effects. That means
known const methods and a list including strcmp, strlen, etc. If the function is not known to be side effect-free then no style
warning is given. Add test cases for the duplicate expressions.
2011-11-12 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Remove false positives for
nested logic
2011-11-23 Richard Quirk <richard.quirk@gmail.com>
* lib/checkclass.cpp, test/testclass.cpp: Fix ticket #2233 (unused
private static function)
2011-11-23 Richard Quirk <richard.quirk@gmail.com>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fix false
positives for null pointer on exit
2011-11-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.h, lib/checkother.cpp,
lib/symboldatabase.h, lib/token.cpp, lib/token.h: DJGPP: Fixed a few
compiler errors by using std::size_t instead of size_t
2011-11-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: removed unused include
2011-11-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Fixed #3196 (False positive: member variable not initialized in
constructor (union))
2011-11-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #3352 (False
positive: member variable not initialized (3D array))
2011-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::setVarId:
Fixed problem with class declarations with inheritance. skip them.
2011-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Fixed #3347 (False positive: unused function
(taking address))
2011-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::setVarId:
fixed 'using' bug
2011-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: operator= should return
reference: Made check inconclusive. See ticket #3296
2011-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
Mismatching format string parameters. Made check experimental. See
tickets #3311, #3313 and #3339
2011-11-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/token.cpp, test/testtoken.cpp: "Internal
error. Token::Match called with varid 0." didn't work when error was
in a header file. Fixed that.
2011-11-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp: Make --debug-fp work with new exception also.
2011-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/token.cpp, test/testtoken.cpp: astyle fix
2011-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/token.cpp, test/testtoken.cpp: "Internal
error. Token::Match called with varid 0." will now cause check to
abort and write a proper error log with filename. Previously
filename was empty and format was always xml.
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3281
(Tokenizer::simplifyKnownVariables : static constant value is not
used)
2011-11-20 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Fixed #3255
(Error message for std::string::c_str() is not descriptive)
2011-11-20 Edoardo Prezioso <edo88@email.it>
* lib/checkclass.cpp, lib/tokenize.cpp, lib/tokenize.h: 1) Run runastyle; 2) Clarify some comments in 'Tokenizer::simplifyFlowControl' and in
'Tokenizer::eraseDeadCode'; 3) Add some 'const' variables inside 'Tokenizer::eraseDeadCode'.
2011-11-20 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Completed ticket #3230 (Refactoring: add function to remove tokens
when a label is found.) and fixed ticket #3264 (False positive:
Variable is assigned a value that is never used).
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Class checking: made
'technically function x can be const' inconclusive
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testtokenize.cpp: astyle
formatting
2011-11-14 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fix false positives for %[
in scanf
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3316 (Cppcheck
reporting internal errors - code compiles cleanly)
2011-11-20 Edoardo Prezioso <edo88@email.it>
* lib/checkautovariables.cpp, lib/checkboost.cpp,
lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checkobsoletefunctions.cpp,
lib/checkother.cpp, lib/checkunusedfunctions.cpp: Change every
'tokAt(1)' to 'next()' and every 'tokAt(-1)' to 'previous()'. Added
a safety check to ensure that a 'previous()' call doesn't crash (not
sure if it's needed or not).
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testsuppressions.cpp,
test/testuninitvar.cpp: Uninitvar: Made checking experimental
2011-11-20 Edoardo Prezioso <edo88@email.it>
* lib/check64bit.cpp, lib/checkautovariables.cpp,
lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checkother.cpp, lib/checkstl.cpp,
test/testsymboldatabase.cpp: Change every 'tokAt(1)->' to 'next()->'
because 'tokAt(1) == 0' is equivalent to 'next() == 0', hence the
equivalent cppcheck crash.
2011-11-20 Edoardo Prezioso <edo88@email.it>
* lib/checkassignif.cpp, lib/checkautovariables.cpp,
lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checknullpointer.cpp,
lib/checkother.cpp, lib/checkstl.cpp, lib/checkuninitvar.cpp,
lib/checkunusedvar.cpp, lib/executionpath.cpp,
lib/symboldatabase.cpp, lib/tokenize.cpp, test/testtokenize.cpp:
Change every 'tokAt(..)->link()' to 'linkAt(..)'.
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp,
test/testthreadexecutor.cpp: Memory leaks: Made
CheckMemoryLeakInFunction experimental
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3280 (False
positive: assigned value that is never used)
2011-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3340 (Internal
error. Token::Match called with varid 0... union is causing
problems)
2011-11-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Fixed #3328 (False negative: out of
bounds)
2011-11-19 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h: Reverted previous commit. There are testrunner
problems when the code is removed.
2011-11-19 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h: removed cleanup code that will crash in some
environments. it's somewhat redundant.
2011-11-19 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h: Fixed #3329 (cppcheck core dump on Sun machine)
2011-11-19 Edoardo Prezioso <edo88@email.it>
* : commit ccdb18f21363e6351da7d753df975b59c9f298c3 Author: Edoardo
Prezioso <edo88@email.it> Date: Sat Nov 19 13:34:36 2011 +0100
2011-11-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, test/testassignif.cpp: Fixed #3332
(mismatching comparison: Hard to understand)
2011-11-18 Edoardo Prezioso <edo88@email.it>
* test/testsimplifytokens.cpp: Add more tests for flow control
simplification.
2011-11-18 Edoardo Prezioso <edo88@email.it>
* test/testsimplifytokens.cpp: Add test for the consecutive braces
simplification, thanks to thomasjfox's example.
2011-11-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, lib/checkassignif.h, test/testassignif.cpp:
improved error message 'mismatching comparison'
2011-11-17 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
better handling of #define A 0 => #if A==0. ticket #3331
2011-11-17 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#886 (new check: wrong value passed to isgraph function)
2011-11-13 Stefan Weil <sw@weilnetz.de>
* lib/preprocessor.cpp: Preprocessor: Fix comments (backspace ->
backslash) Signed-off-by: Stefan Weil <sw@weilnetz.de>
2011-11-12 Stefan Weil <sw@weilnetz.de>
* lib/settings.cpp: support any number of --append=<file> options If one or more append files are given on the command line, they are
simply concatenated. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2011-11-13 Stefan Weil <weil@mail.berlios.de>
* lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h: Optimize
handling of --append=<file> option (execution time, memory) Whitespace was removed from the append data for every configuration
and every file: n(configuration) * n(files). Removing whitespace immediately after the append data was read can
significantly reduce the execution time and memory usage. It also
allows further improvement because copies to the temporary object
appendCode are no longer needed. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2011-11-12 Stefan Weil <sw@weilnetz.de>
* cli/cmdlineparser.cpp, lib/settings.cpp, lib/settings.h:
cmdlineparser: terminate with error message if --append=<filename>
fails Signed-off-by: Stefan Weil <sw@weilnetz.de>
2011-11-14 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Run astyle
2011-11-14 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.cpp, lib/token.h: Adapt Token::strAt() to return a const
reference like Token::str() does Saves us a complete conversion from string.c_str() back to
std::string.
2011-11-13 Richard Quirk <richard.quirk@gmail.com>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fix false
positives for delete of known nulls
2011-11-13 Edoardo Prezioso <edo88@email.it>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkexceptionsafety.cpp, lib/checkmemoryleak.cpp,
lib/checknullpointer.cpp, lib/checkother.cpp, lib/checkstl.cpp,
lib/checkuninitvar.cpp, lib/checkunusedvar.cpp,
lib/symboldatabase.cpp, lib/tokenize.cpp: Change every
'tokAt(...)->str()' to 'strAt(...)'.
2011-11-12 Edoardo Prezioso <edo88@email.it>
* lib/checkobsoletefunctions.cpp, lib/checkpostfixoperator.cpp,
lib/checkstl.cpp, lib/checkunusedvar.cpp, lib/symboldatabase.cpp,
lib/tokenize.cpp: Change: 'next()->next()'->'tokAt(2)',
'previous()->previous()'->'tokAt(-2)'.
2011-11-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Add simplification of the consecutive braces
before the end of 'tokenize()' function.
2011-11-12 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Add removal of consecutive braces, i.e.: '{ {
... } }'->'{ ... }'. Changed a little bit the dead code tests.
2011-11-11 Edoardo Prezioso <edo88@email.it>
* lib/token.cpp, lib/token.h: 1)Add 'Token' function 'linkAt', which
simplifies the writing 'tokAt(i)->link()' to 'linkAt(i)'. It's
still unused, though. 2)Fix one grammatical mistake inside token.h
3)Style change to token.cpp: remove the whitespace between '!' and
'begin'.
2011-11-11 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.h: Remove check for "this" inside Token class The check hides real memory problems and is also useless in most
cases.
2011-11-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: added todo comment
2011-11-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3314 (cppcheck
incorrectly reporting Syntax error.)
2011-11-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3290
(False positive: Null pointer dereference (typeid))
2011-11-11 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: Fix #3277 (Other: attempt to
copy-construct an iterator from a singular iterator)
2011-11-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Fixed
false positive for 'char *p = strcpy(malloc(10),str);'
2011-11-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, man/cppcheck.1.xml, man/manual.docbook: Fix
#3324 (Change "--template '<text>'" into "--template='<text>'")
http://sourceforge.net/apps/trac/cppcheck/ticket/3324
https://sourceforge.net/apps/trac/cppcheck/wiki/DesignDecisions
2011-11-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Astyle fix
2011-11-10 Stefan Weil <sw@weilnetz.de>
* cli/cmdlineparser.cpp: cmdlineparser: add support for --template= The GNU standard for long command line options is --option=value.
All other long options of cppcheck support this, so add it for the
template option, too. --template xxx can be made obsolete later. Should the documentation and tests also be changed now? Signed-off-by: Stefan Weil <sw@weilnetz.de>
2011-11-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* readme.txt: Fix readme.txt to match current HAVE_RULES behaviour.
2011-11-09 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #60 from richq/varid0 Fix varid 0 with function pointer and virtual methods
2011-11-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/threadexecutor.cpp: Improve error logging in ThreadExecutor
2011-11-09 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/teststl.cpp: Add negative test for .c_str() unit test and
TODO_ASSERT_EQUALS (#3266)
2011-11-09 Richard Quirk <richard.quirk@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix varid 0 with function
pointer and virtual methods
2011-11-09 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkother.cpp: Run astyle
2011-11-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3279 (Token::Match
called with varid 0)
2011-11-08 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #59 from richq/sameexpr Improved same expression check for ticket #3274
2011-11-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fix #3307 (Invalid format
string/parameter mismatch warning)
http://sourceforge.net/apps/trac/cppcheck/ticket/3307
2011-11-08 Edoardo Prezioso <edo88@email.it>
* test/testtokenize.cpp: Oops.
2011-11-08 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3309 (false
positive: (style) Boolean result is used in bitwise operation.
Clarify expression with parentheses)
2011-11-08 Richard Quirk <richard.quirk@gmail.com>
* lib/mathlib.cpp: Remove duplicate expressions on both sides of ||
2011-11-08 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fix for same expression
separated by commas The code branch tested by the previous check for && is now
different, so I've changed the test to use == instead. There was
also a missing case when the expression was followed by a comma
instead of being preceded by one.
2011-11-08 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Improved %or% and & checks
2011-11-08 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Improved
same expression check for ticket #3274 Expand the logic for the check for the same expression on both sides
of the || and && operators. Now expressions can be more complex,
with the "alt" variable helping to fudge operator precedence to
avoid false positives.
2011-11-08 Edoardo Prezioso <edo88@email.it>
* test/testtoken.cpp: Add test for Token::eraseTokens.
2011-11-08 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed tokenizer: don't
change '*(str+num)' if '*' means a product with a previous variable
or number. Ditto for '&str[num]' (still commented).
2011-11-08 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #3310
(segmentation fault of cppcheck)
2011-11-08 Edoardo Prezioso <edo88@email.it>
* test/testsimplifytokens.cpp: Refactoring: unify same dead code
tests with a list.
2011-11-07 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Improve tokenizer: remove
more redundant parenthesis and add a prototype code for:
'&str[num]'=>'(str+num)' with reporting non obvious test failures.
2011-11-07 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #70 (Locate
memory leaks when alloc happens in function parameter)
http://sourceforge.net/apps/trac/cppcheck/ticket/70
2011-11-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fix #3278 (FP:
Possible null pointer dereference with for loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/3278 Bail out if
token "for" is encountered.
2011-11-07 Edoardo Prezioso <edo88@email.it>
* lib/checkinternal.cpp: Conforming style: always use 'std::'
namespace where needed. This removes the mixing style inside the
code.
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.cpp, test/testtoken.cpp: Fix false positive of %or%
match in alternative pattern match code %or% triggered on code using "|=" or "||".
2011-11-06 Richard Quirk <richard.quirk@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Fix namespaced types for
auto_ptr new[] errors This fixes false negatives for code such as: std::auto_ptr<foo::bar> p(new foo::bar[10]); The idea is to find a "new", search for the end token ";", then see
if the declaration ends in a closing square bracket. Also fixes
other cases that checked for "new %type% [" so that they work with
namespaces.
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testtoken.cpp: Extended isOp() tests to do proper negative
testing against other operators
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testtoken.cpp: Unit test for Token::isArithmeticalOp() and
Token::isStandardType()
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testtoken.cpp: Unit test for %varid% match Also run astyle.
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testtoken.cpp: Unit test for %type% and %str% matches
2011-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#3233 (false positive: (style) Checking if unsigned variable 'i' is
less than zero.)
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testtoken.cpp: Unit test for Token::isExtendedOp() and
Token::isAssignmentOp()
2011-11-06 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.cpp, test/testtoken.cpp: Fix single %op% operator not
working at all When parsing the Token::Match pattern, we accesed the wrong
character in the pattern and never executed the %op% check. In addition the unit test function for %op% wasn't registered in the
test suite. Ups. All fixed now and also provide a complete check for all operators
%op% supports.
2011-11-06 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: Improve same expression check: remove '%op%'
pattern and add ',' for the same expressions as an argument inside a
function. Improve compound assignment simplification: use already
defined 'isAssignmentOp' and extend the adding parenthesis to a
generic operator, not only to the arithmetical ones. See:
http://en.cppreference.com/w/cpp/language/operator_precedence
2011-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testcharvar.cpp: Fixed #3282 (Invalid
report that an array index is of type char.)
2011-11-06 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, lib/settings.cpp,
test/testpreprocessor.cpp: Fixed #3275 (Missing includes always
reported)
2011-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3265 (false
positive: comparison of bool with nonzero integer)
2011-11-05 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp, test/testother.cpp: Improve same expression
check: take count of operations and assignments before the same
expression and add missing 'return' pattern to the struct member
variable part of the check.
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testincompletestatement.cpp: Fixed #3251
(Redundant code: Found a statement that begins with numeric
constant)
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: astyle formatting
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: Token: assert that multicompare patterns don't
begin with some %% command
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp, test/testtoken.cpp:
Fixed #3294 (Token::Match multi compare false negative)
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #55 from richq/sameexpr Improve for same expression on both sides of operator
2011-11-05 Zhiyuan Zhang <zzysjtu@users.sourceforge.net>
* cli/cppcheckexecutor.cpp: Fixed #3292 (Error in
--suppressions-list silently ignores all subsequent command line
options)
2011-11-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cppcheckexecutor.cpp: Fix typo "Cpppcheck"
2011-11-05 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Improve for same
expression on both sides of operator
2011-11-05 Richard Quirk <richard.quirk@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Extra check for auto_ptr new[] This fixes cases like this: auto_ptr<foo> bar(new foo[10]); which previously did not work correctly.
2011-11-05 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testtoken.cpp: Test case to demonstrate #3294
2011-11-05 Daniel Marjamaki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsymboldatabase.cpp,
test/testtokenize.cpp: Fixed #3188 (Function parser false positive)
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3117
(Tokenizer::simplifyKnownVariables : Don't simplify static variable
that is changed)
2011-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h: fixed --doc output
2011-11-05 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#3089 (New Check: Detect wrong usage of printf/scanf)
2011-11-04 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #54 from gansb/master Testcases for #3287 and #3290
2011-11-04 Benjamin Goose <gansb+github@tngtech.com>
* test/testnullpointer.cpp, test/testuninitvar.cpp: Add tests for
various bugs. False positive: uninitialized variable (ticket #3287). False
positive: null pointer dereference in typeid (ticket #3290).
2011-11-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp: Improve internal error print out, print line number
with the error message.
2011-11-03 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #3248
(Tokenizer: better handling of char constants that are compared with
numeric constants)
2011-11-03 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #3285
(wrong #elif behaviour)
2011-11-02 Daniel Marjamaki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed failed
unit test
2011-11-02 Daniel Marjamaki <danielm77@spray.se>
* test/testpreprocessor.cpp: Removed old test case for missing
includes. There is better testing in
TestPreprocessor::def_missingInclude
2011-11-02 Daniel Marjamaki <danielm77@spray.se>
* test/testpreprocessor.cpp: Preprocessor: Unit test handling of
missing includes in 'normal' preprocessing
2011-11-02 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Don't warn about missing
system headers during 'normal' preprocessing
2011-11-02 Daniel Marjamaki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3279 (Token::Match
called with varid 0)
2011-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, test/testconstructors.cpp:
removed 'explicit constructors' check. see comments in pull request
#51 for the reasons.
2011-11-01 Daniel Marjamaki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3272 (Internal
error)
2011-11-01 Edoardo Prezioso <edo88@email.it>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
gui/gui.cppcheck, lib/checkclass.cpp, lib/symboldatabase.h,
lib/tokenize.cpp: Fix some complainted choices made in my older
commits. Note: probably you should do 'make clean' before using
'make' to rebuild it again. Maybe it's me but 'make' reports various
errors when linking.
2011-11-01 Ettl Martin <ettl.martin@gmx.de>
* test/testbufferoverrun.cpp: added testcase for ticket #3273
2011-11-01 Edoardo Prezioso <edo88@email.it>
* cppcheck.cppcheck: Fixed: some gui/temp headers reported missing
includes from gui/ folder.
2011-10-31 Ettl Martin <ettl.martin@gmx.de>
* cli/cmdlineparser.h, cli/pathmatch.h: cli: added
'explicit'-keyword in CmdLineParser and PathMatch ctor
2011-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL: updated
error messages for 'useless call to find/swap/substr'. Ticket: #3258
2011-10-31 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #53 from gansb/master Add missing newline
2011-10-31 Benjamin Goose <gansb+github@tngtech.com>
* lib/standards.h: Add newline at end of file!
2011-10-31 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp: Fixed ticket #3269 (Regression, I think it's
somehow related to symbol database)
2011-10-31 Edoardo Prezioso <edo88@email.it>
* lib/checkbufferoverrun.cpp, lib/checkother.cpp, lib/tokenize.cpp:
General code tweaking, nothing strange.
2011-10-30 makulik <g-makulik@t-online.de>
* cli/cmdlineparser.cpp, man/cppcheck.1.xml: Small fixes for -I and
--includes-file help texts
2011-10-30 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h: Preprocessor: Bailout
#include if it is recursive
2011-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Enable 'normal' preprocessing
whenever any defines are given. The special define CPPCHECK-TEST
isn't needed anymore.
2011-10-30 Edoardo Prezioso <edo88@email.it>
* cli/cppcheckexecutor.cpp, lib/checkbufferoverrun.cpp,
lib/checkclass.cpp, lib/checkinternal.cpp, lib/checkstl.cpp,
lib/tokenize.cpp, tools/dmake.cpp: Fix some GCC warnings regarding
the sign conversion.
2011-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3231 (False
positive: uninitialized variable '({...})')
2011-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3228
(false positive: possible null pointer dereference)
2011-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testconstructors.cpp: astyle
formatting
2011-10-30 Daniel Marjamaki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3222 (false
positive: Uninitialized variable with function pointer)
2011-10-30 Edoardo Prezioso <edo88@email.it>
* test/testclass.cpp, test/testother.cpp: Fix all the test failures
caused by my previous commit.
2011-10-30 Edoardo Prezioso <edo88@email.it>
* test/testclass.cpp, test/testother.cpp: Fixed lots of test
failures caused by my previous commit. There are still some which I
don't know how to fix.
2011-10-30 Edoardo Prezioso <edo88@email.it>
* lib/checkclass.cpp, lib/checkother.cpp: Fixed: with checkConst and
checkVariableScope wanted still required "information" settings
instead of "style".
2011-10-30 Daniel Marjamaki <danielm77@spray.se>
* lib/checkclass.h: CheckClass: Added classInfo about explicit
checking
2011-10-30 Daniel Marjamaki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp: Visual Studio: Fixed compiler error
2011-10-30 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #51 from richq/explicit Explicit constructors
2011-10-29 Edoardo Prezioso <edo88@email.it>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Little
improvements with cli messages and added new '--template' mode:
'edit'. This option makes it possible opening correctly some
editors like 'gedit' or 'vim' by copy-pasting the filename and the
line to the command sequence.
2011-10-29 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer: Change 'var++|--;' into '++|--var;'
and remove redundant 'tokAt(0)'.
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3092
(Tokenizer::setVarId : shadow variable in member function gets the
wrong varid)
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: astyle formatting
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#3221 (FP: Array 'arr[2147483648]' index 0 out of bounds in loop
when size unknown to cppcheck)
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
#3195 (operator() from a functor-struct is never used)
2011-10-29 Thomas Jarosch <thomas.jarosch@intra2net.com>
* cli/filelister.cpp, cli/filelister.h: FileLister (linux): Refactor
code to keep only one list of seen directory entries The list contains filenames and directories now and is only used for
duplicate detection.
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: astyle formatting
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #3152
(Tokenizer: template constructor is removed)
2011-10-29 Thomas Jarosch <thomas.jarosch@intra2net.com>
* cli/filelister.cpp, cli/filelister.h: FileLister (linux): Handle
cyclic symbolic links Keep a list of already seen directories. The "udev" project f.e. has a directory with a subdirectory that
contains a symbolic link back to the parent directory.
2011-10-29 Thomas Jarosch <thomas.jarosch@intra2net.com>
* cli/filelister.cpp, cli/filelister.h, test/testfilelister.cpp:
FileLister (linux): Move absolute path determination to own function Cleans up the #ifdef hell in the code. Provide unit test for it.
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3245 (False
positive: Dangerous usage of 'string' (strncpy doesn't always
0-terminate it))
2011-10-28 Richard Quirk <richard.quirk@gmail.com>
* lib/check.h, lib/checkbufferoverrun.cpp,
lib/checknullpointer.cpp, lib/checkuninitvar.cpp,
lib/preprocessor.cpp, lib/token.h: Ensure single-argument
constructors are explicit
2011-10-28 Richard Quirk <richard.quirk@gmail.com>
* lib/checkclass.cpp, lib/checkclass.h, test/testconstructors.cpp:
Add checks for explicit constructors Single-argument constructors should be explicit. Constructors with
multiple arguments should not be marked explicit.
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Make sure that
friend classes don't get varid. Ticket: #2962
2011-10-28 Richard Quirk <richard.quirk@gmail.com>
* test/testclass.cpp, test/testconstructors.cpp: Make
single-argument test constructors explicit
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
Added inconclusive error message when calling member function of
NULL object.
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: use reportInconclusiveError instead of
reportError if checking is inconclusive
2011-10-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checknullpointer.cpp: Fix related to previously fixed #3256
(Null pointer dereference not detected) Use
reportInconclusiveError() instead of reportError().
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkinternal.cpp: astyle formatting
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: updated comment. removed a inconclusive
condition, I don't think it's needed.
2011-10-29 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkinternal.cpp, lib/settings.cpp,
test/testcmdlineparser.cpp, test/testinternal.cpp: Disable internal
checks if NDEBUG is defined (release build)
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: strncmp sizeof: tweaked the check.
2011-10-29 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkinternal.cpp, lib/checkinternal.h, test/testinternal.cpp:
Add internal check that searches Token::Match() patterns for missing
% end charaters Example: "%type" or "foo %var bar"
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: fix unit test failure
2011-10-29 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #50 from richq/strncmp Improved strncmp checks * strings are always the same * inconclusive: using sizeof(char *) as size parameter
2011-10-29 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp: Only run sizeof(char*) check if inconclusive
is set
2011-10-29 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp: Move string comparison out of the report
function
2011-10-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fix #3256
(Null pointer dereference not detected)
http://sourceforge.net/apps/trac/cppcheck/ticket/3256 It is now
detected if --inconclusive command line argument is given (the
argument is unofficial currently)
2011-10-29 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3261 (Function 'find'
useless call. The variable 'str' is using function 'find' against
itself)
2011-10-29 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Tokenizer time improvements (time says real: -1
second) 1)change tokAt(1|-1) with next()|previous() with conditions
where necessary; 2)change strAt(1|-1) with next()|previous()->str()
with conditions where necessary; 3)change tokAt(n)->str(), with n !=
-1,1, to strat(n); 4)change simplifyFuncInWhile implementation
because it was too slow and stupid.
2011-10-29 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp, lib/tokenize.cpp: Definitely check correctly
'sizeof %num%' when '%num%' has '-' sign.
2011-10-28 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkunusedvar.cpp: Fix logic glitch Reported by Pc-Lint 9.x :o) The code was working before as the AND operation also matched in
that specific case. I verified that code is in use by commenting it out and checked how
many tests failed.
2011-10-28 Thomas Jarosch <thomas.jarosch@intra2net.com>
* .gitignore: Update .gitignore * KDE text editor backup files * stuff from broken patches * kdevelop 4.x files
2011-10-28 Thomas Jarosch <thomas.jarosch@intra2net.com>
* Makefile, lib/checkinternal.cpp, lib/checkinternal.h,
lib/lib.pri, lib/settings.cpp, test/testcmdlineparser.cpp,
test/testinternal.cpp: Add check for cppcheck's internal API usage
(#3263) First checks: - Simple pattern used inside Token::Match() - Complex pattern used inside Token::simpleMatch() The checks get enabled by passing "--enable=internal". It's not
included in "--enable=all". If you see something that needs further tweaking, just go for it!
2011-10-28 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testnullpointer.cpp: Run astyle
2011-10-28 Thomas Jarosch <thomas.jarosch@intra2net.com>
* gui/test/data/benchmark/simple.cpp, test/testmemleak.cpp,
test/testtoken.cpp: Use Token::simpleMatch() /
Token::findsimplematch() where possible
2011-10-28 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Warn
when sizeof is used in strncmp ticket #2095 This checks for the case where the user thought sizeof(buf) gave the
size in bytes of 'buf' in code like the following: const char *buf = "Hello World"; strncmp(buf, other, sizeof(buf));
2011-10-28 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Add
check for comparison of identical string variables
2011-10-28 Richard Quirk <richard.quirk@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Add strncmp to the list of
static string comparison functions
2011-10-28 Ville Skyttä <ville.skytta@iki.fi>
* Makefile, tools/dmake.cpp: Makefile: Use pcre-config to get
include/lib paths etc
2011-10-28 Edoardo Prezioso <edo88@email.it>
* lib/token.cpp: Improve nextArgument by returning 0 if there's an
unexpected ';'.
2011-10-28 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/tokenize.cpp: Use new findsimplematch API for simple patterns
2011-10-28 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Complete todo: convert 'for' into 'while'. It's
not possible to enable this code because of the disaster it will be
created for all the checks with the 'for' pattern.
2011-10-27 Ettl Martin <ettl.martin@gmx.de>
* test/testnullpointer.cpp: added unittest for ticket #1780
2011-10-27 PKEuS <philipp.kloke@web.de>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: Fixes false
positives in test suite, adds unit test for void-simplification
2011-10-27 PKEuS <philipp.kloke@web.de>
* lib/tokenize.cpp: Tokenizer: Simplify 'foo(void)' to 'foo()'
2011-10-27 PKEuS <philipp.kloke@web.de>
* lib/tokenize.h: Improved isJavaOrCSharp, isC and isCPP. Fixed isC
for files with includes.
2011-10-27 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/tokenize.cpp: Bugfix: Use Token::Match instead of
Token::simpleMatch because it's a complex pattern This bug was in here before my recent refactoring. (And yes, I wrote a check for cppcheck's Token::Match invocation ;))
2011-10-27 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checkother.cpp, lib/executionpath.cpp,
lib/preprocessor.cpp, lib/token.cpp, lib/token.h, lib/tokenize.cpp:
Implement Token::findsimplematch und use it for simple patterns
2011-10-27 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkautovariables.cpp, lib/checkbufferoverrun.cpp,
lib/checkclass.cpp, lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/checkstl.cpp, lib/checkunusedvar.cpp, lib/symboldatabase.cpp,
lib/tokenize.cpp: Use Token::simpleMatch instead of Token::Match for
simple patterns
2011-10-27 Daniel Marjamaki <danielm77@spray.se>
* lib/checkassignif.h, lib/checkother.h: minor formatting updates of
--doc output
2011-10-27 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Added code for simplification of 'for ( a; b;
c;); -> '{ a; for (; b; c;) ; }'. It's not enabled because it fails
many tests with testrunner.
2011-10-27 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Move the simplification of 'strlen' in
simplifyTokenList. This way it's possible to omit the call to
simplifyKnownVariables before 'strlen'.
2011-10-26 seb777 <sebastien.debrard@gmail.com>
* lib/tokenize.h: fix isC method (.C files are C code files)
2011-10-26 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkstl.cpp, test/teststl.cpp: STL check: Detect return of
implict string conversion + .c_str() Examples are: std::string msg; return ("ERROR: " + msg).c_str(); or return ("ERROR: " + std::string("crash me")).c_str();
2011-10-26 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkstl.cpp, test/teststl.cpp: STL check: Check if someone
tries to return std::string(crash_me).c_str()
2011-10-26 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/tokenize.h: Run astyle
2011-10-26 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkstl.cpp, test/teststl.cpp: STL check: Look for
string.c_str() / stringstream.str().c_str() "return" usage (object
is destroyed on return)
2011-10-26 seb777 <sebastien.debrard@gmail.com>
* lib/checkother.cpp, lib/tokenize.h: Fixed Ticket 2144 (false
negatives: Old Style Pointer Cast apply only on .cpp files)
2011-10-25 seb777 <sebastien.debrard@gmail.com>
* : commit 1a6706005f204c3ccf62651a3671b772d0037e32 Author: seb777
<sebastien.debrard@gmail.com> Date: Tue Oct 25 22:38:23 2011 +0200
2011-10-25 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #46 from rpavlik/patch-1 Use forward slashes in resource file to support cross-building.
2011-10-25 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Report missing includes during
'normal' preprocessing. Ticket: #2131
2011-10-24 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #47 from rpavlik/patch-2 Remove 'help' from qmake profile
2011-10-24 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Fixed #3174
(New check: Useless calls of STL functions)
2011-10-24 Daniel Marjamäki <danielm77@spray.se>
* : commit d3ede39d24c7986dc42a32edfa53209eb5d91022 Author: Ryan
Pavlik <ryan.pavlik@snc.edu> Date: Mon Oct 24 15:41:21 2011 -0500
2011-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: astyle formatting
2011-10-24 Daniel Marjamäki <danielm77@spray.se>
* test/testpreprocessor.cpp: Preprocessor: updated tests
2011-10-24 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Refactor readlink() buffer check to also
handle readlinkat()
2011-10-24 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Make it possible to use the
'normal' preprocessor by using special command -DCPPCHECK-TEST.
Ticket: #2131
2011-10-24 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
handle '#undef' better. Ticket: #2131
2011-10-24 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Improved 'normal' preprocessing. better handling of multiple #elif
and #else blocks
2011-10-24 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Better 'normal' preprocessing. Simple handling of '#elif'
2011-10-24 Daniel Marjamäki <danielm77@spray.se>
* webreport.sh: webreport: updated scp command
2011-10-24 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: dmake: disabled -Wunreachable-code
because there was too many warnings
2011-10-24 Edoardo Prezioso <edo88@email.it>
* Makefile, lib/token.cpp, lib/token.h, lib/tokenize.cpp,
lib/tokenize.h, tools/dmake.cpp: Add new warning option to check for
dead code and change the order of some struct members to reduce
structure padding.
2011-10-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testnullpointer.cpp: Improve null pointer dereference test
coverage
2011-10-23 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.h: Clarify Token::concatStr() documentation
2011-10-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Update codeblocks project file
2011-10-23 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.h, test/testtoken.cpp: Document and test
Token::concatStr()
2011-10-23 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/token.cpp, lib/token.h, test/testtoken.cpp: Bugfix: Update
token properties on string changes
2011-10-23 Daniel Marjamäki <danielm77@spray.se>
* webreport.sh: webreport: minor updates
2011-10-23 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: updates to 'normal'
preprocessing
2011-10-23 PKEuS <philipp.kloke@web.de>
* lib/checkbufferoverrun.cpp: Make checkSprintfCall using
nextArguments()
2011-10-23 Daniel Marjamäki <danielm77@spray.se>
* test/test.pro: test/test.pro: indentation update
2011-10-23 Daniel Marjamaki <danielm77@spray.se>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
cppcheck_vs2010.sln, test/test.pro, test/testrunner.vcproj,
test/testrunner.vcxproj, test/testrunner.vcxproj.filters: Visual
Studio: auto generated new visual studio project files
2011-10-23 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp: Bugfix: checknullpointer worked
incorrect for complex first
2011-10-23 Thomas Jarosch <thomas.jarosch@intra2net.com>
* Makefile, lib/checkboost.cpp, lib/checkboost.h, lib/lib.pri,
lib/preprocessor.cpp, lib/tokenize.cpp, test/testboost.cpp: Fixed
#3232 (Check if container is modified inside BOOST_FOREACH)
2011-10-23 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #44 from makulik/master #3244 'Get include pathes from file'
2011-10-23 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testother.cpp: Fixed #3187 (Remove code duplication in
'other' unit test)
2011-10-23 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, lib/token.cpp, lib/token.h,
test/testtoken.cpp: Added Token::nextArgument()
2011-10-23 makulik <g-makulik@t-online.de>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Signed-off-by:
Günther Makulik <g-makulik@t-online.de>
2011-10-23 unknown <g-makulik@t-online.de>
* cli/cmdlineparser.cpp, man/cppcheck.1.xml: Signed-off-by: Günther
Makulik <g-makulik@t-online.de>
2011-10-23 Erik Lax <erik@datahack.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #3237 (Bug in
parser of class operator functions)
2011-10-23 Daniel Marjamäki <danielm77@spray.se>
* test/testcmdlineparser.cpp: Test: Fixed testing
2011-10-23 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: astyle
formatting
2011-10-23 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #43 from makulik/master #3244 'Get include pathes from file'
2011-10-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkstl.cpp: Added support for C++11's
cend/crend/cbegin/crbegin functions in some STL checks Patch from:
PKEuS <philipp.kloke@web.de>
2011-10-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Improved memset with 0
bytes check. TODO done (unit test). Patch from: PKEuS
<philipp.kloke@web.de>
2011-10-22 unknown <g-makulik@t-online.de>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: #3244 'Get
include pathes from file' Signed-off-by: Günther Makulik <g-makulik@t-online.de>
2011-10-22 Edoardo Prezioso <edo88@email.it>
* lib/checkother.cpp, test/testother.cpp: Improve fix of #934 (be
careful of macros code).
2011-10-22 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#934 (new check: missuse of std::cout)
2011-10-22 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Update download to version 1.51
2011-10-22 Edoardo Prezioso <edo88@email.it>
* Makefile, lib/executionpath.h, lib/symboldatabase.cpp,
tools/dmake.cpp: Add more warnings and fix the ones reported by
them.
2011-10-22 Johan Samuelson <stinsen@gmail.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #3123 ([False
Positive] Shadowed enum)
2011-10-22 Edoardo Prezioso <edo88@email.it>
* Makefile: Run tools/dmake.
2011-10-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: made 'variableHidingTypedef' inconclusive. See
ticket #3199
2011-10-22 Erik Lax <erik@datahack.se>
* lib/checkobsoletefunctions.cpp, test/testobsoletefunctions.cpp:
Fixed #3238 (Crash in obsolete functions check.)
2011-10-22 PKEuS <philipp.kloke@web.de>
* lib/checknonreentrantfunctions.cpp, lib/checkother.cpp:
checkMathFunctions: Refactoring the check
2011-10-22 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checknonreentrantfunctions.cpp,
lib/checknonreentrantfunctions.h,
test/testnonreentrantfunctions.cpp: Fix #3243 (Improve non reentrant
function check) - Use std::map instead of linear std::list walk and run fast tests like tok->isName() first. Global speed up is 4.8% (profiled with google-perftools) - Catch function invocations in global namespace and ignore other namespaces except "std". std::localtime() and others are also non-thread safe on POSIX. Note: The check matches f.e. also on "std::getrpcbyname()", but that would result in a compile error anyway. No need to have an extra "std::xxxxx" whitelist. - Remove double listed "rand" and "getrpcbyname" function names
2011-10-22 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/settings.h, test/testcmdlineparser.cpp:
astyle formatting
2011-10-22 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/standards.h: Fixed #3204 (Refactor standards support in
Settings)
2011-10-22 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #41 from gansb/master std::istream used but not declared.
2011-10-22 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* cli/cmdlineparser.cpp, lib/checkbufferoverrun.cpp,
lib/checknonreentrantfunctions.cpp, lib/checkobsoletefunctions.cpp,
lib/settings.cpp, lib/settings.h, lib/tokenize.cpp,
test/testbufferoverrun.cpp, test/testcmdlineparser.cpp,
test/testnonreentrantfunctions.cpp, test/testnullpointer.cpp,
test/testobsoletefunctions.cpp: Fixed #3204 (Refactor standards
support in Settings)
2011-10-20 Edoardo Prezioso <edo88@email.it>
* test/testother.cpp: Nitpicky fix of the missing ';' after the
memset command inside the test case.
2011-10-20 Benjamin Goose <gans+github@tngtech.com>
* lib/symboldatabase.cpp: Qualify fill_n properly. Relying on ADL isn't a good idea as it's not always well
implemented.
2011-10-20 Benjamin Goose <gans+github@tngtech.com>
* lib/path.cpp: Add condition for HP-UX.
2011-10-20 Benjamin Goose <gans+github@tngtech.com>
* lib/tokenize.h: Include <iosfwd> for std::istream.
2011-10-19 seb777 <sebastien.debrard@gmail.com>
* lib/checkobsoletefunctions.cpp, test/testobsoletefunctions.cpp:
Fixed ticket #3133 (Improve Check: Found obsolete function) - add check for std::gets - improve check when multiple obsolete functions are used - remove false positive (declared functions)
2011-10-19 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improve tokenizer:
don't confuse between a label and the case/default statements.
2011-10-19 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improve tokenizing
of "do{ ... } while(0)". The simplification will be the same for
every combination, except for the 'continue' and the 'break'. In
that case, keep the block braces.
2011-10-19 Edoardo Prezioso <edo88@email.it>
* lib/pcrerules.pri: Complete 'disable the rules by default' for
other platforms.
2011-10-19 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Runastyle + removal of useless conditions after
previous commit.
2011-10-19 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3227
(Improve tokenizer: labels are not handled correctly after a case or
another label instruction) Moved the labels simplification after
combining the tokens and moved the case/default simplification
inside the labels.
2011-10-05 Joshua Beck <jxb091000@utdallas.edu>
* cli/cmdlineparser.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, man/cppcheck.1.xml, test/testcmdlineparser.cpp: Add
option to set #ifdef configuration check limit
2011-10-18 Edoardo Prezioso <edo88@email.it>
* lib/mathlib.cpp, lib/tokenize.cpp, test/testsimplifytokens.cpp:
Fixed ticket #3229 (Segfault with goto): Don't handle labels, gotos,
returns and indentations inside the round braces. This is applied
not only for simplifyGoto, but also to simplifyFlowControl. Rewrite
enum badly handled by astyle inside mathlib.cpp and move
simplifyFlowControl at the end of the simplifyTokenList in order to
catch more dead code, not related to the ticket.
2011-10-18 PKEuS <philipp.kloke@web.de>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3223 (Improve check:
Check more STL algorithms for missmatching containers check)
2011-10-18 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#3225 (Boolean comparison with string literals)
2011-10-18 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/checknullpointer.cpp, test/testnullpointer.cpp:
Fixed #3220 (False positive: possible null pointer dereference:
'SwDoc *pDoc = NULL; pDoc->do_something();')
2011-10-17 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: gcc: fixed compiler warnings/errors
2011-10-17 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: Makefile: Disable rules by default
2011-10-17 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Started working on new
preprocessing that uses -D information better. Ticket: #2131
2011-10-17 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Remove redundant function findmatch inside
tokenize.cpp. There's Token::findmatch which is already used inside
other Tokenizer functions.
2011-10-17 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: - Fixed mispelled function name; changed variable name inside
simplifyFlowControl for consistency; improved simplifyFlowControl to
handle better this kind of code: "return; { { } { label : ; ok ( ) ;
} }"->"return ; { { label: ok ( ) ; } }".
2011-10-16 Edoardo Prezioso <edo88@email.it>
* test/testmemleak.cpp: Removed redundant test, which was related to
the Tokenizer, not to the memory leak checker.
2011-10-16 Daniel Marjamäki <danielm77@spray.se>
* gui/filelist.h, gui/translationhandler.h, lib/symboldatabase.h:
fixed a few doxygen warnings
2011-10-16 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: cli: updated help text for --std option
2011-10-16 Ettl Martin <ettl.martin@gmx.de>
* lib/tokenize.cpp: fixed regression on linux due to missing include
2011-10-16 PKEuS <philipp.kloke@web.de>
* cli/cmdlineparser.cpp, lib/settings.cpp, lib/settings.h,
lib/tokenize.cpp, test/testcmdlineparser.cpp,
test/testnullpointer.cpp: Fixed #2470 (False negative: Possible null
pointer dereference (C++0x keyword 'nullptr'))
2011-10-16 Daniel Marjamäki <danielm77@spray.se>
* lib/token.h: Token: Updated comments
2011-10-16 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkother.cpp, lib/checkother.h, lib/tokenize.cpp,
lib/tokenize.h, test/testbufferoverrun.cpp, test/testtokenize.cpp:
Fix #3208 (Simplify pointer to standard type, C only) The symbol database is unavailable during token simplification and
&data[0] might return something completely different for C++. Moved code_is_c() from checkOther to Tokenizer.
2011-10-16 Daniel Marjamäki <danielm77@spray.se>
* cli/filelister.cpp, cli/pathmatch.cpp, lib/preprocessor.cpp,
lib/symboldatabase.cpp: Borland: Fixed compiler errors
2011-10-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: astyle formatting
2011-10-16 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed ##3211
(Crash in gitHEAD when arglist count is smaller than format string)
2011-10-15 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h: Changed the name of the removal
of dead code after flow control statements for consistency
(simplifyDeadCode is too generalized as name)
2011-10-15 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #3138
(Tokenizer: remove unreachable code below goto inside a
namespace|class|struct block)
2011-10-15 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed ticket #3113 (complete simplification of dead code after
control flow statements)
2011-10-14 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #3210 (STL check: Add
support for reverse iterator)
2011-10-14 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #3198 (Add check for readlink())
2011-10-13 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #39 from neuschaefer/codespell.v2 codespell v2
2011-10-13 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h,
cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/filelister.cpp, cli/filelister.h, cli/pathmatch.cpp,
cli/pathmatch.h, cli/threadexecutor.cpp, cli/threadexecutor.h,
gui/aboutdialog.cpp, gui/aboutdialog.h, gui/application.h,
gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/applicationlist.cpp, gui/applicationlist.h,
gui/checkstatistics.cpp, gui/checkstatistics.h,
gui/checkthread.cpp, gui/checkthread.h, gui/csvreport.cpp,
gui/csvreport.h, gui/erroritem.cpp, gui/erroritem.h,
gui/filelist.cpp, gui/filelist.h, gui/fileviewdialog.cpp,
gui/fileviewdialog.h, gui/logview.cpp, gui/logview.h, gui/main.cpp,
gui/mainwindow.cpp, gui/mainwindow.h, gui/platforms.cpp,
gui/platforms.h, gui/project.cpp, gui/project.h,
gui/projectfile.cpp, gui/projectfile.h, gui/projectfiledialog.cpp,
gui/projectfiledialog.h, gui/report.cpp, gui/report.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/showtypes.cpp, gui/showtypes.h, gui/statsdialog.cpp,
gui/statsdialog.h, gui/test/benchmark/simple/benchmarksimple.cpp,
gui/test/benchmark/simple/benchmarksimple.h,
gui/test/data/benchmark/simple.cpp,
gui/test/filelist/testfilelist.h,
gui/test/projectfile/testprojectfile.h,
gui/test/translationhandler/testtranslationhandler.h,
gui/test/xmlreport/testxmlreport.h,
gui/test/xmlreportv1/testxmlreportv1.h,
gui/test/xmlreportv2/testxmlreportv2.h, gui/threadhandler.cpp,
gui/threadhandler.h, gui/threadresult.cpp, gui/threadresult.h,
gui/translationhandler.cpp, gui/translationhandler.h,
gui/txtreport.cpp, gui/txtreport.h, gui/xmlreport.cpp,
gui/xmlreport.h, gui/xmlreportv1.cpp, gui/xmlreportv1.h,
gui/xmlreportv2.cpp, gui/xmlreportv2.h, lib/check.h,
lib/check64bit.cpp, lib/check64bit.h, lib/checkassignif.cpp,
lib/checkassignif.h, lib/checkautovariables.cpp,
lib/checkautovariables.h, lib/checkbufferoverrun.cpp,
lib/checkbufferoverrun.h, lib/checkclass.cpp, lib/checkclass.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/checknonreentrantfunctions.cpp,
lib/checknonreentrantfunctions.h, lib/checknullpointer.cpp,
lib/checknullpointer.h, lib/checkobsoletefunctions.cpp,
lib/checkobsoletefunctions.h, lib/checkother.cpp, lib/checkother.h,
lib/checkpostfixoperator.cpp, lib/checkpostfixoperator.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkuninitvar.cpp,
lib/checkuninitvar.h, lib/checkunusedfunctions.cpp,
lib/checkunusedfunctions.h, lib/checkunusedvar.cpp,
lib/checkunusedvar.h, lib/cppcheck.cpp, lib/cppcheck.h,
lib/errorlogger.cpp, lib/errorlogger.h, lib/executionpath.cpp,
lib/executionpath.h, lib/mathlib.cpp, lib/mathlib.h, lib/path.cpp,
lib/path.h, lib/preprocessor.cpp, lib/preprocessor.h,
lib/settings.cpp, lib/settings.h, lib/suppressions.cpp,
lib/suppressions.h, lib/symboldatabase.cpp, lib/symboldatabase.h,
lib/timer.cpp, lib/timer.h, lib/token.cpp, lib/token.h,
lib/tokenize.cpp, lib/tokenize.h, runastyle, runastyle.bat,
test/options.cpp, test/options.h, test/redirect.h,
test/test64bit.cpp, test/testassignif.cpp,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testcmdlineparser.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdivision.cpp,
test/testerrorlogger.cpp, test/testexceptionsafety.cpp,
test/testfilelister.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp,
test/testnonreentrantfunctions.cpp, test/testnullpointer.cpp,
test/testobsoletefunctions.cpp, test/testoptions.cpp,
test/testother.cpp, test/testpath.cpp, test/testpathmatch.cpp,
test/testpostfixoperator.cpp, test/testpreprocessor.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
test/testsuite.h, test/testsuppressions.cpp,
test/testsymboldatabase.cpp, test/testthreadexecutor.cpp,
test/testtoken.cpp, test/testtokenize.cpp, test/testuninitvar.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, test/testutils.h, tools/dmake.cpp,
tools/extracttests.cpp: changed the astyle formatting flags
2011-10-13 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket 3140 and
3137 (Improve Tokenizer: Remove dead for loop - simplify while(0)
better. Note: it doesn't remove dead code if there's a label
inside. Will be improved in another ticket.
2011-10-13 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Remove redundant simplifyDeadCode call inside
the Tokenizer::tokenize and move the relative tests in the file
'testsimplifytokens.cpp'.
2011-10-13 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2627 (switch case fall through: redundant strcpy)
2011-10-12 PKEuS <philipp.kloke@web.de>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3180
(New check: Detect nullpointers given to printf via variable
argument list)
2011-10-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: astyle formatting
2011-10-12 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/resultstree.cpp,
gui/test/xmlreportv1/testxmlreportv1.cpp,
gui/test/xmlreportv2/testxmlreportv2.cpp, gui/threadresult.cpp,
gui/xmlreportv1.cpp, gui/xmlreportv2.cpp: GUI: Rename ErrorItem::id
to ErrorItem::errorId.
2011-10-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#3163 (Out of bounds pointer arithmetic not reset)
2011-10-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::removeMacrosInGlobalScope: Don't remove C/C++ keywords
namespace/struct/etc. Ticket: #3193
2011-10-12 Daniel Marjamäki <danielm77@spray.se>
* lib/check64bit.cpp, test/test64bit.cpp: Fixed #3150 (Invalid
warning when pointer difference is not adjacent)
2011-10-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #3194 (Parsing glitch
causes false 'can be const' error for an 'if' statement)
2011-10-12 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: run astyle
2011-10-11 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: improved realloc
checking '*p = realloc(*p,..'. Ticket: #1791
2011-10-11 Kimmo Varis <kimmov@gmail.com>
* gui/checkstatistics.cpp, gui/checkstatistics.h, gui/common.h,
gui/gui.pro, gui/mainwindow.cpp, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h,
gui/showtypes.cpp, gui/showtypes.h, gui/statsdialog.cpp: GUI: Move
ShowTypes enum to own class and file. We are using ShowTypes around the GUI codebase so it makes sense to
have it in its own class. And the class also contains related helper
functions instead of scattering them around different classes. ShowTypes also contains the visibility settings for all the GUI
severities. Implementation in this commit makes ShowTypes class to
load the visibility settings when it is created. And save the
settings when it is destroyed.
2011-10-11 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: [PATCH]
Detect suspicious use of semicolon after 'if/for/while' statements
if they are followed by a {..} block. Examples are: for (int i = 0; i < 10; ++i); { printf("i)"; } or if (i == 100); { die("Wrong argument"); } This new check is active if you enable inconclusive checks.
2011-10-10 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2955 (New check: Using && instead of &)
2011-10-10 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp: Fixed some simple errors in some old commits.
2011-10-10 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #3140
(Improve Tokenizer: Remove dead for loop 'for (int i = 0; i < 0;
++i)')
2011-10-09 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed #2115 (new check:
endless loop (unsigned comparison that is always true))
2011-10-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h: Fix compiling on
VC++ after previous commit
2011-10-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h: Filter out
duplicate error messages in cli.
2011-10-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3183 (False
positive: (error) syntax error)
2011-10-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, lib/checknullpointer.h,
test/testnullpointer.cpp: Null pointer: improved inconclusive
checking in CheckNullPointer::nullPointerAfterLoop
2011-10-09 seb777 <sebastien.debrard@gmail.com>
* lib/checkobsoletefunctions.cpp, test/testobsoletefunctions.cpp:
Fixed 3133 (Improve Check: Found obsolete function) - add check for std::gets - improve check when multiple obsolete functions are used - remove false positive (declared functions)
2011-10-08 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: More fixes to the label
simplifier (related to ticket 3176): 1)Simplify the labels if there
are combinations of the symbols '*','&','{' and '(' after a '%var%
:' and before another '%var%'; 2)but do not simplify the label if
it's inside an unpreprocessed macro code.
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: removed appendix. That info are
available in separate articles.
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
fixed false negatives when there are '(p && ..'
2011-10-08 Thomas Jarosch <thomas.jarosch@intra2net.com>
* test/testother.cpp, test/testthreadexecutor.cpp: Fixed #3181 (Add
missing return statements)
2011-10-08 Stefan Weil <weil@mail.berlios.de>
* lib/settings.cpp: Settings: add missing initialisation for member
variable c99 (reported by Valgrind)
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: added info about how scp is used to
upload files to release system
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Set debug mode
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* Makefile: 1.51: Updated Makefile for release
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* Changelog: 1.51: Updated Changelog
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.51: Updated versions
2011-10-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Added todo comments to fix false
negatives caused by my fix for #3128
2011-10-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3128
(False positive: null pointer dereference check does not handle
complex boolean logic properly)
2011-10-07 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: Fixed #3115 (note windows limitation to
threading in the manual)
2011-10-07 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-10-07 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/tokenize.cpp: fix tokenizer and symbol
database to not mistake goto statement for variable declaration
2011-10-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.h: run astyle
2011-10-07 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3176
(cppcheck reports wrong unused variable) Label simplification didn't
take count of the '(' parenthesis or the '&' and '*' operators
inside or outside the parenthesis after the colon.
2011-10-06 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Renamed
the function 'removeRedundantCodeAfterReturn' with
'simplifyDeadCode'. This is a preparation in order to add new
features to this function (see the @todo in the tokenize header
file, ticket #3113 and #3175 for details).
2011-10-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Readded
CheckOther::bitwiseOnBoolean as inconclusive check
2011-10-06 Marek Zmysłowski <marekzmyslowski@poczta.onet.pl>
* cli/cmdlineparser.cpp, lib/checkobsoletefunctions.cpp,
lib/checkobsoletefunctions.h, lib/settings.h,
test/testcmdlineparser.cpp, test/testobsoletefunctions.cpp: Fixed
#3072 (improve check: deprecated function alloca)
2011-10-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Removed
CheckOther::bitwiseOnBoolean check. The reasons can be seen in my
comments in ticket #3062.
2011-10-05 PKEuS <philipp.kloke@web.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1877 (Be more strict about int vs. bool, part II)
2011-10-05 Thomas Jarosch <thomas.jarosch@intra2net.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #3161 (Show buffers size info for
snprintf() buffer overruns)
2011-10-05 Edoardo Prezioso <edo88@email.it>
* : commit 3cfe7ca1a7176690174ed6fccb0d929d68eceef1 Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Oct 5 20:44:00 2011 +0300
2011-10-05 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #3148
(Analysis failed on "Modules/mathmodule.c") Fix: Do not handle code
when 'return' is inside a macro. This is valid also for 'switch'
code inside a macro.
2011-10-05 Kimmo Varis <kimmov@gmail.com>
* gui/platforms.cpp: GUI: Rename default platform to "Build-in". "default" as platform name/definition doesn't tell much and would
only confuse users. "Build-in" is not perfect either but it is best
I've can come with before the release. Ticket: #3156 (GUI: "default" platform needs proper name)
2011-10-05 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Fix enabling/disabling visibilities of
errors When GUI was started not all the categories visibility statuses were
not preserved. I.e. Ticket: #3087 (GUI does not show all reported files until a filter
button state is changed)
2011-10-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2011-10-04 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3146 "Analysis
failed" error on softmagic.c: -Fixed: the code didn't check the
rightness of the switch syntax if it was inside another switch;
-Tweaked: removed the two bool variables, so now the conditions take
count of indentation unsigned variables.
2011-10-03 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3132 (Analysis
failed. If the code is valid then please report this failure.)
2011-10-03 Kimmo Varis <kimmov@gmail.com>
* gui/platforms.cpp: GUI: Fix endless loop in previous commit. The iterator was not advanced in the loop. So the code worked when I
ran it in Linux as the first item was matching. Thanks for Robert for spotting and reporting it.
2011-10-02 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: In Windows platforms default to Win32
ANSI. When running in Windows platforms, set the GUI's checked platform
initially to Windows 32-bit ANSI. Other platforms are set initially
to default/unspecified which means the type sizes are from the
platform GUI was compiled on. This was suggested by Rober in ticket #3119.
2011-10-02 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/platforms.cpp, gui/platforms.h: GUI: Make platforms in GUI more
dynamic. We have now one list for checked platforms, menu items are created
dynamically based on that list. This makes it much easier to alter
the platforms list later on.
2011-10-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3159
(Uninitialized variable false positive)
2011-10-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3125
(FP: Possible null pointer dereference in conditional operator)
2011-10-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3126
(false positive: Null pointer dereference)
2011-10-02 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp: CLI: case-insensitive ignorepath
matching in Windows.
2011-10-02 Kimmo Varis <kimmov@gmail.com>
* cli/pathmatch.cpp, cli/pathmatch.h, test/testpathmatch.cpp: CLI:
Add support for ignoring case in PathMatch. In Windows (or in Windows code?) we want to ignore case in the
paths. This patch implements the case ignore for the PathMatch-
class.
2011-10-01 Stefan Weil <weil@mail.berlios.de>
* htdocs/site/simplepie/simplepie.inc: htdocs: fix typo in error
messages and php code (writeable -> writable)
2011-09-30 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix #3153
(false positive buffer access out-of-bounds)
2011-09-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: another variation of false
negative from #3149
2011-09-30 Stefan Weil <weil@mail.berlios.de>
* lib/settings.cpp: test _WIN64 before _WIN32 (64-bit compiler
defines both macros)
2011-09-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: really fix #3149 (false
negative: Technically the member function 'A::f' can be const.)
2011-09-30 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Disable fileListStdin test from
testcmdlineparser. That test hangs the test run.
2011-09-29 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #3149 (false negative:
Technically the member function 'A::f' can be const.)
2011-09-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3151 (missing
portability warning for extra qualifier on destructor)
2011-09-29 Robert Reif <reif@earthlink.net>
* test/testcmdlineparser.cpp: run astyle
2011-09-29 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h:
GUI: Add menu-selection for the checked platform. This is quick and dirty patch to add the platform selection for the
GUI. It is simple menu selection in Check-menu. It always defaults
to "Default" at startup. And it forget the selection when the
application is closed. Ticket: #3119 (GUI: add ability to specify platform type)
2011-09-29 Kimmo Varis <kimmov@gmail.com>
* : Merge pull request #37 from joshbeck/master Added support for reading file lists from stdin, correctly this time
2011-09-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fix #2813 (False
negative: Uninitialized variable not found for realloc)
http://sourceforge.net/apps/trac/cppcheck/ticket/2813 Patch provided
by: marekzmyslowski
2011-09-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h: refactor last commit to move
unknown type output to seperate function
2011-09-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: show unknown variable types when debug-messages
flag is set
2011-09-27 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: fix
#3008 (New check: Order of initialisation list)
2011-09-27 Joshua Beck <jxb091000@utdallas.edu>
* : Merge remote-tracking branch 'upstream/master'
2011-09-27 Joshua Beck <jxb091000@utdallas.edu>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Fix test and
add info to -h output.
2011-09-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: add support for Microsoft
TCHAR character constants
2011-09-26 Joshua Beck <jxb091000@utdallas.edu>
* man/cppcheck.1.xml, test/testcmdlineparser.cpp: Updated manual and
added test for reading file list from stdin.
2011-09-26 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testother.cpp: reduce false negatives for
checking for CheckOther::checkSignOfUnsignedVariable()
2011-09-26 Joshua Beck <jxb091000@utdallas.edu>
* cli/cmdlineparser.cpp: Added support for reading file lists from
stdin
2011-09-26 Kimmo Varis <kimmov@gmail.com>
* cppcheck.sln, cppcheck_vs2010.sln: Update VS solution files for
test project name change.
2011-09-26 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-09-26 Kimmo Varis <kimmov@gmail.com>
* gui/statsdialog.cpp: GUI: Make statistics dialog text
translatable. Refactor the code formatting statistics dialog content so that the
strings are easier to translate. Old formatting with embedded HTML
was practically impossible for translators to translate. New code
isn't very beautiful either but at least translating is now
possible. Ticket: #2726 (GUI: HTML-formatted statistics report text hard to
translate)
2011-09-25 Kimmo Varis <kimmov@gmail.com>
* gui/project.cpp, gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Rename functions related to excluding.
2011-09-25 Kimmo Varis <kimmov@gmail.com>
* gui/test/projectfile/testprojectfile.cpp: GUITESTS: Rename
variable for consistency.
2011-09-25 Kimmo Varis <kimmov@gmail.com>
* gui/test/data/benchmark/simple.cpp: GUITESTS: Remove include lines
from test data. The included files aren't found anyway so the lines are useless and
can add more variance (filesystem access) to the results.
2011-09-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: add some Windows TCHAR
scanf and printf conversions
2011-09-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: start adding Windows wide
character support
2011-09-24 Robert Reif <reif@earthlink.net>
* cli/cmdlineparser.cpp, lib/settings.cpp, lib/settings.h,
lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: start adding Windows ASCII TCHAR conversion
support
2011-09-24 seb777 <sebastien.debrard@gmail.com>
* lib/checkobsoletefunctions.cpp, test/testobsoletefunctions.cpp:
fix #3121 ([False Positive] Incorrect obsoleted functions)
2011-09-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: add operator
support to ertra qualification check
2011-09-22 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix for
loop false positives when zero length arrays present
2011-09-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: add Microsoft memory function conversions to
standard cstring functions
2011-09-21 Robert Reif <reif@earthlink.net>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: fix
#3127 ([False positive] _tmain function i VS 2010 project)
2011-09-21 Robert Reif <reif@earthlink.net>
* test/testuninitvar.cpp: fix typo in last commit
2011-09-21 Robert Reif <reif@earthlink.net>
* test/testuninitvar.cpp: add test case for false negatives
introduced by fix for 3106
2011-09-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: add some more windows
type conversions
2011-09-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3106 (False
positive: Uninitialized variable check has inconsistent behavior
with ternary operator)
2011-09-20 Johan Samuelson <stinsen@gmail.com>
* lib/token.cpp: Fixed #3118 (Tokenizer: str*cmp() in hot spot code)
2011-09-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: only simplify Microsoft
MFC code when Windows platform is selected
2011-09-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: add some common windows
pointer type conversions to standard types
2011-09-19 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix #3124
(FP: Buffer access out-of-bounds when memset two dimension array
(a[5][6]))
2011-09-19 Robert Reif <reif@earthlink.net>
* cli/cmdlineparser.cpp: fix width of platform help text
2011-09-18 Robert Reif <reif@earthlink.net>
* lib/settings.cpp: set windows platform type to type executable was
compiled on
2011-09-18 Robert Reif <reif@earthlink.net>
* lib/settings.cpp, lib/settings.h, lib/tokenize.cpp,
test/testtokenize.cpp: start adding conversions from common Windows
types to standard types
2011-09-18 Robert Reif <reif@earthlink.net>
* lib/checkunusedfunctions.cpp: run astyle
2011-09-18 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #35 from simartin/ticket_3059 Ticket 3059: Report the correct line number in unused functions
warnings
2011-09-18 Robert Reif <reif@earthlink.net>
* lib/settings.cpp, test/testtokenize.cpp: fix sizeof long double
for unix64 for #2888 (Allow defining sizes of base types)
2011-09-18 Kimmo Varis <kimmov@gmail.com>
* gui/test/benchmark/simple/benchmarksimple.cpp,
gui/test/benchmark/simple/benchmarksimple.h: GUITESTS: Add benchmark
for tokenize + simplify.
2011-09-18 Simon Martin <simartin@users.sourceforge.net>
* lib/checkunusedfunctions.cpp, lib/checkunusedfunctions.h,
test/testunusedfunctions.cpp: Ticket 3059: Report the correct line
number in unused functions warnings
2011-09-17 Robert Reif <reif@earthlink.net>
* cli/cmdlineparser.cpp, lib/settings.cpp, lib/settings.h,
lib/tokenize.cpp, test/testtokenize.cpp: fix #2888 (Allow defining
sizes of base types)
2011-09-17 Kimmo Varis <kimmov@gmail.com>
* : Merge pull request #34 from simartin/clang_build Make the build warning clean with clang++
2011-09-17 Simon Martin <simartin@users.sourceforge.net>
* test/testcmdlineparser.cpp: Make the build warning clean with
clang++
2011-09-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix wrong information
about constness of function
2011-09-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix a problem with Qt
slots immediately followed by signals
2011-09-14 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: better fix for #3114 (infinite recursion when
operator= is overloaded)
2011-09-14 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: quick fix for #3114
(infinite recursion when operator= is overloaded)
2011-09-13 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Tests: Add more commandlineparser
tests. Add commandlineparser tests for giving two suppressions. Giving two
suppressions in one parameter is not yet supported so it is
todo-test.
2011-09-13 Edoardo Prezioso <edo88@email.it>
* lib/tokenize.cpp, lib/tokenize.h, test/testclass.cpp,
test/testmemleak.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #3075 (False positive => Improve
tokenizer: remove redundant code after a 'return' state)
2011-09-12 Robert Reif <reif@earthlink.net>
* test/testother.cpp: add test for #3110 (false positve: style)
Boolean result is used in bitwise operation. Clarify expression with
parentheses)
2011-09-12 seb777 <sebastien.debrard@gmail.com>
* test/testtokenize.cpp: Remove invalid test case. The code does
not compile. In addition, it's a "todo test case".
2011-09-12 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: fix #3110 (false positve: style) Boolean
result is used in bitwise operation. Clarify expression with
parentheses)
2011-09-11 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: partial
fix for #2960 (false negative: buffer access out of bounds)
2011-09-11 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/symboldatabase.cpp,
test/testbufferoverrun.cpp: add multi-dimension array support to
second checkScope and use it for member arrays
2011-09-11 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: use correct checkScope function in
CheckBufferOverrun for single dimension member arrays
2011-09-11 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: refactor
to unify functionally identical code in
CheckBufferOverrun::checkScope()
2011-09-11 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: refactor
CheckBufferOverrun to only use multi-dimension array error messages
and remove single dimension array message
2011-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3086 (false
positive: Boolean result is used in bitwise operation.)
2011-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testunusedvar.cpp: Fixed #3104 (unread
despite modified and used in IF statement)
2011-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp: unused var: use 'else if' instead of 'if'
2011-09-11 seb777 <sebastien.debrard@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Revert "The case
statement requires constant-expression (C, C++, C# and Java." This reverts commit 5879fe419d72328d77ab9d6f717ffa81e4ab6e68.
2011-09-10 seb777 <sebastien.debrard@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: The case statement
requires constant-expression (C, C++, C# and Java. Needless to
simplify the calculation of a piece of code that can not compile.
2011-09-10 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: refactor
CheckBufferOverrun::checkScope to take an ArrayInfo parameter
2011-09-10 Robert Reif <reif@earthlink.net>
* : commit 547a79d4feac46b7d3ba04a091838669618a9b20 Author: Robert
Reif <reif@earthlink.net> Date: Sat Sep 10 10:14:32 2011 -0400
2011-09-10 Philipp Kloke <philipp.kloke@web.de>
* lib/checkother.cpp, test/testother.cpp: Fixed #1740 (Undefined
Behavior: Divide by zero)
2011-09-10 seb777 <sebastien.debrard@gmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #3093 (Simplify code
(math expression) with keywords 'return' and 'case')
2011-09-09 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: better
detection of variable sized structure in
CheckBufferOverrun::checkStructVariable()
2011-09-09 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix some
CheckBufferOverrun::checkStructVariable() flase negatives for
possible variable length structs
2011-09-09 Robert Reif <reif@earthlink.net>
* : commit 16924c7c7ad77a53b41e90f17cfe2ff75411f3f3 Author: Robert
Reif <reif@earthlink.net> Date: Fri Sep 9 07:16:39 2011 -0400
2011-09-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3096 (false
negative: memory leak not found when passing string to strtok)
2011-09-08 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix one of
the TODO testcases added for #3094 (Buffer access out-of-bounds in
struct variable)
2011-09-08 Robert Reif <reif@earthlink.net>
* test/testbufferoverrun.cpp: add soem test cases for #3094 (Buffer
access out-of-bounds in struct variable)
2011-09-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.h, lib/path.h: fixed a few doxygen warnings
2011-09-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: updated comments
2011-09-06 seb777 <sebastien.debrard@gmail.com>
* lib/checkother.cpp, test/testother.cpp: fix #195 Unusual shift
operation - check this kind of code return x >> ! y ? 8 : 2;
2011-09-05 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp: fix some -Wconversion
-Wsign-conversion warnings in checkbufferoverrun.cpp
2011-09-05 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: warn when buffer is not zero terminated
after memmove
2011-09-05 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: warn when buffer is not zero terminated
after memcpy
2011-09-05 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: warn when buffer is not zero terminated
after strncpy
2011-09-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testuninitvar.cpp: Uninitialized
vars: handle printf a little better. Ticket: #3050
2011-09-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, lib/checkuninitvar.h,
test/testuninitvar.cpp: uninitstring: fix false negatives when
non-zero memset is used. Ticket: #3050
2011-09-05 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: really fix #3079 (Spelling error in unsigned
variable check 'never alwayw')
2011-09-05 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: fix #3079 (Spelling error in unsigned variable
check 'never alwayw')
2011-09-04 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix #2528
(false negative: buffer access out of bounds)
2011-09-04 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix #2889
(false negative: buffer access out of bounds on local struct member)
2011-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: Fixed #3078
(vector::at using int causes false positive)
2011-09-04 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Tests: Add tests for new --enable
flags. Adding tests for new --enable flafgs (performance, portability) to
CommandLineParser tests.
2011-09-04 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Enable performance- and portability
checks. The CLI/LIB change earlier added own enable-flag for performance-
and portability-checks. This commit updates GUI to also enable those
new enable-flags.
2011-09-04 Robert Reif <reif@earthlink.net>
* test/testbufferoverrun.cpp: add some variable length array tests
2011-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/check64bit.cpp, test/test64bit.cpp: Fixed #3073 (False
positive: Assigning an integer (int/long/etc) to a pointer is not
portable)
2011-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3060 (False
positive: Uninitialized variable: fresh)
2011-09-03 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: final fix
for #3063 (false negative: multi dimensional arrays not well
supported)
2011-09-03 seb777 <sebastien.debrard@gmail.com>
* : commit 5c7ed46e0cb6ffeee17a9185d1ccaa9d9781b560 Author: seb777
<sebastien.debrard@gmail.com> Date: Sat Sep 3 23:10:16 2011 +0200
2011-09-03 seb777 <sebastien.debrard@gmail.com>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: Replace the keyword C99 _Bool the bool
keyword in the process of tokenization See
https://github.com/danmar/cppcheck/commit/f29b7f9f087779d789e8bdc24745930623f314ca
2011-09-03 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #3069 (False positive: Memory leak: data)
2011-09-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3065
(False positive: possible null pointer dereference: vi)
2011-09-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #3058 (False
positive: Uninitialized variable: data)
2011-09-03 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/symboldatabase.cpp: move member
variable lookup code from a check to the symbol database so it can
be reused by other checks
2011-09-03 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: CLI: --enable=style has always been the
same as --enable=style,portability,performance so keep it that way.
Ticket #3074
2011-09-03 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/check64bit.cpp,
lib/checkbufferoverrun.cpp, lib/checknonreentrantfunctions.cpp,
lib/checkother.cpp, lib/checkpostfixoperator.cpp, lib/checkstl.cpp,
lib/settings.cpp, lib/tokenize.cpp, test/test64bit.cpp,
test/testbufferoverrun.cpp, test/testnonreentrantfunctions.cpp,
test/testother.cpp, test/testpostfixoperator.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp: enable: break out
'performance' and 'portability' from the 'style' id. Ticket: #3074
2011-09-03 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: document the 'portability' severity.
Ticket #3074
2011-09-02 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/symboldatabase.cpp,
lib/symboldatabase.h, test/testbufferoverrun.cpp: another partial
fix for #3063 (false negative: multi dimensional arrays not well
supported)
2011-09-02 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: partial
fix for #3063 (false negative: multi dimensional arrays not well
supported)
2011-09-02 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix
#3062 (false negative: Boolean variable is used in bitwise
operation)
2011-09-02 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix false
positive introduced by previous false negative fix commit
2011-09-01 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix #3066
(False positive: Inconclusive: Assigning address of local
auto-variable to a function parameter.)
2011-09-01 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix line
number in messagex for CheckAutoVariables::autoVariables
2011-09-01 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3070 (Other:
failed to parse a typedef string. Check continues anyway.)
2011-09-01 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix again
#3064 (false negative: returning address of stack variable)
2011-09-01 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp: better error message for #3064 (false
negative: returning address of stack variable)
2011-08-31 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: fix #3064 (false negative: returning
address of stack variable)
2011-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3058 (False
positive: Uninitialized variable: data)
2011-08-31 Robert Reif <reif@earthlink.net>
* lib/checkunusedvar.cpp, test/testunusedvar.cpp: add new (nothrow)
support to CheckUnusedVar::checkFunctionVariableUsage
2011-08-30 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: add support for
deallocating memory with realloc
2011-08-30 Daniel Marjamäki <danielm77@spray.se>
* htmlreport/cppcheck-htmlreport: Fixed #3057 (cppcheck-htmlreport
fails since 1.50)
2011-08-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3058 (False
positive: Uninitialized variable: data)
2011-08-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#3034 (Cppcheck crash on specific file (truecrypt).)
2011-08-28 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp: really fix multi-dimensional arrays
with undefined size
2011-08-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #3016
(Preprocessor has incorrect precedence(?) for &&)
2011-08-28 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testbufferoverrun.cpp: fix #3044
(Symbol database: handle multidim array with unknown dimension 'char
a[][4]')
2011-08-28 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #3051 (False positive:
operator= should return reference (when function takes pointer
argument))
2011-08-28 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #3052 (False Positive
- Technically the member function 'Example::Clear' can be const.)
2011-08-28 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: better
message for strncpy zero-terminated check
2011-08-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3039 (False
Positive: Memory Leak 'p = pop(p);')
2011-08-27 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: refactor CheckBufferOverrun::checkScope
strncpy check and change experimental to inconclusive
2011-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3038 (False
Positive - memory leak (struct member passed to subfunction))
2011-08-26 unknown <kimmov@.Ajat.local>
* gui/mainwindow.cpp: GUI: Fix order of project/global include
directories. Per project include directories must be added to the list before the
global include directories. Include directories are searched in
listed order. So placing per project include directories first we
ensure per project include file is found instead of the global
include file if same file exist in both.
2011-08-25 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp: partial fix for #3050 (strncpy zero
termination check behaving flaky)
2011-08-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #3043 (False Positive
- Member variable 'ProgramRecPriorityInfo::profile' is not assigned
a value in 'ProgramRecPriorityInfo::operator=')
2011-08-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: add support for
simplifying Qt emit in tokenizer
2011-08-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: fix #3049 (False
Positive - Technically the member function
'VideoOutputNull::SetupDeinterlace' can be const.)
2011-08-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3038 (False
Positive - memory leak)
2011-08-24 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Fix extra menu
separator in File-menu. The extra menu separator was added before the MRU menu items. When
updating the (menu) MRU items existing items were first removed and
new items added back. But the added separator was not removed.
2011-08-24 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/project.cpp,
gui/project.h: GUI: Check the project after creation. Earlier the GUI (project) went into some weird state after creating
a new project. The project could not be checked in any discoverable
way. This commit fixes the above bug by automatically checking the new
project after the project dialog is closed. I think this is what
most users expect to happen.
2011-08-24 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: make all
functions that call reportError names in checkbufferoverrun end in
Error for consisentcy
2011-08-24 Robert Reif <reif@earthlink.net>
* test/testbufferoverrun.cpp: better test for symbol database bug
fixed in last commit
2011-08-23 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testother.cpp: fix a serious symbol
database bug where parts of a function could be skipped
2011-08-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3041 (false
positive reported for error with id='deallocuse')
2011-08-23 Kimmo Varis <kimmov@gmail.com>
* gui/test/data/projectfiles/simple.cppcheck,
gui/test/data/projectfiles/simple_ignore.cppcheck,
gui/test/filelist/testfilelist.cpp,
gui/test/projectfile/testprojectfile.cpp,
gui/test/projectfile/testprojectfile.h: GUI: Update projectfile
tests.
2011-08-23 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.txt: GUI: Update project file documentation.
2011-08-23 Kimmo Varis <kimmov@gmail.com>
* cppcheck.cppcheck, gui/filelist.cpp, gui/filelist.h,
gui/mainwindow.cpp, gui/project.cpp, gui/projectfile.cpp,
gui/projectfile.h, gui/projectfile.ui: GUI: Rename Ignore-feature to
Exclude-feature. Exclude is the correct term to use when removing paths from the list
of checked items. Ignore as a term was a poor choise to begin with.
XML file reading still recognizes and reads the 'ignore' element
but writes 'exclude' element. Ticket: #2995 (GUI: Rename ignore-feature to exclude-feature)
2011-08-22 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #3040 (False positive
- Technically the member function 'PSIPTable::SetSection' can be
const.)
2011-08-22 Robert Reif <reif@earthlink.net>
* gui/mainwindow.cpp: run astyle
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Make few strings const strings.
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Allow reordering includes in project
dialog. Since include dir order is important (Cppcheck uses the first file
it finds) user must be able to edit the order of include paths.
This commit adds "Up" and "Down" buttons to the Project-dialog's
inlude paths-tab. User can use those two buttons to re-order the
include directories. Ticket: #3037 (GUI: Allow reordering include paths in project
dialog)
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui: GUI: Rename Project-label in Projects-dialog. The 'Project' label in Project-dialog is confusing and users think
it is project's name. When it acutually is the root directory of the
project. So rename the lable and move it below the 'Defines'- field
to make it less important looking. Ticket: #2997 (GUI: 'Project'-field in project file-dialog is
confusing)
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* lib/suppressions.h: Add doxygen grouping for the new file.
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* lib/suppressions.cpp: Compile fix.
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, test/testrunner.vcproj,
test/testrunner.vcxproj, test/testrunner.vcxproj.filters: Update
VS2008/2010 project files.
2011-08-22 Kimmo Varis <kimmov@gmail.com>
* Makefile, lib/errorlogger.cpp, lib/errorlogger.h, lib/lib.pri,
lib/settings.cpp, lib/settings.h, lib/suppressions.cpp,
lib/suppressions.h, test/test.pro, test/testsettings.cpp,
test/testsuppressions.cpp: Move Suppressions class to own source
files. I want to use Suppressions class also in GUI. And that is easier to
do when it is not internal class of Settings class. And in general
is it more natural that Settings class only contains list of
suppressions and implementation is separate.
2011-08-21 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: improve message for #3035 (false
negative: strcpy(dst, src) where src is bigger than dst)
2011-08-21 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: partial fix for #3035 (false negative:
strcpy(dst, src) where src is bigger than dst)
2011-08-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #3032 (False
positive: possible null pointer dereference (assignment in
condition))
2011-08-20 Robert Reif <reif@earthlink.net>
* test/testautovariables.cpp: add another test for #3030 (Improve
check: Returning pointer to local array variable with '&' pointer
operator)
2011-08-20 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: partial
fix for #3030 (Improve check: Returning pointer to local array
variable with '&' pointer operator)
2011-08-20 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: allow that 'missingInclude'
messages are suppressed with '--suppress=missingInclude'
2011-08-20 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Cppcheck: allow that 'toomanyconfigs' are
suppressed. show these messages by default even though 'information'
hasn't been enabled.
2011-08-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #3023
(False positive: no possible null pointer dereference here:
'WARN_ON(!abc || abc->x == 0);')
2011-08-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3024 (False
positive: memory leak for 'rc.bitmap' when rc is added to linux
kernel list)
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h: Cppcheck:
Don't show information messages about interrupted checking unless
--enable=information has been given.
2011-08-19 Kimmo Varis <kimmov@gmail.com>
* : Merge pull request #32 from rpavlik/qmake-configure-rules Qmake configure rules
2011-08-19 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj, test/test.vcxproj, test/test.vcxproj.filters,
test/testrunner.vcproj, test/testrunner.vcxproj,
test/testrunner.vcxproj.filters: Rename Test VC project files. When the target name of the test runner binary changed to
'testrunner' also the filenames of the generated project files
changed.
2011-08-19 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters: Update VS2008/2010 project files. Ticket: #3025 (Visual Studio projects needs updating for new
lib/checkunusedvar files)
2011-08-19 Robert Reif <reif@earthlink.net>
* Makefile, lib/checkother.cpp, lib/checkother.h,
lib/checkunusedvar.cpp, lib/checkunusedvar.h, lib/lib.pri,
test/testunusedvar.cpp: move unused variable checks from checkother
to checkunusedvar
2011-08-19 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix
#3011 (new check: when first comparison is true, the 2nd comparison
is always true)
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: using boolean result in
bitwise operation. fix false positive for '.. != (char *) &x'
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fixed
false positives for the 'bitwise operator / comparison operator'
check
2011-08-19 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h: refactor checkother to move
error messages to follow check and rename some error functions to
end in Error
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: fixed false positive for
'using bitwise operation on boolean result'
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, test/testassignif.cpp: Improve check:
Tweaked the assignAndCompare to handle | also in addition to &
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3018 (false
positive: (style) Suspicious condition (assignment+comparison), it
can be clarified with parentheses)
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Improve
check: Clarify condition (using boolean result in bitwise operation)
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: improved comment of previous commit
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #3001 (False
Positive: Redundant assignment to itself)
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Suspicious condition:
Better handling when rhs is non-numeric
2011-08-19 Edoardo Prezioso <edo88@email.it>
* Makefile, tools/dmake.cpp: Fixed #3017 (set HAVE_RULES to yes only
if HAVE_RULES is undefined when executing make.)
2011-08-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: New
check: warn about such suspicious conditions: '(a & b == c)'
2011-08-18 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: cmdlineparser: removed BOM
2011-08-18 Kimmo Varis <kimmov@gmail.com>
* : Merge pull request #33 from rpavlik/handle-msvc-qt-cmdline Detect msvc qt command prompt in build.bat
2011-08-18 Ryan Pavlik <rpavlik@iastate.edu>
* build-pcre.txt, build.bat: HAVE_RULES support for build.bat Let
the user's setting of the HAVE_RULES environment variable affect
build.bat's calls to qmake.
2011-08-18 Ryan Pavlik <rpavlik@iastate.edu>
* build-pcre.txt: document the updated qmake/rules interaction
2011-08-18 Ryan Pavlik <rpavlik@iastate.edu>
* lib/lib.pri, lib/pcrerules.pri, tools/dmake.cpp: put the rules
logic in its own .pri file, and allow easier override
2011-08-18 Ryan Pavlik <rpavlik@iastate.edu>
* cli/cli.pro: cli pro doesn't force HAVE_RULES anymore.
2011-08-18 Ryan Pavlik <rpavlik@iastate.edu>
* lib/lib.pri, tools/dmake.cpp: use the qmake config setting
HAVE_RULES to enable/disable pcre rules support, defaulting to on
except on Windows.
2011-08-17 Daniel Marjamaki <danielm77@spray.se>
* cli/cmdlineparser.cpp: --std=posix : simplified help text. might
still need further updates
2011-08-17 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/settings.h, test/testcmdlineparser.cpp:
Command line: Added --std option. Right now only --std=posix is
possible but other options might be added later.
2011-08-17 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Update download to version 1.50
2011-08-16 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: fix #3013
(segmentation fault of cppcheck ( struct x : virtual y ))
2011-08-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, lib/cppcheck.cpp, lib/cppcheck.h,
lib/settings.cpp, lib/settings.h: Add command line option:
--debug-fp ... If used, cppcheck will print out the code generating
error into output stream. This is ment to be used for debugging
false positive errors in Cppcheck. Current implementation tries two
alternatives. Without all headers or with all headers and prints out
the option with less code. In future versions this could try with
individual headers or group of header files.
2011-08-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #3012 (False
Pos Memory Leak with a Macro)
2011-08-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testincompletestatement.cpp: Fixed #3009
(Using numeric constants in kernel space code)
2011-08-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #3006 (segmentation
fault of cppcheck ( x < () < ))
2011-08-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3005
(segmentation fault of cppcheck ( enum : x ))
2011-08-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3007 (false
positive: (style) Struct 'Fred' hides typedef with same name)
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3004 (false
positive: (style) Struct 'Fred' hides typedef with same name)
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3003
(segmentation fault of cppcheck (typedef a x[]; y = x ))
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #3000 (false
positive: (style) Struct 'Fred' hides typedef with same name)
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: fix
#2999 (false positive: (style) Struct 'Fred' hides typedef with same
name)
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: Makefile: Added the -D_GLIBCXX_DEBUG
flag again to get checked stl during debug
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Added safety checks in case
the code is corrupt. Related to ticket #2998
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/checknullpointer.cpp: refactor
CheckNullPointer::nullPointerByDeRefAndChec() to pull variable type
lookup out of loop
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/checkstl.cpp: convert CheckStl::if_find() to use the symbol
database
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: convert CheckOther::checkCharVariable() to use
symbol database
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: convert
CheckOther::checkSizeofForNumericParameter() to use the symbol
database
2011-08-14 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: convert CheckOther::checkIncrementBoolean() to
use the symbol database
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Set debug mode
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/checknonreentrantfunctions.cpp,
lib/checkobsoletefunctions.cpp, lib/settings.cpp, lib/settings.h,
test/testcmdlineparser.cpp, test/testnonreentrantfunctions.cpp,
test/testobsoletefunctions.cpp: Settings: Removed the --enable=posix
option. Ticket: #2949
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* Makefile: 1.50: Updated Makefile
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* Changelog: 1.50: Updated Changelog
2011-08-14 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: 1.50: Updated
version
2011-08-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: fix [tokenize.cpp:6353]: (style) Checking if
unsigned variable 'indentlevel' is less than zero.
2011-08-12 Kimmo Varis <kimmov@gmail.com>
* gui/test/data/benchmark/simple.cpp: GUITESTS: Replace benchmark
data file. The benchmark data file had errors when checking with Cppcheck. And
people reported these errors. So replace the file with one that has
no (currently found) errors.
2011-08-12 Kimmo Varis <kimmov@gmail.com>
* cppcheck.cppcheck: GUI: Exclude test file from project file. The 'test/test.cxx' is a test file that contains some errors for
testing purposes. Exclude it from the GUI-project file used to check
Cppcheck sources so people don't report errors from it.
2011-08-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: removed redundant set isNumber flag from
previous commit
2011-08-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: fix #2963 (FP: Typedef names considered
duplicate because __LINE__ not expanded)
2011-08-11 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: fix #2991
(segmentation fault of cppcheck ( ::y(){x} ))
2011-08-12 Kimmo Varis <kimmov@gmail.com>
* gui/test/readme.txt, gui/test/runtests.py: GUITESTS: Remove the
running script. The script is available in another repository. I don't want to
distribute it with Cppcheck sources for now. Maybe if and when there
is more interest towards GUI tests...
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* tools/dmake.cpp: dmake: Fix build in Windows.
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* tools/dmake.vcproj: Tools: Update VS project file.
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp, gui/aboutdialog.h, gui/mainwindow.cpp: GUI:
Show extraversion in About-dialog. If the "extra version" is defined (not empty) then it is shown after
the actual version number in the About-dialog. Ticket: #2164 ([GUI] Add revision info to "About" window)
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp, lib/cppcheck.h: Add
"ExtraVersion" version number information. The "ExtraVersion" can be used for things like Git commit Id,
release tag (version control), release date etc. If the string is
empty, nothing is printed.
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Fix misalign of "posix" in help text. Ticket: #2992 (Little misalignment of '* posix' by one space in CLI
command help)
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Fix word-wrapping of the help text.
2011-08-11 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Reword the help text for -i. New help text emphasizes we are ignoring/excluding source files.
The header files (include via source files) are not touched. Ticket: #2965 (CLI: need better description for -i option (applies
only to source files))
2011-08-10 Kimmo Varis <kimmov@gmail.com>
* tools/Makefile: Tools: fix Makefile tools/ Makefile contained errmsg target whose source does not exist
anymore. And it didn't have a target for extracttests. Removed the
errmsg target and added new target for extracttests. Ticket: #2988 (In tools, make error: no rule to make target
`errmsg.cpp', needed by `errmsg'.)
2011-08-10 Kimmo Varis <kimmov@gmail.com>
* test/testdivision.cpp: Tests: Re-enable style param for
testdivision. My earlier commit (cfcfa3f0) removed the use of style parameter.
This commit adds it back. Ticket: #2987 (GCC: warning: unused parameter ‘style’ in
test/testdivision.cpp:39:10)
2011-08-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/tokenize.cpp,
test/testautovariables.cpp: Fixed #2975 (False positive: Return of
the address of an auto-variable)
2011-08-09 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fix #2986
(segmentation fault of cppcheck ( x[y] ))
2011-08-09 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2983
(segmentation fault of cppcheck)
2011-08-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: Fixed #2969 (False positive: assign
address of auto-var to function parameter, when function parameter
is reassigned later)
2011-08-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testcharvar.cpp: Fixed #2982 (false
positive: using char type as array index (using string as key))
2011-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2981 (False
positive: struct member leak)
2011-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testcharvar.cpp: Fixed #2979 (Improve
message: using char as array index)
2011-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2976 (False positive: array out of bounds)
2011-08-08 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2980 (segmentation
fault of cppcheck)
2011-08-07 Robert Reif <reif@earthlink.net>
* : commit 829611b12964cdf8346eae9255d32fbed8b2d520 Author: Robert
Reif <reif@earthlink.net> Date: Sun Aug 7 16:48:47 2011 -0400
2011-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Buffer
overrun: Fix false negative
2011-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
Fixed false positive when condition contains assignment 'if (p==NULL
&& (p=malloc(10))!=NULL) *p=0;'
2011-08-07 Kimmo Varis <kimmov@gmail.com>
* lib/check64bit.cpp, lib/checkassignif.cpp,
lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkexceptionsafety.cpp, lib/checkmemoryleak.cpp,
lib/checknonreentrantfunctions.cpp, lib/checkobsoletefunctions.cpp,
lib/checkother.cpp, lib/checkpostfixoperator.cpp, lib/checkstl.cpp,
lib/preprocessor.cpp, lib/settings.cpp, lib/settings.h,
lib/tokenize.cpp, test/test64bit.cpp, test/testassignif.cpp,
test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testcmdlineparser.cpp,
test/testconstructors.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testnonreentrantfunctions.cpp, test/testnullpointer.cpp,
test/testobsoletefunctions.cpp, test/testother.cpp,
test/testpostfixoperator.cpp, test/testsimplifytokens.cpp,
test/teststl.cpp, test/testtokenize.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp: Use "enabled" list for the style checking. Settings-class currently enables style checking via dedicated
boolean attribute. All other CLI's enable-options are handled
through the enable-list. This commit moves style-check enabling to
use the enable-list. Main advantage is the consistency how options are handled/stored in
the Settings class. Which also unifies using them for the other
code. You need to enable certain type of checks? Use the
addEnabled()-method. You want to check if certain type of checks are
enabled? Use the isEnabled()-method.
2011-08-06 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix
#2968 (new check: testing if unsigned variable is less than 0)
2011-08-06 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp, test/testmemleak.cpp:
fix #2971 (Wrong warning generated)
2011-08-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2970
(Incorrect report: Class does not have a constructor)
2011-08-06 Robert Reif <reif@earthlink.net>
* test/testtokenize.cpp: run astyle
2011-08-07 Kimmo Varis <kimmov@gmail.com>
* cli/filelister.cpp: CLI: Fix problem building in Windows.
2011-08-06 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Tests: Disable tests for CLI -i
option. The tests use non-existing relative paths. Currently the code checks
if the paths added to -i exist and hence these tests fail.
2011-08-06 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: help: clarify --suppress a little in the
--help output. Ticket: #2964
2011-08-06 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp, cli/filelister.cpp, lib/path.cpp,
lib/path.h: CLI: Warn if user tries to exclude header files. Filename exclusion (with -i) works only for the source files. Print
a warning if user tries to exclude header file. The warning
instructs user to use --suppress for ignoring warnings from the
header files.
2011-08-06 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/filelister.cpp, cli/filelister.h: CLI:
Strict check if exclude path is file. Initially I added logic that checked if excluded path was a file we
would accept. This works for source files, but when file with
"unknown" extension was given it was determined as a directory name
and ending slash was added. E.g. -ifile.h would end up having
ignored path file.h/. This commit adds per-platform checks if the path points to the file
and if the file also exists.
2011-08-06 Simon Martin <simartin@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2870 (Tokenizer:
simplify '0 |')
2011-08-05 Robert Reif <reif@earthlink.net>
* lib/checkstl.cpp, test/teststl.cpp: fix #2967 (segmentation fault
of cppcheck ( auto_ptr< x >))
2011-08-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2966
(segmentation fault of cppcheck ( enum x : ))
2011-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Array
index out of bounds: prevent false positive when a dimension for an
array is unknown
2011-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: tweaked
the error message somewhat for id arrayIndexThenCheck
2011-08-04 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: add support for using
global qualified :: memset on class and class member initialization
2011-08-04 Robert Reif <reif@earthlink.net>
* lib/checkstl.cpp, test/teststl.cpp: fix #2887 (infinit loop with (
A::A(std::auto_ptr<X> e){} ))
2011-08-04 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Couple of messages missing
cppcheck-prefix.
2011-08-04 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI print warning for deprecated options. We don't want to keep these deprecated options for ever. So lets
print a clear warning for the users and give also specific release
number when they will be removed. Users have a plenty of time to
update their scripts and environments before removal. Ticket: #2515 (Print warning for deprecated command line options)
2011-08-04 Edoardo Prezioso <edo88@email.it>
* test/test.pro: Fixed #2961 (Test executable name differs between
Makefile and test.pro)
2011-08-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #2956 (False negative: read array
and then immediately check the index 'str[i] && i<sizeof(str)')
2011-08-04 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp: No unmatched
suppressions list in quiet output. When user wants to see only errors printed (--quiet in CLI) we must
obey that. And not print unmatchedSuppressions list. Ticket: #2895 (Cannot suppress unmatchedSuppression reports)
2011-08-03 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj, test/test.vcxproj, test/test.vcxproj.filters:
Update VS project files.
2011-08-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h:
astyle formatting
2011-08-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h,
test/testobsoletefunctions.cpp: Obsolete functions: Split up
functions into posix/standard sets. Only check for obsolete posix
functions if --enable=posix has been given.
2011-08-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-08-03 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp: GUI: Don't translate non-translatable
strings. If strings contain only formatting placeholders for the dynamically
formatted text it does not make sense to mark the strings as
translatable. There is nothing translators can translate e.g. in
"%p".
2011-08-03 Kimmo Varis <kimmov@gmail.com>
* test/test.pro: Add missing test files to test.pro -project.
2011-08-03 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, lib/checknonreentrantfunctions.cpp,
lib/settings.cpp, lib/settings.h, test/testcmdlineparser.cpp,
test/testnonreentrantfunctions.cpp: CLI: Rename --posix to
--enable=posix. Ticket: #2949 (new check: (style) finding non-reentrant functions)
Ticket: #2952 (CLI option --posix is wrong)
2011-08-03 Daniel Marjamäki <danielm77@spray.se>
* lib/check64bit.h: corrected a comment
2011-08-03 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2919
(Wrong file name reported with #error in header)
2011-08-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix: #2942
(segmentation fault of cppcheck ( #elif (){ ))
http://sourceforge.net/apps/trac/cppcheck/ticket/2942
2011-08-02 Daniel Marjamaki <danielm77@spray.se>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, cppcheck.sln, test/test.vcproj,
test/test.vcxproj, test/test.vcxproj.filters: Visual Studio: Updated
project files
2011-08-02 Daniel Marjamäki <danielm77@spray.se>
* test/testnullpointer.cpp: Null pointer: Added todo test case to
better handle dereference in condition
2011-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
reduce false negatives in pointerDerefAndCheck
2011-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2954
(False negative: Null pointer dereference not detected '*p=4; if (p)
{ }')
2011-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2900 (found
memory leak in kernel p54usb and a false positive reported)
2011-08-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false negative when struct is dereferenced in condition
2011-08-01 Robert Reif <reif@earthlink.net>
* test/testtokenize.cpp: add test for #2937 (Scope::checkVariable
found variable 'sMMF' with varid 0.)
2011-08-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, lib/checkassignif.h, test/testassignif.cpp:
AssignIf: detect more problems for 'if' and 'else if' conditions
2011-08-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, lib/checkassignif.h, test/testassignif.cpp:
Fixed #2908 (common logic when using bitwise and)
2011-08-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2789
(null pointer: problems not detected when pointer is assigned and
checked if it's null in a if statement)
2011-08-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp: astyle formatting
2011-08-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, test/testassignif.cpp: AssignIf: Improved
the error message for mismatching comparison
2011-07-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testuninitvar.cpp: fix #2146 (uninitialized
variable: false negative for 'return x ? 1 : y;')
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Memory leaks: fix endless loop for 'if
)'. the check assumed that the link after the 'if' pointed forwards.
Ticket: #2404
2011-07-31 Robert Reif <reif@earthlink.net>
* lib/token.cpp, test/testtoken.cpp: fix #2911 (Token::Match(tok,
%oror%|&&) doesn't match &&)
2011-07-31 Moritz Lipp <mlq@pwmt.org>
* lib/checkother.cpp: Fixed #2793 (SIGABRT on filenames without file
extension)
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: removed the unused
function CheckMemoryLeakInFunction::matchFunctionsThatReturnArg
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
fix false negatives when unknown function is called and pointer is
local/argument
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
better handling when calling standard functions with possible null
pointer
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, test/testassignif.cpp: AssignIf: handle
parantheses. ticket: #2909
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2935
(possible null pointer dereference when using strcpy etc)
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.h: astyle formatting
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, lib/checkassignif.h, test/testassignif.cpp:
AssignIf: Match lhs and rhs for comparisons. Ticket: #2909
2011-07-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkassignif.cpp, lib/checkassignif.h, test/testassignif.cpp:
AssignIf: Detect problem for 'y=x&4; if(y!=3)..'. Ticket: #2909
2011-07-30 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checkassignif.cpp, lib/checkassignif.h,
lib/lib.pri, test/testassignif.cpp: AssignIf: Added new check.
Ticket: #2909
2011-07-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2788
(null pointer: dereference and then check 'if (abc->a == 3) { } if
(!abc) ..')
2011-07-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: assume all std::*::size() and std::*::empty()
are const in CheckClass::checkConstFunc()
2011-07-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: fix cppcheck warning in
Tokenizer::duplicateTypedef()
2011-07-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: add std::*.empty() to
possible const functions in CheckClass::checkConstFunc
2011-07-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #1593 (false negative:
the function can be declared as const)
2011-07-30 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: fix missing else in patch that added support
for unused const local variables
2011-07-30 Simon Martin <simartin@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fixed #2951 (Small code factorization in
checkmemoryleak.cpp)
2011-07-30 Ettl Martin <ettl.martin@gmx.de>
* lib/checknonreentrantfunctions.h: nonreentrant-functions: added
more functions to check
2011-07-29 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: use simpleMatch where possible in
checkother.cpp
2011-07-29 Ettl Martin <ettl.martin@gmx.de>
* : commit f441a958cd50959f94695cb754fa925611927aa3 Author: Ettl
Martin <ettl.martin@gmx.de> Date: Fri Jul 29 23:37:40 2011 +0200
2011-07-29 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Tests: add semicolons after
TEST_CASE()
2011-07-29 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Add --posix CLI
option. Part of ticket #2949 (new check: (style) finding non-reentrant
functions)
2011-07-29 Ettl Martin <ettl.martin@gmx.de>
* lib/checknonreentrantfunctions.cpp,
lib/checknonreentrantfunctions.h, lib/settings.cpp, lib/settings.h,
test/testnonreentrantfunctions.cpp: added a check to detect
nonreentrant functions and a --posix switch
2011-07-28 Ettl Martin <ettl.martin@gmx.de>
* Makefile, lib/checknonreentrantfunctions.cpp,
lib/checknonreentrantfunctions.h, lib/lib.pri,
test/testnonreentrantfunctions.cpp: Added a new check for finding
non-reentrant functions
2011-07-27 Zachary Blair <zack_blair@hotmail.com>
* gui/common.h, gui/resultsview.cpp, gui/resultsview.h,
gui/threadhandler.cpp, gui/threadresult.cpp, gui/threadresult.h:
Fixed 2915 (GUI: Show files checked in progress bar)
2011-07-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.cpp, lib/checkuninitvar.cpp, test/testother.cpp: Fixed
'possible null pointer dereference' warning messages
2011-07-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2821 (New Check : bool pointer null truth assignment)
2011-07-28 Daniel Marjamäki <danielm77@spray.se>
* scripts/comment.pl, scripts/define.pl, scripts/magic-numbers.pl,
scripts/readme.txt, scripts/tabs.pl: removed the 'scripts' folder. I
don't think it belongs in the cppcheck repo.
2011-07-27 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #2947 (False positive:
member variable is not initialized (a[x::y] = 0;))
2011-07-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: fix #2943 (Symbol
database: Wrong parsing of std::vector as base class.)
2011-07-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Auto
Variables: Reverted fix for #1514 because my idea was wrong. See
ticket: #2944
2011-07-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2946 (False
positive: Uninitialized buffer variable (init in subfunction))
2011-07-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2945 (False
positive: Uninitialized variable reading from stream)
2011-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
Added check for 'if (fred); return fred->a;'
2011-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2812
(false negative: null pointer dereference when returning struct
member)
2011-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testuninitvar.cpp: Fixed #2796
(uninitialized and leaving scope)
2011-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2681
(False negative: Possible null pointer dereference)
2011-07-25 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp, lib/cppcheck.h: Fixed
#2941 (False positive: unused function (individual checking of
files))
2011-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false positive if there is assignment in return
statement
2011-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2938
(Uninitialized variable not detected when part of expression)
2011-07-24 Simon Martin <simartin@users.sourceforge.net>
* lib/mathlib.cpp: Fix GCC warning about float comparison. Ticket:
#2936
2011-07-24 Kimmo Varis <kimmov@gmail.com>
* gui/test/readme.txt: GUITESTS: Add simple readme.txt.
2011-07-24 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: add support for unused
const local variables
2011-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2921 (False
positive: Memory leak with static pointer)
2011-07-24 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: auto-update by dmake
2011-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpostfixoperator.cpp: astyle formatting
2011-07-24 Simon Martin <simartin@users.sourceforge.net>
* test/testpostfixoperator.cpp: Added testcases for #2933 (Postfix
operator check fails to warn for structs)
2011-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #2817 (valgrind errors in simplifyTemplate
when running tests)
2011-07-24 Simon Martin <simartin@users.sourceforge.net>
* lib/checkother.cpp, test/testdivision.cpp: Fixed #2932
(segmentation fault of cppcheck ( i / i ))
2011-07-24 Simon Martin <simartin@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor: Fix
#if0 #elif todo test case. Ticket: #2619
2011-07-23 Robert Reif <reif@earthlink.net>
* lib/checkpostfixoperator.cpp: convert
CheckPostfixOperator::postfixOperator() to use the symbol database
2011-07-23 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: add support for local variables with
constructors to the symbol database
2011-07-22 Robert Reif <reif@earthlink.net>
* : commit 527c1aae3319a70e03e0215081746c3c24a37347 Author: Robert
Reif <reif@earthlink.net> Date: Fri Jul 22 08:31:31 2011 -0400
2011-07-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyFunctionPointer: don't simplify function call.
Ticket: #2873
2011-07-21 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix #1514
(Improve CheckAutoVariables: assign autovariable address to
effective parameter)
2011-07-21 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix #2926
(false negative in auto variables checking when function parameter
is a struct)
2011-07-21 Robert Reif <reif@earthlink.net>
* Makefile: fix some development stuff that snuck in by mistake
2011-07-21 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: fix #2929 (Additional
Unused variable check)
2011-07-21 Robert Reif <reif@earthlink.net>
* Makefile, lib/checkautovariables.cpp, test/testautovariables.cpp:
fix #2928 (False positive (static variable misinterpreted as auto
variable))
2011-07-21 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Simplify condition. With current code we always have both filename and linenumber for
each error.
2011-07-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2885 (crash
of cppcheck while checking gcc-testsuite)
2011-07-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h: Fixed #2856
(--errorlist not printing all auto-variable errors)
2011-07-21 Kimmo Varis <kimmov@gmail.com>
* gui/checkthread.h, gui/resultsview.h, gui/threadhandler.h,
gui/threadresult.h: GUI: Don't use relative paths for include files.
2011-07-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2848 (False
positive: Memory leak when assigning and freeing from another
struct)
2011-07-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2897 (out of
bounds false positive, using reinterpret_cast)
2011-07-21 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: Fixed #2850 (Inline suppressions not
documented in manual)
2011-07-20 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix #2925
(False negative: auto variables - assigning address of array to
function parameter)
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #2794 (Improper
hanling of preprocessor directives #if defined)
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #28 from bwy/master Fix "auto_ptr assignment" false positive
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: cmdlineparser: changed unusedFunctions to
unusedFunction to make it work
2011-07-20 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-07-20 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Filter toolbar menu items not in synch. When Filter-toolbar was enabled/disabled from the View-menu its
state was not updated to the context menu. And vice versa. Ticket: #2923 (GUI: Filter toolbar menu items not synchronized)
2011-07-20 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui: GUI: Filter toolbar didn't have a title. Ticket: #2922 (GUI: Filter toolbar does not have a title)
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Fixed #2924 (Unable to turn on unused function
detection from command line)
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Better
handling of constants. Related with #2920
2011-07-20 Benjamin Wolsey <bwy@benjaminwolsey.de>
* test/teststl.cpp: Test false auto_ptr positive. Assignments after a function returning an auto_ptr is declared are
detected as auto_ptr assignments!
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2920 (False positive: Array 'arr[0]' index 0 out of bounds (array
size and index are unknown))
2011-07-20 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: Cmdlineparser: Removed deprecated flag
--unused-functions
2011-07-19 Ettl Martin <ettl.martin@gmx.de>
* test/testmathlib.cpp: testmathlib: improved testcoverage of
mathlib
2011-07-18 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2917
(Problem with || in #if)
2011-07-18 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: simplify
CheckOther::checkIncorrectLogicOperator() by using more pattern
matching
2011-07-17 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testother.cpp: made #2827 fix more
generic by adding more ops and using pattern matching rather than
string matching
2011-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Fix always false condition. Ticket: #2827 (false negative: gui/resultstree.cpp:271 condition
always false)
2011-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Show error if no default editor
configured. There always should be default editor if there is editor application
configured. But it is possible in some cases that default
application is "lost". So check that we have default application
configured before trying to use it. And inform user to configure
default application instead of silently failing to open the
application (and the file) for the user.
2011-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Fix separators when opening file to
editor. Ticket: #2916 (Wrong slashes in file path passed to the Windows-text
editors)
2011-07-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp:
CheckBufferOverrun: Detect overflows when buffer is allocated with
alloca
2011-07-17 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: TestSimplifyTokens: removed
copy/pasted comment
2011-07-16 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/mathlib.cpp, lib/mathlib.h,
test/testother.cpp: fix #2827 to use numeric comparisons
2011-07-16 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix
#2827 condition always false or true)
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: better
handling of 'struct AB ab; sizeof(ab)'
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2873 (segmentation
fault of cppcheck while scanning rose-compiler suite)
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: minor update to handle C# code better
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/check64bit.cpp, test/test64bit.cpp: Fixed #2912 (false
positive: (portability) Assigning an integer (int/long/etc) to a
pointer is not portable)
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2871
(Define in source not set when -D is used)
2011-07-16 Kimmo Varis <kimmov@gmail.com>
* test/testerrorlogger.cpp: Add more tests for ErrorLogger. Add tests that have two items in error location stack.
2011-07-16 Robert Reif <reif@earthlink.net>
* test/testtoken.cpp: testcase for broken Token::Match %oror%|&&
2011-07-16 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Improve and clarify help text.
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: astyle formatting
2011-07-16 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: fix handling of (1&&2)
condition
2011-07-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fix minor
problem with 'X&&Y'
2011-07-15 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp, test/testtoken.cpp: astyle formatting
2011-07-15 John Smits <japsmits@users.sourceforge.net>
* lib/token.cpp, test/testtoken.cpp: Fixed #2882 (One-character
token can be mistaken for a multiCompare)
2011-07-14 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: fix some more false negatives for #2904
(Memory leak not detected when creating a new class instance)
2011-07-14 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2822 (New check: Duplicate break statements in switch)
2011-07-14 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/checkother.cpp,
test/testmemleak.cpp, test/testunusedvar.cpp: fix #2904 (Memory leak
not detected when creating a new class instance)
2011-07-07 Daniel Marjamäki <danielm77@spray.se>
* lib/check64bit.cpp, lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/test64bit.cpp: Fixed #2892 (false positive: (portability)
Assigning an address value to the integer (int/long/etc) type is not
portable)
2011-07-06 Daniel Marjamäki <danielm77@spray.se>
* lib/check64bit.cpp, lib/check64bit.h, test/test64bit.cpp: 64-bit
portability: fixed two of the TODO test cases. Ticket: #2791
2011-07-06 Daniel Marjamäki <danielm77@spray.se>
* : commit 827fb01ec19c9ab2be07840c14f93f915866eb3f Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Jul 6 12:57:45 2011
+0200
2011-07-06 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: Update Visual Studio 2008/2010 project
files.
2011-07-06 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/check64bit.cpp, lib/check64bit.h, lib/lib.pri,
test/test64bit.cpp: 64-bit checking: Added simple check for
assigning pointer address to int/long. Ticket: #2791
2011-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: spell check of error message. contant =>
constant
2011-07-05 Daniel Marjamäki <danielm77@spray.se>
* test/testcharvar.cpp: TestCharVar::pointer: Added one more test
case to see that error message disappears when code is fixed
2011-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testcharvar.cpp: Fixed #2866 (Detect sign
extension bugs)
2011-07-05 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp: Fix spelling error in warning identifier
2011-07-04 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #27 from gerundt/man-improvements Manual improvements
2011-07-03 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: Tokenizer::simplifyGoto: fixed unit
tests
2011-07-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2886 (crash of
cppcheck ( typedef struct x { } ))
2011-07-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix missing pop in
Tokenizer::simplifyStructDecl() when anonymous struct/union removed
2011-07-02 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: add support for
checking unused std::string local variables
2011-07-02 Tim Gerundt <tim@gerundt.de>
* htdocs/.htaccess, htdocs/devinfo/index.php: Web: Redirect
doxyoutput, coverage- and cpd report to devinfo directory
2011-07-02 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook, man/writing-rules-1.docbook,
man/writing-rules-2.docbook, man/writing-rules-3.docbook: Manual:
Add internal links
2011-07-02 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook: * Manual: Miscellaneous tag changes
2011-07-02 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: add class A {} a;
-> class A {}; A a; conversion capability to
Tokenizer::simplifyStructDecl()
2011-07-02 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook, man/writing-rules-1.docbook,
man/writing-rules-2.docbook, man/writing-rules-3.docbook: Manual:
Move "Writing Cppcheck rules" author to the beginning of the
appendix
2011-07-02 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook, man/writing-rules-1.docbook,
man/writing-rules-2.docbook: Manual: Miscellaneous tag changes
2011-07-01 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix #2884 (Integer overflow warning in
64-bit build)
2011-07-01 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook: Manual: Use tags for menu items
2011-07-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer::simplifyGoto: Only simplify the last
label in the function. If there are many labels in the same function
and all labels are simplified, this function becomes very slow.
2011-07-01 Tim Gerundt <tim@gerundt.de>
* man/cppcheck-design.docbook, man/manual.docbook: Manual: Don't
wrap <programlisting> with <para>
2011-07-01 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook, man/writing-rules-1.docbook,
man/writing-rules-2.docbook, man/writing-rules-3.docbook: Manual:
Use <command> and <parameter> tags
2011-07-01 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: fix false positive for
unused local class/struct variable
2011-07-01 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: add support in
CheckOther::functionVariableUsage() for checking structures that are
declared with struct keyword
2011-07-01 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: cleanup isStatic in
CheckOther::functionVariableUsage()
2011-06-30 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testunusedvar.cpp: add
support for detecting unused function variables of type class or
struct
2011-06-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Minor cleanup related to previous fix.
This code should not be needed anymore as tokenizer should simplify
question mark away.
2011-06-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testmemleak.cpp,
test/testsimplifytokens.cpp, test/testtokenize.cpp: Fix #2849, False
positive: memory leak (using question mark operator)
http://sourceforge.net/apps/trac/cppcheck/ticket/2849 Simplify: *d =
b ? b : a; into if-else Simplify { ; { ; } } into { ; } Removed one
memleak test which should be redundant now as question marks should
not get into memleak check.
2011-06-30 Tim Gerundt <tim@gerundt.de>
* man/manual.docbook, man/writing-rules-1.docbook: Manual: Use
<filename> tag for files and directories
2011-06-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2849 (False
positive: memory leak (using question mark operator))
2011-06-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testclass.cpp: fix #2878 (derived global
class not tokenized properly (class A : ::B { };))
2011-06-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2825 (missing varid
on class variables when multiple inheritance is used)
2011-06-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix symbol database derived template class
support
2011-06-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: add global namespace derived class support
2011-06-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testclass.cpp: partial fix for #2867 handle
derived class
2011-06-29 Kimmo Varis <kimmov@gmail.com>
* lib/path.h: Document that Path::simplifyPath() needs / as
separators.
2011-06-29 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp, test/testsettings.cpp: Fixed #2797 (Inline
suppressions do not handle filenames correctly)
2011-06-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2855 (False
positive: resource leak when reusing fd)
2011-06-29 Daniel Marjamäki <danielm77@spray.se>
* : Merge pull request #26 from gerundt/man-appendix Add "Writing Cppcheck rules" and "Cppcheck Design" articles as
appendix to the manual
2011-06-29 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: fix #2807 (Wrong
handling of function references when prefixed with &)
2011-06-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h: fix #2864 (--errorlist missing
errors: variableHidingTypedef and Extra qualification)
2011-06-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testclass.cpp: partial fix for #2867
Tokenizer::removeRedundantAssignment didn't understand function
local class and removed class variable
2011-06-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2875 (segmentation
fault of cppcheck ( 0; (a) < (a) ))
2011-06-27 Tim Gerundt <tim@gerundt.de>
* man/buildman.sh: Drop "Writing Cppcheck rules" and "Cppcheck
Design" articles from build file
2011-06-27 Tim Gerundt <tim@gerundt.de>
* man/cppcheck-design.docbook, man/manual.docbook,
man/writing-rules-1.docbook, man/writing-rules-2.docbook,
man/writing-rules-3.docbook: Add "Writing Cppcheck rules" and
"Cppcheck Design" articles as appendix to the manual
2011-06-27 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Update style from trac timeline
items at dev info page
2011-06-27 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php, htdocs/site/activetopics.php: Web: Show
also last post time from active forum topics
2011-06-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: fix #2865
(segmentation fault of cppcheck ( char a[1] ))
2011-06-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2859 (Extra
qualification not detected)
2011-06-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #2860, False positive: Returning value of strncat() reported
as memory leak http://sourceforge.net/apps/trac/cppcheck/ticket/2860
2011-06-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fix #2840,
False positive: Null pointer dereference
http://sourceforge.net/apps/trac/cppcheck/ticket/2840
2011-06-25 Tim Gerundt <tim@gerundt.de>
* : Merge pull request #25 from kimmov/web Web: Couple of front page improvements
2011-06-24 Kimmo Varis <kimmov@gmail.com>
* htdocs/index.php: Web: Add link to Wikipedia's static analysis
tool article. People looking at our front page may not be familiar with what the
static analysis even means. Add a link which explains it for them.
2011-06-24 Kimmo Varis <kimmov@gmail.com>
* htdocs/index.php: Web: Improve front page language. Improve language in few places at the home page. And try to make
couple of things more clear for people not familiar with this kind
of tools.
2011-06-24 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php, htdocs/site/activetopics.php: Web: Show
active forum topics at dev info page
2011-06-24 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/symboldatabase.cpp: replace some
pattern matching with variable lookup in checkGlobalAndLocalVariable
2011-06-23 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: set symbol database array variable
dimensions specified by a variable to the maximum size that variable
can hold
2011-06-23 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp: fix an off by 1 error introduced in
48e6ea271a08a0d1cb9d2a5a22b6f946e404b959 that prevented checking all
variables
2011-06-23 Kimmo Varis <kimmov@gmail.com>
* gui/test/runtests.py: GUITESTS: Improve the running script. Don't use recursion in the script. The Python's os.walk() already
lists all files in subdirectories and using recursion only caused
tests to be found twice. Also handle the case the project file
defines binary path with DESTDIR define.
2011-06-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Added TODO test case for
the simplifyKnownVariables to better simplify local variables
2011-06-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2815 (FP: Null
pointer dereference error about a member)
2011-06-23 Tim Gerundt <tim@gerundt.de>
* : commit dcaf7be9b5fdb6f9c53626ac5cdedbad475f7f35 Author: Tim
Gerundt <tim@gerundt.de> Date: Thu Jun 23 11:10:42 2011 +0200
2011-06-23 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Download only the chars we really need from
Orbitron font
2011-06-23 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Update download to version 1.49
2011-06-22 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp: use symbol database to lookup variable
type for buffer overrun checks
2011-06-22 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: start using
symbol database array info for buffer overrun checks
2011-06-22 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: add array
information to symbol database
2011-06-22 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: use a more
conventional technique for accessing ArrayInfo private variables
2011-06-22 Robert Reif <reif@earthlink.net>
* gui/test/benchmark/simple/benchmarksimple.cpp: run astyle
2011-06-22 Kimmo Varis <kimmov@gmail.com>
* gui/test/runtests.py: GUITESTS: Run only existing tests with the
script. Improve the runner script to run only tests whose binary file
exists. Tests with inexistant binary file are not counted into test
counts in the summary. Add the MIT license header. I'm now maintaining this script in
external repository with MIT license. So I can use the script in
other projects too.
2011-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/test/benchmark/benchmark.pro, gui/test/benchmark/common.pri,
gui/test/benchmark/simple/benchmarksimple.cpp,
gui/test/benchmark/simple/benchmarksimple.h,
gui/test/benchmark/simple/simple.pro,
gui/test/data/benchmark/simple.cpp, gui/test/test.pro: BENCHMARKS:
Add simple benchmark.
2011-06-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* runastyle: Fix #2843, Astyle script does not recognize Astyle 2.02
http://sourceforge.net/apps/trac/cppcheck/ticket/2843
2011-06-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* runastyle: Add some comments to runastyle script
2011-06-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkpostfixoperator.cpp, test/testpostfixoperator.cpp: Fix
#2847, cppcheck hangs with 100% cpu load
http://sourceforge.net/apps/trac/cppcheck/ticket/2847
2011-06-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2808
(False positive 'Possible null pointer dereference')
2011-06-21 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: updated upload command
2011-06-21 Kimmo Varis <kimmov@gmail.com>
* gui/test/runtests.py: GUITESTS: Print summary from the test
script.
2011-06-21 Kimmo Varis <kimmov@gmail.com>
* gui/test/runtests.py: GUITESTS: Add Python script for running all
tests.
2011-06-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2845 (segmentation
fault of cppcheck)
2011-06-20 seb777 <sebastien.debrard@gmail.com>
* test/teststl.cpp: run astyle
2011-06-20 seb777 <sebastien.debrard@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: fix 2846 (false positive for
auto_ptr check with container element)
2011-06-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2830 (false
positive: resource leak when using fdopen)
2011-06-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2844 fix to
generate correct output
2011-06-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2844 (typedef
causes 'syntax error')
2011-06-19 Felix Geyer <debfx@fobos.de>
* Makefile, tools/dmake.cpp: Ticket: #2823 (cppcheck fails to build
with system tinymxl and -Wl,--as-needed)
2011-06-18 Kimmo Varis <kimmov@gmail.com>
* readme_gui.txt: GUITESTS: Add short mention of tests to gui
readme.
2011-06-18 Kimmo Varis <kimmov@gmail.com>
* gui/test/data/files/dir2/foo1.cpp,
gui/test/filelist/testfilelist.cpp,
gui/test/filelist/testfilelist.h: GUITESTS: Add FileList filtering
tests.
2011-06-18 Kimmo Varis <kimmov@gmail.com>
* tools/Makefile: Fix tools/Makefile permissions.
2011-06-18 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: added scp command for uploading
files
2011-06-17 seb777 <sebastien.debrard@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: fix 2838 (Token::Match called
with varid 0 on auto_ptr check) cleanup code and better check varid
2011-06-17 Kimmo Varis <kimmov@gmail.com>
* gui/test/data/files/dir1/dir11/foo11.cpp,
gui/test/data/files/dir1/foo1.cpp,
gui/test/filelist/testfilelist.cpp,
gui/test/filelist/testfilelist.h: GUITESTS: Add tests for adding
directory.
2011-06-17 Kimmo Varis <kimmov@gmail.com>
* gui/test/data/projectfiles/simple.cppcheck,
gui/test/data/projectfiles/simple_noroot.cppcheck,
gui/test/data/xmlfiles/xmlreport_v1.xml,
gui/test/data/xmlfiles/xmlreport_v2.xml,
gui/test/projectfile/testprojectfile.cpp,
gui/test/projectfiles/simple.cppcheck,
gui/test/projectfiles/simple_noroot.cppcheck,
gui/test/xmlfiles/xmlreport_v1.xml,
gui/test/xmlfiles/xmlreport_v2.xml,
gui/test/xmlreport/testxmlreport.cpp,
gui/test/xmlreportv1/testxmlreportv1.cpp,
gui/test/xmlreportv2/testxmlreportv2.cpp: GUITESTS: Move testdata to
data-subdirectory.
2011-06-17 Kimmo Varis <kimmov@gmail.com>
* gui/test/common.pri, gui/test/data/files/bar1,
gui/test/data/files/bar1.foo, gui/test/data/files/foo1.cpp,
gui/test/data/files/foo2.cxx, gui/test/data/files/foo3.cc,
gui/test/data/files/foo4.c, gui/test/data/files/foo5.c++,
gui/test/data/files/foo6.txx, gui/test/data/files/foo7.tpp,
gui/test/filelist/filelist.pro, gui/test/filelist/testfilelist.cpp,
gui/test/filelist/testfilelist.h, gui/test/test.pro: GUITESTS: Add
simple test for FileList. These tests check that FileList only accepts existing files with
accepted filename extensions.
2011-06-17 Kimmo Varis <kimmov@gmail.com>
* gui/test/projectfile/testprojectfile.cpp,
gui/test/translationhandler/testtranslationhandler.cpp,
gui/test/xmlreportv1/testxmlreportv1.cpp,
gui/test/xmlreportv2/testxmlreportv2.cpp: GUITESTS: Few compares in
tests were wrong way around.
2011-06-16 seb777 <sebastien.debrard@gmail.com>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: fix #747 and
#748 (incorrect use of auto_ptr - new check)
2011-06-16 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h,
gui/mainwindow.cpp: GUI: Cleanup settings usage. Use local QSettings instead of the one created by MainWindow.
2011-06-16 Kimmo Varis <kimmov@gmail.com>
* gui/test/common.pri, gui/test/projectfile/projectfile.pro,
gui/test/projectfile/testprojectfile.cpp,
gui/test/projectfile/testprojectfile.h,
gui/test/projectfiles/simple.cppcheck,
gui/test/projectfiles/simple_noroot.cppcheck, gui/test/test.pro:
GUITESTS: Add tests for loading project files.
2011-06-16 Kimmo Varis <kimmov@gmail.com>
* gui/test/xmlreport/testxmlreport.cpp,
gui/test/xmlreport/xmlreport.pro,
gui/test/xmlreportv1/testxmlreportv1.cpp,
gui/test/xmlreportv1/xmlreportv1.pro,
gui/test/xmlreportv2/testxmlreportv2.cpp,
gui/test/xmlreportv2/xmlreportv2.pro: GUITESTS: More flexible test
data paths. Use build-time define to set the path to the source files directory.
Which then can be used to format path to the test data. This allows
running tests from out-of-source-tree -builds that e.g. QtCreator
does.
2011-06-15 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-06-15 Kimmo Varis <kimmov@gmail.com>
* gui/txtreport.h: GUI: Add Q_OBJECT to TxtReport class.
2011-06-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix extra
qualification check for same class name in different namespaces
2011-06-14 Lauri Nurmi <lanurmi@users.sourceforge.net>
* lib/checkstl.cpp: Fixed #2836 ([PATCH] FP: Dereferenced iterator
has been erased)
2011-06-12 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Set debug mode
2011-06-12 Daniel Marjamäki <danielm77@spray.se>
* Makefile: 1.49: Updated Makefile for release
2011-06-12 Daniel Marjamäki <danielm77@spray.se>
* Changelog: 1.49: Updated the changelog
2011-06-12 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: 1.49: updated
version
2011-06-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2835 (crash of
cppcheck ( ><,f<i, ))
2011-06-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2831 (crash of
cppcheck ( z<y<x> ))
2011-06-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2834 (crash of
cppcheck (std::vector<int>::iterator))
2011-06-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: fix #2739
(segmentation fault of cppcheck ( if()x ))
2011-06-11 seb777 <sebastien.debrard@gmail.com>
* AUTHORS: With the agreement of Daniel Marjamäki, I write my name
in this AUTHORS file. If you also want to have your name in this
file, contribute to cppcheck.
2011-06-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2682
(segmentation fault of cppcheck ( x a[0] = ))
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/xmlfiles/xmlreport_v1.xml,
gui/test/xmlreportv1/testxmlreportv1.cpp: GUITESTS: Fix XML V1 test. Test was using and assuming that severity string starts with capital
letter (e.g. "Style"). But the strings are all lowercase letters. Ticket #2832 (GUI: XML version 1 test fails)
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/translationhandler/translationhandler.pro,
gui/test/xmlreport/xmlreport.pro,
gui/test/xmlreportv1/xmlreportv1.pro,
gui/test/xmlreportv2/xmlreportv2.pro: GUITESTS: Use common build
artifact directory. Using common build artifacts (object files, moc files) avoids
recompiling whole lib and other shared files separately for each
test.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/translationhandler/testtranslationhandler.cpp: GUITESTS:
Run Astyle.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* runastyle, runastyle.bat: Run Astyle recursively for gui/test. GUI's tests are now in separate subdirectories. To avoid adding each
subdirectory to the Astyle scripts run Astyle recursively.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/main.cpp: GUITESTS: Remove unneeded main file.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/test.pro, gui/test/testxmlreportv2.cpp,
gui/test/testxmlreportv2.h,
gui/test/xmlreportv2/testxmlreportv2.cpp,
gui/test/xmlreportv2/testxmlreportv2.h,
gui/test/xmlreportv2/xmlreportv2.pro: GUITESTS: Move XML V2 tests to
own project.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/test.pro, gui/test/testxmlreportv1.cpp,
gui/test/testxmlreportv1.h,
gui/test/xmlreportv1/testxmlreportv1.cpp,
gui/test/xmlreportv1/testxmlreportv1.h,
gui/test/xmlreportv1/xmlreportv1.pro: GUITESTS: Move XML format V1
tests to own project.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/xmlreport/testxmlreport.cpp: GUITESTS: Fix XML files
paths.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/test.pro, gui/test/testxmlreport.cpp,
gui/test/testxmlreport.h, gui/test/xmlreport/testxmlreport.cpp,
gui/test/xmlreport/testxmlreport.h,
gui/test/xmlreport/xmlreport.pro: GUITESTS: Refactoring XmlReport
test.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/translationhandler/testtranslationhandler.cpp: GUITESTS:
Fix translation count in test.
2011-06-10 Kimmo Varis <kimmov@gmail.com>
* gui/test/common.pri, gui/test/test.pro,
gui/test/testtranslationhandler.cpp,
gui/test/testtranslationhandler.h,
gui/test/translationhandler/testtranslationhandler.cpp,
gui/test/translationhandler/testtranslationhandler.h,
gui/test/translationhandler/translationhandler.pro: GUITESTS:
Refactoring test building. Start building each test as separate project as QtestLib tests
usually are built. This commit adds the infrastructure and moves
TranslationHandler test as own project.
2011-06-09 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: improve #2828 fix by adding switch
2011-06-08 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2828 (false
positive: Function parameter 'STYLE' hides enumerator with same
name)
2011-06-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2805 (false
positive: [NotAssigned1.cpp:5]: (style) Variable 'y' is not assigned
a value)
2011-06-08 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Give full path when opening project file. Fix I did yesterday gave only filename of the project file for
function loading project file. Causing the loading failing if not in
"current" directory.
2011-06-07 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: More strict filtering for finding project
file.
2011-06-07 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Suggest using project file if one is
found. If we there is project file in the directory to check then ask user
if one wants to use the project file instead. If there are multiple
project files then just tell there are project files and ask if user
wants to continue without using them. Ticket: #2816 (GUI regression: Interrupted checking because of too
many #ifdef configurations.)
2011-06-07 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Handle missing checked paths in project
file. If the project file does not define paths to check then check the
project root directory (which likely is the directory where the
project file is located). Ticket #2816 (GUI regression: Interrupted checking because of too
many #ifdef configurations.)
2011-06-06 Robert Reif <reif@earthlink.net>
* gui/mainwindow.cpp: make usre we have a project file before
outputting its name
2011-06-04 Robert Reif <reif@earthlink.net>
* gui/mainwindow.cpp, gui/projectfile.h: Output GUI project name
when checking starts or restarts
2011-06-03 Robert Reif <reif@earthlink.net>
* test/testnullpointer.cpp: todo tests for #2812 (false negative:
null pointer dereference when returning struct member)
2011-06-03 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #2795 (hash operator[]
is not 'const') (original patch by Sebastien Debrard) (modified to
use the symbol database)
2011-06-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: fix 2 use after frees in simplifyEnum found by
visual studio and verified by valgrind
2011-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2806 (False
positive with g_strstrip())
2011-05-27 seb777 <sebastien.debrard@gmail.com>
* lib/checkother.cpp, test/testother.cpp: fix #2786 (new check:
Using sizeof with numeric constant) Add unit test and improve check
with negative constant because in cppcheck %num% means 'integer'
2011-05-27 Robert Reif <reif@earthlink.net>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: add support
for null pointer checking struct pointers
2011-05-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2804
(Underlying type of enumerator produces a syntax error)
2011-05-24 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #2792 (false positive:
Member variable 'class::m_val' is not assigned a value in
'class::operator=')
2011-05-17 seb777 <sebastien.debrard@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix
#2786
2011-05-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2798 (False positive:
Invalid iterator check doesn't respect code paths)
2011-05-22 Greg Hewgill <greg@hewgill.com>
* cli/threadexecutor.cpp: Allow suppression of the 'cppcheckError'
error reported by the threaded CLI executor. This is related to commit 5bbf39d094efccadfd9a927c5f7052cde541e730.
2011-05-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2790
(Incorrect allocation mismatch error)
2011-05-19 Stefan Weil <weil@mail.berlios.de>
* lib/executionpath.cpp: executionpath: fix memory leak
2011-05-19 Daniel Marjamäki <danielm77@spray.se>
* CMakeLists.txt, cli/CMakeLists.txt, cmake/modules/FindPCRE.cmake,
gui/CMakeLists.txt, lib/CMakeLists.txt, lib/library_sources.cmake,
test/CMakeLists.txt: cmake: cleanup unmaintained cmake files
2011-05-19 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2737 ((error)
Analysis failed. If the code is valid then please report this
failure.)
2011-05-18 WenChung Chiu <cwthome@gmail.com>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#2784 (Pointer issue: *&f=open())
2011-05-15 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Don't report that there are
missing system includes unless --debug-warnings has been given.
2011-05-13 Kimmo Varis <kimmov@gmail.com>
* gui/logview.cpp, gui/logview.h, gui/mainwindow.cpp: GUI: Simplify
settings usage in Log window.
2011-05-13 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/settingsdialog.cpp, gui/settingsdialog.h:
GUI: Simplify settings handling in Preferences dialog.
2011-05-13 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/projectfiledialog.cpp, gui/projectfiledialog.h:
GUI: Make Project-dialog to remember its size.
2011-05-13 Kimmo Varis <kimmov@gmail.com>
* gui/main.cpp: GUI: Initialize Settings in main. Setting organization and program name in main() allows us to cleanup
Settings class usage. As we don't need to keep using the one
instance of Settings but can create new Settings class whenever we
need to access settings. According to the Qt documentation creating
Settings class is fast.
2011-05-13 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui: GUI: Show main tab in project file dialog by
default.
2011-05-13 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp, gui/projectfiledialog.h: GUI: Set
initial path for adding paths to project. Use project file's location as base path when adding new paths (checked, included or ignored) to the project. In most cases user
wants to add paths in the same project so this reduces browsing
paths considerably when adding them.
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Remove trailing spaces from translated
strings
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.txt: GUI: Update project file documentation. Remove mentioning of automatic loading which was disabled in
previous commit.
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Remove automatic/silent
loading of projects. When project files support was added to the GUI there was no GUI for
them and automatic/silent loading was added. So that if the
directory contained project file with the same name (and .cppcheck
extension) then the project file was automatically loaded and used
for the checking. This can be very confusing for the user as there is no any
indication that the project file is used. But this solution was
necessary at that time to get project file support added. Now that we have usable GUI for the project files this automatic/
silent loading can be removed. Nobody really should be using it
anymore. And even if the automatic loading is needed one can give
the project file for the GUI using command line parameter.
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck: GUI: Fix the gui.cppcheck to work with GUI. The project file to check just GUI code was missing the directory to
check. This is probably due it was used originally as
"automatically" loaded project file which assumed current directory
is checked and only added some additional parameters.
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Handle non-existing
projects in MRU list. If the project file in MRU list does not exist ask user if one wants
to remove the file from the list. If user agrees then the file is
removed from the list. Otherwise the file is left to the list but
not tried to open. User may have accidentally moved or renamed the
file so we give a possibility to add it back and not just blindly
removing it from the list.
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.h: GUI: Remove unneeded forward declaration.
2011-05-12 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h:
GUI: Add most recently used projects to menu. Add MRU items for project files to File-menu. When user creates a
new project file or opens existing project file it is added to the
list of recently used projects. Last 5 projects are remembered and
available for quick acess in the File-menu.
2011-05-11 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2782
(Segfault with #asm)
2011-05-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2780 (false
positive: variable p is not assigned a value 'int p[2]; *p = 0;')
2011-05-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #2783 (Improve check: struct member
leaks when analysing c file)
2011-05-08 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testother.cpp: #2700 (common logic or cut and paste errors) make duplicate
branches inclnclusive
2011-05-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: added comment about how bad typedef behaviour
can be reproduced
2011-05-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2743 (segmentation
fault of cppcheck 'std::vector<void(*)()> v1 = a, v2 = b;')
2011-05-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1684 (false positive: buffer access out of bounds when using extern
variable declaration)
2011-05-06 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix #2765
(Non local address detected as address of local auto-variable)
2011-05-06 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix
regression #1819 (False positive: auto variable assignment (unseen
typedef))
2011-05-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp, test/testunusedvar.cpp:
Fixed #2770 (False positives (scope can be reduced / variable is
assigned value that is never used))
2011-05-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2764 (False
positive: Uninitialized variable '&(x[0])')
2011-05-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Reverted fix for string::size.
Ticket: #2756
2011-05-04 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt: Installer: small update to installer
doc.
2011-05-04 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Remove unneeded Qt DLLs. Since we now have on-line help we don't need to install the DLLs
that were required for the help viewer.
2011-05-04 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Add test for --check-config.
2011-05-04 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Make "failing" cmdlineparser tests
todo-tests.
2011-05-04 Daniel Marjamaki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: updated error message. --check-includes
has been renamed to --check-config
2011-05-03 Zachary Blair <zack_blair@hotmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h: Fixed #2758 ([GUI] Provide a means to filter
results based on a search string)
2011-05-03 Greg Hewgill <greg@hewgill.com>
* test/testsuppressions.cpp: Fix testsuppressions for Windows builds
for now, pending further refactoring
2011-05-03 Greg Hewgill <greg@hewgill.com>
* Makefile, test/test.pro, test/testsuppressions.cpp: Revert "Remove
the testsuppressions because it doesn't contain any unit tests. A
testsuppressions would be nice if it was more specific. Ticket:
#2748" This reverts commit 6bf5eb67be05d3768158505fb375fad12b8488cf.
2011-05-03 Greg Hewgill <greg@hewgill.com>
* test/test.vcproj, test/test.vcxproj, test/test.vcxproj.filters:
Revert "TestSuppressions: Updated Visual Studio project files" This reverts commit 8ec570837a77e2e15f48f0235211d52ddf12de9f.
2011-05-02 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #1982
(simplifyTypedef: scope info is lost)
2011-05-02 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/cppcheck.cpp, lib/preprocessor.cpp, lib/settings.cpp,
lib/settings.h: renamed --check-includes to --check-config
2011-05-02 seb777 <sebastien.debrard@gmail.com>
* cli/cmdlineparser.cpp: add include-header to use EXIT_FAILURE
2011-05-02 seb777 <sebastien.debrard@gmail.com>
* : commit d7927bbb614378f9b4f173bd992ae879fc7f7c8d Author: Daniel
Marjamäki <danielm77@spray.se> Date: Mon May 2 18:49:40 2011
+0200
2011-05-02 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: astyle formatting
2011-05-02 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/cppcheck.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
lib/settings.cpp, lib/settings.h: Missing includes - normally just
report that there are missing includes. The --check-includes can
then be used to check what missing includes there are. Ticket: #2719
2011-05-02 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: reverted 761dd419 - reporting excessive
missing include messages
2011-05-01 Daniel Marjamaki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2721
(Tokenizer::simplifyTemplates: fail when using template argument
'char[2]')
2011-05-01 Daniel Marjamaki <danielm77@spray.se>
* test/test.vcproj, test/test.vcxproj, test/test.vcxproj.filters:
TestSuppressions: Updated Visual Studio project files
2011-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #2719 (Fix excessive false positives
in include-file handling)
2011-05-01 Ville Skyttä <ville.skytta@iki.fi>
* cli/cmdlineparser.cpp: cmdlineparser: Update list of file
extensions, expand EXIT_FAILURE, don't list --rule* if built without
support for rules. Ticket: #2761
2011-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Moved a few basic simplifications
from simplifyTokenList to tokenize
2011-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2760 (false
positive: uninitialized variable ', (a) =')
2011-05-01 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated with dmake
2011-05-01 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: TestTokenizer: code cleanup
2011-04-30 Daniel Marjamäki <danielm77@spray.se>
* Makefile, test/test.pro, test/testsuppressions.cpp: Remove the
testsuppressions because it doesn't contain any unit tests. A
testsuppressions would be nice if it was more specific. Ticket:
#2748
2011-04-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #2755 (cppcheck goes into infinite loop
while scanning OpenSSL sources)
2011-04-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix tokenizer bug where
'class B : private ::A { };' was tokenized to 'class B : private: :
A { } ;'
2011-04-28 Robert Reif <reif@earthlink.net>
* test/testclass.cpp, test/testsymboldatabase.cpp: move symbol
database tests to testsymboldatabase.cpp
2011-04-28 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: fix debug
warning for function parameters with template with varid of 0
2011-04-28 Robert Reif <reif@earthlink.net>
* lib/checkstl.cpp, test/teststl.cpp: fix
2011-04-28 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Remove dependency to QtXml.
2011-04-27 Kimmo Varis <kimmov@gmail.com>
* Makefile, cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/threadexecutor.cpp, cli/threadexecutor.h, gui/threadresult.cpp,
gui/threadresult.h, lib/errorlogger.h, test/testother.cpp,
test/testsuppressions.cpp, test/testthreadexecutor.cpp,
tools/dmake.cpp: Remove ErrorLogger::reportStatus() method. The ErrorLogger::reportStatus() is not lib code interface. The CLI
code does the looping through file list and gives one file at a time
for the core code. Hence lib has no any idea about the progress and
it can't provide such information. Also the recent commit (6d858b6) caused a GUI build failure by
adding CLI code dependency to GUI. Which is big no-no. This is admittedly a hack. But it allow us to build all modules
again.
2011-04-27 Markus Elfring <elfring@users.sourceforge.net>
* gui/CMakeLists.txt: Deletion of references to modules "QtHelp" and
"QtXml" in the GUI CMake script Two Qt modules are not needed any more in the CMake script for the
graphical user interface after the commit "GUI: Open online-help
instead of local help".
https://github.com/danmar/cppcheck/commit/3965a08b7b9de4b4b79b18513b7e5222d4fa3cd7#commitSigned-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-04-27 Daniel Marjamäki <danielm77@spray.se>
* lib/path.cpp: astyle formatting
2011-04-27 Daniel Marjamäki <danielm77@spray.se>
* test/test.pro: Fixed #2749 (Different test count using Makefile
and QtCreator project)
2011-04-27 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: dmake: fixed compiler error
2011-04-27 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp: Use tolowerWrapper wherever appropriate
2011-04-27 Greg Hewgill <greg@hewgill.com>
* lib/path.cpp: Portability: Raise an error if a platform-specific
filename compare function is not specified
2011-04-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
fix spelling of initialized in checkclass messages
2011-04-26 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: fix false
positive introduced in CheckAutoVariables::autoVariables conversion
to use symbol database
2011-04-27 Greg Hewgill <greg@hewgill.com>
* cli/filelister.cpp, test/testfilelister.cpp: FileLister: don't
assume that all files have nonzero size in test case
2011-04-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2753 (False
negative: dereference uninitialized pointer 'buf[0] = 0;')
2011-04-19 Greg Hewgill <greg@hewgill.com>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/filelister.cpp, cli/filelister.h, cli/threadexecutor.cpp,
cli/threadexecutor.h, gui/threadresult.cpp, gui/threadresult.h,
lib/cppcheck.cpp, lib/cppcheck.h, lib/errorlogger.h,
test/testcppcheck.cpp, test/testfilelister.cpp, test/testother.cpp,
test/testsuite.h, test/testsuppressions.cpp,
test/testthreadexecutor.cpp: Report percentage complete based on
file size This patch makes the (reasonable) assumption that the total size of
all checked files fits in a 'long' type.
2011-04-25 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2722 (new check: statement that is always true (strcmp))
2011-04-26 Tim Gerundt <tim@gerundt.de>
* htdocs/.htaccess: Web: Set correct MIME type for favicon
2011-04-26 Tim Gerundt <tim@gerundt.de>
* htdocs/.htaccess: Web: Add compression for HTML, CSS and
JavaScript files
2011-04-25 Kimmo Varis <kimmov@gmail.com>
* : commit 7d00d47404dfc7f791de7bf9717c26c3b837a690 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Apr 24 23:41:24 2011 +0300
2011-04-24 Kimmo Varis <kimmov@gmail.com>
* test/test.pro: Remove outdated comment from tests.pro.
2011-04-24 Kimmo Varis <kimmov@gmail.com>
* test/test.pro: Add suppressions tests to qmake project.
2011-04-24 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
gui/checkthread.cpp, lib/cppcheck.cpp, lib/cppcheck.h,
test/testsuppressions.cpp: Modify the Cppcheck class to check one
file at a time. Unify usage and API of CppCheck class. Allow only one file checked
at a time, instead of list of files. Clients can then handle file
lists more naturally and as they see fit. Also clients have better
knowledge of how checking status should be handled. The single-threaded CLI checking was only one using the file list.
Other clients were giving files (to list) one file at a time.
2011-04-23 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h: CLI: Give files
to Cppcheck class one at a time. When doing single-threaded checking give checked files to Cppcheck
class one file at a time. Like GUI and multithreaded checking
already do. This unifies how we call Cppcheck class from different
clients.
2011-04-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2745 (Enum vs
local variable - conflict)
2011-04-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2746 (false
positive: syntax error (typedef in __attribute__ )))
2011-04-23 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: convert last check in checkautovariables
to use the symbol database
2011-04-23 Robert Reif <reif@earthlink.net>
* : commit cd64d8476ce61e50474ed991cd532eee222ccb9b Author: Robert
Reif <reif@earthlink.net> Date: Sat Apr 23 09:37:50 2011 -0400
2011-04-23 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: added a little info about compiling without
pcre
2011-04-22 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: don't debug warn
about class function definitions without body having missing varid
on function parameters
2011-04-22 Robert Reif <reif@earthlink.net>
* test/testtokenize.cpp: add another test case for #2614 (missing
varid on function parameter)
2011-04-22 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2740
(inline cmd // cppcheck-suppress does not work anymore for 1.48)
2011-04-23 Greg Hewgill <greg@hewgill.com>
* lib/checkclass.cpp, lib/symboldatabase.cpp, test/testclass.cpp:
Change symbol database such that the typestart token skips over type
modifiers (const/static/mutable). This fixes checking for the case
of a memset() on a static variable.
2011-04-22 Tim Gerundt <tim@gerundt.de>
* : Change dialog bitmap from windows installer
2011-04-23 Greg Hewgill <greg@hewgill.com>
* tools/dmake.cpp: Makefile: handle case where LDFLAGS is already
defined (in dmake)
2011-04-22 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php, htdocs/index.php,
htdocs/site/css/all.css: Web: Use Orbitron font for page head
2011-04-22 Greg Hewgill <greg@hewgill.com>
* Makefile: Makefile: handle case where LDFLAGS is already defined
2011-04-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2738 (syntax
error on valid code)
2011-04-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: run astyle
2011-04-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Virtual destructors:
Enabled the check again. I think it is conclusive now. Ticket: #2728
2011-04-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Fixed
TODO test case. Ticket: #2733
2011-04-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2736
(segmentation fault of cppcheck)
2011-04-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testmemleak.cpp: astyle formatting
2011-04-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2733 (Memory
leak: not all branch are checked)
2011-04-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: const parameter: Added comment to reduce false
negatives for various classes in the std namespace
2011-04-19 Daniel Marjamäki <danielm77@spray.se>
* Makefile, readme.txt, tools/dmake.cpp: Makefile: added option for
compiling with/without rules
2011-04-19 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: astyle formatting
2011-04-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2734 (False
positive: reports 'should be passed by reference' for
std::streamoff)
2011-04-19 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2733 added sizeof
to checkmemory-leaks white list, added a todo-testcase
2011-04-18 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testother.cpp: fix #2730 (The same
expression on both sides of != is OK when checking for NaN)
2011-04-18 Robert Reif <reif@earthlink.net>
* test/testtokenize.cpp: fix previous patch: test for #2614 (missing
varid on function parameter)
2011-04-18 Robert Reif <reif@earthlink.net>
* test/testtokenize.cpp: add test for #2614 (missing varid on
function parameter)
2011-04-18 Martin Exner <justme81@users.sourceforge.net>
* lib/preprocessor.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testautovariables.cpp: Fixed #2676 (setVarId: variables with
global scope qualification :: don't get varids)
2011-04-17 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Add link to Jenkins plugin
2011-04-16 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui: GUI: Move internal error option to Advanced-tab.
2011-04-16 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files.
2011-04-16 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/erroritem.cpp, gui/mainwindow.cpp,
gui/settings.ui, gui/settingsdialog.cpp: GUI: Add option for
enabling inconclusive checks. Add new "Advanced" page to preferences-dialog and add there a
checkbox for enabling inconclusive checks. Now that checkbox is the
only control in that new page but there will be more controls later
on.
2011-04-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Fixed bug. When varid is 0 then
%varid% doesn't work. Ticket: #2723
2011-04-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2716 (Easy to
reproduce crash)
2011-04-16 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp, test/testerrorlogger.cpp: ErrorLogger:
Refactoring/fixing the serializer/deserializer for inconclusive
messages
2011-04-16 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/resultstree.cpp,
gui/threadresult.cpp, gui/txtreport.cpp, gui/xmlreportv1.cpp,
gui/xmlreportv2.cpp: GUI: Add support for inconclusive errors. This is the first (and quick) support for the inconclusive errors.
We simply add [Inconclusive] to begin of the summary. This is
temporary solution until better GUI is implemented. XML v1 won't be
supporting inconclusive errors. For XML v2 we need still to decide
what to do.
2011-04-16 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: astyle formatting
2011-04-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testother.cpp,
test/testsimplifytokens.cpp: Fixed #2713 (False positive (Redundant
assignment))
2011-04-16 Stefan Weil <weil@mail.berlios.de>
* htmlreport/cppcheck-htmlreport: html report: better handling of
non ASCII characters in C source code
2011-04-16 Stefan Weil <weil@mail.berlios.de>
* cli/cppcheckexecutor.cpp: CppcheckExecutor: Code cleanups and
fixes
2011-04-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2720 (false
positive: syntax error with c++0x code)
2011-04-14 Daniel Marjamäki <danielm77@spray.se>
* cli/threadexecutor.cpp, lib/check.h, lib/checkmemoryleak.cpp,
lib/checkunusedfunctions.cpp, lib/cppcheck.cpp,
lib/errorlogger.cpp, lib/errorlogger.h, lib/preprocessor.cpp,
lib/symboldatabase.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testerrorlogger.cpp: Inconclusive checking: Report inconclusive
errors with reportInconclusiveError. It takes the same parameters as
reportError.
2011-04-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2714 (False
positive: ternary operator and += style warning.)
2011-04-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2718 (Analysis
failed. If the code is valid then please report this failure.)
2011-04-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2717 (false
positive: syntax error (typedef void f(int) const;))
2011-04-13 Robert Reif <reif@earthlink.net>
* lib/errorlogger.h, test/testerrorlogger.cpp,
test/testsimplifytokens.cpp: run astyle
2011-04-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: "#ifndef" can't be used in Makefile (it
is considered a commented line). Replaced it with "ifndef".
2011-04-11 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: minor updates
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/errorlogger.cpp, test/testerrorlogger.cpp:
inconclusive: don't report such messages in xml version 1 format.
until we decide how they will be reported in xml version 2 format I
don't report it.
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2712 (false
positive: Division by zero)
2011-04-10 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Update download to version 1.48
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.h: ErrorLogger: Added severities for inconclusive
error and inconclusive warning
2011-04-10 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: add
check for same expression on both sides of an operator (part of
#2700)
2011-04-10 Robert Reif <reif@earthlink.net>
* : commit 4a50aca7b2ba92a22c1115dccb04f1c14910b97c Author: Robert
Reif <reif@earthlink.net> Date: Sun Apr 10 09:57:09 2011 -0400
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checkother.cpp, lib/preprocessor.cpp,
lib/settings.cpp, lib/settings.h, test/testbufferoverrun.cpp,
test/testclass.cpp, test/testmemleak.cpp, test/testother.cpp:
Renamed Settings::stupid to Settings::experimental
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checkother.cpp, lib/preprocessor.cpp,
lib/settings.cpp, lib/settings.h, test/testbufferoverrun.cpp,
test/testclass.cpp, test/testmemleak.cpp, test/testother.cpp: Added
Settings::stupid flag that can be used to hide checking that
generates false positives.
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/settings.h: --inconclusive : Added
command line flag that enable inconclusive checking. It is added for
experimental purposes.
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Code cleanup. Use %oror% to simplify
code.
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: CheckOther: Code cleanup. Use %oror%
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Use %oror% in multiCompare
pattern
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Use %oror% in multiCompare
pattern
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: CheckOther: Use %op% in CheckUnsignedDivision
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp: CheckUninitVar: Use %op%
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Use %op% in simplifyOperatorName
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Use %op% in simplifyCalculations
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* test/testtoken.cpp: Token: Added testcase for matching of %op%
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Use %op% to clean up pattern
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Code cleanup. Removed redundant
variable
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Fixed bug in last commit
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Use the %oror% in multiCompare
patterns
2011-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp, test/testtoken.cpp: Token::Match : Allow that
%oror% and %or% is used in multiCompare patterns
2011-04-09 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: partial
fix for #2700 (common logic or cut and paste errors)
2011-04-09 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testother.cpp: fix bug in previous
commit: fix #311 (add detection of duplicated if else-cases)
2011-04-09 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix #311
(add detection of duplicated if else-cases)
2011-04-09 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/token.h: Refactoring: add
Token::isAssignmentOp and use it in CheckClass::checkConstFunc
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Refactoring: Use Token::isArithmeticalOp
instead of hardcoded conditions
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Refactoring: Use %op% instead of
Token::isOp
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Refactoring: Use %op%
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Refactoring: Use %op% instead of
Token::isOp in CheckBufferOverrun
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring: Use %op%
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Refactoring: Use
%op%
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring: Use %op%
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp, lib/tokenize.cpp, test/testtoken.cpp:
Token::multiCompare : allow that %op% is used in multiCompare
pattern
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/token.h, lib/tokenize.cpp: Refactoring: Use Token::isOp
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp, lib/token.h,
lib/tokenize.cpp, test/testsimplifytokens.cpp: Refactoring: Use
Token::isOp
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Set debug mode
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Release: Updated Makefile for release
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* Changelog: Release: Updated the Changelog
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* test/testfilelister.cpp: TestFileLister: astyle formatting and
removed commented debug code
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: Release: Updated
versions to 1.48
2011-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/token.h: Fixed cppcheck warnings: Removed extra 'Token::' from
statement
2011-04-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/token.h, lib/tokenize.cpp: Refactoring:
there was almost duplicate functions 'isOp'. Created a new
Token::isOp function instead.
2011-04-08 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: added tests for #2710 (False negative on
uninitialized member variable in a ctor.)
2011-04-07 Daniel Marjamaki <danielm77@spray.se>
* test/testfilelister.cpp: Fixed TestFileLister tests in windows
2011-04-07 Daniel Marjamäki <danielm77@spray.se>
* Makefile, test/CMakeLists.txt, test/test.pro,
test/testfilelister.cpp, test/testfilelister_unix.cpp: Fixed #2684
(TestFileLister test assumes there are source files in the same
directory)
2011-04-07 Markus Elfring <elfring@users.sourceforge.net>
* : commit fbc8223a6b32935e2001d688756600829baaec10 Author: Daniel
Marjamaki <danielm77@spray.se> Date: Thu Apr 7 16:53:42 2011 +0200
2011-04-07 Kimmo Varis <kimmov@gmail.com>
* gui/main.cpp: GUI: Print command line help with -h and --help.
2011-04-07 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Allow giving project
file to command line. GUI now recognizes -p <project file> command line parameter. When
given (with path to valid project file) GUI automatically loads the
project file and starts checking paths in it. Ticket: #2613 (GUI: Should accept project file from command line)
2011-04-07 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj: Fix test VS2008 project file attributes.
2011-04-07 Stefan Weil <weil@mail.berlios.de>
* lib/checkobsoletefunctions.h, test/testobsoletefunctions.cpp:
Obsolete functions: Fix messages for gethostbyaddr, gethostbyname
2011-04-06 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: fixed gcc compiler warning
2011-04-06 Daniel Marjamäki <danielm77@spray.se>
* : commit 1907590303a7e67c73c94bf092d7f19c12ec3dfc Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Apr 6 21:34:11 2011 +0300
2011-04-06 Daniel Marjamaki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Use Settings::debugwarnings
instead of NDEBUG to determine if 'missing system include' should be
reported or not
2011-04-06 Markus Elfring <elfring@users.sourceforge.net>
* gui/CMakeLists.txt: Addition of Spanish translation in the GUI
CMake script A file name was added to the GUI CMake script for the Spanish
translation. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-04-06 Markus Elfring <elfring@users.sourceforge.net>
* cli/CMakeLists.txt: Conditional inclusion of TinyXML source files
in the CLI CMake script (bug #2679, #2524) The source files for the class library "TinyXML" will only be
included into the build of the command line interface if the library
"PCRE" was found before. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-04-06 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Sort language files in project file.
2011-04-06 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_es.ts,
gui/cppcheck_fi.ts, gui/cppcheck_fr.ts, gui/cppcheck_ja.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_sr.ts, gui/cppcheck_sv.ts: GUI: Update translation
files. Adding new Spanish translation added one new translatable string and
changed linenumbers in one file.
2011-04-06 Lauri Nurmi <lanurmi@users.sourceforge.net>
* gui/gui.pro, gui/translationhandler.cpp: GUI: Add Spanish
translation. Patch to add loading Spanish translation to GUI. Ticket #2545 (cppcheck translated in spanish language)
2011-04-06 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_es.ts: GUI: Add Spanish translation. Add Spanish GUI translation contributed by
qcondor@users.sourceforge.net. Ticket #2545 (cppcheck translated in spanish language)
2011-04-06 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_fr.ts, gui/cppcheck_ja.ts, gui/cppcheck_nl.ts,
gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_sr.ts: GUI:
update translation files.
2011-04-05 Daniel Marjamaki <danielm77@spray.se>
* gui/cppcheck_sv.ts: gui: removed obsolete strings in the swedish
translation
2011-04-05 Daniel Marjamaki <danielm77@spray.se>
* gui/cppcheck_sv.ts: gui: updated swedish translations
2011-04-04 Robert Reif <reif@earthlink.net>
* test/testmemleak.cpp: run astyle
2011-04-04 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2706 (Analysis
failed. If the code is valid then please report this failure.)
2011-04-04 Ettl Martin <ettl.martin@gmx.de>
* test/testmemleak.cpp: Added todo testcase for ticket #2705
2011-04-04 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Improve the error message for language
loading error.
2011-04-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: clarify calculation: fixed
false negative for 'int x = a - b ? 2 : 3'
2011-04-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Buffer overrun: broke out duplicate
code
2011-04-04 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Project file cleanup.
2011-04-04 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp: GUI: Don't show error when no application
added. I earlier added a check for missing (editor) application command
line parameters. If parameters are missing at GUI startup an message
is shown to user to check the settings. Unfortunately my check was
incomplete and it also triggered when there was no applications
defined. Which happens when user starts GUI for a first time. Fix the check so that user is only informed in case the parameters
are missing and name + path are set.
2011-04-04 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui, gui/applicationdialog.cpp: GUI: Improve the
Application dialog layoyt. In GNOME the whole big text area was not shown without making the
dialog bigger. So improve the layout for better scaling and adjust
dialog size when it gets initialized.
2011-04-04 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: GUI: Fix setting application path as
name. The application dialog initialized name field with path.
2011-04-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Clarify
calculation: Added warnings for << and >>
2011-04-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Null pointer: cleanup the code. Ticket:
#2642
2011-04-03 Martin Exner <justme81@users.sourceforge.net>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2696
(False positive nullpointer)
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: execute the
simplifyIfNot and simplifyIfNotNull in the normal token list. ticket
#2642
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Fix gui.pro EOL style.
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: clarify precedence: made
the short message shorter
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: GUI: Add new files to CMake build file.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/settingsdialog.cpp: GUI: Modify ApplicationDialog to get/return
Application class.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/application.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/resultstree.cpp, gui/settingsdialog.cpp:
GUI: Refactoring application definition. Using Application class as method parameters instead of separate
application attributes.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/application.cpp, gui/application.h, gui/applicationlist.cpp,
gui/gui.pro: GUI: Improving application handling code. Only allow access to Application's attributes through accessor
methods.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/application.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/gui.pro: GUI: Move application definition
to own header file.
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* CMakeLists.txt: cmake: reduced message a little
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* : Merge commit 'elfring/2679d'
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyCalculations: simplify division result if it's a
whole number, even though it doesn't have precedence
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Clarify
precedence 'a*b?c:d' : warn for addition, subtraction and division
also. tried to clarify the message more
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_fr.ts, gui/cppcheck_ja.ts, gui/cppcheck_nl.ts,
gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_sr.ts,
gui/cppcheck_sv.ts: GUI: Update translation files.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp, gui/resultstree.cpp: GUI: Simplify
handling applications with spaces in paths. Earlier user had to add quotation marks around application
executable path in application dialog. Because we could not
determine which part is path and which part is parameters. As we now
have separate variables we can automatically add the quotation marks
when needed before starting the application. This reduces the
confusion users have had about the correct formatting of paths.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui: GUI: Update/fix application dialog texts. I forgot to update the dialog texts when adding the parameters
field.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui: GUI: Add accel keys for application dialog and
fix tab order.
2011-04-02 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui, gui/applicationdialog.cpp,
gui/applicationdialog.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/common.h, gui/mainwindow.cpp,
gui/resultstree.cpp, gui/settingsdialog.cpp: GUI: Have separate
setting for editor app path and params. Currently combined editor application path + params is a bit
problematic (at least in Windows). We really don't know where the
app path ends and parameters start. So proper quoting is not always
possible. And application path and command line parameters are clearly
different settings anyway. So make them separate settings. It has
bunch of other positive sides too. Like one can now browse new path
for the application without loosing the parameters. When starting Cppcheck version with these new settings user is
warned that loading settings had problems and asked to check and fix
the settings.
2011-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: better
simplification of calculations in conditions
2011-03-31 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: symbol database: add support for anonymous
struct and union
2011-03-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: change
CheckClass::operatorEqToSelf to make better use of the symbol
database
2011-03-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: fix
CheckClass::operatorEq to check return type more closely (to match
check description)
2011-03-31 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.h, lib/settings.h: fixed doxygen warnings about
undocumented function parameters
2011-03-30 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: symbol database:
improve function argument count and default argument count
2011-03-30 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: symbol database: get
function argument count using argument list size rather than
counting commas
2011-03-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testincompletestatement.cpp: Fixed #2655
(false positive: (warning) Redundant code: Found a statement that
begins with numeric constant)
2011-03-30 Lieven de Cock <lieven.de.cock@telenet.be>
* lib/path.cpp: Improve/cleanup Path::removeQuotationMarks().
2011-03-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2693 (__declspec
attribute not removed properly)
2011-03-30 Stefan Weil <weil@mail.berlios.de>
* lib/checkbufferoverrun.cpp, lib/checknullpointer.cpp,
lib/checkstl.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Spell checks
2011-03-30 Stefan Weil <weil@mail.berlios.de>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Spell
checks
2011-03-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: symbol database: handle default values for
function arguments properly
2011-03-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: add support for array of unnamed struct
and union to symbol database
2011-03-29 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Simplify ignore paths. Fixes #2656 (-i Give path to ignore does not ignore if start of the
path is different than checked path) Simplify paths given as -i options. This makes it easier to match
the paths as simplifying removes redundant parts.
2011-03-29 Kimmo Varis <kimmov@gmail.com>
* lib/path.cpp, test/testpath.cpp: Remove './' at begin of path in
Path::simplifyPath. The './' is not needed at begin of path for files we check. And it
only makes paths longer. This also makes it easier to match paths.
2011-03-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2695
(False positive: null pointer dereference and ternary operator (?:))
2011-03-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: more support for anonymous struct to
symbol database
2011-03-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: add support for anonymous struct to symbol
database
2011-03-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2692 (False
positive: if parsed as function in operator >>)
2011-03-28 Robert Reif <reif@earthlink.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: add support
for checking struct/class member container in CheckStl::size()
2011-03-28 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Remove quotation marks from user-given
paths. Ticket #2686 (regression/bug in path handling) There are situations that paths given to command line can contain
quotation marks. In normal situations shell removes them. For these
cases they don't get removed add code to check paths from quotation
marks and remove them.
2011-03-28 Kimmo Varis <kimmov@gmail.com>
* lib/path.cpp, lib/path.h, test/testpath.cpp: Add
Path::removeQuotationMarks() to clean path.
2011-03-28 Daniel Marjamäki <danielm77@spray.se>
* test/testnullpointer.cpp: Null pointer: Added TODO test case for
ticket #2681
2011-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
prefer longer error message that says 'otherwise condition at line X
is redundant'
2011-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
prefer longer error message that says 'otherwise condition at line X
is redundant'
2011-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2691
(False positive: struct dereference and check (switch-break))
2011-03-28 Markus Elfring <elfring@users.sourceforge.net>
* gui/CMakeLists.txt: Deletion of "htmlhelp" from link setting in a
CMake script (bug #2524, #1957) The library "htmlhelp" is not needed by the graphical user interface
at the moment.
https://github.com/danmar/cppcheck/commit/2fea5f01d6b8af92a4739eb6bef29fd7044c27c3#gui/gui.proThere are difficulties to fulfil this dependency. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-03-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testconstructors.cpp: skip nested
anonymous unions when searching for variables in symbol database
2011-03-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2689
(False positive: Possible null pointer dereference)
2011-03-27 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: output a debug message when a member variable
is used that has a varid of 0
2011-03-27 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: make member variable
change detection simpler and more accurate for
CheckClass::checkConst
2011-03-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: add anonymous union support to the symbol
database
2011-03-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2674
(False positive: possible null pointer dereference (check if pointer
is null in one function, dereference it in another function))
2011-03-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2660 (False
positive: Variable 'v' is assigned a value that is never used)
2011-03-26 Markus Elfring <elfring@users.sourceforge.net>
* : Synchronisation of CMake build files with master branch (bug
#2524) * 2524d: Renaming of the file for the Swedish translation in a CMake script
(bug #2524) Renaming of the GUI executable to "cppcheck-gui" in a
CMake script (bug #2524) Addition of a file name in a CMake script
(bug #2524, #1690)
2011-03-26 Markus Elfring <elfring@users.sourceforge.net>
* gui/CMakeLists.txt: Renaming of the GUI executable to
"cppcheck-gui" in a CMake script (bug #2524) The executable file for the graphical user interface was renamed in
a CMake script to synchronise this setting with the qmake build
specification.
https://github.com/danmar/cppcheck/commit/b88ce77e4ac85d1b32981c63cb5c538e9740b6e9#gui/gui.proSigned-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-03-26 Markus Elfring <elfring@users.sourceforge.net>
* test/CMakeLists.txt: Addition of a file name in a CMake script
(bug #2524, #1690) A few source files were added because of the feature request
"Ability to exclude files and directories from checks".
https://github.com/danmar/cppcheck/commit/6401271ceb85ff93a697b2c09fb4765a560fb7a3A CMake build script was updated for these changes. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: generate manual.html. ticket: #2687
2011-03-26 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Update online-help to open the HTML
manual.
2011-03-26 Daniel Marjamaki <danielm77@spray.se>
* cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt:
cmake: removed the non-working pcre. ticket: #2679
2011-03-26 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp: Ticket #2688 (Missing include path
shouldn't exit the program) Non-existing include path is not a fatal problem requiring exiting
the program. Instead we just print a warning and remove the non-
existing include path from the list.
2011-03-26 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: GUI: Remove help viewer files from CMake
build.
2011-03-26 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: don't install local help
file.
2011-03-26 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/helpwindow.cpp, gui/helpwindow.h,
gui/helpwindow.ui, gui/mainwindow.cpp, gui/mainwindow.h: GUI: Open
online-help instead of local help. Local help does not currently work (ticket #2316) and building it is
a bit painful in Windows. Hence it was decided on ticket #2677 and
at IRC that we open on-line help from GUI until the local help issue
is solved.
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2653 (segmentation
fault of cppcheck 'x=b=0;')
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::setVarId:
Prevent that wrong varid is given when uncertain. Ticket: #2680
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* lib/CMakeLists.txt: CMake: There is no need for PCRE when building
the lib
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* CMake/xmlto.cmake: Removed the CMake/xmlto.cmake file
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* CMakeLists.txt, cmake/modules/FindXmlTo.cmake, man/CMakeLists.txt:
Fixed #2677 (XmlTo is now required for building?)
2011-03-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2680 (setVarId:
variables with class qualification don't get varid)
2011-03-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: only break when we know we are inc/dec a
member variable in CheckClass::checkConstFunc
2011-03-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: better checking of
assignment to array element in CheckClass::checkConstFunc
2011-03-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: add support to
CheckClass::checkConstFunc for ++/-- array elements
2011-03-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: move 2 CheckClass helper functions to follow
externally called functions so code matches comments
2011-03-26 Sebastien Debrard <seb@camille.localdomain>
* cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: sync
cmake files with the master branch
2011-03-25 Daniel Marjamäki <danielm77@spray.se>
* man/CMakeLists.txt: CMake: Skip xmlto dependency. Ticket: #2677
2011-03-25 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: add some missing ; at end of class and struct
definitions in checkclass tests
2011-03-25 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
test/test.pro, test/test.vcproj, test/test.vcxproj,
test/testcppcheck.cpp, tools/dmake.cpp: Reverted non-CMake changes
in previous 'Added CMake files' commit
2011-03-25 Markus Elfring <elfring@users.sourceforge.net>
* CMake/xmlto.cmake, CMakeLists.txt, cli/CMakeLists.txt,
cli/cli.pro, cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cmake/modules/FindPCRE.cmake, cmake/modules/FindXmlTo.cmake,
gui/CMakeLists.txt, lib/CMakeLists.txt, lib/library_sources.cmake,
man/CMakeLists.txt, test/CMakeLists.txt, test/test.pro,
test/test.vcproj, test/test.vcxproj, test/testcppcheck.cpp,
tools/dmake.cpp: Added CMake files
2011-03-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: add support for global
namespace to Tokenizer::simplifyVarDecl()
2011-03-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2675 (false
positive: syntax error)
2011-03-24 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: symbol database: add
a link from a Function to its Function Scope namd make function
parameters belong to Function Scope
2011-03-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2673 (false
positive: memory leak (address stored in list))
2011-03-23 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #1288 (Use of memset
on struct - nested structs not handled)
2011-03-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix
Tokenizer::simplifyVarDecl() template assignment
2011-03-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testclass.cpp, test/testnullpointer.cpp:
better fix for #2672 (False positive: function can be const, nested
classes declared in one line)
2011-03-24 Sebastien Debrard <seb@camille.localdomain>
* : commit 5f36ede4f5e7f8abc2dafa248a283e92feeed288 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Mar 23 18:45:47 2011
+0100
2011-03-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2672 (False
positive: function can be const, nested classes declared in one
line)
2011-03-22 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: add some more CheckClass::noMemset tests
2011-03-22 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: fix pointer/reference check in
CheckClass::noMemset symbol database conversion
2011-03-22 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: convert remainder of CheckClass::noMemset to
use symbol database
2011-03-22 Robert Reif <reif@earthlink.net>
* : commit 468a983db1356576214d854d8930dc9521fdc685 Author: Robert
Reif <reif@earthlink.net> Date: Tue Mar 22 21:24:28 2011 -0400
2011-03-23 Sebastien Debrard <seb@camille.localdomain>
* tools/Makefile: fix compilation error
2011-03-23 Sebastien Debrard <seb@camille.localdomain>
* tools/Makefile: fix compile error
2011-03-23 Sebastien Debrard <seb@camille.localdomain>
* : commit d36ed9aff15e267f3f94f3e37432e0eb6380809a Author: Robert
Reif <reif@earthlink.net> Date: Tue Mar 22 19:23:36 2011 -0400
2011-03-22 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/cppcheck.cpp: run astyle
2011-03-22 Ettl Martin <ettl.martin@gmx.de>
* lib/cppcheck.cpp, test/testfilelister_unix.cpp: fixed performance
issues, found by selfcheck with cppcheck.
2011-03-22 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: extended
checkmemoryleak-whitelist
2011-03-22 Zachary Blair <zack_blair@hotmail.com>
* lib/token.cpp: Fixed #2665 (Slightly sped-up how Token::Match()
parses patterns)
2011-03-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix
2011-03-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix invalid bitfield
match and simplification that created invalid code
2011-03-21 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: add virtual base
class support to symbol database
2011-03-21 Robert Reif <reif@earthlink.net>
* cli/filelister.cpp, lib/checkmemoryleak.cpp, test/testmemleak.cpp:
run astyle
2011-03-21 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: extended
checkmemoryleak white list
2011-03-21 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2667 added open(),
_open() and _wopen() function to checkmemoryleak whitelist, incl.
unittests;
2011-03-21 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2667 added perror
to checkmemoryleak white list; added unit-tests.
2011-03-21 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2668 fixed memory
leak ( freopen() )
2011-03-21 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2659 added
chown,chmod and chdir functions to checkmemoryleak white list; added
unittests for each case;
2011-03-20 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2659 added
access()-function to checkmemoryleak white-list and provided
untittests.
2011-03-20 Ettl Martin <ettl.martin@gmx.de>
* test/testmemleak.cpp: #2667 removed wrong unittests;
2011-03-20 Ettl Martin <ettl.martin@gmx.de>
* test/testmemleak.cpp: #2667 created unit-tests
2011-03-20 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: #2659 added stat
function to white list and provide unit tests.
2011-03-20 Ettl Martin <ettl.martin@gmx.de>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: fixed ticket 2659:
added lstat function to white list; provided unit-tests.
2011-03-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #2663 (False negative:
function can be const (changing unknown or uninitialised variable))
2011-03-20 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h, test/testclass.cpp:
fix #2664 (False negative: function can be const (using type from
another namespace))
2011-03-20 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Fix file modes of two installer files. The files had executable file mode set but they don't need it as
they are normal data files read by the Wix tool.
2011-03-20 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Remove old Swedish
translation file.
2011-03-20 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Update Swedish GUI
translation filename
2011-03-20 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_fr.ts, gui/cppcheck_ja.ts, gui/cppcheck_nl.ts,
gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_sr.ts,
gui/cppcheck_sv.ts: GUI: Update translation files.
2011-03-20 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_se.ts, gui/cppcheck_sv.ts, gui/gui.pro,
gui/translationhandler.cpp: GUI: Rename Swedish translation file. Ln pointed out in IRC that 'se' is not ISO-639 name of the Swedish,
but 'sv' is. So rename the translation file to use the correct
ISO-639 name. This wrong name also probably caused the GUI not
recognizing Swedish locale of the OS.
2011-03-20 Daniel Marjamäki <danielm77@spray.se>
* cli/filelister.cpp: FileLister: Fixed compile error with Qt
Creator + MinGW
2011-03-20 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: FileLister: Updated Visual Studio files
2011-03-20 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, test/test.pro: FileLister: updated qmake files
2011-03-20 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cppcheckexecutor.cpp, cli/filelister.cpp,
cli/filelister.h, cli/filelister_unix.cpp, cli/filelister_unix.h,
cli/filelister_win32.cpp, cli/filelister_win32.h,
test/testfilelister_unix.cpp, tools/dmake.cpp: FileLister: Moved
back the code into a single cpp file
2011-03-20 Sebastien Debrard <seb@camille.localdomain>
* : commit 27506b423195b4cc51664884922e34b24011ccd2 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sun Mar 20 09:55:26 2011
+0100
2011-03-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2662
(Segfault: overloaded function call function with same name)
2011-03-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #1280 (Pointer to
function support)
2011-03-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #1987 (Internal
error:: CheckClass::SpaceInfo::getVarList found variable
'element_size' with varid 0.)
2011-03-19 Sebastien Debrard <seb@camille.localdomain>
* : commit 2dcd0128b018733798eb4c15dbbd2e6f22bf777d Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Mar 19 14:05:22 2011
+0100
2011-03-19 Sebastien Debrard <seb@camille.localdomain>
* : commit 31af3a64bce89482ca9acd9c6044d4543faf3bd6 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Mar 19 11:09:51 2011
+0100
2011-03-19 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: Refactoring: Renamed showAll flag to
inconclusive
2011-03-19 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testmemleak.cpp, test/testtokenize.cpp:
Tokenizer::setVarId: Better handling of class declarations when
variable usage comes before variable declaration
2011-03-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: #2630 (segmentation fault
of cppcheck (template <typedef A>)
2011-03-17 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: fix #2657
(segmentation fault of cppcheck ( gcc-testsuite: return f(){} ))
2011-03-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2651
(Segmentation fault (typedef))
2011-03-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Update codeblocks project file to contain new files
2011-03-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2648
(Tokenizer::simplifyTemplates: Segmentation fault (gcc-testsuite))
2011-03-17 Sebastien Debrard <seb@camille.localdomain>
* : commit 7e04ea0859215355ebbaa950aaa449c3b9822358 Author: Robert
Reif <reif@earthlink.net> Date: Wed Mar 16 19:54:52 2011 -0400
2011-03-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyTemplates: First simple fix for problems when
using sizeof in template parameter
2011-03-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2581 (###
Internal error in Cppcheck. Please report it.)
2011-03-15 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: fix #2637
(segmentation fault of cppcheck ( {} const const ))
2011-03-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2651 function
typedef with extra ()s
2011-03-15 Sebastien Debrard <seb@camille.localdomain>
* : commit fa868e44ae2827f2efb2b5d3c2d5e7462295545e Author: Greg
Hewgill <greg@hewgill.com> Date: Tue Mar 15 20:19:30 2011 +1300
2011-03-14 Sebastien Debrard <seb@camille.localdomain>
* : commit e1afd5eb0939ce1b7d6433699e9f89faf8fd75fc Author: Daniel
Marjamäki <danielm77@spray.se> Date: Mon Mar 14 19:35:22 2011
+0100
2011-03-14 Daniel Marjamäki <danielm77@spray.se>
* webreport.sh: webreport: refactoring
2011-03-14 Daniel Marjamäki <danielm77@spray.se>
* generate_coverage_report: LCOV: updated the
generate_coverage_report to avoid some redundant compiler warnings
2011-03-14 Daniel Marjamäki <danielm77@spray.se>
* htdocs/index.php: htdocs: minor update of index.php
2011-03-13 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: look for function prototypes but don't
save them in the symbol database yet
2011-03-13 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: save pointer to
Function info in function scope in symboldatabase
2011-03-13 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: save location of
using directive (not used yet)
2011-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/tokenize.cpp,
test/testbufferoverrun.cpp, test/testtokenize.cpp: Fixed #2638
(Tokenizer::setVarId : varid is wrongly given when unknown macro is
used)
2011-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h: Clarify condition:
re-enabled check
2011-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2621
(Segmentation fault for GCC statement expression)
2011-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: Refactoring: Use SymbolDatabase to determine if
variable is a iterator
2011-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: Refactoring: Use symbol database to get variable
type
2011-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2639 (False
positive: confusion between struct and function)
2011-03-12 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Convert
CheckClass::noMemset to use the symbol database to lookup types.
This adds better support for namespaces and nested classes.
2011-03-12 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: save start parentheses of global functions
2011-03-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2647
(False positive: Possible null pointer dereference (member function
call))
2011-03-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2643 (False positive:
iterator increment and insert)
2011-03-12 Robert Reif <reif@earthlink.net>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: fix another
false negative introduced by fix for #2641
2011-03-12 Robert Reif <reif@earthlink.net>
* lib/checknullpointer.cpp, lib/symboldatabase.h,
test/testnullpointer.cpp: fix false negative introduced by fix for
#2641
2011-03-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2641
(False positive: Possible null pointer dereference (global pointer,
function call))
2011-03-12 Daniel Marjamäki <danielm77@spray.se>
* : commit 2716b856f410a4235eea775f03b23de1dbe85310 Author: Greg
Hewgill <greg@hewgill.com> Date: Sat Mar 12 07:27:31 2011 +1300
2011-03-10 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/symboldatabase.cpp, lib/symboldatabase.h, lib/tokenize.cpp,
test/testsymboldatabase.cpp: refactor symbol database and checks to
use list of Scope rather than list of Scope pointers
2011-03-10 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp, man/cppcheck.1.xml, man/manual.docbook,
test/testsuppressions.cpp: Allow suppressing all warnings (using *)
for specified file or files
2011-03-10 Greg Hewgill <greg@hewgill.com>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Revert
"Check for memset on nested structs (ticket #1288)" Turns out this
fix is incomplete. This reverts commit a084697410bac0e08324236e78185a0c1a8a92ff.
2011-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h: suspicious condition: commented out the check
temporarily - there are some false positives I'll need to fix
2011-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
Suspicious condition: Added new check for conditions that contains
assignment+comparison
2011-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2632 (segmentation
fault of cppcheck ( void>(); void>() ))
2011-03-09 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit bea387538631337021d219ce70dc843858460898 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Mar 9 21:00:28 2011
+0100
2011-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2635 (False
positive: resource leak)
2011-03-09 Greg Hewgill <greg@hewgill.com>
* : commit a084697410bac0e08324236e78185a0c1a8a92ff Author: Greg
Hewgill <greg@hewgill.com> Date: Wed Mar 9 22:49:13 2011 +1300
2011-03-09 Greg Hewgill <greg@hewgill.com>
* lib/checkclass.cpp, test/testclass.cpp: Check for memset on
objects with virtual functions (ticket #607)
2011-03-09 Greg Hewgill <greg@hewgill.com>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: refactor
noMemset so it recursively checks parent classes for
non-memset-compatible things
2011-03-08 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2630
(segmentation fault of cppcheck ( typedef ... )
2011-03-08 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix null pointer dereference found by
clang++ --analyze
2011-03-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2620
(Tokenizer::setVarId : wrong handling of member function parameters)
2011-03-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2634 (False positive: buffer access out of bounds)
2011-03-08 Kimmo Varis <kimmov@gmail.com>
* gui/about.ui: GUI: Update About-dialog copyright year to 2011.
2011-03-07 Robert Reif <reif@earthlink.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp: copy all flag fields
in a Token
2011-03-07 Robert Reif <reif@earthlink.net>
* lib/checkstl.cpp, test/teststl.cpp: convert CheckStl::size() to
use symbol database, fix false positives, and remove inconclusive
2011-03-07 Kimmo Varis <kimmov@gmail.com>
* : commit d8ced1dbb1e2fa78cbd17c78c468a65b6338581d Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Mar 7 23:43:59 2011 +0200
2011-03-07 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Add back translation
of severity texts. Translation of severity texts was temporarily disabled by earlier
commits. Now adding new method to ResultsTree for getting translated
severity string.
2011-03-07 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Update more severity
conversion methods.
2011-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: made sure string::iterator is
valid after string::erase
2011-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Incorrect string compare:
reduce noise when using strncmp on string literal
2011-03-07 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp: GUI:
Make Severity to ShowType use enum values. Continue converting Severity use in GUI from QString to enum values.
2011-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2631
(Tokenizer::simplifyTemplates: template usage 'std::cout <<
(foo<double>(r));')
2011-03-07 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/resultstree.cpp: GUI:
Convert severity in ErrorLine to enum value. This commit continues converting severity in GUI to enum.
2011-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2633 (False
positive: Memory leak for tree node)
2011-03-07 Kimmo Varis <kimmov@gmail.com>
* gui/csvreport.cpp, gui/erroritem.cpp, gui/erroritem.h,
gui/resultstree.cpp, gui/resultsview.cpp, gui/threadresult.cpp,
gui/txtreport.cpp, gui/xmlreportv1.cpp, gui/xmlreportv2.cpp: GUI:
Use severity enum in ErrorItem. Convert from using string to enum values for severity in ErrorItem.
Storing and handling severity as string was the easy way earlier but
it is not convenient or efficient way to handle severities. This
commit is the first step in converting severity handling to use the
enum values instead of strings.
2011-03-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2630
(segmentation fault of cppcheck ( typedef y x () x ))
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Refactoring of the
CheckNullPointer::isPointer. Use the symbol database. Ticket: #2629
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.cpp, lib/symboldatabase.h: Symbol database:
variable fix. ticket: #2629
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: astyle formatting
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyTemplates: better handling of '(foo<double>())'.
Ticket: #2631
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Revert
"Tokenizer::simplifyTemplates: better handling of '(foo<double>())'.
Ticket: #2631" This reverts commit de31ec1e4441eab3c065d3208f0be01bbf2c2bcf.
2011-03-07 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp: Always pass unsigned char to ::isspace to
prevent runtime error in MSVC
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyTemplates: better handling of '(foo<double>())'.
Ticket: #2631
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.h: error logger: explain the severities better
2011-03-06 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.h: Document error message severities.
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: better build instructions
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: CheckMemoryLeak: Refactoring the code
2011-03-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2612 (segmentation
fault of cppcheck ( <><< ))
2011-03-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: finish fixing #2624
(better function pointer support needed)
2011-03-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: partial fix for
#2624 (better function pointer support needed)
2011-03-06 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp, lib/preprocessor.cpp, test/testother.cpp:
switchCaseFallThrough is now an inconclusive check
2011-03-06 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testother.cpp: Relax detection of 'fall
through' comment so it only adds a suppression if it immediately
precedes 'case' or 'default'
2011-03-06 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp, lib/preprocessor.cpp, test/testother.cpp:
switchCaseFallThrough is now a coding style check (ticket #2623)
2011-03-05 Kimmo Varis <kimmov@gmail.com>
* cppcheck.cppcheck: Skip checking gui/temp when using project file. gui/temp directory contains code files generated by qmake so those
files are not interesting to check.
2011-03-05 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testother.cpp: Support a few more
common styles of "fall through" comment
2011-03-05 Greg Hewgill <greg@hewgill.com>
* Makefile, cli/threadexecutor.cpp, cli/threadexecutor.h: Refactor
ThreadExecutor::check() to handle child failures more gracefully
2011-03-05 Greg Hewgill <greg@hewgill.com>
* cli/threadexecutor.cpp, cli/threadexecutor.h: Normalise threading
support checking into a single #define
2011-03-05 Greg Hewgill <greg@hewgill.com>
* : commit c5f8a06a97df57a47a2061e48b55e6fa15f19641 Author: Greg
Hewgill <greg@hewgill.com> Date: Fri Mar 4 20:26:14 2011 +1300
2011-03-04 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testother.cpp: fix case where fall
through comment precedes preprocessor line
2011-03-04 Greg Hewgill <greg@hewgill.com>
* test/testother.cpp: add TODO for pathological case
2011-02-23 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp, test/testother.cpp: avoid warning on first
case (in case there are declarations before first case)
2011-02-20 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp: slightly more flexible detection of 'fall
through' comment
2011-02-20 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp: avoid crash when else condition doesn't have
braces to link
2011-02-20 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testother.cpp: recognise fall through
in c style comments
2011-02-20 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp: more gracefully handle unexpected blocks
inside switch
2011-02-20 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: full
implementation of switch case fall through
2011-02-19 Greg Hewgill <greg@hewgill.com>
* lib/checkother.cpp, lib/checkother.h, lib/preprocessor.cpp,
test/testother.cpp: initial simplistic implementation of
switchCaseFallThrough
2011-03-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: really fix #2620
reference of typedef of array not simplified properly
2011-03-03 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit d7a6e729b84a72b3886dedb8fa7b50db3c68de3c Author: Daniel
Marjamäki <danielm77@spray.se> Date: Thu Mar 3 20:07:56 2011
+0100
2011-03-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: revert previous
commit: simplified code isn't correct
2011-03-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2620 reference
of typedef of array not simplified properly
2011-03-02 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp: convert some of the checks in
CheckAutoVariables to use the variable symbol table
2011-03-02 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testautovariables.cpp: add debug message for function argument
missing varid
2011-03-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2618
(Tokenizer::simplifyKnownVariables: Don't use known string value if
address is wanted)
2011-03-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2616 (Segmentation
fault with unknown macro)
2011-03-01 Daniel Marjamäki <danielm77@spray.se>
* gui/projectfiledialog.cpp, test/testpreprocessor.cpp: astyle
formatting
2011-03-01 Greg Hewgill <greg@hewgill.com>
* test/testpreprocessor.cpp: add TODO for #elif inside #if 0
processing, also for #if 1
2011-03-01 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: refactor #if 0
handling to leave preprocessor statements alone
2011-03-01 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: handle #if (0)
after removing parentheses
2011-03-01 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: handle embedded
whitespace in #if 0 processing
2011-03-01 Greg Hewgill <greg@hewgill.com>
* test/testpreprocessor.cpp: test case for #if 0 exclusion
2011-02-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix #2595 bitfield fix
for case x: break; and default: break;
2011-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2615 (Segmentation
fault in cppcheck 1.47)
2011-02-28 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 81318bb4a12aa7d3bc470b17a5c2c8136a3703b5 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Feb 28 17:41:52 2011 +0200
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp, gui/projectfiledialog.cpp: GUI: Show native
path separators. Show native path separators in project file-dialog. Convert paths to
internal separators when reading from project file and when reading
from the dialog. Convert to native separators when adding to the
dialog (for the user).
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* : commit b1db29278d8d540bc71ca3337cb3ddba5e00f364 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Feb 28 16:31:46 2011 +0200
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Add path separator for ignore
dirs.
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp: GUI: Small cleanup for projectfile code.
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Fix bug mixing include and ignore
dirs in GUI.
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp: GUI: Write ignore paths to project file.
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/project.cpp, gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Add GUI for ignored paths in project
files. Add similar GUI than include paths has. Currently there is only
possibly select directories directly from the GUI. But filename can
be added to the path by editing it.
2011-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/filelist.cpp, gui/filelist.h, gui/mainwindow.cpp,
gui/projectfile.cpp: GUI: Take filtering into use in GUI. Add applying of filtering into list of files to check if we have an
active project file. Filtering is quite much similar to the
filtering in CLI. If we have directory filter ("gui/") then we check all paths if they
contain "gui" part. In practice we search for string "/gui" from the
paths. If we have filename filtering ("gui/projectfile.cpp") then we
check if any of the paths end with that.
2011-02-27 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#432 (New check: wrong usage of ! operator in conditions)
2011-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: If project open failed project got
invalid. The project was deleted but not set as NULL when the project open
failed. Fix this by deleting the project only when the opening
succeeds.
2011-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp, gui/projectfile.h: GUI: Convert some
projectfile method arguments const.
2011-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp, gui/projectfile.h: GUI: Add ignored paths
support to project file. This patch adds support for ignored paths in the project file.
There is new <ignore> element which can contain one or more <path>
elements with name attribute containing the path to ignore.
2011-02-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix symbol database bug where delete can
be considered a variable declaration
2011-02-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp: add an array flag to symbol database
Variable class
2011-02-27 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix a symbol database bug where a return
statement could be considered a variable declaration
2011-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.cpp: Symbol database: Fixed debug warnings for
true/false. true/false doesn't have varId.
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix a bug in symbol database while scope
processing
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.h: fix potential null pointer dereference for
unnamed function arguments
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: convert CheckClass::noMemset to use new
variable lookup capability
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: add a varId to
Variable lookup table and fill it in with all variables
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: add local scopes to
the symbol database
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: add a list of
function arguments to symbol database Function class
2011-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2031 (Tokenizer:
simplify known value (string has known value after strcpy))
2011-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: astyle formatting
2011-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: fix
2011-02-26 Daniel Marjamäki <danielm77@spray.se>
* : merge from subversion client
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: extend symbol
database Variable with more information
2011-02-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h: expose number of variables found
by Tokenizer
2011-02-26 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_fr.ts, gui/cppcheck_ja.ts, gui/cppcheck_nl.ts,
gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts,
gui/cppcheck_sr.ts: GUI: Update translation files.
2011-02-26 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Use list to manage paths in project
file. Handling paths in line edit control is quite hard. List control is
much more pleasant to use for it. Convert Project file path handling
to similar list control usage than include paths earlier.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Edit project's include directories as
list. Editing include directories in edit control is not nice. Instead add
new tab and list control for the include directories. They are now
added, edited and removed like global include directories in
settings dialog.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp: GUI: Fix for initializing default
application.
2011-02-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: fix
symboldatabase global variable detection
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/settingsdialog.cpp: GUI: Select the default application in app
list.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h,
gui/settingsdialog.cpp: GUI: Rename methods. We don't need the 'type' postfix. We are handling applications, not
application types.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Fix opening error
item with default app.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/settingsdialog.cpp: GUI: Fix for removing application. The default application was not handled correctly when removing
application from the list. If the default application is removed
then we reset the default application to unknown. Otherwise we make
sure the default application is correct after the removal of other
application.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h, gui/common.h,
gui/settingsdialog.cpp: GUI: Show default application with [Default]
text. Instead of keeping the default application as a first item in the
application list point the default application by adding a
"[Default]" text after its name.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui, gui/settingsdialog.cpp, gui/settingsdialog.h:
GUI: Improve edit application setttings dialog. Make the editor application settings dialog to look similar than
include paths dialog. Move buttons right to the list, not below.
And remove unnecessary "application" word from button texts. Rename
Modify-button to Edit-button since we are not modifying the
application but editing its info. Similarly rename Delete- button to
Remove-button since we are not deleting the application but removing
from the list.
2011-02-25 Kimmo Varis <kimmov@gmail.com>
* gui/settingsdialog.cpp, gui/settingsdialog.h: GUI: Rename method. SettingsDialog::PopulateListwidget() was a bit confusing name as
there are more than one list widgets already in settings-dialog.
2011-02-24 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: code
cleanup and add more tests to CheckClass::noMemset()
2011-02-24 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui, gui/settingsdialog.cpp, gui/settingsdialog.h:
GUI: Add list control for include paths. Instead of hard-to-use single line edit control, use list control
for include paths. Have separate buttons for adding, editing and
removing paths. Paths are still stored as one string where paths are
separated with ";". Empty paths are ignored.
2011-02-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2610 (segmentation
fault of cppcheck ( if () < {} ))
2011-02-24 Chuck Larson <chuck.larson@gmail.com>
* lib/checkclass.cpp, test/testclass.cpp: memset: using memset on
struct/class that has std::string member variable. ticket: #1655
2011-02-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2609 (False
positive on template dependent name)
2011-02-24 Jnos Maros <jmaros@users.sourceforge.net>
* lib/checkpostfixoperator.cpp: Fixed #2608
([lib/checkpostfixoperator.cpp:87]: (error) Possible null-pointer
dereference: decltok)
2011-02-23 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2578
(Preprocessor does not correctly handle #define A 0 / #if A)
2011-02-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2604
(Segmentation fault of cppcheck ( sizeof <= A ))
2011-02-23 Greg Hewgill <greg@hewgill.com>
* gui/checkthread.cpp: fix CppCheck constructor to allow gui to
compile
2011-02-23 Greg Hewgill <greg@hewgill.com>
* : commit ec4e0c8bf5dba7803c0ebf8313827794d905a674 Author: Greg
Hewgill <greg@hewgill.com> Date: Wed Feb 23 20:59:30 2011 +1300
2011-02-16 Greg Hewgill <greg@hewgill.com>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: add --suppress=
command line option
2011-02-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2403
(simplifyTypedef: array of function pointers) Internal error message
2011-02-23 Sébastien Debrard <sebastien.debrard@gmail.com>
* lib/checkobsoletefunctions.h: update the message when bcopy
function is used
2011-02-22 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: CLI: Fix CLI help text to fit in 80-char
terminal.
2011-02-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Fix test array_index_24() to share
code with environments where plain char is either signed or
unsigned. This was done, because that particular test has been
already fixed a couple of times and it is still broken in some
systems.
2011-02-22 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2605
(cppcheck hangs with 100% cpu load ( #define = ))
2011-02-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit dd12fc177fb827d3d54648ec725c9403cb9edf1a Author: Robert
Reif <reif@earthlink.net> Date: Tue Feb 22 07:48:34 2011 -0500
2011-02-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2601
(segmentation fault of cppcheck)
2011-02-22 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: fix #2602
(segmentation fault of cppcheck ( class A {A& operator=(const A&);
}; ))
2011-02-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2600
(segmentation fault of cppcheck ( enum{const} ))
2011-02-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2599
(segmentation fault of cppcheck ( sizeof ))
2011-02-21 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: fix segfault: #2591
(cppcheck hangs with 100% cpu load ( class A : ))
2011-02-21 root <root@camille.localdomain>
* : commit 55711698d0b51b881d13c4537914e86f43ffba31 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Mon Feb 21 19:41:34 2011
+0100
2011-02-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #2595 (False positive
Technically the member function 'A::foo' can be const)
2011-02-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fix bitfields to support
non-numeric bitfield width
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2597 (False positive: Buffer access out-of-bounds for u_char,
uint*_t, ...)
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: astyle formatting
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2563 (#if
equality testing does not ignore parentheses)
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* test/testpreprocessor.cpp: Preprocessor: Added TODO test case for
#2563
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: cppcheckError: Rephrazed the error message. The
'internal error' sounds like something dangerous happens that needs
to be fixed. So I think 'analysis failed' is better. If the code has
a syntax error then 'analysis failed' is entirely ok.
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* test/testnullpointer.cpp: Null pointer: Added TODO test case.
Ticket: #2379
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: fixed so that 'p=&x; if(p)' is
simplified to 'p=&x;if(&x)'. Ticket: #2596
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false negative for such code: 'if (p && *p) {} else { *p=0;
}'. Ticket: #2379
2011-02-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: use func->start rather than searching for '{'
in CheckClass::privateFunctions
2011-02-20 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h: save start of
function '{' and start of variable declaration in symbol database so
checks don't have to find them
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: astyle formatting
2011-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyTemplates: Better handling for multi-token
template arguments such as 'Foo<std::string>'
2011-02-19 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: fix comment in CheckClass::initializeVarList
2011-02-19 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: fix #2592 (False positive:
'operator=' should return reference to self)
2011-02-20 Greg Hewgill <greg@hewgill.com>
* : commit 98ab34b2b5e92fe47cfc4d279fcc14186ef9e05a Author: Greg
Hewgill <greg@hewgill.com> Date: Sun Feb 20 11:36:03 2011 +1300
2011-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false negative for such code 'if (p && *p==0) {} *p = 0;'.
Ticket: #2379
2011-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false negative for such code: 'abc->a = 0; if (abc && ..'.
Ticket: #2379
2011-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointer:
fixed false negative when dereferencing struct and then checking if
it's null. Ticket: #2379
2011-02-19 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/symboldatabase.cpp,
test/testclass.cpp: fix [B#2589 (segmentation fault of cppcheck
(struct B : A))
2011-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testnullpointer.cpp,
test/testuninitvar.cpp: Fixed #2231 (uninitialized variable:
undetected when initialization in for loop)
2011-02-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: fix #2587 (Spurious
warning about struct hiding typedef)
2011-02-19 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: fix Scope::findInNestedListRecursive to
check all children
2011-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Fixed #2590 (segmentation fault of cppcheck (
{}int ))
2011-02-19 Greg Hewgill <greg@hewgill.com>
* lib/tokenize.cpp: remove stray BOM from source file
2011-02-18 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit f3b211378cec53a500d2e11f7ad8781f0a138d74 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Fri Feb 18 20:22:09 2011
+0100
2011-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Borland C++: Fixed compiler error
2011-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2582
(segmentation fault of cppcheck ( if() ))
2011-02-17 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated with dmake
2011-02-17 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: GCC: Disabled the -Wsign-conversion. It
is quite noisy.
2011-02-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2585 (segmentation
fault of cppcheck (CheckOther::clarifyCalculation))
2011-02-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2586 (segmentation
fault of cppcheck (template<>))
2011-02-17 Daniel Marjamäki <danielm77@spray.se>
* test/testsuppressions.cpp: astyle formatting
2011-02-17 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit e2581da30c2676e402240f51753d07531842514e Merge: 53aaf22
a4de6a3 Author: Greg Hewgill <greg@hewgill.com> Date: Thu Feb 17
21:46:43 2011 +1300
2011-02-17 Greg Hewgill <greg@hewgill.com>
* lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h,
test/testsuppressions.cpp: be sure to list unmatched suppressions
only for the currently processed file
2011-02-16 Daniel Marjamäki <danielm77@spray.se>
* test/testclass.cpp: CheckClass::noMemset: Added TODO test case
2011-02-16 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp, lib/errorlogger.h:
Fixed gcc compiler warnings (signedness)
2011-02-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2584 (false
positive 'variable n is never used')
2011-02-16 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit f6872a7008b56f0933eb6c3faff29992a5693d20 Merge: 5998ec4
de00ad6 Author: Greg Hewgill <greg@hewgill.com> Date: Thu Feb 17
07:13:16 2011 +1300
2011-02-16 Greg Hewgill <greg@hewgill.com>
* AUTHORS: add self to authors file
2011-02-16 Greg Hewgill <greg@hewgill.com>
* Makefile, cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
cli/threadexecutor.h, lib/cppcheck.cpp, lib/cppcheck.h,
lib/errorlogger.cpp, lib/errorlogger.h, lib/settings.cpp,
lib/settings.h, test/testcppcheck.cpp, test/testsuppressions.cpp:
implement unmatchedSuppression information message
2011-02-16 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp, lib/settings.h: factor out addSuppressionLine
from file reading function
2011-02-15 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp: use suppression wildcard glob instead of
special-case empty filename
2011-02-15 Raphael Geissert <atomo64@gmail.com>
* test/testbufferoverrun.cpp: Really fix the build failure this time
2011-02-14 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testunusedprivfunc.cpp: fix #2580
(false postive with Unused private function)
2011-02-14 Daniel Marjamäki <danielm77@spray.se>
* build-pcre.txt, build.txt: renamed build.txt to build-pcre.txt
2011-02-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyCalculations: basic handling of bitwise operators
2011-02-14 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, readme.txt: Renaming HAVE_DEPENDENCIES to HAVE_RULES
2011-02-14 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cmdlineparser.cpp, lib/cppcheck.cpp,
tools/dmake.cpp: Build: Renamed HAVE_DEPENDENCIES to HAVE_RULES
2011-02-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Really fix #2348
perl-tk
2011-02-13 Ettl Martin <ettl.martin@gmx.de>
* lib/preprocessor.cpp: fixed pre/post increment warings, found
during selfcheck
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Revert "Buffer overruns: Removed TODO
test case. We intentionally don't check struct/class arrays fully to
avoid false positives" This reverts commit 87cc42e6f0b0c8db37a314e5ef5be2c48cc3f4bd.
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Fixed TODO testcases (better
handling of comparisons)
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Fixed TODO testcase (better
handling of ^)
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Fixed TODO testcase (better
handling of |)
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Fixed TODO testcase (better
handling of %)
2011-02-13 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 87cf0949f2cd01c47194e058afe655fcff8e2ff3 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sun Feb 13 21:48:13 2011
+0100
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Buffer overruns: Removed TODO test
case. We intentionally don't check struct/class arrays fully to
avoid false positives
2011-02-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #2579
(segmentation fault of cppcheck)
2011-02-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Really fix: #2376 (simplifyTypedef: upx-ucl)
2011-02-13 Daniel Marjamäki <danielm77@spray.se>
* : commit 8c5ec0df7dac25011a26078dd88d9cffeed5ebae Merge: b3e19c2
a4fd5e8 Author: Daniel Marjamäki <danielm77@spray.se> Date: Sun
Feb 13 18:13:35 2011 +0100
2011-02-13 Greg Hewgill <greg@hewgill.com>
* test/testpreprocessor.cpp: change failing tests into
TODO_ASSERT_EQUALS
2011-02-12 Raphael Geissert <atomo64@gmail.com>
* cli/filelister_unix.cpp: Fix build when PATH_MAX is not defined POSIX says it _may_ be defined. Alternative implementation follows
POSIX.1-2008.
2011-02-13 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp: astyle formatting
2011-02-13 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp: use std::stack instead of std::list where
appropriate
2011-02-12 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: fix #2577
(segmentation fault of cppcheck)
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer: comments/refactorings
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer::simplifyTemplates:
Broke out the functionality that instantiates a template
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer::simplifyTemplates:
Broke out the functionality that handles default template arguments
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer::simplifyTemplates:
Broke out the functionality that extract a list of template
instantiations
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer::simplifyTemplates:
broke out the functionality that extract a list of template
declarations
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer::simplifyTemplates:
Broke out handling for 'template<>..'
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2576 (False positive: (error) Buffer access out-of-bounds)
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2549 (segmentation
fault of cppcheck)
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.h, test/testautovariables.cpp: Fixed #2558
(false positive: (error) Returning reference to auto variable)
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2502 (False
positive: redundant assingment of object to itself)
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* test/testuninitvar.cpp: Uninitialized variables: Added TODO test
case
2011-02-12 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 318f2e8a5733adb2e863dd229b8102bd6c4e2d06 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Feb 12 11:31:10 2011
+0100
2011-02-12 Raphael Geissert <atomo64@gmail.com>
* test/testbufferoverrun.cpp: Fix test for architectures where char
is unsigned
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h:
Tokenizer::simplifyKnownVariables: Split up the function into
smaller functions. Broke out ..GetData function that extracts info
about assigned variable before the simplification is made.
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: show how cppcheck is compiled with g++ with or
without dependencies
2011-02-12 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cli.pro, cli/cmdlineparser.cpp, lib/cppcheck.cpp,
tools/dmake.cpp: cppcheck: Added HAVE_DEPENDENCIES define. Cppcheck
cli can be compiled without dependencies.
2011-02-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: fix
#2568 (False positive: (style) Union 'A_t' hides typedef with same
name (forward declaration))
2011-02-11 Sébastien Debrard <sebastien.debrard@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: fix
#2569 check postfix increment on boolean
2011-02-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* runastyle: Add check to runastyle to enforce correct astyle
version usage.
2011-02-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h:
Tokenizer::simplifyKnownVariables: Broke out the simplification into
a separate function
2011-02-11 Erik Lax <erik@datahack.se>
* gui/mainwindow.cpp, gui/mainwindow.h: Fixed: #2572 (GUI: Disable
all UI actions on Recheck)
2011-02-11 Erik Lax <erik@datahack.se>
* gui/resultstree.cpp: Fixed: #2460 (GUI: Errors are sorted by line
number alphabetically instead of numerically)
2011-02-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
tools/dmake.cpp: astyle formatting
2011-02-11 Erik Lax <erik@datahack.se>
* test/testbufferoverrun.cpp: Preprocessor: Test handling of strings
with multiple spaces (Ticket: #2548)
2011-02-11 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2571
(Preprocessor: better handling for #undef)
2011-02-11 Greg Hewgill <greg@hewgill.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2570
(Preprocessor: #define parsing when there is no whitespace between a
macro symbol and its double-quoted string expansion)
2011-02-11 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: fix #2567 Unused
private function when implemented in different file
2011-02-11 Erik Lax <erik@datahack.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Fixed #2559 (Refactoring
Preprocessor::read)
2011-02-10 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 90bf801c8352a170bb5946e3eb6a39449b669120 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Thu Feb 10 22:10:45 2011
+0100
2011-02-10 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, test/test.vcproj: Visual Studio 2008: Updated
project files for cli and test
2011-02-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h:
CheckBufferOverrun: Refactoring. Broke out checkScope code for
parsing 'for' bodies
2011-02-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cli/cmdlineparser.cpp, lib/lib.pri,
test/testcppcheck.cpp, tools/dmake.cpp: Change "tinyxml/tinyxml.h"
includes into <tinyxml.h> and modify dmake to work with it. This
should allow usage of libtinyxml-dev or such libraries without
modifications to code or makefile.
2011-02-10 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 2900d44ff0b5037bb43b14876c7699075b1a122e Author: Robert
Reif <reif@earthlink.net> Date: Thu Feb 10 07:37:55 2011 -0500
2011-02-09 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer: refactor duplicated
token copy code info function
2011-02-09 Robert Reif <reif@earthlink.net>
* tools/dmake.cpp: fix dmake.cpp cppcheck message: Include file:
../cli/fileLister_win32.h not found.
2011-02-09 Kimmo Varis <kimmov@gmail.com>
* gui/test/main.cpp, gui/test/test.pro,
gui/test/testxmlreportv2.cpp, gui/test/testxmlreportv2.h,
gui/xmlreportv2.h: GUITEST: Add test reading XML format v2 file.
2011-02-09 Kimmo Varis <kimmov@gmail.com>
* gui/test/main.cpp, gui/test/test.pro, gui/test/testxmlreport.cpp,
gui/test/testxmlreportv1.cpp, gui/test/testxmlreportv1.h: GUITEST:
Add test for reading old format XML report.
2011-02-09 Kimmo Varis <kimmov@gmail.com>
* gui/test/testxmlreport.cpp, gui/test/testxmlreport.h,
gui/test/xmlfiles/xmlreport_v1.xml,
gui/test/xmlfiles/xmlreport_v2.xml: GUITEST: Add test for checking
XML report version.
2011-02-09 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 5175e4ff3f04a7a8bb75c020694e262d456cf077 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Feb 9 19:20:44 2011
+0100
2011-02-09 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: replace tok->strAt(0) with tok->str()
2011-02-09 Kimmo Varis <kimmov@gmail.com>
* gui/test/main.cpp, runastyle, runastyle.bat: Astyle: add option to
convert to linux EOLs.
2011-02-08 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2554
(simplifyTypedef: wrong simplification for sizeof(array))
2011-02-09 Kimmo Varis <kimmov@gmail.com>
* gui/test/main.cpp, gui/test/test.pro,
gui/test/testtranslationhandler.cpp,
gui/test/testtranslationhandler.h, gui/test/testxmlreport.cpp,
gui/test/testxmlreport.h: GUITEST: Add couple of tests for
XmlReport.
2011-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Change Makefile to allow another
external library to be used instead of bundled one. E.g. make
TINYXML="-ltinyxml" can be used to compile with libtinyxml-dev
instead of externals/tinyxml (but won't compile yet, because of
#include "tinyxml/tinyxml.h" in the code).
2011-02-08 Kimmo Varis <kimmov@gmail.com>
* gui/test/test.pro, gui/test/testtranslationhandler.cpp,
gui/translationhandler.h, runastyle, runastyle.bat: GUITEST: Add
first GUI test testing TranslationHandler.
2011-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* readme.txt: Fix readme.txt instructions for g++ compiling
2011-02-08 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 56ae77ba87cb528372daf385f865230b938d2ff0 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Feb 8 20:18:15 2011
+0100
2011-02-08 Erik Lax <erik@datahack.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2550 (Bad substr/strncmp comparison)
2011-02-08 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/translationhandler.cpp: GUI: Better
handling of unknown language loading. If there were unknown language in settings the fallback to English
language didn't work as expected. And there were no proper current
language set after that. Initialize current language to English so
we always have English as proper fallback.
2011-02-09 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp, man/cppcheck.1.xml, man/manual.docbook,
test/testsettings.cpp: support wildcard characters * and ? in
suppression list
2011-02-08 Greg Hewgill <greg@hewgill.com>
* lib/settings.cpp, lib/settings.h: factor out file matching into
own class
2011-02-08 Greg Hewgill <greg@hewgill.com>
* test/testsettings.cpp: failing test for suppression glob
2011-02-08 Greg Hewgill <greg@hewgill.com>
* test/testpreprocessor.cpp: preprocessor check for #define A 0
2011-02-07 Robert Reif <reif@earthlink.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp:
checkautovariables: refactor to use the symbol database
2011-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2552
(preprocessor check XX is already guaranteed to be defined -- too
eager?)
2011-02-07 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.cpp: GUI: Enable French translation. French translation file was added to the source tree but not added
to the code loading translations.
2011-02-07 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.h: GUI: Add comments for
translationhandler.h.
2011-02-07 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/settingsdialog.cpp,
gui/settingsdialog.h, gui/translationhandler.cpp,
gui/translationhandler.h: GUI: Store selected language as language
code. GUI was storing selected language as index to the languages list.
This is fragile since the order and count of items can change. This
commit changes to using ISO language code (e.g. "en" for "English"). Fixes ticket #2446 (GUI: Don't use index number for language
selection)
2011-02-06 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.cpp, gui/translationhandler.h: GUI:
Refactoring translation handling. Instead of separate language name and filename lists use one list of
structs. This makes language name and filename more connected and
makes handling of them easier.
2011-02-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Remove unneeded
translation code.
2011-02-06 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.cpp: GUI: Sort the languages list.
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: updated the instructions
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: set debug mode
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* Makefile: 1.47: Updated Makefile for release
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* Changelog: 1.47: Updated Changelog
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.47: Updated versions
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: updated for 1.47 release
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: tweaked the 'compiling cppcheck' section
2011-02-06 Zachary Blair <zack_blair@hotmail.com>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h: Ticket
#2388. Added more detail to the 'exceptRethrowCopy' error message.
2011-02-06 Zachary Blair <zack_blair@hotmail.com>
* : commit 2506c7db5cac7a04a143ca2f0d8fecbe0d9c22ba Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sun Feb 6 10:04:28 2011
+0100
2011-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Added a comment about sizeof for
struct/class. We always assume that the size is 100
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Add .obj files to gitignore.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_fr.ts, gui/cppcheck_ja.ts, gui/cppcheck_nl.ts,
gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts,
gui/cppcheck_sr.ts: GUI: Update translation files.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi: Installer: Update CLI build directory.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Add French translation to
installer.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Add French translation to project file.
2011-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp: Improve --help listing by removing
duplicate options list and using lt and gt characters for option
arguments.
2011-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page to contain more info about
--rule options.
2011-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2011-02-05 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: Cppcheck: Added short info about --rule and
--rule-file to --help output
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ja.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/cppcheck_sr.ts: GUI:
Update translation files.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/xmlreportv2.cpp, gui/xmlreportv2.h: GUI: Fix reading multiple
error locations from XML.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* : commit f279fcd351e5331551b34ab0f7c26730eb0af068 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Feb 5 16:07:59 2011 +0200
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/xmlreportv2.cpp, gui/xmlreportv2.h: GUI: Read XML format
version 2 files. Implement the parsing of XML format v2 error data.
2011-02-05 Daniel Marjamäki <danielm77@spray.se>
* scripts/tabs.pl, test/testclass.cpp, test/testmathlib.cpp,
test/testnullpointer.cpp, test/testuninitvar.cpp: scripts: added
tabs.pl - in my opinion it is bad to use tabs inside string
constants. spaces or \t should be used instead.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp, gui/xmlreport.h, gui/xmlreportv1.cpp,
gui/xmlreportv1.h, gui/xmlreportv2.cpp, gui/xmlreportv2.h: GUI: Read
ErrorItems instead of ErrorLines from XML report. XML report format 1 only had error "lines" that we promoted to
"items" when adding to GUI. XML report format 2 contains error
"items" so change the code to read items and do the promotion
directly when reading and parsing the data.
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp, gui/xmlreport.cpp, gui/xmlreport.h,
gui/xmlreportv2.cpp, gui/xmlreportv2.h: GUI: Determine the XML
report format before reading report.
2011-02-05 Zachary Blair <zack_blair@hotmail.com>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
test/testexceptionsafety.cpp: Fixed #2388 (Use throw without
argument to rethrow exceptions)
2011-02-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Replace __null
with 0 (gcc constant)
2011-02-05 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2547
(segmentation fault of cppcheck)
2011-02-05 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit c078d804b98d484e242e81683260aed5d2bd94d1 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Sat Feb 5 00:40:12
2011 +0200
2011-02-05 Kimmo Varis <kimmov@gmail.com>
* gui/xmlreport.cpp, gui/xmlreport.h, gui/xmlreportv1.cpp,
gui/xmlreportv2.cpp: GUI: Quote special chars in the XML output. Fixes ticket #2543 (GUI: Xml report does not quote special
characters)
2011-02-04 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/resultsview.cpp, gui/xmlreport.cpp,
gui/xmlreport.h, gui/xmlreportv1.cpp, gui/xmlreportv1.h,
gui/xmlreportv2.cpp, gui/xmlreportv2.h: GUI: Add base class for XML
report classes. A base class is needed for e.g. some common routines that can be
shared between the formats.
2011-02-04 Daniel Marjamäki <danielm77@spray.se>
* gui/cppcheck_se.ts: GUI: Updated the swedish translation
2011-02-03 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/mainwindow.cpp, gui/report.h,
gui/resultsview.cpp, gui/xmlreportv2.cpp, gui/xmlreportv2.h: GUI:
Write XML version 2. Ticket #2521 (GUI: Add XML format 2 support)
2011-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2498 (False
positive: redundant assignment)
2011-02-04 Stefan Weil <weil@mail.berlios.de>
* cli/cmdlineparser.cpp: Add missing \n in CLI help.
2011-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h: Fixed #2531 (False positive: Redudant assignment
to itself)
2011-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2503 (false
positive: memory leak (struct member, address is taken))
2011-02-04 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2539
(segmentation fault of cppcheck)
2011-02-04 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp: Fixed #2546 (make CheckMemoryLeakInClass
also check structures)
2011-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp, test/testerrorlogger.cpp: Fixed #2544 (XML
output does not specify encoding used)
2011-02-04 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp, lib/checkpostfixoperator.cpp,
lib/checkstl.cpp: Clarify few verbose messages. Dan pointed out to me earlier that he wants both short- and verbose
messages to be independently understandable. So modifying some
verbose messages to be easier to understand without the short
message.
2011-02-04 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 39c68e12cedec7424f64751398f1d6995e689ffe Author: Daniel
Marjamäki <danielm77@spray.se> Date: Thu Feb 3 22:29:32 2011
+0100
2011-02-03 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, test/testcppcheck.cpp: astyle formatting
2011-02-03 Tim Gerundt <tim@gerundt.de>
* : commit 53492209fc892557a82bd30d72ec555bc21b44cb Author: Tim
Gerundt <tim@gerundt.de> Date: Thu Feb 3 21:23:03 2011 +0100
2011-02-03 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Add 'View all commits' link to
devinfo page
2011-02-03 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Add last Trac timeline items to
devinfo page
2011-02-03 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Add RSS link to Trac Timeline
2011-02-03 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj, test/test.vcxproj, test/test.vcxproj.filters:
Update VS 2008/2010 project files for tests.
2011-02-03 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/pathmatch.cpp,
test/testcmdlineparser.cpp, test/testpathmatch.cpp: Allow to exclude
filenames (with paths). This expands the CLI exclude feature to also allow excluding
filenames (with paths). When filename with recognized extension is
given to -i option then matching filenames (with paths) are ignored
when checking. Ticket #2538 (Allow excluding files from the checking)
2011-02-03 Kimmo Varis <kimmov@gmail.com>
* cli/filelister.h, cli/filelister_unix.cpp: Make
FileLister::acceptFile() a static method. We don't need different acceptFile() implementations per platform so
it is better to have one static method.
2011-02-03 Kimmo Varis <kimmov@gmail.com>
* test/testerrorlogger.cpp: Add test for XML format version 2.
2011-02-03 Kimmo Varis <kimmov@gmail.com>
* cli/pathmatch.cpp, test/testpathmatch.cpp: Tighten the directory
name mathing with -i. Only match full directory names as parts of whole paths. So -isrc
matches src/file.cpp and proj/src/file.cpp. But does not match
mysrc/file.cpp or proj/srcfiles/file.cpp.
2011-02-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2536
(cppcheck hangs with 100% cpu load)
2011-02-03 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h, test/testclass.cpp:
Fixed #2537 (segmentation fault of cppcheck)
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* rules/error-reporting.xml, rules/stl.xml: Add a few more rules
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* rules/token-matching.xml: Add rules for tokAt(0) and strAt(0),
suggested by reif
2011-02-02 Kimmo Varis <kimmov@gmail.com>
* test/test.pro: Add testsymboldatabase.cpp to test.pro. Also add comment explaining omitting testfilelister_unix.cpp.
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* lib/tokenize.cpp: A few more Token::Match -> ::simpleMatch
replacements
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* rules/token-matching.xml: Yet another tweak to the regex, use
ungreedy mode
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkmemoryleak.cpp, lib/checknullpointer.cpp,
lib/checkother.cpp, lib/checkstl.cpp, lib/symboldatabase.cpp,
lib/tokenize.cpp: Use Token::simpleMatch where no special patterns
are needed
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* lib/cppcheck.cpp: Try to match custom rules as many times as
possible, not just once
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* lib/cppcheck.cpp: Remove uneeded indentation
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* lib/checkautovariables.cpp, lib/checkbufferoverrun.cpp,
lib/checkclass.cpp, lib/checkmemoryleak.cpp,
lib/checknullpointer.cpp, lib/checkother.cpp, lib/checkstl.cpp,
lib/executionpath.cpp, lib/preprocessor.cpp, lib/tokenize.cpp: Use
Token::simpleMatch where no patterns are used
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp,
lib/checkother.cpp, lib/checkstl.cpp, lib/symboldatabase.cpp,
lib/tokenize.cpp: Remove useless spacing at the end of *Match
strings
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* rules/token-matching.xml: Also detect useless spacing at the end
of *Match calls
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* cli/cmdlineparser.cpp: Support multiple rules in a single XML file
2011-02-02 Raphael Geissert <atomo64@gmail.com>
* rules/token-matching.xml: Introduce some rules for checking
cppcheck's use of Token::*Match
2011-02-02 Kimmo Varis <kimmov@gmail.com>
* : commit d592250284cdf3f1ded17814c29ea4bae06b3126 Author: Raphael
Geissert <atomo64@gmail.com> Date: Wed Feb 2 10:56:02 2011 -0600
2011-02-02 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
test/testerrorlogger.cpp: xml2: added <errors> element
2011-02-02 Daniel Marjamäki <danielm77@spray.se>
* : commit 1a83e3ef8124cffaa43d900dc4c71b79f7772def Author: Kimmo
Varis <kimmov@gmail.com> Date: Tue Feb 1 23:02:07 2011 +0200
2011-02-01 Kimmo Varis <kimmov@gmail.com>
* cli/pathmatch.cpp: Don't check empty paths for path ignore.
2011-02-01 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: Update VS2008/VS2010 project files.
2011-02-01 Kimmo Varis <kimmov@gmail.com>
* Makefile, test/testpathmatch.cpp, tools/dmake.cpp: Run dmake to
update Makefile.
2011-01-31 Kimmo Varis <kimmov@gmail.com>
* cli/cli.pro, cli/cmdlineparser.cpp, cli/cmdlineparser.h,
cli/cppcheckexecutor.cpp, cli/pathmatch.cpp, cli/pathmatch.h,
test/test.pro, test/testcmdlineparser.cpp, test/testpathmatch.cpp:
Add CLI support for ignoring paths. Add support for giving list of ignored paths from CLI. This way user
can define paths one doesn't want to check (like generated code).
This first simple implementation only does exact matching, no
support for wildcards etc. And matching is always agains dir names. If the filtered dir name is part of the checked filename then the
file is ignored. Ticket #1690 (Ability to exclude files and directories from checks)
2011-02-02 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Imrove
--xml-version option parsing. Allow --xml-version parsing to recognize also version 1 and print
errors about invalid values.
2011-02-02 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Add couple of tests for xml-version
cmd line option.
2011-02-02 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: Expose --xml-version=version cmd line
option. Make the --xml-version=version command line option public by adding
it to the command line help.
2011-02-02 Greg Hewgill <greg@hewgill.com>
* lib/check.h: use instances of less<Check *> to compare pointers
for list::sort()
2011-02-02 Greg Hewgill <greg@hewgill.com>
* lib/check.h, lib/checkautovariables.h, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h, lib/checkexceptionsafety.h,
lib/checkmemoryleak.h, lib/checknullpointer.h,
lib/checkobsoletefunctions.h, lib/checkother.h,
lib/checkpostfixoperator.h, lib/checkstl.h, lib/checkuninitvar.h,
lib/checkunusedfunctions.h: initialise Check::_name in constructor
rather than relying on virtual Check::name()
2011-02-02 Greg Hewgill <greg@hewgill.com>
* test/testcppcheck.cpp: test case to check whether instances are
sorted
2011-02-02 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #2530 (Tokenizer: Remove redundant 'MyClass::' inside MyClass
class declaration)
2011-02-02 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit defeded4b56eb272aa96db1475754a1895724dbe Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Feb 1 21:46:07 2011
+0100
2011-02-01 Tim Gerundt <tim@gerundt.de>
* .gitignore: Drop htdocs/ from gitignore
2011-02-01 Tim Gerundt <tim@gerundt.de>
* readme.txt: Switch website URL in readme.txt
2011-02-01 Tim Gerundt <tim@gerundt.de>
* : commit 015fa92b4a98590692c9fefbaf9a7b7df2b5ecd2 Merge: 606a90a
b7494d5 Author: Sébastien Debrard <sebastien.debrard@gmail.com>
Date: Tue Feb 1 19:30:00 2011 +0100
2011-02-01 Tim Gerundt <tim@gerundt.de>
* : commit c2de1a8a52d21a37ee49ecf21be16abc9b3c0f09 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Jan 31 22:49:52 2011 +0200
2011-02-01 Pete Johns <paj-github@johnsy.com>
* cli/filelister_win32.cpp: Astyle formatting.
2011-02-01 Pete Johns <paj-github@johnsy.com>
* test/testother.cpp: Turned failing ASSERT_EQUALS into
TODO_ASSERT_EQUALS.
2011-02-01 Pete Johns <paj-github@johnsy.com>
* : Merge https://github.com/ghewgill/cppcheck
2011-01-31 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 3e558fdada3b42c1af4deeafe4eea04d7e2c14ad Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Mon Jan 31
23:51:13 2011 +0100
2011-01-31 Robert Reif <reif@earthlink.net>
* cppcheck.cppcheck, gui/gui.cppcheck: Ticket #2522 (update project
files to fix missing include messages)
2011-02-01 Greg Hewgill <greg@hewgill.com>
* test/testother.cpp: check that misused scope object does not pick
nested class
2011-01-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2525
(False positive 'Possible null pointer dereference')
2011-01-31 Daniel Marjamäki <danielm77@spray.se>
* cli/filelister_win32.cpp, test/testbufferoverrun.cpp,
test/testpreprocessor.cpp: astyle formatting
2011-01-31 Ettl Martin <ettl.martin@gmx.de>
* : commit f3111b541ee117c09bafd62f8333718e5ddf5bd8 Author: Ettl
Martin <ettl.martin@gmx.de> Date: Mon Jan 31 13:46:51 2011 +0100
2011-01-31 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ja.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/cppcheck_sr.ts: GUI:
Update translation files.
2011-01-31 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui: GUI: Reword the option for checking all #ifdefs. The current wording was confusing (espcially related to CLI) since
it said the option will make Cppcheck to check all #ifdef configs.
But this really is case only when there is excessive amount of those
configs and without the option some would be ignored. So format the
option text in line of CLI switch and say it is forcing not enabling
checking of all configurations.
2011-01-31 Kimmo Varis <kimmov@gmail.com>
* gui/csvreport.cpp, gui/txtreport.cpp: GUI: Write error summary to
CSV and TXT reports. It makes more sense to write the one-line summary to TXT and
especially to CSV reports. Long multi-line verbose messages ruin the
layout these files.
2011-01-31 Kimmo Varis <kimmov@gmail.com>
* gui/xmlreport.cpp: GUI: Fill summary data when reading XML file. When reading XML file there is no summary data stored so we must
dublicate the message data to summary. Since message can be long try
to find full stop from the message and cut summary to it. Ticket: #2402 ([GUI] Summary is not shown for loaded .xml file)
2011-01-31 Kimmo Varis <kimmov@gmail.com>
* Makefile, tools/dmake.cpp: Cleanup makefile a bit. Align object file lists first line. Remove excessive use of tabs.
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp: Formatting, sorry
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp: Minor optimisations to the preprocessor
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp: Reduce std::string::find() abuse
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Handle "#endif
!defined" conditionals
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Check for cpp
conditionals where a define is already guaranteed
2011-01-30 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 098f0bf3e659436eedae2655d78eb1867576f728 Author: Pete
Johns <paj-github@johnsy.com> Date: Sun Jan 30 22:54:19 2011 +1100
2011-01-30 Pete Johns <paj-github@johnsy.com>
* cli/filelister_win32.cpp: astyle formatting.
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/checknullpointer.cpp: Detect null pointer dereferences for
many FILE-related functions Ticket #1415: check for calling f{eof,read,close,...} with NULL
2011-01-30 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Remove duplicated
defines After simplifying define(A) conditionals, the final list of
configurations could end up containing duplicate items. Ticket #1468
2011-01-30 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: less
conservative checking of classes. ticket: #2517
2011-01-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp:
Tokenizer: remove some unhandled macros in the global scope. ticket:
#2523
2011-01-29 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 0624e418f108835da1c2d243b451438a1497ba06 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Jan 29 18:46:55 2011
+0100
2011-01-29 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Several fixes to cmd line tests. There were several tests handling two parameters as one string. Eg.
"-I path" which doesn't work correctly. Fixed these problematic
tests.
2011-01-29 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Make
--exitcode-suppressions option consistent. The --exitcode-suppressions option was inconsistent with other long
options by taking the filename as separate argument. Now it expects
format --exitcode-suppressions=filename.txt like other long options. Ticket: #1837 (--suppresions file.txt inconsistent)
2011-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Better
simplifications of static constants
2011-01-28 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 081e3642980aa7809976fddb7ef1a45ea9bf49d4 Author: Kimmo
Varis <kimmov@gmail.com> Date: Fri Jan 28 13:18:07 2011 +0200
2011-01-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2505 (Check
processing of a preprocessor macro 'FREE')
2011-01-28 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp: Symbol database: better unit testing.
ticket: #2468
2011-01-28 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp: Add --errorlist to CLI help. Fixes ticket #2253 (Make CLI error listing documented and public
switch)
2011-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2518 (Crash when
checking rockbox's firmwire)
2011-01-27 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 524498e439b988e1c13a917b4ff59f5a6b797324 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Thu Jan 27 18:44:20 2011
+0100
2011-01-27 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Add cmd line parser tests for XML ver
2 options.
2011-01-27 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp: GUI: Update homepage URL to About-dialog.
2011-01-27 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
test/testcmdlineparser.cpp: Don't stop processing cmd line after
--errorlist. Ticket #2441 (Parsing of command line arguments breaks after
--errorlist) Instead of stopping processing command line options after
--errorlist process them all. This way e.g. --verbose can be given
also after the --errorlist.
2011-01-27 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h,
cli/cppcheckexecutor.cpp: Don't print "files not found" after
showing help. Fix ticket #2496 (Is error reporting for an unneeded parameter
wrong?) There are several command line options / commands after which we
don't want Cppcheck to even try to open any files. Eg. printing help
or listing errors. So add new attribute for CmdLineParser to track
use of these options and exit before checking files when the
attribute is set.
2011-01-27 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp: Fix formatting of debug messages to log view. Ticket #2513 (GUI: Garbage printed to log after missing include
warning) The linenumber was not properly converted to the QString so there
were garbage printed to the log.
2011-01-26 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Enable warnings about missing include
files.
2011-01-26 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 078c36921da4c650f0cb4f1edc7e6a56e7126d33 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Wed Jan 26
20:10:56 2011 +0100
2011-01-26 Sébastien Debrard <sebastien.debrard@gmail.com>
* lib/checkother.cpp, test/testother.cpp: fix #2510 Improve check
'sizeof for array given as function argument'
2011-01-26 Sébastien Debrard <sebastien.debrard@gmail.com>
* lib/checkother.cpp: typo: message
2011-01-25 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php, htdocs/site/css/all.css: Web: Add "Download
Now!" link
2011-01-25 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 4cf56dac2b421a2034fe37618fbf81a6f5e903b7 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Tue Jan 25
09:57:58 2011 +0100
2011-01-24 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit a596a7a8fe656314ae3686d81894cfd26419ba14 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Mon Jan 24 21:40:49 2011
+0100
2011-01-24 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit c7b8bd543f885bb90838ccd4f86c32cc315a7d03 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Mon Jan 24
19:04:56 2011 +0100
2011-01-24 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: cleanup old ifdefs in cmdlineparser
2011-01-23 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 5b5e8ca5182bb34c7b3d4933fd9e515b0e5e07f8 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Sun Jan 23
23:09:31 2011 +0100
2011-01-23 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: Symbol database: better handling of
functions returning function pointer. ticket: #2468
2011-01-23 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 86ba9dc908352839af581b1d4db1ef349efd5b2d Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Sun Jan 23
16:32:33 2011 +0100
2011-01-23 Daniel Marjamäki <danielm77@spray.se>
* test/testuninitvar.cpp: when using TODO_ASSERT_EQUALS it's a good
idea to pair it with a ASSERT_EQUALS
2011-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Upon createLinks error, report error
and bailout
2011-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2376
(simplifyTypedef: upx-ucl)
2011-01-23 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: Symbol database: fixed corruptions.
ticket: #2468
2011-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2493
(false positive: (error) Possible null pointer dereference: pExpr)
2011-01-23 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit b5cd37e822966c9bed7ff2fdedc8e0ce1ea0d268 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Sun Jan 23
03:37:38 2011 +0100
2011-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #1952 (false negative: buffer
acces out of bounds with memcpy)
2011-01-22 Debrard Sébastien <sebastien.debrard@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#155 (check size of a variable whose type is a sized array)
2011-01-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 0984d556352b0e45d1464e7e9da283c6482ea997 Author: Tim
Gerundt <tim@gerundt.de> Date: Sat Jan 22 18:05:42 2011 +0100
2011-01-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 8abae6f1e52283454ecebf009811bd77d1943f35 Author: Robert
Reif <reif@earthlink.net> Date: Sat Jan 22 17:43:36 2011 +0100
2011-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp: Class: better check if there are friends.
ticket: #2459
2011-01-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit 000e03c85dba722844c8f4275565584cad212a96 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Sat Jan 22
14:06:02 2011 +0100
2011-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2492 (False
positive: memory leak 'return &self->foo;')
2011-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #2459
(False positive with unused private function and friend)
2011-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #2484 (false positive because template is
not instantiated properly)
2011-01-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* lib/checkother.cpp, test/testother.cpp: ticket 155
2011-01-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit bc31f317bca078d3025b331b7b109ec160ba6b66 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Jan 22 09:27:16 2011
+0100
2011-01-22 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: Symbol database: Fixed memory leak.
ticket: #2468
2011-01-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Tokenizer: Only create 1 symbol database.
ticket: #2468
2011-01-22 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit a83aced2ec9c97b571b34f64c487343fc0fee96e Author: Ettl
Martin <ettl.martin@gmx.de> Date: Fri Jan 21 23:48:42 2011 +0100
2011-01-21 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: dmake and Makefile updates
2011-01-21 Sébastien Debrard <sebastien.debrard@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: ticket
155
2011-01-21 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2478 (Crash when
trying to analyze files (CheckClass::checkReturnPtrThis))
2011-01-21 Sébastien Debrard <sebastien.debrard@gmail.com>
* : commit bcfc751056e03574da70c84c8cc7a3fec46afd17 Author:
Sébastien Debrard <sebastien.debrard@gmail.com> Date: Fri Jan 21
19:50:59 2011 +0100
2011-01-21 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated with dmake
2011-01-21 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/symboldatabase.cpp, lib/symboldatabase.h, lib/tokenize.cpp:
Symbol database: rename variables. ticket: #2468
2011-01-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2488 (false positive
with updating iterator in a for loop)
2011-01-20 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: CLI: updated help text for --inline-suppr.
Thanks rubicon_hdr for the suggestion
2011-01-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2481 (false positive
with break: After insert, the iterator '*' may be invalid)
2011-01-20 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: Symbol database: refactoring of
classAndStructTypes parsing. ticket: #2468
2011-01-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2481 (false positive
with 'break;': After insert, the iterator '*' may be invalid)
2011-01-19 Daniel Marjamäki <danielm77@spray.se>
* test/testincompletestatement.cpp: added unit test for #2482
2011-01-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testincompletestatement.cpp: Fixed #2462
(false positive: (warning) Redundant code: Found a statement that
begins with numeric constant)
2011-01-19 Pete Johns <paj-github@johnsy.com>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #2480
(false positive on unused private function)
2011-01-19 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.h: Fixed #2483 (SymbolDatabase compiler warning
(VS2008/VS2010))
2011-01-18 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: Update Visual Studio project files. Update Visual Studio 2008/2010 project files after moving
filelister* files from lib/ to cli/.
2011-01-18 Kimmo Varis <kimmo@kimmoDesktop.(none)>
* Makefile, cli/cli.pro, cli/filelister.cpp, cli/filelister.h,
cli/filelister_unix.cpp, cli/filelister_unix.h,
cli/filelister_win32.cpp, cli/filelister_win32.h, lib/cppcheck.cpp,
lib/filelister.cpp, lib/filelister.h, lib/filelister_unix.cpp,
lib/filelister_unix.h, lib/filelister_win32.cpp,
lib/filelister_win32.h, lib/lib.pri, lib/tokenize.cpp,
test/test.pro, tools/Makefile, tools/dmake.cpp: Move filelister* to
cli. Ticket #2445 (Move FileLister classes from LIB to CLI).
2011-01-18 Kimmo Varis <kimmo@kimmoDesktop.(none)>
* lib/filelister.h, lib/filelister_unix.cpp, lib/filelister_unix.h,
lib/filelister_win32.cpp, lib/filelister_win32.h, lib/path.cpp,
lib/path.h, lib/tokenize.cpp: Move sameFileName() method to Path
class. Ticket #2445 (Move FileLister classes from LIB to CLI). Moving
sameFileName() to Path allows moving FileLister* classes to CLI.
2011-01-18 Pete Johns <paj-github@johnsy.com>
* test/testunusedprivfunc.cpp: Added testDoesNotIdentifyCallback for
#2480 TODO
2011-01-18 Pete Johns <paj-github@johnsy.com>
* : commit ea01c04108052921e29b81b84b6497c8670f2107 Author: Pete
Johns <paj-github@johnsy.com> Date: Tue Jan 18 21:07:33 2011 +1100
2011-01-18 Pete Johns <paj-github@johnsy.com>
* lib/symboldatabase.cpp: Refactored to remove code duplication.
2011-01-18 Pete Johns <paj-github@johnsy.com>
* lib/symboldatabase.cpp, test/testsymboldatabase.cpp: Made
isVariableDeclarationIdentifiesTemplatedPointerToPointerVariable()
pass. And added isVariableDeclarationIdentifiesTemplatedArrayVariable()
(passing) into the bargain.
2011-01-18 Pete Johns <paj-github@johnsy.com>
* test/testsymboldatabase.cpp: Added TODO test cases for template
variables with multiple levels of pointer indirection Following email from Robert Reif
2011-01-18 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testconstructors.cpp:
Fixed #2474 (false positive: Member variable 'A::m_SemVar' is not
initialised in the constructor.)
2011-01-18 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkmemoryleak.cpp,
lib/symboldatabase.cpp, lib/symboldatabase.h: Symbol database:
Refactor the variables API. ticket: #2468
2011-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2475 (False
positive in structure initialisation: The scope of the variable bits
can be reduced)
2011-01-17 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Improve
checking -D arguments for command line.
2011-01-17 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: Fix crash when
giving -D without argument. Fixes ticket #2476 (Crash when -D used without parameters.)
2011-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, lib/checknullpointer.h,
lib/checkuninitvar.cpp, test/testnullpointer.cpp: Fixed #2467 (false
positive: possible nullptr dereference)
2011-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2473 (False
positive: Memory leak when there is local struct)
2011-01-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/symboldatabase.cpp,
lib/symboldatabase.h, lib/tokenize.cpp, test/testsymboldatabase.cpp:
Symbol database: renamed classes. ticket: #2468
2011-01-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/symboldatabase.cpp,
lib/symboldatabase.h, lib/tokenize.cpp, test/testsymboldatabase.cpp:
Symbol database: pulled out classes into global scope. ticket: #2468
2011-01-16 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp: Fixed #2457
(CheckOther::checkIncorrectLogicOperator: hang if variable id is 0)
2011-01-17 Pete Johns <paj-github@johnsy.com>
* lib/preprocessor.cpp: Fixed gcc warning.
2011-01-02 Pete Johns <paj-github@johnsy.com>
* lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp: isVariableDeclaration() now detects
template variables.
2011-01-01 Pete Johns <paj-github@johnsy.com>
* lib/symboldatabase.cpp, lib/symboldatabase.h, test/testclass.cpp,
test/testsymboldatabase.cpp: Moved array declaration detection into
isVariableDeclaration()
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkother.cpp,
lib/symboldatabase.cpp, lib/symboldatabase.h: Refactoring: Check if
type is class/struct through symbol database
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testcppcheck.cpp: Fixed #2302 (Duplicate
id 'unusedVariable')
2011-01-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/tokenize.cpp,
lib/tokenize.h: Symbol database: increased constness. ticket: #2468
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
lib/cppcheck.cpp: cppcheck: output errorlist to stdout
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: check that
Cppcheck::getErrorMessages output is not empty
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: test
Cppcheck::getErrorMessages
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: cleanup
2011-01-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/symboldatabase.cpp,
lib/symboldatabase.h: Symbol database: Refactorings. Move
check-specific code to check. Ticket: #2468
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: removed 'parseArgsAndCheck'
and 'parseOutputtingArgs'. Such tests belong to testcmdlineparser
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: removed nonexistingpath and
include tests. The Cppcheck class doesn't handle this.
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: the xml and template output
is tested in testerrorlogger instead
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: the testcmdlineparser tests
invalid command line arguments
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: linenumbers are tested in the
other tests
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: command line parsing of -D is
tested in testcmdlineparser.cpp
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: testcppcheck: parsing templates is tested
in testcmdlineparser.cpp
2011-01-16 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php, htdocs/site/js/github.js: Web: Add
recent commits to devinfo page
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #2407
(False positive: unused private function)
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2449 (segfault in
tokenize.cpp, incorrect parsing)
2011-01-16 Raphael Geissert <atomo64@gmail.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: simplify
restrict
2011-01-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #980 (false
negative: division by zero when using enum)
2011-01-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/symboldatabase.cpp,
lib/symboldatabase.h, test/testclass.cpp: Symbol database:
Refactorings
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: astyle formatting
2011-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Memory leaks: Optimised and refactored
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: STL: Optimised checking
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: fixed unit test
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h: Optimising: about 5%
improvement with Visual Studio executable
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2463
(false positive: possible nullpointer dereference)
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2454
(Tokenizer::simplifyKnownVariables: problem with float/double
variables)
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: removed old comment
2011-01-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2466
(Tokenizer: simplification of enum)
2011-01-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2464 (False
positive: not initialised/not assigned Static variable in copy
constructors.)
2011-01-15 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h, test/testclass.cpp:
Fixed #2465 (False positive: not initialised variable, but there is
default constructor for it.)
2011-01-14 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php, htdocs/site/css/all.css,
htdocs/site/simplepie/LICENSE.txt,
htdocs/site/simplepie/README.txt,
htdocs/site/simplepie/cache/dummy.txt,
htdocs/site/simplepie/simplepie.inc: Web: Add News to homepage
2011-01-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2451 (False positive
when incrementing map value via iterator)
2011-01-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2452 (syntax
error when 'void f(typedef int x)' is used. causes segmentation
fault.)
2011-01-13 Kimmo Varis <kimmov@gmail.com>
* gui/settingsdialog.cpp: GUI: Fix compiler warning from GCC. Thanks for vBm for reporting this!
2011-01-13 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.h: Fix doxgen comment.
2011-01-13 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp: Add couple of
missing path separator conversions.
2011-01-13 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp, lib/cppcheck.h: Modify Cppcheck::addFile() only
take one file as a parameter. CLI and GUI already do the directory walking for us and we have list
of files to check. So we were duplicating this directory walking.
Practically doing check again for each file if it is a directory.
Which can take some time with large amount of files.
2011-01-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2450 (False positive
when iterator reused)
2011-01-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testincompletestatement.cpp: Fixed #2458
(false positive: (warning) Redundant code: Found a statement that
begins with numeric constant)
2011-01-12 Zachary Blair <zack_blair@hotmail.com>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2434 (FP
memleakOnRealloc)
2011-01-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #2440 (False negative: basic memory
leak)
2011-01-11 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/preprocessor.cpp, test/testcmdlineparser.cpp: Accept include
paths ending with backslash. Convert include path to use internal path separators when parsing
command line. Convert back to native separators when using paths. Ticket #2448 (Error in handling -I command line parameter)
2011-01-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2296 (Tokenizer:
simplifyKnownVariable doesn't simplify pointer properly 'delete []
p;')
2011-01-11 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Add Atom link to Recent Commits to
cppcheck:master
2011-01-10 Daniel Marjamäki <danielm77@spray.se>
* scripts/define.pl: scripts: Added define.pl that warns if #define
is used. Related with ticket #689
2011-01-10 Daniel Marjamäki <danielm77@spray.se>
* htdocs/build.bat: removed unused htdocs/build.bat
2011-01-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2443
(Possible null pointer dereference: xxx - otherwise it is redundant
to check if xxx is null at line)
2011-01-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2442 (False
positive: Memory leak when function returns in 'if' instead of 'else
if')
2011-01-10 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ja.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/cppcheck_sr.ts: GUI:
Update translation files.
2011-01-10 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h: GUI: Remove
Language-menu. We now have language selection in Settings-dialog.
2011-01-10 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/settings.ui, gui/settingsdialog.cpp,
gui/settingsdialog.h, gui/translationhandler.cpp: GUI: Add language
selection panel to settings-dialog. Settings-dialog is more natural place for language selection than
the main menu. We also have more space and freedom there to have
longer text etc to make the selection easier (menus are quite
limited controls).
2011-01-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h,
cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h, cli/main.cpp,
cli/threadexecutor.cpp, cli/threadexecutor.h, gui/aboutdialog.cpp,
gui/aboutdialog.h, gui/applicationdialog.cpp,
gui/applicationdialog.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/checkstatistics.cpp,
gui/checkstatistics.h, gui/checkthread.cpp, gui/checkthread.h,
gui/common.h, gui/csvreport.cpp, gui/csvreport.h,
gui/erroritem.cpp, gui/erroritem.h, gui/filelist.cpp,
gui/filelist.h, gui/fileviewdialog.cpp, gui/fileviewdialog.h,
gui/helpwindow.cpp, gui/helpwindow.h, gui/logview.cpp,
gui/logview.h, gui/main.cpp, gui/mainwindow.cpp, gui/mainwindow.h,
gui/project.cpp, gui/project.h, gui/projectfile.cpp,
gui/projectfile.h, gui/projectfiledialog.cpp,
gui/projectfiledialog.h, gui/report.cpp, gui/report.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/statsdialog.cpp, gui/statsdialog.h, gui/threadhandler.cpp,
gui/threadhandler.h, gui/threadresult.cpp, gui/threadresult.h,
gui/translationhandler.cpp, gui/translationhandler.h,
gui/txtreport.cpp, gui/txtreport.h, gui/xmlreport.cpp,
gui/xmlreport.h, lib/check.h, lib/checkautovariables.cpp,
lib/checkautovariables.h, lib/checkbufferoverrun.cpp,
lib/checkbufferoverrun.h, lib/checkclass.cpp, lib/checkclass.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/checknullpointer.cpp, lib/checknullpointer.h,
lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h,
lib/checkother.cpp, lib/checkother.h, lib/checkpostfixoperator.cpp,
lib/checkpostfixoperator.h, lib/checkstl.cpp, lib/checkstl.h,
lib/checkuninitvar.cpp, lib/checkuninitvar.h,
lib/checkunusedfunctions.cpp, lib/checkunusedfunctions.h,
lib/cppcheck.cpp, lib/cppcheck.h, lib/errorlogger.cpp,
lib/errorlogger.h, lib/executionpath.cpp, lib/executionpath.h,
lib/filelister.cpp, lib/filelister.h, lib/filelister_unix.cpp,
lib/filelister_unix.h, lib/filelister_win32.cpp,
lib/filelister_win32.h, lib/mathlib.cpp, lib/mathlib.h,
lib/path.cpp, lib/path.h, lib/preprocessor.cpp, lib/preprocessor.h,
lib/settings.cpp, lib/settings.h, lib/symboldatabase.cpp,
lib/symboldatabase.h, lib/timer.cpp, lib/timer.h, lib/token.cpp,
lib/token.h, lib/tokenize.cpp, lib/tokenize.h, man/cppcheck.1.xml,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testcmdlineparser.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdivision.cpp,
test/testerrorlogger.cpp, test/testexceptionsafety.cpp,
test/testfilelister_unix.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp,
test/testnullpointer.cpp, test/testobsoletefunctions.cpp,
test/testother.cpp, test/testpath.cpp,
test/testpostfixoperator.cpp, test/testpreprocessor.cpp,
test/testrunner.cpp, test/testsettings.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
test/testsuite.h, test/testsymboldatabase.cpp,
test/testthreadexecutor.cpp, test/testtoken.cpp,
test/testtokenize.cpp, test/testuninitvar.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, test/testutils.h, tools/dmake.cpp: Change
year 2010 -> 2011 in license texts.
2011-01-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #1219
(improve check: null pointer not detected 'if (p) return; *p = 0;')
2011-01-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2211 (false negative: buffer access out of bounds for(int i=0; i
!=6;i++))
2011-01-09 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: astyle formatting
2011-01-09 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Change title from devinfo page
2011-01-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2429 (Tokenizer:
Wrong simplification of 'sizeof .1250E+04')
2011-01-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp,
lib/filelister.h, lib/filelister_unix.cpp, lib/filelister_unix.h,
lib/filelister_win32.cpp, lib/filelister_win32.h: Fixed #2409 (print
a warning if provided path (commandline option -I [PATH]) does not
exist)
2011-01-08 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Add RSS link to project news
2011-01-08 Tim Gerundt <tim@gerundt.de>
* htdocs/site/css/all.css: Web: Tweak style sheets for printing
2011-01-08 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Add meta description to homepage
2011-01-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2437
(false positive: possible null pointer dereference: tok2)
2011-01-08 Tim Gerundt <tim@gerundt.de>
* htdocs/devinfo/index.php: Web: Add "Source Code" paragraph to
devinfo page
2011-01-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Error message:
Replace " with ' around variable name
2011-01-08 Daniel Marjamäki <danielm77@spray.se>
* man/buildman.sh: buildman: build writing-rules-3.pdf
2011-01-08 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules-3.docbook: Writing rules: minor tweak for the
C++ intro
2011-01-08 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules-3.docbook: Writing rules: Added one more example
for the C++ intro
2011-01-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Fixed #2433 (strtol: false positive when
strtol isn't used in function call)
2011-01-07 Daniel Marjamäki <danielm77@spray.se>
* gui/erroritem.h, lib/filelister_win32.cpp, lib/preprocessor.cpp:
astyle formatting
2011-01-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#2428 (false alarm with code containing a throw clause)
2011-01-07 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: fix bug when determining
location when there is a missing include. ticket: #2326
2011-01-07 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Fixed #2425 (segmentation fault of cppcheck)
2011-01-07 Tim Gerundt <tim@gerundt.de>
* : commit 9fbbb910901ba2df61b79799024efeae34a8d415 Author: Tim
Gerundt <tim@gerundt.de> Date: Fri Jan 7 16:04:01 2011 +0100
2011-01-07 Tim Gerundt <tim@gerundt.de>
* htdocs/.htaccess, htdocs/devinfo/index.php, htdocs/index.php: Web:
Move devinfo.html to a new place
2011-01-07 Tim Gerundt <tim@gerundt.de>
* htdocs/site/css/all.css: Web: Add separator to tab items
2011-01-07 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php, htdocs/site/css/all.css: Web: Move style sheets
to own file
2011-01-07 Ettl Martin <ettl.martin@gmx.de>
* lib/filelister_win32.cpp, test/testmathlib.cpp: #ticket 2429:
added a test to the mathlib to ensure the used floating point number
is recognized correctly
2011-01-07 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2426 (###
Internal error in Cppcheck. Please report it.)
2011-01-07 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: Fixed #2425 (segmentation fault of
cppcheck)
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* scripts/comment.pl: scripts: update 'comment.pl' so it understand
/*
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify NULL
to 0 in the normal token list
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h: Preprocessor: Reverted
fix for #2131, it didn't work well so a better fix is needed
2011-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.h: GUI: Add comment about storing paths.
2011-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Convert path to native separators before
copying it. Ticket #2424 (Windows GUI: "Copy full path" doesn't copy the visible
full path if it has been changed in preferences) We keep paths internally with / separator and only convert to native
separators (for Windows) when showing them. Conversion was missing
from path copying function.
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: memsetZeroBytes: improved
error message. ticket: #2421
2011-01-06 Tim Gerundt <tim@gerundt.de>
* : commit 70a29ccb8a5e5a40435b5c00c3755aaaa9ad21d2 Author: Tim
Gerundt <tim@gerundt.de> Date: Thu Jan 6 13:32:04 2011 +0100
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Null pointers: Added comments
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Buffer overrun: Added comments
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* scripts/comment.pl: scripts: reduced false positives given by
'comments.pl'. given when declaring operator=
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: CheckStl: Added comments
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: simple refactorings. and added a few
comments
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: astyle formatting
2011-01-06 Raphael Geissert <atomo64@gmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: [PATCH]
Check for calls to memset() where 0 bytes are to be filled Inspired
by Silvio Cesare's work
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* scripts/magic-numbers.pl: scripts: improved the 'magic-numbers.pl'
script
2011-01-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2413
(fflush() with NULL argument is valid.)
2011-01-06 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2415 (false
positive: Member variable not initialized in constructor calling
assignment operator)
2011-01-06 Robert Reif <reif@earthlink.net>
* test/testsimplifytokens.cpp: typedef: fixed problem. ticket: #2414
2011-01-05 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Enable information messages. Dan added new enable-flag for information messages in commit
033e759. Enable that flag for GUI so that the information messages
are visible in the GUI.
2011-01-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2411
(possible null pointer dereference (aborting via function pointer
not detected))
2011-01-05 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/checkclass.cpp, lib/checkother.cpp,
lib/settings.cpp, test/testclass.cpp, test/testother.cpp: command
line: added 'information' id to enable
2011-01-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2401 (false
positive: Uninitialized variable: result)
2011-01-05 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/teststl.cpp, test/testuninitvar.cpp:
Uninitialized variables. Fixed false positive when there are
multiple related conditions. ticket: #2399
2011-01-05 Tim Gerundt <tim@gerundt.de>
* : commit a0d62e041f426e2c4ce14c5e2880f96dcfb2d4f6 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Jan 5 19:38:22 2011
+0100
2011-01-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2412
(typedef: struct with inheritance)
2011-01-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: typedef: better handling. ticket: #2414
2011-01-05 Zachary Blair <zack_blair@hotmail.com>
* lib/checkobsoletefunctions.h: Removed an unnecessary newline in
the message. Ticket #2343
2011-01-04 Zachary Blair <zack_blair@hotmail.com>
* lib/checkobsoletefunctions.h: Fixed #2343 (The ftime obsolete
function warning seems wrong)
2011-01-05 Tim Gerundt <tim@gerundt.de>
* htdocs/index.php: Web: Add a first version of a website
2011-01-04 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Improve suspicious condition
(string::find) message. See forum thread:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2011-01-04 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Improve dangerous iterator
usage (after erase()) message. See forum thread:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2011-01-03 Kimmo Varis <kimmov@gmail.com>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Improve
strncat 3rd parameter usage warning message. See forum thread:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2011-01-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #2399
(Tokenizer::simplifyKnownVariables: variables in conditions)
2011-01-04 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2398 (false
positive: Uninitialized variable)
2011-01-04 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* scripts/comment.pl, scripts/magic-numbers.pl, scripts/readme.txt:
scripts: added a two simple perl scripts for checking code.
2011-01-04 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/checkbufferoverrun.cpp: Fixed #2393 (Token::Match called with
varid 0)
2011-01-04 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* : commit 85897c3991cacbceab2d121b989d6de9664f9f76 Merge: 45b6d09
2b1ec9a Author: Daniel Marjamäki <daniel@daniel-laptop.(none)>
Date: Tue Jan 4 18:17:39 2011 +0100
2011-01-04 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules-3.docbook: Writing rules: Added part 3.
Introduction to writing rules with C++.
2011-01-04 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
typedef: delete unhandled typedefs. ticket: #2348
2011-01-04 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: typedef: fix
testcase 4. ticket: #2375
2011-01-04 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed #2400 (Tests crashing in Windows)
2011-01-03 Raphael Geissert <atomo64@gmail.com>
* lib/checkmemoryleak.cpp: Mention the name of the variable in the
inconclusive leak msg
2011-01-03 Markus Elfring <elfring@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Fixed #2389 (mistakable warning from 'CheckClass::uninitVarError')
2011-01-03 Markus Elfring <elfring@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Bug #2390: Enclose the
output of a variable name with quotes in
"CheckOther::variableScopeError" The variable name output was enclosed by quotation marks in the
member function "CheckOther::variableScopeError" and corresponding
test functions. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-01-02 Raphael Geissert <atomo64@gmail.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Simplify "x =
realloc (0, n);" to "x = malloc(n);"
2011-01-02 Raphael Geissert <atomo64@gmail.com>
* lib/tokenize.cpp: Move simplification of realloc after
simplification of math ops
2011-01-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: typedef: Fixed
testcase. ticket: #2375
2011-01-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Buffer overruns: Added comments
2011-01-02 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2392
(Preprocessor: Wrong simplification of __VA_ARGS__)
2011-01-02 Daniel Marjamäki <danielm77@spray.se>
* test/testpreprocessor.cpp: Added TODO testcase for ticket #2392
(Preprocessor: Wrong simplification of __VA_ARGS__)
2011-01-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2391
(cstdlib file and memory function check misbehavior)
2011-01-02 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: typedef: added more tests. ticket:
#2375
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #2215 (Improve check: Writing
outside malloc bounds not detected)
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: typedef: don't simplify typedef after 'case'. it
means that there is a typedef and constant with the same names.
Ticket: #2386
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2246
(Improve check: Memory leak, function is not noreturn if return
value is taken)
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp: uninitialized variables: Added some
comments
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed TODO testcase. Use
symbol database instead of token list. Ticket: #2375
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Added comments in the memory leaks
checking
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Memory leaks: localized variables
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Added more comments
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.h: Tokenizer: Added doxygen comments
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.h: Tokenizer: added doxygen comments
2011-01-01 Daniel Marjamäki <danielm77@spray.se>
* Makefile, test/testcmdlineparser.cpp, test/testerrorlogger.cpp,
test/testfilelister_unix.cpp, test/testpreprocessor.cpp,
test/testtoken.cpp, tools/dmake.cpp: gcc: disabled -Wconversion
again - too many warnings
2010-12-31 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp: Fixed #2382 (Catching exceptions by value
instead of reference)
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, lib/tokenize.cpp,
test/testbufferoverrun.cpp: Fixed #2386 (segmentation fault occurs
in the checking when typedef has same name as an enum constant)
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, lib/checknullpointer.h: Null Pointer:
Refactoring - broke out CheckNullPointer::isPointer
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2378 (Refactoring: create utility function that skips redundant
if/for/while)
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2385 (False positive: array index out of bounds)
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: astyle formatting
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: added more comments
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Added comments for
CheckNullPointer::nullPointerLinkedList
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Remove redundant condition
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: gcc: fixed compiler warning (suggest
parantheses around assignment)
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Refactoring and commenting
CheckNullPointer::nullPointerAfterLoop
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.h: added doxygen comments
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h: added
some comments
2010-12-31 Pete Johns <paj-github@johnsy.com>
* lib/symboldatabase.cpp, lib/symboldatabase.h, test/testclass.cpp,
test/testsymboldatabase.cpp: Fixed #2384 ("The function 's::f' can
be const" reported for pointer-to-pointer) Moved check for pointer variables into isVariableDeclaration() Can now handle multiple scopes and multiple levels of indirection.
Simplified check for strucs and unions, too, reducing the size of
getVarList(). skipScopeIdentifiers() and skipPointers() should probably be methods
on class Token.
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* cli/threadexecutor.cpp: testrunner: fix runtime problems with
TestThreadExecutor
2010-12-31 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2382 (Catching exceptions by value instead of reference)
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* cppcheck.cbproj, cppcheck.sln, lib/cppcheck.cpp,
lib/symboldatabase.h, lib/tokenize.cpp: Borland C++: Fixed compiler
errors
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* cli/threadexecutor.cpp, lib/checkbufferoverrun.cpp,
lib/checkuninitvar.cpp, lib/tokenize.cpp: gcc: fixed -Wconversion
errors
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.h: gcc: Fixed -Wconversion warnings in symbol
database
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: gcc: fixed -Wconversion warnings in tokenizer
2010-12-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: gcc: fixed
-Wconversion warnings
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* Makefile, test/testmathlib.cpp, test/testsuite.cpp,
test/testsuite.h, tools/dmake.cpp: Added -Wconversion compiler flag.
The ASSERT_EQUALS_DOUBLE was added that can be used when comparing
double values.
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: improved TODO comments
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: CheckStl: Added comments
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.h, lib/tokenize.h: fixed doxygen warnings
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: gcc: fixed compiler warning
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: Added comments
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* cli/threadexecutor.cpp: usleep: use nanosleep instead of usleep as
the usleep is obsolete. Ticket: #2283
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: typeof doesn't dereference. Ticket: #2367
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: Better
handling of duplicate enums. Ticket: #2381
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules-2.docbook: writing rules #2: tweaks. published
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkpostfixoperator.cpp, test/testpostfixoperator.cpp: Fixed
#2321 (false positive: (performance) Prefer prefix ++/-- operators
for non-primitive types.)
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* man/cppcheck-design.docbook: Cppcheck design: more tweaks
2010-12-30 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules-1.docbook, man/writing-rules-2.docbook: writing
rules: more tweaks
2010-12-30 Pete Johns <paj-github@johnsy.com>
* Makefile, lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testsymboldatabase.cpp, test/testtoken.cpp, test/testutils.h:
Refactoring following #2377 (Technically the member function xxx can
be const) symboldatabase now recognises variables with arbitrarily many
scopes. Extracted method isVariableDeclaration() Added unit tests for isVariableDeclaration in new file
testsymboldatabase.cpp Extracted givenACodeSampleToTokenize helper class into testutils.h
to reduce duplication.
2010-12-30 Pete Johns <paj-github@johnsy.com>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2377
(Technically the member function xxx can be const) TODO: Add unit test for getVarList() and refactor variable check. [Removed my testcase for #2377 and removed two TODOs.]
2010-12-30 Ettl Martin <ettl.martin@gmx.de>
* test/testclass.cpp: const correctness: added further testcases for
increment/decrement member functions
2010-12-30 Ettl Martin <ettl.martin@gmx.de>
* test/testclass.cpp: ticket 2377: added further testcases
2010-12-30 Ettl Martin <ettl.martin@gmx.de>
* : commit c29824fc4936e100057d37393fcccdfd6bec8f5f Author: Ettl
Martin <ettl.martin@gmx.de> Date: Thu Dec 30 01:29:09 2010 +0100
2010-12-30 Pete Johns <paj-github@johnsy.com>
* build.txt: Added Mac OSX build instructins for PCRE.
2010-12-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2374 (False
'memory leak' report (assigning to map in subfunction))
2010-12-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: simplifyTypedef:
Better handling of 'typedef int RexxFunctionHandler();'. Ticket:
#2348
2010-12-29 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/tokenize.cpp, test/testclass.cpp:
simplifyTypedef: operator typedef. Ticket: #2375
2010-12-29 Daniel Marjamäki <danielm77@spray.se>
* man/cppcheck-design.docbook: Cppcheck Design: some more tweaks
2010-12-29 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp, lib/check.h,
lib/checkautovariables.h, lib/checkbufferoverrun.h,
lib/checkclass.h, lib/checkexceptionsafety.h,
lib/checkmemoryleak.h, lib/checknullpointer.h,
lib/checkobsoletefunctions.h, lib/checkother.h,
lib/checkpostfixoperator.h, lib/checkstl.h, lib/checkuninitvar.h,
lib/checkunusedfunctions.h, lib/cppcheck.cpp, lib/preprocessor.cpp,
lib/preprocessor.h, lib/tokenize.cpp, lib/tokenize.h,
test/testbufferoverrun.cpp: Fixed #2373 (Using XML2 in --errorlist
output)
2010-12-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Fixed #2372 (internal error in logicaloperator
check (varid=0))
2010-12-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: typedef: fixed
problem with 'typedef int pread_f(int);'. ticket: #2348
2010-12-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: typedef: fix
typedef simplification. ticket: #2348
2010-12-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2370 (false negative: Buffer access out-of-bounds (for with if, no
break))
2010-12-28 Daniel Marjamäki <danielm77@spray.se>
* man/buildman.sh, man/cppcheck-design-overview.docbook,
man/cppcheck-design.docbook: Cppcheck Design: updated article
2010-12-28 Daniel Marjamäki <danielm77@spray.se>
* man/cppcheck-design-overview.docbook: Cppcheck Design Overview:
Added article
2010-12-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2355
(simplifyTypedef: wrong simplification of 'typedef FMAC1 void
(*a)();')
2010-12-28 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules-1.docbook, man/writing-rules-2.docbook,
man/writing-rules.docbook: Writing Rules: Added a second article
about writing rules that discuss the data representation
2010-12-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2354
(simplifyTypedef: function pointers are not simplified into valid
code)
2010-12-28 Pete Johns <paj-github@johnsy.com>
* test/testsuite.cpp, test/testsuite.h: Fixed #2360 (testrunner
fails to build in Mac OS X Leopard (10.5) - assert macro vs assert
method) Renamed assert to assert_. Tested with gcc v4.0.1 on Snow Leopard.
2010-12-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2367 (false
positive: (error) Uninitialized variable: s)
2010-12-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2367 (false
positive: (error) Uninitialized variable: s)
2010-12-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testunusedvar.cpp:
Fixed #2368 (assigned a value that is never used)
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui, gui/settingsdialog.cpp: GUI: Show ideal thread
count next to current thread count. Ideal thread count is determined by Qt as number of available cores.
Ticket: #2194 (Automatically match thread count to available cores)
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Change 'Scope of
variable'-message to information message.
2010-12-27 Ettl Martin <ettl.martin@gmx.de>
* test/testunusedvar.cpp: Created to testcase (#2368) for assigned a
value that is never used false positive
2010-12-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Fixed #2365 (Internal error: Token::Match
called with varid 0)
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ja.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/cppcheck_sr.ts: GUI:
Update translation files.
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui: GUI: Use simple "Errors" instead of "Common errors". We have only one "error" category nowadays so we don't need to
separate different error categories anymore.
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui: GUI: Improve toolbar button tooltips.
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/stats.ui: GUI: Fix EOL style of stats.ui.
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/stats.ui, gui/statsdialog.cpp: GUI: Add 'portability' warnings
to statistics-dialog.
2010-12-27 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/gui.qrc, gui/main.ui, gui/mainwindow.cpp,
gui/mainwindow.h, gui/resultstree.cpp: GUI: Add GUI for showing
'portability' warnings. Add menuitem, icon and toolbar button for portability warnings.
Ticket #2359 (Gui: Show portability warnings).
2010-12-27 Daniel Marjamäki <danielm77@spray.se>
* test/testclass.cpp: TestClass: addon for 12f28507, fix a few more
error messages.
2010-12-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2361 (false
positive on t[0X10])
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui: GUI: Fix building with Qt < 4.7.0. I accidentally added the 'placeholderText' attribute to settings.ui
when editing it with Qt Creator. That attribute was added in Qt
4.7.0 and we are not using it for anything. So removing it to fix
building with older Qt versions.
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* lib/checkclass.cpp, test/testclass.cpp: Improve the message about
const function. See discussion thread:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Improve message for container
type range check. See thread:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192&start=0
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Improve error message
about overlapping buffers for s[n]printf(). See forum thread:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192&start=0
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Buffer overrun: UB when pointer
arithmetic result points out of bounds. Ticket #1774
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2304
(Tokenizer::simplifyKnownVariables: known strcpy parameter)
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2090
(False negative: null pointer dereference 's=0; strcpy(s,p);')
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/settings.ui: GUI: Improve Preferences-dialog layout. Make threads-textfield smaller as it can contain only three numbers.
Also set the input mask so that three numbers at max are accepted.
2010-12-26 Peter Pentchev <roam@ringlet.net>
* Makefile, tools/dmake.cpp: Makefile: honor the C preprocessor
flags in CPPFLAGS. Ticket: #2254
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: zero is not valid value for bool type.
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/common.h: GUI: Reorder settings-constants in common.h It is easier to manage those constants when there is even some basic
ordering and organization.
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/settings.ui,
gui/settingsdialog.cpp: GUI: Allow enabling inline suppressions from
the GUI. Ticket #2342 (inline suppressions not available from the GUI)
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Bailout if @
is encountered in the code
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/stats.ui, gui/statsdialog.cpp: GUI: Show information messages
count in stats dialog.
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp: GUI: Add "Information" errors items to menu and
toolbar.
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/gui.qrc, gui/main.ui, gui/resultstree.cpp: GUI: Change
Style-warnings icon. I want to use the current Style-warning icon for Information
messages. So change the Style-warning icon first to new icon.
2010-12-26 Kimmo Varis <kimmov@gmail.com>
* gui/checkstatistics.cpp, gui/checkstatistics.h, gui/common.h,
gui/mainwindow.cpp, gui/resultstree.cpp: GUI: Add
Information-severity support.
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testnullpointer.cpp: Fixed #2350
(false positive: possible null pointer dereference)
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* test/testfilelister_unix.cpp: astyle formatting
2010-12-26 Pete Johns <paj-github@johnsy.com>
* lib/filelister_unix.cpp: Fixed Linux build. OSX built without limits.h
2010-12-26 Pete Johns <paj-github@johnsy.com>
* Makefile, lib/filelister_unix.cpp, test/testfilelister_unix.cpp:
Fixed #2358 (Compilation fail on Mac) Added test case to prove it works. Not a true unit-test as it
accesses the file-system.
2010-12-26 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #2326 (Preprocessor: inline-suppr does
not work for id=missingInclude)
2010-12-26 Pete Johns <paj-github@johnsy.com>
* lib/filelister_unix.cpp: canonicalize_file_name() is a
GNU-extension. Replaced with call to realpath() to build on non-Linux systems, such
as Mac OSX.
2010-12-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2346 (False
positive: pointer is assigned value that is never used. used here:
'pCol = pCol->GetNext()')
2010-12-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2339
(Tokenizer::setVarId : Wrong handling of 'int gr = id -
(TLFPressProperties::OIL_FLUID * nb);')
2010-12-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #2353
(Tokenizer::simplifyKnownVariables: wrong simplification after
return)
2010-12-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Misused scope objects:
Don't use this check if the checked file is a pure C file. Ticket:
#2352
2010-12-24 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: Fixed #2349 (Empty 'msg' in output when using
'-j')
2010-12-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Fixed #2356
(False positive reported with iterator deletion)
2010-12-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyGoto: Don't simplify 'goto' inside unhandled
macro calls. Ticket: #2348
2010-12-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: Fixed
calculation simplification of '0*(*p)'. Ticket: #2348
2010-12-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2345 (False
positive: uninitialized variable (in sub-condition in if inside a
loop))
2010-12-22 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister_unix.cpp, lib/filelister_unix.h: Fixed #2344
(FileLister Unix: Don't convert to absolute paths)
2010-12-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/errorlogger.h, lib/preprocessor.cpp,
test/testclass.cpp: Information: Added new severity
2010-12-22 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: xml2: changed the format of the
cppcheck-version info
2010-12-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2341 (false
positive for function pointer returning typedef)
2010-12-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2337 (False
Positive: memory leak)
2010-12-22 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp, lib/errorlogger.h: xml2: Added
cppcheck-version
2010-12-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2338 (False
positive: Deallocating a deallocated pointer)
2010-12-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2336 (False
positive: memory leak (passing pointer to subfunction))
2010-12-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2330
(unreadVariable error for a fstream object when only extraction
operator (>>) is used)
2010-12-21 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testunusedvar.cpp: unused variables: fixed false negatives with
the help of the symbol database. ticket: #2317
2010-12-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2317 ((style)
Variable is allocated memory that is never used)
2010-12-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.h, test/testobsoletefunctions.cpp:
Fixed #2334 (Internal class index function (no need to 'strchr'))
2010-12-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: Fixed #2331 (Token::Match is called with
varid 0)
2010-12-19 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2286 (Variable
'ownKilled' is assigned a value that is never used)
2010-12-19 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/filelister_unix.cpp: Fixed #2322 (cppcheck follows recursive
symlinks)
2010-12-19 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2328 (false positive: buffer overrun (for loop with a break => the
end value is not reached))
2010-12-19 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj, test/test.vcproj,
test/test.vcxproj, test/test.vcxproj.filters: Visual Studio: updated
project files with qmake
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2325
(Tokenizer: Remove for-loop if condition is false)
2010-12-18 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp: CheckOther: Use SymbolDatabase. Ticket: #2318
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* Makefile: Update Makefile.
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* tools/dmake.cpp: Update dmake to use basepath in lib.pri.
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* test/test.pro: Update test.pro for using base path for included
pri files.
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* cli/cli.pro, gui/gui.pro, lib/lib.pri: Don't use relative paths in
lib.pri. Using relative path in included file binds it to be usable only
included from one directory. Instead use variable for giving the
base path for files.
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* cli/cli.pro, externals/tinyxml/tinyxml.pri: Don't use relative
paths in tinyxml.pri. Using relative path in included file binds it to be usable only
included from one directory. Instead use variable for giving the
base path for files.
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* externals/tinyxml/tinyxml.pri: Reformat tinyxml qmake file. Have one filename at one line.
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Report 'missing system
include' with debug severity. temporary solution until the handling
of system includes is better.
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* test/test.pro: QMake: added test/test.pro
2010-12-18 Kimmo Varis <kimmov@gmail.com>
* cli/cli.pro: Add _CRT_SECURE_NO_WARNINGS for Windows CLI build.
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: better
handling for switch/break in the simplifyKnownVariables. Ticket:
#2324
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2323 (false positive: Buffer access out of bounds)
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2320 (false
positive: Uninitialized variable: kbuf)
2010-12-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Remove
redundant parantheses in rhs. Ticket: #2320
2010-12-17 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, externals/tinyxml/tinyxml.pri,
lib/lib.pri: QMake: auto-generate the visual studio project files
with qmake
2010-12-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2313 (False
Positive: memory leak)
2010-12-17 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: checkmemoryleaks: added assertion for todo
assertion
2010-12-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2306 (False
positive: array of std::string is reported as uninitialized)
2010-12-17 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2299
(false positive: possible nullpointer dereference)
2010-12-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2307 (No
constructor defined false positive when class is enclosed in
namespace)
2010-12-16 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/mathlib.h: removed the NOLONGLONG handling. it seems unlikely
it is needed
2010-12-16 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2300
(false positive: possible nullpointer dereference)
2010-12-16 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2301 (false
positive: The given size 3 is mismatching)
2010-12-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2311 (False
positive: Index out of bounds)
2010-12-16 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: astyle formatting
2010-12-16 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* build.txt: build.txt: some updated instructions
2010-12-16 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/symboldatabase.cpp: Symbol database: reuse
in CheckOther. Ticket: #2318
2010-12-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2314 (False
positive: (style) Template instantiation 'Foo' hides typedef with
same name)
2010-12-15 Kimmo Varis <kimmov@gmail.com>
* : commit ac8eb30d681c38f3951af77f410f18077b76b80b Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Dec 15 22:39:46 2010 +0200
2010-12-15 Ettl Martin <ettl.martin@gmx.de>
* test/testpreprocessor.cpp: test:testpreprocessor.cpp; fixed broken
unit test due to wrong charcter encoding
2010-12-15 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
test/test.vcxproj, test/test.vcxproj.filters: Update VS2010 project
files for new TinyXml location.
2010-12-15 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Update VS2008 project files
for new TinyXml location.
2010-12-15 Daniel Marjamäki <danielm77@spray.se>
* : Merge commit 'vBm/master'
2010-12-15 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Fix typo 'IntallationPath'
to 'InstallationPath'.
2010-12-15 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Add Japanese and Serbian
translation files. I forgot to add Japanese and Serbian translation files to the
Windows installer when adding them.
2010-12-15 vBm <the.vbm@gmail.com>
* : commit 500c0a19c39ec8fdd434a0d6f97363f4db9b5275 Author: Zachary
Blair <zack_blair@hotmail.com> Date: Tue Dec 14 23:51:21 2010
-0800
2010-12-14 vBm <the.vbm@gmail.com>
* : commit 05ebf120c3fd254ea1c896e48017f3202d6ddcfb Author: Zachary
Blair <zack_blair@hotmail.com> Date: Tue Dec 14 00:16:26 2010
-0800
2010-12-13 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: Added comment to test 'cppcheck
--errorlist'. Ticket: #2292
2010-12-13 vBm <the.vbm@gmail.com>
* : commit 5ce63a1df0616e3d4e03841f45cb14caad361773 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Mon Dec 13 18:17:33 2010
+0100
2010-12-13 vBm <the.vbm@gmail.com>
* man/manual.docbook: Change case for some standardized words
2010-12-13 Ettl Martin <ettl.martin@gmx.de>
* tools/dmake.cpp: fixed mistake from previous commit. changes path
from test/tinyxml to external/tinyxml; Thanks to kimmov.
2010-12-13 Ettl Martin <ettl.martin@gmx.de>
* tools/dmake.cpp: dmake: added test/tinyxml path to make clean
2010-12-13 Kimmo Varis <kimmov@gmail.com>
* gui/checkstatistics.cpp, gui/checkstatistics.h, gui/common.h,
gui/resultstree.cpp: GUI: Add partial support for portability
severity. Add 'backend' support for the new 'portability' severity. The new
severity is handled, converted to new SHOW_PORTABILITY and added
with correct type to the result view. There is no menuitem/toolbar button to show/hide portability items.
Likewise there is no line for portability issues in stats- dialog. Ticket #2106 (More severities and new xml format)
2010-12-12 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* cli/cli.pro, lib/lib.pri, tools/dmake.cpp: dmake: add include path
'../externals' to lib.pri in case the pcre.h is placed there.
2010-12-12 Daniel Marjamäki <danielm77@spray.se>
* Makefile, build.txt, cli/cli.pro, cli/cmdlineparser.cpp,
externals/tinyxml/changes.txt, externals/tinyxml/tinystr.cpp,
externals/tinyxml/tinystr.h, externals/tinyxml/tinyxml.cpp,
externals/tinyxml/tinyxml.h, externals/tinyxml/tinyxml.pri,
externals/tinyxml/tinyxmlerror.cpp,
externals/tinyxml/tinyxmlparser.cpp, gui/gui.pro, lib/cppcheck.cpp,
lib/lib.pri, lib/settings.h, test/tinyxml/changes.txt,
test/tinyxml/tinystr.cpp, test/tinyxml/tinystr.h,
test/tinyxml/tinyxml.cpp, test/tinyxml/tinyxml.h,
test/tinyxml/tinyxmlerror.cpp, test/tinyxml/tinyxmlparser.cpp,
tools/dmake.cpp: Add support for user defined rules
2010-12-12 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* Makefile: Makefile: switch back to debug mode
2010-12-12 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* Makefile: 1.46: updated Makefile for release
2010-12-12 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* Changelog: 1.46: Updated Changelog
2010-12-12 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.46: updated version information
2010-12-11 Daniel Marjamäki <daniel@daniel-laptop.(none)>
* lib/errorlogger.h: XML2: Added severity 'portability' for future
use. Ticket: #2106
2010-12-11 Daniel Marjamäki <danielm77@spray.se>
* gui/help/buildhelp.bat: online-help: Remove old files before
generating new ones.
2010-12-11 Daniel Marjamäki <danielm77@spray.se>
* gui/help/ch01.html, gui/help/ch02.html, gui/help/ch02s02.html,
gui/help/ch02s03.html, gui/help/ch02s04.html,
gui/help/ch02s05.html, gui/help/ch02s06.html,
gui/help/ch02s07.html, gui/help/ch02s08.html, gui/help/ch03.html,
gui/help/ch04.html, gui/help/ch05.html, gui/help/ch06.html,
gui/help/ch07.html, gui/help/ch08.html, gui/help/ch09.html,
gui/help/ch10.html, gui/help/ch10s02.html, gui/help/ch10s03.html,
gui/help/ch10s04.html, gui/help/ch10s05.html, gui/help/index.html,
gui/help/manual.html, gui/help/online-help.qhp: GUI: updated help
file. Use latest manual.
2010-12-10 vBm <the.vbm@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ja.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/cppcheck_sr.ts,
gui/gui.pro, gui/translationhandler.cpp: GUI: Initial addition of
Serbian localization using clean English template.
2010-12-09 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: Manual: minor tweaks. remark that it is not
certain that fixing 'performance' messages will have a positive
effect on the speed. and in general it doesn't make the code more
readable.
2010-12-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.h: Obsolete functions: added better
verbose messages
2010-12-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: Cleanup
redundant statement '; x = x + 0;'. Ticket: #2283
2010-12-09 Daniel Marjamäki <danielm77@spray.se>
* cli/threadexecutor.cpp: ThreadExecutor: Fixed error message
'member variable _pipe not initialized'. Ticket: #2283
2010-12-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2284
(False positive: Possible null pointer reference)
2010-12-09 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp: Symbol database: use in
checkmemoryleaks.cpp. ticket: #2219
2010-12-09 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: memory leaks: fixed test that I broke in my
last commit
2010-12-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2285 (False
Positive: memory leak)
2010-12-08 Kimmo Varis <kimmov@gmail.com>
* gui/checkthread.cpp, gui/checkthread.h: GUI: Small cleanup - use
const reference.
2010-12-08 Kimmo Varis <kimmov@gmail.com>
* gui/threadhandler.cpp, gui/threadhandler.h: GUI: Small cleanup -
use const reference.
2010-12-08 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.cpp: GUI: Fix typo in Japanese translation
name. The typo was visible in the Language-menu.
2010-12-08 Kimmo Varis <ext-kimmo.1.varis@nokia.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ja.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI: Update language files.
2010-12-08 Kimmo Varis <ext-kimmo.1.varis@nokia.com>
* gui/cppcheck_ja.ts, gui/gui.pro, gui/translationhandler.cpp: GUI
Add Japanese translation. The translation was contributed by cjohnk7@sourceforge.net. Ticket
#2276.
2010-12-08 Kimmo Varis <ext-kimmo.1.varis@nokia.com>
* gui/stats.ui: Fix EOL style for stats.ui. I accidentally committed stats.ui with Windows EOL style.
2010-12-08 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/symboldatabase.cpp, lib/symboldatabase.h: Symbol database: use
symbol database in the memory leaks function checking. Ticket: #2219
2010-12-07 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, lib/symboldatabase.h, test/testclass.cpp:
Fixed #2282 (Improve check: Function can be const)
2010-12-07 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Update translation files.
2010-12-07 Kimmo Varis <kimmov@gmail.com>
* gui/stats.ui: GUI: Don't translate placeholder texts in stats
dialog.
2010-12-07 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/tokenize.cpp, lib/tokenize.h: Symbol database: creates a single
symbol database within Tokenizer on demand and changes all checks to
use it
2010-12-07 Robert Reif <reif@earthlink.net>
* test/testmemleak.cpp: Symbol database: adds new tests that verify
that namespaces work for the class check
2010-12-07 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Symbol database: fixed a TODO test where class
variables were qualified with the class name
2010-12-07 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp,
lib/symboldatabase.cpp, lib/tokenize.cpp: Symbol database: removed
unnecessary null pointer checks
2010-12-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Memory leaks: Removed the experimental
checking using ExecutionPath.
2010-12-06 Daniel Marjamäki <danielm77@spray.se>
* man/buildman.sh, man/writing-rules.docbook: Writing rules:
converting the docbook to pdf with buildman.sh
2010-12-06 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: More simplifications
2010-12-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2280
(Tokenizer::setVarId : variable id not set for inner iterator)
2010-12-05 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Update GUI executable name to .gitignore.
2010-12-05 Kimmo Varis <kimmov@gmail.com>
* Makefile: Update Makefile.
2010-12-05 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: minor tweaks
2010-12-05 Kimmo Varis <kimmov@gmail.com>
* : commit 3ab725fa047a1546339f22c96ee3442d1ec022c8 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Dec 5 22:23:36 2010 +0200
2010-12-05 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Symbol database:
better handling of inline functions. Ticket: #2219
2010-12-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2279 ((style)
struct of union member is never used)
2010-12-05 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: use 'cppcheck --rule=.+'
instead of 'cppcheck --debug' to see simplified code
2010-12-05 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: Minor updates. Trying to
make it easier.
2010-12-05 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: rewrote the chapter
about writing rule files
2010-12-04 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2275 (False
Positive: Member variable not initialized in the constructor)
2010-12-04 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: Target this guide for
beginners. Skip C++ and only describe how rules are created with
regular expressions.
2010-12-04 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/symboldatabase.cpp, test/testclass.cpp:
Fixed #2273 (False Positive: Member variable not initialized in the
constructor)
2010-12-04 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: Removed the C++
information. I'll focus on regular expressions to begin with.
2010-12-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Tokenizer: Added a few comments
2010-12-04 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, lib/settings.h: xml2: rename '--xmlver' to
'--xml-version'. bugfix in settings, change the type of _xml_version
from bool to int.
2010-12-04 Daniel Marjamäki <danielm77@spray.se>
* : commit c6c5fc6a1ce986e045ccbfcc4bfb05961f1e2ff5 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Dec 4 14:13:44 2010 +0200
2010-12-04 Daniel Marjamäki <danielm77@spray.se>
* man/writing-rules.docbook: Writing rules: Start writing document.
A beginners guide to writing rules.
2010-12-04 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Improve 'Use x.empty() instead
of x.size() for emptiness' warning. Improve the performance warning message as discussed at dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192#p926
2010-12-04 Kimmo Varis <kimmov@gmail.com>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Improving
'Wrong assignment of auto variable' error message. Improving the error message as discussed at dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192&start=0
2010-12-04 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/symboldatabase.cpp,
test/testmemleak.cpp: Memory leaks: Determine that some classes are
not auto-deallocated. Reduce false negatives. Ticket: #2219 and
#1618
2010-12-03 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: Manual: updated the manual
2010-12-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2264 (False
positive: variable assigned value that is never used)
2010-12-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2271 (Tokenizer:
simplify Qt signals and slots)
2010-12-03 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Symbol database: The
symbol database has a bug where it can find an out of line
constructor when looking for a destructor. Ticket: #2272
2010-12-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2263 (False
positive: variable assigned value that is never used)
2010-12-02 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h: Preprocessor: Don't
include system headers twice.
2010-12-02 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#2271 (Tokenizer: simplify Qt signals and slots)
2010-12-02 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp, lib/check.h,
lib/cppcheck.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
lib/preprocessor.cpp, lib/settings.cpp, lib/settings.h,
test/testcppcheck.cpp: xml2: replace --xml2 with --xmlver=2. Ticket:
#2106
2010-12-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testclass.cpp, test/testconstructors.cpp: Fixed #2172 (False
positive: struct is not initialized in constructor)
2010-12-01 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, cli/cppcheckexecutor.cpp, lib/check.h,
lib/cppcheck.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
lib/preprocessor.cpp, lib/settings.cpp, lib/settings.h,
test/testcppcheck.cpp: xml2: Added experimental --xml2 result
format. Ticket: #2106
2010-12-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp: checkuninitvar: fixed possible
null-pointer dereference. thanks orbitcowboy for spotting it.
2010-12-01 Robert Reif <reif@earthlink.net>
* lib/preprocessor.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testdivision.cpp,
test/testexceptionsafety.cpp, test/testincompletestatement.cpp,
test/testmemleak.cpp, test/testnullpointer.cpp,
test/testobsoletefunctions.cpp, test/testother.cpp,
test/testpostfixoperator.cpp, test/testpreprocessor.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testtoken.cpp,
test/testtokenize.cpp, test/testuninitvar.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp: Tokenizer: add assert(_settings) to
Tokenizer to insure the tokenizer always has settings. Ticket: #2219
2010-12-01 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp: GUI: Don't show summary/details for the
parent items.
2010-12-01 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp: Fix ticket #2269 ([GUI] Crash when rechecking
files while having hidden stuff) If there is no current item show empty details panel.
2010-12-01 Kimmo Varis <kimmov@gmail.com>
* lib/checkclass.cpp: Fixed #2268 ([GUI] Generic class name is shown
for 'Message' while correct one for 'Summary')
2010-11-30 Kimmo Varis <kimmov@gmail.com>
* gui/checkstatistics.cpp, gui/checkstatistics.h: GUI: Add files I
forgot to add when committing statistic patches.
2010-11-30 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp: GUI: Show also summary in the details pane. Show both short summary and verbose message in lower details panel
in the GUI: Add titles for short summary and message. Hopefully this
makes it easier to read the messages and copy/paste them too.
2010-11-30 Kimmo Varis <kimmov@gmail.com>
* gui/statsdialog.cpp, gui/statsdialog.h: GUI: Copy statistics also
to clipboard.
2010-11-30 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/mainwindow.cpp, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h,
gui/stats.ui, gui/statsdialog.cpp, gui/statsdialog.h: GUI: Collect
statistics about amount of different severities. Add new class for collecting statistics per each error severity. Add
a new tab to Statistics-dialog for these numbers.
2010-11-30 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2252
(segmentation fault with enable=all)
2010-11-30 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2252
(segmentation fault with enable=all)
2010-11-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2261 (False
positive: memory leak)
2010-11-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2262 (False
positive: Resource leak: fd)
2010-11-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2265 (False
positive: Uninitialized variable: path)
2010-11-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2251
(False positive: Possible null pointer reference)
2010-11-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2245
(False positive: Possible null pointer dereference)
2010-11-29 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated with dmake
2010-11-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2248 (memory
leak : pointer inserted in an object)
2010-11-29 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp: Remove extra space char from begin of verbose
message.
2010-11-29 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Improve redundant STL
container condition -message. Have separate summary and verbose messages. Se discusion at forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2010-11-29 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Improve "Assert statement
'varname' -message. Modifying the message so that we have short message and verbose
message. As discussed in dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2010-11-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2232
(segmentation fault of cppcheck)
2010-11-28 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp: Run astyle.
2010-11-28 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.ui: GUI:
Allow selecting multiple items in results tree. If multiple items are selected then other than "Hide" context menu
items are disabled.
2010-11-28 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Improve the 'suspicious
code sizeof sizeof' -message. As discussed at dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
2010-11-28 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Temporarily skip 'missing
include' warnings for system headers in release mode. When the
handling works better these messages should not be skipped. Ticket:
#1937
2010-11-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2236 (False
positive: Assignment to itself)
2010-11-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #2241 (Segfault checking a file)
2010-11-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkpostfixoperator.cpp: Remove extra space from error
message.
2010-11-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp: Small fix to error message. Start with capital letter and no space in beginning.
2010-11-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2218 (False
positive: Data is allocated but not initialized)
2010-11-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2235 (false
Resource leak)
2010-11-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkstl.cpp, test/teststl.cpp: Ticket #2237 (Too long "short"
message about iterator increment) Improve the message for suspicious iterator increment in loop.
2010-11-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Ticket #2239 (Too long
"short" message about function parameter passing) Have a proper short message for the parameter passing warning and
improve the message.
2010-11-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkpostfixoperator.cpp, test/testpostfixoperator.cpp: Ticket
#2238 (Improve postincrement warning message) Have a proper short message for post ++/-- operators. Pre ++/--
operators are usually more efficient for non-primitive types.
2010-11-27 Kimmo Varis <kimmov@gmail.com>
* lib/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Ticket #2240 (Improve no constructor-message). Improve the message about missing constructor but having class
attributes. Have proper short and long messages.
2010-11-26 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Update translation files.
2010-11-26 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui: GUI: Change text in Add Application-dialog
back to plain text. Revert change ca9f8a7036559415e22364e0d078c20647943a32 that
converted text in Add Application -dialog to rich text. The text is
plain text and doesn't use any formatting so plain text is good for
it.
2010-11-26 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Cleanup duplicate code.
2010-11-26 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/settings.ui,
gui/settingsdialog.cpp, gui/settingsdialog.h: GUI: Add Setting for
global include paths. This commit adds new setting and GUI for global include dirs. When
project file with include dirs is loaded, global includes dirs are
added first and after them the include dirs from project file.
2010-11-25 Robert Reif <reif@earthlink.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: Symbol database:
refactor CheckMemoryLeakInClass::checkPublicFunctions to use the
symbol database. Ticket: #2219
2010-11-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2234 (Variable is
assigned a value that is never used)
2010-11-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp: Symbol database: Avoid possible null
pointer dereference if _settings is null. Ticket: #2219
2010-11-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2230
(segmentation fault of cppcheck)
2010-11-25 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2228 (False
positive: Claims function can be const when it can not be
(shared_ptr))
2010-11-24 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Write Cppcheck version and install path to registry. As suggested by mcartoixa at forums. This helps 3rd party software
to find the Cppcheck in Windows environment. Note that this commit
writes to HKCU instead of suggested HKLM.
2010-11-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2226
(segmentation fault of cppcheck)
2010-11-24 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp, gui/resultsview.h: GUI: Fixing includes.
2010-11-24 Kimmo Varis <kimmov@gmail.com>
* : commit c6046b6663209770a00964e9a7bf405a5eda9fa5 Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Nov 24 17:09:02 2010 +0200
2010-11-24 Zachary Blair <zack_blair@hotmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h: Fixed
#1861 (GUI: Allow hiding error) Disabled menu item when not
applicable
2010-11-23 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h: GUI: Improve updating details view. After previous patches the details view was only updated when the
item was clicked with mouse. This patch improves the updating and
now it works also when changing selected item using keyboard.
2010-11-23 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/resultsview.cpp,
gui/resultsview.h: GUI: Remember main window splitter state. Save and restore the vertical splitter state (sizes of tree view and
details panel).
2010-11-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2225 (false
positive: variable is assigned a value that is never used
'*(stack[0])+=arg')
2010-11-23 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.ui: GUI: Rename the splitter widget.
2010-11-23 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/symboldatabase.cpp, lib/tokenize.cpp,
lib/tokenize.h, test/testmemleak.cpp, test/testtokenize.cpp: reuse
symbol database in checkmemoryleak.cpp. ticket: #2219
2010-11-23 Robert Reif <reif@earthlink.net>
* lib/symboldatabase.cpp, test/testclass.cpp: Fixed #2221
(segmentation fault of cppcheck)
2010-11-23 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp, gui/resultsview.h: GUI: Add missing include
lines.
2010-11-22 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Remove Message-column from the error
tree view. The full detailed message is shown in the own panel below error
tree.
2010-11-22 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp, gui/resultsview.h, gui/resultsview.ui: GUI:
Add own panel for detailed error messages. This commit adds new rich text panel for the detailed error
messages. When user clicks error item the detailed error text is
updated to the panel. This way we have much more freedom in
formatting the message and user can easily copy/paste (parts of) the
message.
2010-11-21 Zachary Blair <zack_blair@hotmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h: Fixed
#1861 (GUI: Allow hiding error)
2010-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer::simplifyKnownVariables: suppress
debug warnings about pointer aliases. Temporary solution that limits
the amount of debug warnings somewhat.
2010-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Reduce debug-warnings for
conditional increment
2010-11-21 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Buffer overflow: Added unit test that
makes sure that array index out of bounds is detected inside loop.
Ticket: #2199
2010-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: VS: Fixed
compiler warnings. Ticket: #2200
2010-11-21 Daniel Marjamäki <danielm77@spray.se>
* lib/mathlib.cpp: gcc: fixed compiler warnings
2010-11-21 Zachary Blair <zack_blair@hotmail.com>
* cli/cmdlineparser.cpp, lib/checkother.cpp, lib/checkother.h,
test/testother.cpp: Fixed #2162 (false positive: Mutual exclusion
over ||)
2010-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp: Increase number of cores allowed by the cli
to 10000 and add comment about the limit (it is there just to catch
typos)
2010-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2216 (wrong
warning when C++0x keyword delete is used)
2010-11-20 Ettl Martin <ettl.martin@gmx.de>
* lib/mathlib.h: mathlib: toString() parameter changed to const
reference
2010-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: VS: Fixed compiler warnings
2010-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: VS: fixed compiler warning. Ticket: #2200
2010-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, lib/mathlib.cpp, lib/mathlib.h,
lib/tokenize.cpp, test/testmathlib.cpp: Fixed #2200 (MathLib:
Calculation overflow)
2010-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2214
(Improve check: Memory leak not detected when pointer is
incremented)
2010-11-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Mutual
exclusion: Disable this check until #2162 is fixed.
2010-11-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/symboldatabase.cpp, lib/symboldatabase.h:
Symbol database: add global space and add all global functions and
variables to it. Ticket: #2198
2010-11-19 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Right-align line
number.
2010-11-19 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Add tooltips for
error items.
2010-11-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2210 (False positive: buffer overrun (snprintf, unknown type))
2010-11-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed simple undetected case for '= %var% |' and '| %var%
;'
2010-11-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp: Uninitialized variables: Cleanup '+='
handling. This is simplified in the Tokenizer now.
2010-11-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed simple undetected case for '= %var% -'
2010-11-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false negative. Ticket: #2207
2010-11-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/symboldatabase.cpp, lib/symboldatabase.h,
test/testconstructors.cpp: Fixed #2204 (False positive when using
const class members)
2010-11-15 Ettl Martin <ettl.martin@gmx.de>
* test/testmathlib.cpp: fixed: wrong testcase from my last commit im
testmathlib.cpp
2010-11-15 Ettl Martin <ettl.martin@gmx.de>
* test/testmathlib.cpp, test/testother.cpp: mathlib: added todo
testcases for ticket #2200
2010-11-15 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testnullpointer.cpp,
test/testuninitvar.cpp: Fixed #2207 (False positive: uninitialized
variable (return if uninitialized))
2010-11-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2206 (False
positive: variable is assigned a value that is never used (array
initializers))
2010-11-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2205 (False
positive: variable is assigned a value that is never used (assigning
to dereferenced casted pointers))
2010-11-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2202 (false
postive: Data is allocated but not initialized: rbdc)
2010-11-14 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testunusedvar.cpp:
Fixed #2058 (Warn for unused variable when only doing malloc/free)
2010-11-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2201 (false
positive: Uninitialized variable: __v0)
2010-11-14 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
test/test.vcxproj, test/test.vcxproj.filters: Update VS2010
solution/project files.
2010-11-14 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h: Fixed #2131
(Preprocessor: incorrect include file loading)
2010-11-14 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: CheckClass: Refactoring -
organize each check so the check function comes first, any helper
functions come second, and the message functions come last. Ticket:
#2198
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Simplify known variables for
struct members
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Tokenizer: added assertions to check that
no debug messages are given.
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Skip debug
warnings in Tokenizer::simplifyKnownVariables for loop variable
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Tokenizer: Added TODO test cases for
splitting up variable declarations
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: Auto variables: improved the check for
'return retval.c_str()'. Ticket: #2191
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Fixed false negatives when calling unknown function with
uninitialized variable by value: 'f(a+1)'
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: system headers: merged the systemheaders
branch into master. it works pretty well. Ticket: #1937
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, test/test.vcproj: Visual Studio 2008: Added
lib/symboldatabase files
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2196 (False
positive: Invalid data is allocated but not initialized
(initialization in loop))
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/symboldatabase.cpp, lib/symboldatabase.h: Symbol database:
Added files
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: uninitialized
variables: fixed problem when parsing loop bodies
2010-11-13 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated the Makefile. addon to my commit
yesterday where I added new leak checking
2010-11-13 Robert Reif <reif@earthlink.net>
* Makefile, lib/checkclass.cpp, lib/checkclass.h, lib/lib.pri: Fixed
#2198 (SymbolDatabase: separate SymbolDatabase from CheckClass)
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #2151 (false negative: memory leak when
calling subfunction that doesn't deallocate the memory)
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2193
(false negative: nullpointer dereference)
2010-11-12 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: This patch fixes a bug I introduced in the
previous patch. It also speeds up nested class parsing by skipping
the entire class implementation using { link to jump to } rather
than parsing for }. Ticket: #2172
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: Passing uninitialized array as parameter to function.
Ticket: #2188
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #914
(improve check: usage of uninitialized variable)
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2148
(uninitialized variable: false negative, function parameter that is
passed by value)
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2188 (Does
not detect initialization)
2010-11-12 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: Fixed #2195 (unit tests failing)
2010-11-11 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Add new "Summary" column to results. Summary column contains the short message core produces.
2010-11-11 Kimmo Varis <kimmov@gmail.com>
* gui/csvreport.cpp, gui/erroritem.cpp, gui/erroritem.h,
gui/resultstree.cpp, gui/threadresult.cpp, gui/txtreport.cpp,
gui/xmlreport.cpp: GUI: Add new short summary to error structures. Also rename 'msg' in structures to 'message' for consistency.
2010-11-11 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Add path separator in ProjectFiles
dialog. Add path separator to end of the paths user added via Browse-dialog.
2010-11-11 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Show native paths in ProjectFiles
-dialog. When adding paths to the dialog convert them to native separators.
When saving the paths convert them to internal separators.
2010-11-11 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Add buttons to add new paths to
ProjectFile dialog.
2010-11-11 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
gui/threadresult.cpp, lib/check.h, lib/checkother.cpp,
lib/cppcheck.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
lib/preprocessor.cpp, test/testcppcheck.cpp, test/testsuite.cpp:
Fixed #2167 (Drop linefeeds from error messages)
2010-11-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2192 (false
positive: resource leak)
2010-11-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: typedef: better
handling of __typeof__
2010-11-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: typedefs: handle
__typeof__
2010-11-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Fixed #2185 (False
negative: when constant is undefined a 'dangerous usage of strncpy'
is not found)
2010-11-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2182
(Context sensitive false positive)
2010-11-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2184 (False
Positive: memory leak)
2010-11-10 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: code
cleanups
2010-11-09 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister_win32.cpp: FileLister: fixed compiler errors in
win32. accept all files given by user.
2010-11-09 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister.cpp, lib/filelister_unix.cpp: Fixed #2181 (How can
I select the extension of the files to check?)
2010-11-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp, lib/filelister.h,
lib/filelister_unix.cpp, lib/filelister_unix.h,
lib/filelister_win32.cpp, lib/filelister_win32.h, tools/dmake.cpp:
FileLister: minor cleanup
2010-11-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testconstructors.cpp: Symbol database:
add support for class inline functions with classes
2010-11-09 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#2179 (Segmentation fault in assignment operator)
2010-11-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2178 (segmentation
fault of cppcheck)
2010-11-08 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister_win32.cpp: Fixed #2169 (Inline suppression does not
work unless filename is given)
2010-11-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Only show 'failed to instantiate
template' debug messages if the --debug-warnings has been given
2010-11-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Visual Studio: Fixed compiler warnings about
assignment in condition
2010-11-08 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Symbol database: delay finding class variables
until after all classes have been found.
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testbufferoverrun.cpp:
Tokenizer::simplifyKnownVariables: Fixed TODO test cases in
TestBufferOverrun
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Revert "Tokenizer: More specific bailout in
simplifyKnownVariables for loop variable" This reverts commit 7e9bb62dffd0b13303c66560e92d5d818576d3c1.
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: More specific bailout in
simplifyKnownVariables for loop variable
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testautovariables.cpp,
test/testtokenize.cpp: Tokenizer: More specific bail outs in
simplifyKnownVariables
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: better bailout
in simplifyKnownVariables when there is loop
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2170 (false positive: After a strncpy() the buffer should be
zero-terminated)
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: better
handling of const variables
2010-11-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Bailout
simplifyKnownVariables for loop variables
2010-11-06 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: fixed
problem
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Refactoring the simplifyKnownVariable
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: improved
simplifyKnownVariables
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Refactoring. Merged two patterns into
one pattern.
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Added debug warning that is shown
when bailing out in simplifyKnownVariables
2010-11-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2176
(Tokenizer::simplifyTypedef function pointer bug)
2010-11-06 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Symbol database: improved handling of out of
line functions returning function pointers
2010-11-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2175
(Tokenizer::simplifyTypedef : wrong simplification of 'typedef float
vec_t[3];')
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifyKnownVariables : Fixed TODO test case when
simplifying pointer alias in function call
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyKnownVariables: Fixed TODO test case.
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Refactoring: Added ASSERT_EQUALS above
TODO_ASSERT_EQUALS to catch changes in the behaviour better
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: Added TODO unit test for ticket
#2175. simplify 'typedef float x[3];'
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2136 (false negative: array bounds)
2010-11-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: removed
redundant assignments such as 'x+=0;'. Ticket: #2173
2010-11-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2174
(Tokenizer::simplifyFunctionReturn bug)
2010-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testbufferoverrun.cpp,
test/testsimplifytokens.cpp: Tokenizer: simplify calculations with
zero better
2010-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer:
simplifyknownvariables, improved handling of string constant
2010-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: better handling of for example 'a[1] = 1+a[2];'
2010-11-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkuninitvar.cpp, test/testuninitvar.cpp: Uninitialized
variables: detect usage of dead pointer: '*p += 10'
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false negatives in the CheckAndDeRef checking
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2171
(false positive: possible nullpointer dereference)
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: GCC: Fixed compiler warnings about
sign-conversion
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testuninitvar.cpp:
Fixed #2161 (false positive: assigned a value that is never used)
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Fixed 'a[b-1]+=1'
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify
'a[b-1]+=1' better
2010-11-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2166
(false positive: possible null pointer dereference)
2010-11-04 Robert Reif <reif@earthlink.net>
* lib/checkpostfixoperator.cpp, test/testpostfixoperator.cpp: Fixed
#2168 (Segmentation fault of cppcheck)
2010-11-04 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #2137 (Invalid
mutual exclusion report)
2010-11-04 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
database: Fixed bug. Ticket: #2149
2010-11-03 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: Bug fix
2010-11-03 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Tokenizer: Added TODO test case for better
handling of function calls
2010-11-03 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2160 (#2160
(Invalid unused variable report (style)))
2010-11-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: empty
string test: Removed this check
2010-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Unused variables:
better handling of '= %var% ++'. Ticket: #2160
2010-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testuninitvar.cpp:
Tokenizer: simplify 'x[0] += 1;'
2010-11-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
Database: Better handling of namespaces. Ticket: #2149
2010-11-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify 'x.y
+= 1;'
2010-11-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify 'case
0: x += y;'
2010-11-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Fixed #2159
(False positive: Null pointer dereference 'if (!x) return *y;')
2010-11-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2158 (False
positive: value is not unused when using +=)
2010-10-31 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
test/test.vcxproj, test/test.vcxproj.filters: Update VS2010 project
files.
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, test/testnullpointer.cpp: Null pointers:
Fixed false positive for 'x && x->y'
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: CheckNullPointer: Reuse
CheckNullPointer::isPointerDeRef in
CheckNullPointer::nullPointerByDeRefAndChec
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: CheckNullPointer: Reuse the
CheckNullPointer::isPointerDeRef function
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp: CheckNullPointer: Reduced false
negatives by making pattern more generic
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checknullpointer.cpp, lib/checknullpointer.h:
CheckNullPointer: Refactoring. Created the function
CheckNullPointer::isPointerDeRef that can be used to detect if a
pointer is dereferenced
2010-10-31 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp, gui/applicationdialog.cpp,
gui/applicationlist.cpp, gui/checkthread.cpp, gui/csvreport.cpp,
gui/filelist.cpp, gui/projectfiledialog.cpp, gui/report.cpp,
gui/resultstree.cpp, gui/settingsdialog.cpp, gui/statsdialog.cpp,
gui/threadhandler.cpp, gui/threadresult.cpp, gui/xmlreport.cpp: Add
missing include lines.
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, test/test.vcproj: Visual Studio 2008: added
nullpointer and uninitvar files
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Visual Studio: Fixed compiler error
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checkother.cpp, lib/checkother.h,
lib/checkuninitvar.cpp, lib/checkuninitvar.h, lib/lib.pri,
test/testother.cpp, test/testuninitvar.cpp: Uninitialized variables:
Broke out the checking into separate file
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checknullpointer.cpp, lib/checknullpointer.h,
lib/checkother.cpp, lib/checkother.h, lib/lib.pri,
test/testnullpointer.cpp, test/testother.cpp: Null pointers: Broke
out the checking into separate file
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h: CheckOther: updated CheckOther::getErrorMessages
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: Added a few comments
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: Fixed
false negative that I introduced when simplifying compound
assignments
2010-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testtokenize.cpp, test/testunusedvar.cpp: Fixed #2147
(uninitialized variable: false negative for 'x += y;')
2010-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: GCC: Fixed compiler warnings
2010-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2120 (False positive: array index out of bounds (unknown type in
struct, sub function))
2010-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2154 (false positive:
The loop might unintentionally skip an element in the container)
2010-10-29 Kimmo Varis <kimmo@kimmo-VirtualBox.(none)>
* Makefile: Update Makefile.
2010-10-29 Kimmo Varis <kimmov@gmail.com>
* test/test.vcxproj, test/test.vcxproj.filters: Update VS2010
project files.
2010-10-29 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj, test/testfilelister.cpp, test/testpath.cpp:
Update tests after moving simplifyPath method to Path class.
2010-10-29 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp, lib/errorlogger.cpp, lib/filelister.cpp,
lib/filelister.h, lib/filelister_unix.h, lib/path.cpp, lib/path.h,
lib/preprocessor.cpp, lib/tokenize.cpp: Move simplifyPath method
from FileLister to Path class. simplifyPath() "fits" better to Path class conceptually. It handles
paths, not lists them. Also this way we get rid of few unneeded
dependencies to FileLister class.
2010-10-28 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui: GUI: Improve External editor add/edit dialog
layout. Get rid of the form layout stretching the Browse-button so wide. Use
form-like but more flexible layout. Change the term 'Application to
execute' to 'Command to execute'. This reduces duplication and makes
clear difference between application name and the command to execute
to start the application. Fix also tab ordering so that the
application name field gets the focus initially.
2010-10-28 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h: GUI: Use Notepad
in Windows as default editor if Notepad++ not found.
2010-10-28 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp: GUI: Failed to start default Notepad++. Notepad++ found and set as editor by default failed to start. There
were no quotation marks around path containing space chars.
2010-10-28 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp: GUI: It is Notepad++ with capital first
letter.
2010-10-28 Kimmo Varis <kimmov@gmail.com>
* gui/application.ui, gui/settingsdialog.cpp: GUI: Fix modality of
Application dialog when editing application.
2010-10-28 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Fix saving new error categories names.
2010-10-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkobsoletefunctions.cpp,
lib/checkother.cpp, lib/tokenize.cpp, lib/tokenize.h: Tokenizer:
Added function for checking if code is Java/C#
2010-10-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Java: Removed bailout
added in 120073f0001
2010-10-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2130 (Invalid possible NULL pointer dereference, etc.)
2010-10-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2141 (false
positive: possible null pointer dereference)
2010-10-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2142 (false
positive: null pointer dereference (throw))
2010-10-27 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1195 (Uninitialized
member variable not detected 'std::vector<int> *ints;')
2010-10-27 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2135 (False
positive 'Can be const')
2010-10-27 Pete Johns <paj-github@johnsy.com>
* test/testtokenize.cpp: Fixed test case so that it would compile.
2010-10-27 Pete Johns <paj-github@johnsy.com>
* lib/tokenize.cpp, lib/tokenize.h: Removed unnecessary code
duplication.
2010-10-26 Cary R <cygcary@yahoo.com>
* lib/settings.cpp: Fixed #2138 (Add support for comments in
suppression file)
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: Remove redundant semi colons
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: #2133
(cppcheck: floating point exception)
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2118 (Invalid
syntax error report.)
2010-10-26 Kimmo Varis <kimmov@gmail.com>
* readme_64-bit_Windows.txt: Update GUI build instructions for
64-bit Windows.
2010-10-26 Kimmo Varis <kimmov@gmail.com>
* readme_64-bit_Windows.txt: Improve 64-bit VS compiling
instructions for GUI. No extra tricks needed for compiling 64-bit GUI. Though it seems to
work only in command prompt but not in IDE.
2010-10-25 Kimmo Varis <kimmov@gmail.com>
* readme_64-bit_Windows.txt: Improve 64-bit VS compiling
instructions. Format the instructions being specifically for VS Express editions.
2010-10-25 Kimmo Varis <kimmov@gmail.com>
* readme_64-bit_Windows.txt: Couple of fixes to VS2010 and 64-bit
compile doc.
2010-10-25 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cppcheck.sln, test/test.vcproj: Add 64-bit
targets for VS2008 project/solution files. Since VS2008 Express does not support x64 platform we must create
new configurations named Debug-x64 and Release-x64.
2010-10-24 Kimmo Varis <kimmov@gmail.com>
* readme_64-bit_Windows.txt: Add readme file for building Cppcheck
for 64-bit Windows.
2010-10-24 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cppcheck_vs2010.sln, test/test.vcxproj: Add
x64 build targets for VS 2010. This commit adds new x64-Debug and x64-Release -targets for VS 2010.
To use those targets you need Windows SDK with x64 compiler.
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2134 (sizeof(*list)
complains of null pointer dereference)
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Fixed #2132 (Internal error.
Token::Match called with varid 0.)
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2129
(Invalid dereference after release report)
2010-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2130 (Invalid
possible NULL pointer dereference, etc.)
2010-10-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: null
pointer: use simplified token list in the 'check and deref' checking
2010-10-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
fixed fp when analysing loops
2010-10-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#2127 (null pointer dereference after condition (SRD nr 522))
2010-10-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: using deallocated
pointer: detect first problem reported in ticket #2090
2010-10-24 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, lib/token.cpp, lib/token.h,
test/testother.cpp, test/testtoken.cpp: Fixed #2105 (Incorrect
operator: mutual exclusion over ||)
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Execution Path: Fixed
FP in improved handling of loop bodies
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Null pointers: Better
handling of loops
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: uninitialized variables: handling loop bodies.
end upon '}'
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp, test/testsuite.cpp:
uninitialized variables: refactoring handling of loop bodies
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testother.cpp: Fixed #2125 (uninitialized variable: better
handling of for loops)
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2111 (Class methods
writing to a union are detected as 'can be const')
2010-10-24 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
test/test.vcxproj, test/test.vcxproj.filters: Add missing files to
VS2010 project/solution files.
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Visual Studio: Fixed compiler warning. Ticket:
#2123
2010-10-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Buffer
overruns: Fixed TODO test case
2010-10-23 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: fixed 'deprecated conversion' compiler
warning
2010-10-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2121 (False positive: Buffer access out-of-bounds when using
uint32_t)
2010-10-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Java: fixed false
positives about uninitialized variable
2010-10-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2120 (False positive: array index out of bounds (unknown type in
struct, sub function))
2010-10-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Fixed
#1819 (False positive: auto variable assignment (unseen typedef))
2010-10-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2117 (false positive: buffer access out of bounds)
2010-10-22 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: astyle formatting
2010-10-22 Lauri Nurmi <lanurmi@users.sourceforge.net>
* Makefile, cli/cppcheckexecutor.cpp, test/test.vcproj,
test/testcppcheck.cpp, tools/dmake.cpp: Fixed #2099 (Show an error
if none of the given paths was found)
2010-10-22 Daniel Marjamäki <danielm77@spray.se>
* : Merge commit 'tigbuh/master'
2010-10-21 ms <msfgym-gh@yahoo.com>
* Cppcheck.xcodeproj/project.pbxproj: Adapted Xcode project for
version 1.45 and Xcode 3.2.4
2010-10-21 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: memleak: activated todo test case. ticket:
#1401
2010-10-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkpostfixoperator.cpp: Fixed #2116 (Internal error.
Token::Match called with varid 0)
2010-10-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2112 (Crash
scanning qtcreator sources)
2010-10-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkobsoletefunctions.cpp,
lib/tokenize.cpp, test/testtokenize.cpp: JAVA: better handling of
java code
2010-10-20 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister.cpp: Objective C: activate checking of .m and .mm
files. The normal checking is used.
2010-10-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testmemleak.cpp, test/testtokenize.cpp:
Fixed #2103 (false positive when variable is checked to NULL and not
freed)
2010-10-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2113 (False
positive: Memory leak where a pointer is passed in a struct to
another function to be freed)
2010-10-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2110
(Tokenizer::simplifyTypedef: regression - wrong simplification of
'typedef char TString[256];')
2010-10-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.h, lib/checkother.cpp, lib/filelister.cpp,
lib/tokenize.cpp, test/testtokenize.cpp: Activated checking of .java
and .cs files
2010-10-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Stl: improved check for
dangerous usage of c_str
2010-10-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2109 (false positive: buffer overrun)
2010-10-18 Kimmo Varis <kimmov@gmail.com>
* : Merge remote branch 'remotes/origin/master'
2010-10-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Update codeblocks project file
2010-10-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2108 (False positive:
the loop might unintentionally skip an element in the container.)
2010-10-18 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui: GUI: Shorten menutexts for error/style items. Items located in 'View' menu don't need 'Show' word as View-menu
name already implies it is about viewing items.
2010-10-18 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp: GUI: Add support for warning and performance
-error types.
2010-10-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL: check for
dangerous usage of string::c_str(). Ticket: #1116
2010-10-17 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: added info about
warning/style/performance. Ticket: #2106
2010-10-17 Ettl Martin <ettl.martin@gmx.de>
* : commit 92a1e9e76e903b570ba1b0d04128b425a48789d1 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sun Oct 17 14:41:00 2010
+0200
2010-10-17 Ettl Martin <ettl.martin@gmx.de>
* lib/checkclass.cpp: fixed style waring (You should use ++ and --
as prefix whenever possible as these are more efficient than postfix
operators) in lib/checkclass.cpp
2010-10-17 Kimmo Varis <kimmov@gmail.com>
* Makefile, lib/lib.pri: Run dmake to update Makefile and
lib/lib.pri.
2010-10-17 Kimmo Varis <kimmov@gmail.com>
* lib/filelister_win32.cpp: Add comment that qmake doesn't add
_UNICODE define for project files.
2010-10-17 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
test/test.vcxproj, test/test.vcxproj.filters: Add missing files to
VS2010 project files.
2010-10-16 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: Add missing files to VS projects. Part of fixing ticket #2101.
2010-10-16 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, lib/filelister_win32.cpp: unicode: updates to
the handling of unicode filenames. Ticket: #2100
2010-10-16 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, lib/filelister_win32.cpp: unicode: use short
filenames when long filename doesn't work. Temporary solution for
#2100
2010-10-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.h: some more comments
2010-10-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: added comments in CheckStl
2010-10-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2101 (list in vector
iterator usage)
2010-10-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2097 (false positive: buffer access out of bounds)
2010-10-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkpostfixoperator.cpp, test/testpostfixoperator.cpp: astyle
formatting
2010-10-14 Debrard Sebastien <sdebrard@crmcompanygroup.com>
* : commit fb928b67781e57348f62104b49d94099c825cc9c Merge: d062980
6c582f9 Author: Debrard Sebastien <sdebrard@crmcompanygroup.com>
Date: Thu Oct 14 19:08:31 2010 +0200
2010-10-14 Debrard Sebastien <sdebrard@crmcompanygroup.com>
* : commit 6c582f9362ca13da701aa3b6b1ed6808ec78db01 Merge: e199e31
b6c995e Author: Kimmo Varis <kimmov@gmail.com> Date: Wed Oct 13
22:16:17 2010 +0300
2010-10-13 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: WiX Installer: Remove old gui.exe.
2010-10-13 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt: Update WiX installer documentation.
2010-10-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2096 (False positive: buffer overrun (extern array))
2010-10-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2082
(Tokenizer::simplifyTypedef: wrong handling of array)
2010-10-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2093 (False positive: buffer access out of bounds (unknown type))
2010-10-13 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp: Fixed MSVC++ compiler warning (pointers are
not bools)
2010-10-13 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp: Removed redundant code. localClassDefinition is no longer required due to improved
isIdentifierObjectType() in commit fbd3d92.
2010-10-13 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #2084 (False
positive: object destroyed immediately (struct and function with
same name)) Tightened up class definition matching so as not to match C-style
struct tags.
2010-10-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#2089 (False negative: Function can be const (calling const
function))
2010-10-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2087 (False
positive: Array 'str[1]' index 1 out of bounds)
2010-10-12 Debrard Sebastien <sdebrard@crmcompanygroup.com>
* lib/checkpostfixoperator.cpp: warning de compilation
2010-10-12 Debrard Sebastien <sdebrard@crmcompanygroup.com>
* lib/checkpostfixoperator.cpp: comment
2010-10-12 Debrard Sebastien <sdebrard@crmcompanygroup.com>
* Makefile, lib/checkother.cpp, lib/checkother.h,
lib/checkpostfixoperator.cpp, lib/checkpostfixoperator.h,
test/testother.cpp, test/testpostfixoperator.cpp: increment check
2010-10-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#2088 ([test.c:12]: (error) Buffer access out-of-bounds: l)
2010-10-12 Pete Johns <paj-github@johnsy.com>
* .gitignore, Makefile, tools/dmake.cpp: Added tags file for faster
code navigation. [Helpful for newbies like me]
2010-10-12 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2085 (False
negative: function can be const when member variable is compared)
2010-10-12 Pete Johns <paj-github@johnsy.com>
* man/cppcheck.1.xml: Licensing: Using the GPL 3 license
2010-10-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Array
index: detect array index out of bounds when datatype is unknown.
Ticket: #2086
2010-10-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: assignment in assert:
modified the error message to better explain the reason why the
warning is given.
2010-10-11 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Fixed #2081 (false negative: the function can
be declared as const)
2010-10-10 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, lib/tokenize.cpp,
test/testother.cpp: Fixed #2079 (detect side effects in assert)
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/teststl.cpp, test/testtokenize.cpp:
Tokenize: Fixed bug in Tokenize::simplifyKnownVariables
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: STL: Added TODO test case for the new
double-increment check
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: fixed false positives in
the new double-increment check when iterator shadows outer iterator
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: fix unit testing
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Parameter passed by value: updated error
message so it mentions the reason.
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: fixed false positives for
the new double-increment check
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL: Added
double-increment check.
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1705 (false negative: access past end of buffer)
2010-10-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2078 (false
negative: member variable not intialized)
2010-10-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1778 (false
negative: nullpointer dereference (std::string pointer))
2010-10-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: Fixed TODO test case
TestStl::erase5
2010-10-08 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: Unit testing: Added TODO test case
TestStl::erase5
2010-10-08 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: Unit testing: activated TODO test
2010-10-08 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/classinfo.h, lib/tokenize.cpp, lib/tokenize.h,
test/testtokenize.cpp: ClassInfo: Removed unused functionality
2010-10-08 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: CLI: added newline when printing version
info
2010-10-08 Robert Reif <reif@earthlink.net>
* test/testsimplifytokens.cpp: Unit Testing: Added more typedef
tests
2010-10-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed #2074 ('Internal error in Cppcheck' on
complex function typedef (even 2 typedefs!))
2010-10-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, lib/executionpath.cpp,
lib/executionpath.h, test/testother.cpp, test/teststl.cpp: STL:
refactoring CheckStl::erase so ExecutionPath is used
2010-10-05 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: 1.45: updated the manual
2010-10-04 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Fix invalid ID error in MSI installer.
2010-10-04 Pete Johns <paj-github@johnsy.com>
* lib/checkother.h: Fixed 2072 (object destroyed immediately: add
--doc info)
2010-10-04 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, test/testother.cpp: Fixed 2071 (false
positive: object destroyed immediately (when using '= { ... }')) Simplified check within CheckOther::checkMisusedScopedObject() as a
result.
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Revert "temporarily
disable the 'object destroyed immediately' message" This reverts commit fa94312c9a31e4d078464e6e96089b44d86aaeb9.
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: removed the tagging from the script
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: switch back to debug mode
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* Makefile: 1.45: updated Makefile for release
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* Changelog: 1.45: Updated Changelog
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.45: updated version information
2010-10-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: temporarily disable the
'object destroyed immediately' message
2010-10-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/erroritem.cpp, gui/erroritem.h, gui/logview.cpp,
gui/logview.h, gui/project.cpp, gui/project.h,
gui/projectfiledialog.cpp, gui/projectfiledialog.h,
gui/statsdialog.cpp, gui/statsdialog.h: Fix encoding in some files
2010-10-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, test/testother.cpp: Fix false positive:
Misused Scope Object does not pick constructors of local class
declarations. It does pick up if there is an unused construction within the
function, though.
2010-10-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2069
(cppcheck fails to scan OpenBSDs ftp source code)
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, test/testother.cpp: Fixed false positive:
checkMisusedScopedObject no longer errors on calls to function
objects.
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Prevent
Tokenizer::simplifyCalculations() from removing parantheses from
calls to Functors.
2010-10-02 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Unit Testing: added missing TEST_CASE
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, test/testother.cpp: Fixed false-positive:
Object is referenced on construction struct Foo { void bar() { } }; void fn() { Foo().bar(); // This caused a false-positive }
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, test/testother.cpp: Check misused scope object
does not pick local class method. Also fixed mistyped withinFuntion ->withinFunction.
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Added
test for functor false-positive [passing] Also removed typedef's following danmar's review and renamed
isClassresults -> isClassResults to make more clear.
2010-10-02 Daniel Marjamäki <danielm77@spray.se>
* test/test.vcproj: Visual Studio: updated test/test.vcproj
2010-10-02 Daniel Marjamäki <danielm77@spray.se>
* test/options.cpp: Visual Studio: Fixed compiler error. It seems
visual studio 2008 doesn't like 'not'.
2010-10-02 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1132 (Detection of misused scope objects in functions) Emits error in the form: [useless_lock.cpp:18]: (error) instance of "Lock" object
destroyed immediately ...if an instance of a class or struct is unnamed and therefore
destroyed straight after creation. Only checks for misused scope objects within functions. Optimised isIdentifierObjectType() by memoizing.
2010-10-01 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, lib/checkother.h, lib/token.cpp,
test/testother.cpp: Revert "Fixed #1132 (Detection of misused scope
objects)" This reverts commit c6acdccfa05dc31c4297d7e6f2467763161874ed.
2010-10-01 Pete Johns <paj-github@johnsy.com>
* lib/checkother.cpp, lib/checkother.h, lib/token.cpp,
test/testother.cpp: Fixed #1132 (Detection of misused scope objects) Emits error in the form: [useless_lock.cpp:18]: (error) instance of "Lock" object
destroyed immediately ...if an instance of a class or struct is unnamed and therefore
destroyed straight after creation. Removed "internal error" from token.cpp, since in this case varid
would be NULL.
2010-09-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testunusedprivfunc.cpp: Fixed #2067 (Template methods do not
'use' private ones)
2010-09-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2066 (false
positive: uninitialized variable when initializing through function
pointer)
2010-09-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2065 (false
positive: memory leak)
2010-09-27 Pete Johns <pete@johnsy.com>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1949:
assert() hides memory leaks Added separate unit-test (trac1949), initially broken to highlight
the error and added "assert" to call_func_white_list. Left TestMemleakInFunction::call_func() as is, as this wouldn't
highlight the actual problem.
2010-09-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Optimisation: Made Tokenizer::simplifyInitVar
faster
2010-09-26 Pete Johns <pete@johnsy.com>
* .gitignore: Ignore gcov and doxygen ephemera.
2010-09-26 Pete Johns <pete@johnsy.com>
* test/options.h, test/redirect.h: Added Doxygen commenting, per
kimmov's request. Of course test/ is not covered currently by the settings in
doxyfile.
2010-09-26 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Fix path separators in project file. Qt 4.7 qmake warns about using backslash in paths.
2010-09-26 Pete Johns <pete@johnsy.com>
* test/options.cpp, test/options.h, test/testoptions.cpp: Removed
static std::string. which_test() doesn't have to calculate anything, could be inlined.
2010-09-26 Pete Johns <pete@johnsy.com>
* test/testtoken.cpp: Replaced TODO in numeric test with two passing
tests. Just getting to grips with how the tokenizer behaves.
2010-09-26 Pete Johns <pete@johnsy.com>
* test/testtoken.cpp: Improved test coverage. Refactored to extract givenACodeSampleToTokenize, reducing LOC.
2010-09-26 Pete Johns <pete@johnsy.com>
* Makefile, test/options.cpp, test/options.h, test/testoptions.cpp,
test/testrunner.cpp, test/testsuite.cpp, test/testsuite.h,
tools/dmake.cpp: Added `check` target. Runs the test as per `make test`, but with less verbosity. -g GCC-style errors -q quiet tests
2010-09-26 Pete Johns <pete@johnsy.com>
* test/redirect.h: Renamed RedirectInputOutput ->
RedirectOutputError This class does not redirect input.
2010-09-26 Pete Johns <pete@johnsy.com>
* test/redirect.h, test/testcmdlineparser.cpp: Extracted Error and
Output redirection. Making reuse possible.
2010-09-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Revert "Optimisation: small speedups in the
Tokenizer::simplifyTokenList handling" This reverts commit 056037feed8503f5e51428da5cf37aa24d502ffc.
2010-09-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Optimisation: small speedups in the
Tokenizer::simplifyTokenList handling
2010-09-24 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1951
(Preprocessor: Compound macro statements not handled correctly)
2010-09-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Optimisation: Removed unused and slow code.
The code was added to fix #1225 but it is now redundant.
2010-09-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Optimisation to make the CheckUninitVar::parse
slightly faster
2010-09-23 Pete Johns <pete@johnsy.com>
* .gitignore: dmake can now be made from ./Makefile Ignore this build artefact as well as the one under ./tools, since
that can be built too.
2010-09-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Makefile improvements related to clean,
dmake and man targets.
2010-09-22 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/errorlogger.cpp, lib/filelister.cpp,
lib/path.cpp, lib/path.h, test/testfilelister.cpp: Fixed #2059
(cppcheck gives wrong path in error description)
2010-09-20 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: Optimisation: optimised Token::Match
2010-09-20 Kimmo Varis <kimmov@gmail.com>
* lib/lib.vcproj, lib/lib.vcxproj, lib/lib.vcxproj.filters: Delete
unused VS lib-projects. Those projects are just remainder from tries to create a real
library from the lib code.
2010-09-20 Kimmo Varis <kimmov@gmail.com>
* cppcheck_vs2010.sln: VS2010: Remove lib-project from the solution. The lib-project is not really used for anything. It is just
remainder from tries to create real library from lib code.
2010-09-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp: Optimisation: small optimisation of
CheckClass::privateFunctions
2010-09-20 Kimmo Varis <kimmov@gmail.com>
* lib/lib.vcxproj, lib/lib.vcxproj.filters, test/test.vcxproj,
test/test.vcxproj.filters: Update VS2010 solution/project files.
2010-09-20 Pete Johns <pete@johnsy.com>
* Makefile: Autogenerated Makefile updated.
2010-09-19 Pete Johns <pete@johnsy.com>
* tools/dmake.cpp: Wrapped variables in conditions This allows CXX and CXXFLAGS to be overridden without patching.
Added PREFIX for MacPorts compatibility, allowing staging to
$(DESTDIR)$(PREFIX)/bin, leaving original behaviour unchanged. Exit early if run in incorrect directory or if Makefile cannot be
written.
2010-09-19 Pete Johns <pete@johnsy.com>
* runastyle: Fixed syntax error "./runastyle: line 4: --suffix=none: command not found"
2010-09-19 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: Refactorings: Optimised the Token::multiCompare
function
2010-09-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2056 (False
positive: Resource leak)
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1802
(Preprocessor: macros are expanded wrong)
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: STL: added TODO test case
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Check
Class: Removed the 'operator= should not return a const reference'
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.h: CheckClass: the 'virtual destructor' checking is
currently inactive
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #2053 (false positive on
list erase)
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: Fixed #2054 (Missing newline in 'invalid
parameter' error message)
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #2052 (False
positive: possible null pointer dereference 'else continue')
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* all.pro, test/test.pro: removed qmake files for the cli and unit
tests
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj: Visual Studio 2008: Updated
cli/cppcheck.vcproj
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* cppcheck.sln, test/test.vcproj: Visual Studio 2008: Updated the
project/solution files
2010-09-18 Daniel Marjamäki <danielm77@spray.se>
* test/test.pro: updated test/test.pro
2010-09-17 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #2045 (False
negative: Uninitialized variable (found with gcc))
2010-09-17 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Execution Paths: fixed
TODO test cases
2010-09-16 Daniel Marjamäki <danielm77@spray.se>
* gui/about.ui: ln-: updated copyright
2010-09-16 Ettl Martin <ettl.martin@gmx.de>
* Makefile: reverted makefile changes back from clang++ to g++
2010-09-16 Ettl Martin <ettl.martin@gmx.de>
* Makefile, lib/path.cpp: fixed clang++ warning: lib/path.cpp:80:2:
warning: no newline at end of file [-pedantic]
2010-09-16 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checkother.cpp, lib/checkother.h, lib/checkstl.cpp,
lib/checkstl.h, test/test.pro, test/testother.cpp,
test/testredundantif.cpp, test/teststl.cpp: Redundant conditions:
some refactorings * removed the 'redundant null pointer' check. sometimes it's unsafe
to delete NULL pointer. and this check doesn't point out errors
anyway. * moved the 'redundant condition' check for set::remove. Moved it to
CheckStl.
2010-09-15 Ettl Martin <ettl.martin@gmx.de>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: fixed
warning from cppcheck: [lib/checkbufferoverrun.h:129]: (style)
'operator=' should not return a const reference
2010-09-15 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #2032 (inline suppressions fail with
comment on the same line as function)
2010-09-15 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #2033 (all inline suppressions fail
with relative paths)
2010-09-15 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #2049 (False
negative: 'Uninitialized variable' error won't show)
2010-09-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: fixed variable
declaration simplification
2010-09-14 Daniel Marjamäki <danielm77@spray.se>
* verify/codeeditor.cpp, verify/codeeditor.h: cppcheck-verify: added
'codeeditor' files
2010-09-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: the 'failed to parse typedef'
messages should not be shown unless --debug-warnings are given
2010-09-14 Daniel Marjamäki <danielm77@spray.se>
* verify/cppcheck-verify.pro, verify/mainwindow.cpp,
verify/mainwindow.h, verify/mainwindow.ui: cppcheck-verify: added
code editor that highlight the errors
2010-09-14 Daniel Marjamäki <danielm77@spray.se>
* verify/mainwindow.cpp, verify/mainwindow.h, verify/mainwindow.ui:
cppcheck-verify: added 'open' menu
2010-09-14 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #2048
(Preprocessor: ifndef incorrectly simplified)
2010-09-14 Robert Reif <reif@earthlink.net>
* lib/preprocessor.cpp: Preprocessor: Report #error configuration
when -D is used. Ticket: #2042
2010-09-14 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: Skip bail
out in constructors if a virtual function might be called because
that would be undefined behaviour. Ticket: #1895
2010-09-13 Daniel Marjamäki <danielm77@spray.se>
* verify/Makefile, verify/cppcheck-verify.pro, verify/main.cpp,
verify/mainwindow.cpp, verify/mainwindow.h, verify/mainwindow.ui:
cppcheck-verify: changed it into a Qt project
2010-09-13 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Handle C++0x rawstrings by replacing them with normal strings.
Ticket: #2022
2010-09-13 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Revert "Preprocessor: Report #error
configuration when -D is used. Ticket: #2042" This reverts commit 674644cb29f3eed4dcfba7f5dceb8dd0baca229a.
2010-09-13 Robert Reif <reif@earthlink.net>
* lib/preprocessor.cpp: Preprocessor: Report #error configuration
when -D is used. Ticket: #2042
2010-09-12 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
database: reduce false negatives for 'uninitialized variable' when
calling base class function. ticket: #1895
2010-09-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
remove redundant 'if return ; else|'
2010-09-12 Robert Reif <reif@earthlink.net>
* lib/cppcheck.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Fixed #2042 (#error messages should be
displayed when user defines are used)
2010-09-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
reduce 'loop { if continue ;' to 'loop {'
2010-09-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Memory leaks: insert ';' in the
simplifycode to split up the commands
2010-09-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
simplify 'loop { use ; callfunc ; }' to 'use ;'
2010-09-12 Daniel Marjamäki <danielm77@spray.se>
* verify/main.cpp: cppcheck-verify: fixed some false positives for
array declarations
2010-09-12 Daniel Marjamäki <danielm77@spray.se>
* verify/Makefile, verify/main.cpp, verify/readme.txt:
cppcheck-verify : added subproject
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
simplify 'if break ; break ;'
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
simplify 'use use'
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Memory leaks: don't write debug warning
for '; alloc ; dealloc ; return ; }'
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: fixed
try/catch and nested loops simplifications
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
improved simplification for 'callfunc'
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Improved the simplifycode for 'use ; if| use ;'
2010-09-11 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Update executable name to cppcheck-gui.
2010-09-11 Kimmo Varis <kimmov@gmail.com>
* : commit b88ce77e4ac85d1b32981c63cb5c538e9740b6e9 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Sep 11 12:15:46 2010 +0300
2010-09-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2023 (false
positive with realloc())
2010-09-11 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
database: fixed false positive. ticket: #1895
2010-09-10 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #2030 (False
positive: Uninitialized variable when function does not return)
2010-09-10 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h: Fix ticket #2040 (some
cli messages are missing a return at the end)
2010-09-10 Kimmo Varis <kimmov@gmail.com>
* : commit 0fd51a814f480ec5ac3dd01b848ec9d5a07cf05a Author: Kimmo
Varis <kimmov@gmail.com> Date: Fri Sep 10 17:42:14 2010 +0300
2010-09-10 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Symbol database: Refactoring. ticket: #1895
2010-09-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testunusedvar.cpp:
Fixed #2039 (unions not handled properly, false positive about
initialization)
2010-09-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#2038 (memleak false positive with assignment expression in
arguments)
2010-09-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2025 (iso646 c++
operators are not handled correctly)
2010-09-09 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: refactoring
- differentiate between member data initialization and assignment
and save the order of variable declarations. makes it possible to
create some additional checks. ticket: #1895
2010-09-09 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: fixed
false negative for uninitialized variable. ticket: #1895
2010-09-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #2037
(memleak not detected in exit path when variable used)
2010-09-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: CheckMemoryleaks:
reduce 'use ; if return ; dealloc ;' to 'if return ; dealloc ;'.
ticket: #2037
2010-09-08 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp, test/testcmdlineparser.cpp: cmdlineparser:
allow space between -D and define name. ticket: #2036
2010-09-08 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Add tests for userdefines and
userincludes for CmdLineParser.
2010-09-08 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2035 (Enum
'qboolean' hides typedef with same name)
2010-09-07 Daniel Marjamäki <danielm77@spray.se>
* test/testtoken.cpp, test/testtokenize.cpp: unit testing: moved
TestTokenizer::match tests to the TestToken
2010-09-07 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #2030 (False
positive: Uninitialized variable when function does not return)
2010-09-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/tokenize.cpp, test/testtokenize.cpp,
test/testunusedprivfunc.cpp: Fixed #2034 (false positive: unused
private function (Borland C++ __property))
2010-09-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testcmdlineparser.cpp: One more encoding fix.
2010-09-06 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: cmdlineparser: use given settings
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: use new style API to enable style checks.
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* test/testcmdlineparser.cpp: Add more tests for CmdLineParser.
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* : commit ed656e02e47df47d98ba079aa418012072fd7584 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Sep 6 22:45:29 2010 +0300
2010-09-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h, lib/timer.cpp: Set
encoding to UTF-8 for some files.
2010-09-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2024
(Internal Error on multiple append calls on same string object)
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h, test/test.vcproj,
test/test.vcxproj, test/test.vcxproj.filters,
test/testcmdlineparser.cpp: Add couple of basic tests for
CmdLineParser.
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Add back <stdexcept> as GCC requires it. I removed <stdexcept> after checking it builds with VS 2008. But Dan
pointed out GCC needs that header.
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp, lib/cppcheck.h: Remove unneeded includes.
2010-09-06 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.h: Add some comments for the CmdLineParser
class. Also remove one unneeded forward declaration.
2010-09-06 Daniel Marjamäki <danielm77@spray.se>
* cli/cmdlineparser.cpp: --help : added info about the
'--enable=missingInclude' command
2010-09-06 Stefan Naewe <stefan.naewe@googlemail.com>
* cli/cmdlineparser.cpp: cmdlineparser: handle '-h'/'--help'
correctly
2010-09-06 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: const functions: fixed false negatives for the
type P. ticket: #1884
2010-09-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: removed
'empty catch block' check. to avoid false positives we'll need to
check if it is bad with an empty catch block (dead pointer/undefined
behaviour/etc)
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* : commit c02d1bdce464968dcbe6ec64bb0d036dbb9a7d9d Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Sep 5 14:15:24 2010 +0300
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Fix GUIDs and attributes for couple of components.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Add own component for GUI
translation files.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: combine readme.txt and
authors.txt to one component.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi, win_installer/cppcheck.wxs: Installer:
Install new Qt-help help file.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Upate translation files.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* Makefile, cli/cmdlineparser.cpp: Fix compiling with GCC.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Remove unused function. I forgot to remove the function that was used in command line
parsing code.
2010-09-05 Kimmo Varis <kimmov@gmail.com>
* test/testcppcheck.cpp: Disable command line tests after
refactoring command line handling. Disable the tests until I create tests that work with the new code.
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* cli/cmdlineparser.cpp, cli/cmdlineparser.h, cli/cppcheck.vcproj,
cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h, lib/cppcheck.cpp,
lib/cppcheck.h: Move CLI command line parsing to own class.
2010-09-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2021 (false
positive: syntax error with -std=gnu++0x code)
2010-09-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2020 (false
positive: (error) Uninitialized variable, used in asm statement)
2010-09-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed problem
in Tokenizer::simplifyRedundantParanthesis when simplifying 'void
delete(double num);'
2010-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #2010 (missing
continue in switch check ?)
2010-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #2015 (### Internal
error in Cppcheck. Please report it.)
2010-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2017 (false
positive::struct or union member 'Base::m_ui' is never used)
2010-09-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Refactoring CheckMemoryLeaks
2010-09-03 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
lib/settings.cpp, test/testpreprocessor.cpp: Fixed #1872 (Confused
-v switch)
2010-09-03 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1976 (False
Positives with unions)
2010-09-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/executionpath.cpp,
test/testmemleak.cpp, test/testother.cpp: Fixed #2014 (False
positive with longjmp)
2010-09-03 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Symbol database: Added todo testcase for
better namespace handling. Ticket: #1895
2010-09-02 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testpreprocessor.cpp: Fixed #1975 (segmentation fault of
cppcheck)
2010-09-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Null pointer: Fixed false
positive
2010-09-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed Cppcheck
warnings
2010-09-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Symbol database:
Fixed false negatives for unused private functions. Ticket: #1895
2010-09-02 Sbastien Debrard <sebastien.debrard@gmail.com>
* gui/filelist.cpp, lib/filelister.cpp: Fixed #1972 (file
extensions)
2010-09-02 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #2011 (Parser
error in template function)
2010-09-02 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: GUI: Add more QT DLLs to Windows
installer. Help viewer requires help dll and couple of deoendent dlls to be
installed also.
2010-09-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: adds
support for inline functions returning function pointers and starts
to convert privateFunctions over to the symbol database. Ticket:
#1895
2010-09-01 Kimmo Varis <kimmov@gmail.com>
* gui/threadhandler.cpp: GUI: Fix slot name for debugerrors. Now DebugErrors get correctly routed to check log. The wrong slot
name also caused a warning printed to the console as reported by
thevbm in ticket #2006.
2010-09-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testclass.cpp,
test/testtokenize.cpp: Fixed #2007 (False positive: member variable
not initialized (Borland C++ property))
2010-09-01 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: refactoring namespace
handling. ticket: #2001
2010-08-31 Zachary Blair <zack_blair@hotmail.com>
* gui/gui.pro, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/stats.ui, gui/statsdialog.cpp, gui/statsdialog.h,
gui/threadhandler.cpp, gui/threadhandler.h: Fixed #1934 (GUI: Add
checking info display)
2010-09-01 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2002 (Wrong
operator() parsing)
2010-09-01 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: const functions: Added unit test for ticket
#2003
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* : commit 55e0e435bd0e6c01f8335c148e95bb2bcf225508 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Aug 31 21:40:51 2010
+0200
2010-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/cppcheck.cpp, lib/settings.cpp, test/testexceptionsafety.cpp:
Exception safety: Removed the noisy checks and keep the useful
checks
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* Makefile, lib/lib.pri: Fix Linux makefile after moving timer code
to own files.
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, lib/cppcheck.cpp, lib/lib.vcproj,
lib/lib.vcxproj, lib/lib.vcxproj.filters, lib/timer.cpp,
lib/timer.h, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: Move timer code to own cpp/h files.
2010-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1959 (Do you
support the oracle Pro*C ?)
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* : commit 688b2aefe9689d70abc2c00eb2ab34f24ff12bc4 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Aug 31 21:04:17 2010
+0200
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
lib/lib.vcxproj, lib/lib.vcxproj.filters, test/test.vcxproj,
test/test.vcxproj.filters: Fix building CLI with VS2010.
2010-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #2004 (False
positive in 'variable assigned a value but is never used' check)
2010-08-31 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, lib/lib.vcproj, test/test.vcproj: Fix CLI
build with VS2008.
2010-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1996 (False
positive for 'Variable foo is assigned a value that is never used')
2010-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::setVarId :
don't give operator function variable id 'operator new []('. Ticket:
#1997
2010-08-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.h, lib/tokenize.cpp,
test/testobsoletefunctions.cpp, test/testtokenize.cpp: Fixed #1999
(False positive: uninitialized variable (__published variables))
2010-08-31 Debrard Sébastien <sebastien.debrard@gmail.com>
* Makefile, lib/checkdangerousfunctions.cpp,
lib/checkdangerousfunctions.h, lib/checkobsoletefunctions.h,
lib/lib.pri, test/testdangerousfunctions.cpp,
test/testobsoletefunctions.cpp: Fixed #2005 (refactoring dangerous /
obsolete functions checks)
2010-08-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Fixed #2003 (false positive in set functions)
2010-08-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2001 (No 'The
function ... can be const' warnings when base class is in
namespace.)
2010-08-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #2000 (segmentation
fault of cppcheck with bitfield)
2010-08-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed #1887 (internal error in GLee)
2010-08-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.h: Fixed #1998 (VS compiler warning with current
HEAD)
2010-08-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1997
(operator new [] simplified wrong)
2010-08-30 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj, lib/lib.vcproj,
lib/lib.vcxproj, test/test.vcproj, test/test.vcxproj: Revert "Visual
Studio: Added /MP switch" This reverts commit 2450a80556def477ff43459484ca8ace3dc17e57.
2010-08-30 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/errorlogger.h: Fixed #1886 (Associate header file
with code file including it)
2010-08-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
database: better handling of operator functions. Ticket: #1895
2010-08-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1988
(segmentation fault of cppcheck with wrong syntax of -std=c++0x)
2010-08-29 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1993 (False
negatives: uninitialised variables in constructor)
2010-08-29 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Tokenizer: Added testcase that asserts that
there are not internal errors when using typedefs. Ticket: #1887
2010-08-29 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, readme.txt: mention the manual in the --help
output
2010-08-29 Kimmo Varis <kimmov@gmail.com>
* gui/threadresult.cpp: Fix error I made merging my internal error
handling. GUI didn't show debug warnings even if they were enabled.
2010-08-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.cpp, test/testobsoletefunctions.cpp:
Fixed #1994 (False 'Found obsolete function' positive)
2010-08-29 Daniel Marjamäki <danielm77@spray.se>
* runastyle, runastyle.bat: astyle: prevent creating backup files
2010-08-29 Kimmo Varis <kimmov@gmail.com>
* : commit b0fa7bfd8cdbd344ae5cf4134d76460e7fc8b695 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Aug 29 09:38:03 2010 +0300
2010-08-28 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/mainwindow.cpp,
gui/mainwindow.h, gui/threadhandler.cpp, gui/threadresult.cpp,
gui/threadresult.h: GUI: Output debug errors to log view. Debug errors were not shown anywhere in the GUI, they were just
ignored. This commit adds new signal for those debug errors and
directs them to checking log. Solves ticket #1898 (GUI: Handle internal errors from lib)
2010-08-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testunusedvar.cpp:
Fixed #1989 (false positive: Variable 'Aux13' is assigned a value
that is never used)
2010-08-28 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database:
Refactorings. Ticket: #1895
2010-08-28 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Disable debug warnings for now.
2010-08-28 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Fix compiling.
2010-08-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp, test/testunusedvar.cpp:
Tokenizer::simplifyInitVar : Refactorings and fixes related to
ticket #1989
2010-08-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkmemoryleak.cpp,
lib/cppcheck.cpp, lib/preprocessor.cpp, lib/settings.cpp,
lib/settings.h, lib/tokenize.cpp, test/testmemleak.cpp,
test/testpreprocessor.cpp, test/testsimplifytokens.cpp: Added
--debug-warnings that we can use to enable various debug warnings
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1984 (false
positive: syntax error in for loop (< -operator))
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1985 (false
positive: syntax error in try catch-block with for()-loop inside)
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp: quick fix for #1969 (False positive:
Uninitialized variable when exit() is called before variable is
used.)
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #1966
(False positive: Unused private function (virtual function in base
class))
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1945 (False
positives when a for loop header is in a macro)
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1951
(Preprocessor: Compound macro statements not handled correctly)
2010-08-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer::simplifyTypedef: Report about unhandled typedefs. Ticket:
#1821
2010-08-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1981 (false
positive: syntax error on template operator <)
2010-08-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Code cleanup
2010-08-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: If syntax errors are found then
don't return a token list. Ticket: #1961
2010-08-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Detect some
syntax errors when trying to use templates. Ticket: #1961
2010-08-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp, test/testunusedvar.cpp: fix 2 problems
related to ticket 1976: 1. nested unnamed anonymous structures and unions were not
supported. 2. declaration split up in class had bug if proceeded by access
specifier.
2010-08-25 Daniel Marjamäki <danielm77@spray.se>
* gui/helpwindow.cpp, gui/helpwindow.h, gui/mainwindow.cpp: GUI:
some fixes of help * moved the help file to the application folder * use absolute path instead of relative path for helpfile * show warning messages if help file doesn't exist or fails to be
loaded
2010-08-25 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Disable project opening
while checking files.
2010-08-25 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Fix enabling project
closing action. Project closing action was not enabled when the project file was
opened from the checked directory. Also update the window caption to
contain project file name that was opened from the checked
directory.
2010-08-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed gcc compiler warning about uninitialized
variable tok1. Ticket: #1965
2010-08-25 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.h: GUI: Fix GCC build failure because of copy-paste
error.
2010-08-25 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1978 (Fix compiler warnings in GUI
(MainWindow::mExiting’ will be initialized after...))
2010-08-25 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: Fixed #1977 (GUI crashes
when checking a directory) The GUI was crashing if no project files were in checked directory.
I missed this case in my own testing because I had created test
project files for each directory. Whoops! Anyway, this now also makes silently loaded project files (project
file residing in directory but not load by the user) as normal
projects in the GUI.
2010-08-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1948 (C++ class scoping not followed)
2010-08-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1936
(Internal error. Token::Match called with varid 0.)
2010-08-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Fixed #1960 (cppcheck hangs with 100% cpu
load)
2010-08-24 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Fix for loading "oldstyle" project file.
2010-08-24 Kimmo Varis <kimmov@gmail.com>
* : Merge remote branch 'remotes/kimmo/loadable-project' Conflicts: gui/gui.qrc gui/mainwindow.cpp gui/mainwindow.h
2010-08-23 Daniel Marjamäki <danielm77@spray.se>
* gui/gui.qrc, gui/helpwindow.cpp, gui/helpwindow.ui: GUI: Added
icons to the help window.
2010-08-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1970 (Internal
error. CheckClass::SpaceInfo::getVarList found variable '_root' with
varid 0.)
2010-08-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1967
(Tokenizer::setVarid doesn't set variable value (list of function
pointers))
2010-08-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Simplified the
bitfields handling. This patch just looks for the bitfield signature
but doesn't care about the type. I don't think any other code would
have this same signature so it should be OK. We could add code to
only look in structures and classes but I don't think that is
necessary. Ticket: #1956
2010-08-22 Robert Reif <reif@earthlink.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp: Refactoring handling
of microsoft types. Ticket: #1956
2010-08-22 Robert Reif <reif@earthlink.net>
* lib/token.cpp, lib/tokenize.cpp, test/testtokenize.cpp:
Tokenizer::simplifyBitfields: fixed more issues. Ticket #1956
2010-08-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: better
handling of bitfields. Ticket: #1956
2010-08-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify
DECLARE_DYNAMIC and DECLARE_DYNCREATE
2010-08-22 Kimmo Varis <kimmov@gmail.com>
* cppcheck.cppcheck: GUI: Add project file for Cppcheck.
2010-08-21 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Fix bug that same defines were added to
list several times.
2010-08-21 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.txt: Improve project file documentation.
2010-08-21 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Use rootpath from Project file. If rootpath is given in project file then use it as a current
directory. Also check if paths given in project file are relative
and use rootpath as base path for relative paths.
2010-08-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: simplify
bitfields. Ticket: #1956
2010-08-21 Kimmo Varis <kimmov@gmail.com>
* gui/project.cpp, gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Add project root path to Project file
-dialog.
2010-08-21 Daniel Marjamäki <danielm77@spray.se>
* gui/helpwindow.cpp, gui/helpwindow.ui: GUI: updated helpwindow ui
2010-08-21 Daniel Marjamäki <danielm77@spray.se>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Fixed help window leaks
and made sure it is closed when the gui is closed
2010-08-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: handle
DECLARE_DYNAMIC. Ticket: #1956
2010-08-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1965
(tokenizer::simplifyEnum add support for C++0x enums)
2010-08-20 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp, gui/projectfile.h, gui/projectfile.txt: GUI:
Add new optional root-element to project file. Add support for new root-element to project file. This element
defines project root directory if given. If not given then project
root is directory where the project file is located.
2010-08-20 Daniel Marjamäki <danielm77@spray.se>
* gui/help/online-help.qhp: GUI: fixed the online-help.qhp file
listing
2010-08-20 Daniel Marjamäki <danielm77@spray.se>
* : GUI: Removed the help collection file because it didn't work on
different Qt setups
2010-08-20 Daniel Marjamäki <danielm77@spray.se>
* gui/gui.pro, gui/gui.qrc, gui/help/ch01.html, gui/help/ch02.html,
gui/help/ch02s02.html, gui/help/ch02s03.html,
gui/help/ch02s04.html, gui/help/ch02s05.html,
gui/help/ch02s06.html, gui/help/ch02s07.html,
gui/help/ch02s08.html, gui/help/ch03.html, gui/help/ch04.html,
gui/help/ch05.html, gui/help/ch06.html, gui/help/ch07.html,
gui/help/ch08.html, gui/help/ch09.html, gui/help/ch10.html,
gui/help/ch10s02.html, gui/help/ch10s03.html,
gui/help/ch10s04.html, gui/help/ch10s05.html, gui/help/index.html,
gui/help/online-help.qhp, gui/helpwindow.cpp, gui/helpwindow.h,
gui/helpwindow.ui, gui/mainwindow.cpp: GUI: Updated online-help.
This is still under work.
2010-08-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1964 (False
positive: function can be const (get this))
2010-08-20 Daniel Marjamäki <danielm77@spray.se>
* gui/mainwindow.cpp: astyle formatting
2010-08-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::setVarId :
fixed problem for class members
2010-08-20 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj, lib/lib.vcproj,
lib/lib.vcxproj, test/test.vcproj, test/test.vcxproj: updates of
Visual Studio files
2010-08-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1954 (False
positive: function can be const (derived class))
2010-08-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1963
(typedef array incorrectly simplified)
2010-08-19 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Prevent opening new files or directories
when project file loaded.
2010-08-19 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Set current directory when loading a
project file.
2010-08-19 Daniel Marjamäki <danielm77@spray.se>
* : GUI: Added generated file online-help.qhc because it is not yet
autogenerated when building
2010-08-19 Daniel Marjamäki <danielm77@spray.se>
* gui/gui.qrc, gui/help/buildhelp.bat, gui/help/index.html,
gui/help/online-help.qhcp, gui/help/online-help.qhp: GUI: added
simple help file
2010-08-19 Daniel Marjamäki <danielm77@spray.se>
* gui/gui.pro, gui/mainwindow.cpp: GUI: quick fix for #1957 (Unable
to compile gui.pro with Qt Creator in Windows)
2010-08-19 Kimmo Varis <kimmov@gmail.com>
* gui/gui.qrc, gui/main.ui: GUI: Add icon for Open Project and add
it to toolbar.
2010-08-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, lib/tokenize.cpp,
lib/tokenize.h, test/testclass.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Symbol database: bug fixes. Ticket: #1895
2010-08-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1955 (cppcheck
hangs with 100% cpu load)
2010-08-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1944 (segfault
in Tokenizer::simplifyLogicalOperator)
2010-08-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: #1943 (segmentation fault
of cppcheck (= default))
2010-08-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1946 ('Dereferenced
iterator erased' false positive)
2010-08-17 Kimmo Varis <kimmov@gmail.com>
* gui/project.cpp, gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Add check paths field to Project File
-dialog.
2010-08-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: Fixed the
error reporting so errors are shown in the gui. Ticket: #1895
2010-08-17 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Set project filename to main window
caption. When project file is closed the caption is emptied.
2010-08-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1942 (false
positive: uninitialized variable in __asm__ statement)
2010-08-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: fixed
problems with namespaces. Ticket: #1895
2010-08-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h,
lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1941 (Internal
error::Space Info::getVarList found variable with varid 0)
2010-08-15 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Leave new project file open and selected. When user creates new project file one probably wants to keep using
the same project file. So leave it open for use.
2010-08-15 Sbastien Debrard <sebastien.debrard@gmail.com>
* lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h:
Refactoring of obsolete functions checks. Ticket: #1940
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h,
lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Reverted
7398453cb09aa9f726ac9b19ee2feadf27664744
2010-08-15 Sbastien Debrard <sebastien.debrard@gmail.com>
* lib/checkobsoletefunctions.cpp, lib/checkobsoletefunctions.h,
lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
Refactoring of obsolete functions checks. Ticket: #1940
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* gui/applicationlist.cpp: GUI: Use Notepad++ by default in windows.
Ticket: #1931
2010-08-15 Tim Gerundt <gerundt@users.sourceforge.net>
* gui/cppcheck_de.ts: Fixed #1916 (gui: Update german translation)
2010-08-15 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h: GUI: Add
menuitem to edit open project file. Earlier we opened project file only for editing. But now that we
really use project files we need separate feature for editing them.
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Variable
Id: Fixed various bugs related to templates and bitfields. Ticket:
#1928
2010-08-15 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h: GUI: Add
menuitem to close open project file.
2010-08-15 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/project.h: GUI: Open
project file and check contained paths. Now we load user-selected project file and start checking paths it
contains. Project file can be anywhere as long as it contains valid
path(s) to check.
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: removed unused variable 'dot'
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: Disabled the -Wconversion. There are
too many compiler warnings currently when using it.
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: quick fix for #1905 (false
positive: the function '...' can be declared as const (member array
is assigned))
2010-08-15 Daniel Marjamäki <danielm77@spray.se>
* gui/applicationlist.cpp: astyle formatting
2010-08-15 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: report
error when it is detected that a variable id is missing. Ticket:
#1928
2010-08-15 Erik Lax <erik@datahack.se>
* gui/applicationlist.cpp: Fixed #1931 (GUI should try to detect the
best possible editor)
2010-08-15 Erik Lax <erik@datahack.se>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #1932
(false positive: unused private function)
2010-08-14 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#162 (Initialisation of a variable by itself)
2010-08-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1928 (missing
varId for template class variable)
2010-08-14 Erik Lax <erik@datahack.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1935 (false negative: detect buffer overrun from network functions
(recv, recvfrom..))
2010-08-14 Sbastien Debrard <sebastien.debrard@gmail.com>
* Makefile, lib/checkobsoletefunctions.cpp,
lib/checkobsoletefunctions.h, lib/lib.pri,
test/testobsoletefunctions.cpp: Fixed #1933 (Add checks for obsolete
functions)
2010-08-14 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: ErrorLogger: Added better \n handling to the
XML output
2010-08-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: dangerous scanf usage: Added verbose
information
2010-08-14 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp, gui/projectfile.h, gui/projectfile.txt: GUI:
Add check paths to project file. Add new element containing paths to check into the project file.
This is for growing project files to real project files that can be
loaded and selected from the GUI. And decoupling project files from
the directory they reside. So you can put project file in any
directory, load it and it checks paths listed.
2010-08-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Added
scanf check. Modified patch submitted by Eric Sesterhenn
2010-08-14 Ettl Martin <ettl.martin@gmx.de>
* test/testdangerousfunctions.cpp: fixed unit test of dangerous
functions
2010-08-14 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: Fixed bug
when end of namespace wasn't found. Ticket: #1895
2010-08-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h:
dangerous functions: removed 'scanf' because it can be used in a
safe way
2010-08-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: fixed
linenr problem in virtual destructors check
2010-08-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkdangerousfunctions.cpp: Dangerous functions: Improved
error messages
2010-08-13 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: dmake: removed _GLIBCXX_DEBUG because
it doesn't work in cygwin. added -Wconversion
2010-08-13 Erik Lax <erik@datahack.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1930 (false negative:
bad iterators checks fails to detect bugs with preincrement)
2010-08-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
database: Refactoring virtual destructors check. Ticket: #1895
2010-08-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Symbol database: move finding base classes
until after all classes are found because of template instantiation.
Ticket: #1895
2010-08-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: refactoring
variable handling. Ticket: #1895
2010-08-12 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: doc: added a little section about excluding a
file or folder from checking
2010-08-12 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, man/cppcheck.1.xml: Added command line option
--report-progress. ticket: #1926
2010-08-12 Ettl Martin <ettl.martin@gmx.de>
* Makefile, lib/checkbufferoverrun.cpp, lib/preprocessor.cpp:
actived Wconversion flag in Makefile and fixed almost all Warnings
from gcc-4.4
2010-08-12 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Symbol database: fix a
small bug and add more tests. ticket: #1895
2010-08-11 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: better
handling of 'friend'. ticket: #1895
2010-08-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Optimisation in Tokenizer::tokenize
2010-08-11 Kimmo Varis <kimmov@gmail.com>
* gui/FileList.cpp, gui/FileList.h, gui/filelist.cpp,
gui/filelist.h, gui/mainwindow.cpp: Fix filenames starting with
capital letters. I accidentally committed two new files with filenames starting with
capital letters from Windows machine. The Linux build breakage was
fixed by fixing the include lines. But the correct fix is to fix
filenames as we are using all lower letter filenames in this
project.
2010-08-10 Ettl Martin <ettl.martin@gmx.de>
* gui/FileList.cpp, gui/mainwindow.cpp: gui: fixed regression du to
case sensitifity of Linux
2010-08-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Optimisation: Made inner loop in
Tokenizer::setVarId faster
2010-08-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer::setVarId :
Fixed a problem when using static class members
2010-08-10 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Symbol database: Refactoring
2010-08-09 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Use canonical path as checking path. Cleanup the path name before starting checking and saving it.
2010-08-09 Kimmo Varis <kimmov@gmail.com>
* gui/FileList.cpp, gui/FileList.h, gui/gui.pro,
gui/mainwindow.cpp, gui/mainwindow.h: GUI: Implement FileList class
to handle list of files to check. Create a list of files to check. Currently we only read this list
once. But later on we can refer to this list to for example
determine which files were checked and which not in aborted
checking.
2010-08-10 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: const function check: Added more unit tests
2010-08-10 Robert Reif <reif@earthlink.net>
* gui/resultstree.cpp, gui/resultstree.h, gui/settingsdialog.cpp,
gui/settingsdialog.h, gui/translationhandler.cpp,
gui/translationhandler.h, lib/checkbufferoverrun.cpp: Fixed #1925
(fix some cppcheck warnings in cppcheck)
2010-08-09 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Virtual destructors: extended and fixed the
testing
2010-08-09 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Fixed typo in testcase. Ticket: #1311
2010-08-09 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1922 (False
positive: function can be const when both const and non-const
functions are provided.)
2010-08-09 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Symbol
database: Enhancements and fixes. Ticket: #1895
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Optimising: Tokenizer::setVarId when setting
variable ids for struct/class members
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: astyle formatting
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: Optimisation: Optimised firstWordEquals
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: 'simplifyCalculations();' should have
the same results as 'while (simplifyCalculations());'
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp: CLI: increase delay between progress
reports from 1s to 10s
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
lib/cppcheck.cpp, lib/cppcheck.h: Refactoring:
Cppcheck::reportProgress needs to call _errorLogger::reportProgress.
Ticket: #1625
2010-08-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring: Made
Tokenizer::simplifyCalculations a little faster
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* test/testpreprocessor.cpp: Visual Studio: Fixed unit tests.
Ticket: #640
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Performance: Refactoring
CheckOther::nullPointerStructByDeRefAndChec to make it faster
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: visual studio: fixed a few compiler warnings
(when saving istream::get result in a char)
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1923 (False
positive: Possible null pointer derefence in else if)
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1921 (false positive: the function '...' can be declared as const
(inline friend))
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1894
(unreadVariable false positive with const references)
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, test/testclass.cpp: Fixed #1881 (false positive: The
function '...' can be const (nonconst code is hidden inside #if))
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h: Symbol Database: Don't use
it when it is not needed
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.h: Refactoring: Made CheckClass members private
2010-08-07 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: calculation in sizeof: added two more
ASSERT_EQUALS to guard against false positives
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: New
check: look for calculation inside sizeof
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister.cpp, lib/tokenize.cpp: gcc: fixed some more
-Wsign-conversion warnings
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp,
lib/checkother.cpp, lib/cppcheck.cpp, lib/mathlib.cpp,
lib/mathlib.h, lib/tokenize.cpp: gcc: fixed some more
-Wsign-conversion warnings
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/filelister.cpp, lib/preprocessor.cpp,
lib/token.cpp, test/testthreadexecutor.cpp, tools/dmake.cpp: Fixed
#1487 (fix gcc compiler warnings)
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/mathlib.cpp: gcc: Fixed some compiler warnings when using
-Wsign-conversion. Ticket: #1487
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h: gcc: Fixed some compiler
warnings when using -Wsign-conversion. Ticket: #1487
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h: gcc: Fixed some compiler
warnings when using -Wsign-conversion. Ticket: #1487
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.h: gcc: Fixed some compiler warnings when using
-Wsign-conversion. Ticket: #1487
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: gcc: Fixed some compiler warnings when using
-Wsign-conversion. Ticket: #1487
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp, lib/tokenize.h: gcc:
fixed some compiler warnings when using -Wsign-conversion
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.h, lib/cppcheck.cpp, lib/tokenize.cpp,
lib/tokenize.h: Borland C++: Fixed compiler errors
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/cppcheck.cpp, lib/cppcheck.h,
lib/errorlogger.h: Visual Studio: Fixed warnings
2010-08-06 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Compiler dependent parsing of
'<backspace><space><newline>'. Maybe it should be possible to
control it from the commandline instead. Ticket: #640
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/token.h: suppress visual studio warnings about loosing data
when calculating Token::progressValue
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
better handling of 'return strcmp(..' etc
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* : commit 2450a80556def477ff43459484ca8ace3dc17e57 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Thu Aug 5 19:02:05 2010
+0200
2010-08-05 Ettl Martin <ettl.martin@gmx.de>
* lib/checkbufferoverrun.cpp: fixed compiler Warning in
lib/checkbufferoverrun about comparison of signed and unsigned
variable
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: Memory leaks: Added ASSERT_EQUALS near the
TODO_ASSERT_EQUALS
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Buffer overflow: Fixed two TODO test
cases
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: null pointers: fixed TODO
assertion - dereference pointer in function call and then checking
that it is not NULL
2010-08-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: null pointers: fixed todo
test case
2010-08-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
refactoring return handling
2010-08-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
fixed false negatives when uninitialized pointer data is read
2010-08-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: don't
translate 'return p[10];' to 'return use ;'
2010-08-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1670 (False negative: Array index out of bounds in return
statement)
2010-08-04 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp: astyle formatting
2010-08-03 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp, test/testsettings.cpp: Fixed #1919 (option
'--suppressions file' can not work when filename includes colon)
2010-08-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/cppcheck.cpp, lib/cppcheck.h,
lib/errorlogger.cpp, lib/errorlogger.h, lib/preprocessor.cpp,
lib/token.cpp, lib/token.h, lib/tokenize.cpp: Added
ErrorLogger::reportProgress and removed ErrorLogger::ReportProgress.
This will make it easier for GUI and other clients to display
progress information.
2010-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1833 (memory
leak detected in version 1.37 not detected in 1.43)
2010-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
better handling of 'loop { dealloc ; alloc ; }'
2010-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
simplify 'callfunc ; ;'
2010-08-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
better checking of function calls. If there are statements after the
function call it is unlikely the function call is noreturn
2010-08-02 Cary R <cygcary@yahoo.com>
* .gitignore: Fixed #1915 (Patch to ignore cppcheck.exe and
testrunner.exe) When compiling in the cygwin environment the executables have a .exe
extension, so to keep the git status clean ignore both cppcheck.exe
and testrunner.exe.
2010-07-31 Kimmo Varis <kimmov@gmail.com>
* runastyle, runastyle.bat: Improve Astyle scripts to use variables. Using variables for style and options makes it easier to edit the
scripts. Also avoids copy/paste errors when editing scripts.
2010-07-31 Kimmo Varis <kimmov@gmail.com>
* cli/threadexecutor.cpp, lib/cppcheck.cpp,
test/testthreadexecutor.cpp: Astyle cleanup with new Astyle options.
2010-07-31 Kimmo Varis <kimmov@gmail.com>
* runastyle, runastyle.bat: Ticket #1914 Improve Astyle for
parenthesis style Tell Astyle to remove extra spaces around parenthesis.
2010-07-31 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/check.h, lib/checkexceptionsafety.cpp,
lib/checkother.cpp, lib/checkstl.cpp, lib/errorlogger.cpp,
lib/filelister_unix.cpp, lib/settings.cpp, lib/settings.h,
lib/tokenize.h: cleanup headers
2010-07-30 Kimmo Varis <kimmov@gmail.com>
* cli/threadexecutor.cpp: Astyle cleanup.
2010-07-24 Kimmo Varis <kimmov@gmail.com>
* runastyle, runastyle.bat: Ticket #1899 Update Astyle flags to
match older Astyle behavior.
2010-07-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1912 (False
positive: memory leak (calling noreturn function))
2010-07-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1909 (###
Internal error in Cppcheck. Please report it)
2010-07-28 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Fixing ticket #1908 (setup don't
install GUI translations) Patch submitted by Tim Gerundt.
2010-07-27 Ettl Martin <ettl.martin@gmx.de>
* lib/errorlogger.cpp: checkheaders: removed redundant include
(token.h) from errorlogger.cpp
2010-07-27 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #1864 (Relative Path of #include-File
doesn't work)
2010-07-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed a vs compiler warning. Ticket: #1901
2010-07-27 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Add lib to include- and dependency-directories.
2010-07-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj, gui/gui.pro,
lib/lib.vcproj, lib/lib.vcxproj, test/test.vcproj,
test/test.vcxproj: Windows: Add _CRT_SECURE_NO_WARNINGS define. The _CRT_SECURE_NO_WARNINGS define suppresses some Windows-specific
compile warnings. Windows has "secure" versions of some functions
and compiler outputs warnings that those "secure" versions should be
used instead. Since other platforms don't have those functions we
just suppress this warning for now on.
2010-07-27 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: updated dmake. updated Makefile
(includes cleanup).
2010-07-27 Emmanuel Blot <eblot@neotion.com>
* .gitignore, Cppcheck.xcodeproj/project.pbxproj: Fix build error on
XCode
2010-07-27 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp: Cleanup redundant include
2010-07-26 Zachary Blair <zack_blair@hotmail.com>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1889 (false
positive: Common realloc mistake)
2010-07-26 Ettl Martin <ettl.martin@gmx.de>
* gui/mainwindow.h: fixed regression due to missing settings.h
2010-07-26 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.h, lib/preprocessor.cpp,
test/testpreprocessor.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Refactoring: Cleanup include that
checkheaders reported as not needed
2010-07-26 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Remove unneeded path separator conversion.
2010-07-26 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Fix path separators for couple of messages.
2010-07-26 Kimmo Varis <kimmov@gmail.com>
* lib/filelister_win32.cpp: Windows: convert to internal separators
when finding files.
2010-07-26 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
lib/lib.vcxproj, lib/lib.vcxproj.filters, test/test.vcxproj,
test/test.vcxproj.filters: Update VS 2010 project files.
2010-07-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/token.cpp, lib/token.h,
test/testclass.cpp, test/testconstructors.cpp: Create a symbol
database
2010-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #1887 (internal error in GLee)
2010-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/errorlogger.cpp,
lib/errorlogger.h, lib/preprocessor.cpp, lib/tokenize.cpp:
Refactoring: Report progress when checking takes a long time.
Ticket: #1868
2010-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/token.h: Refactoring: changed 'bool varid=0' to 'bool
varid=false'
2010-07-25 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1383
(Preprocessor: define - ifndef problem)
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/mathlib.h, lib/preprocessor.cpp, lib/preprocessor.h,
lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp:
Refactoring: Cleanup headers using checkheaders
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: CheckBufferOverrun: report progress.
Ticket: #1868
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.cpp, lib/errorlogger.h, lib/tokenize.cpp: Report
progress when checking a file takes a long time. Ticket: #1868
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.h: Refactoring: Removed unused variable _xmllist
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1893 (false
positive: dereferencing null pointer (try/catch))
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/token.cpp: Refactoring Token::Match: Report errors through
ErrorLogger. Ticket: #1839
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring Tokenizer::syntaxError
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/mathlib.cpp, lib/mathlib.h,
lib/tokenize.cpp: Refactoring MathLib: Report errors through the
tokenizer. Ticket: #1839
2010-07-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring: use MathLib add/sub instead of
calculate
2010-07-23 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/preprocessor.cpp, lib/settings.cpp,
lib/settings.h, test/testsettings.cpp: Refactoring:
Settings::addSuppression return error message and callers make sure
it's reported properly. Ticket: #1839
2010-07-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Refactoring: Use Check::reportError
instead of writing to std::cout. Ticket: #1839
2010-07-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring: Don't throw exceptions in the
tokenizer upon errors. Ticket: #1866
2010-07-23 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Refactoring: The preprocessor will report
errors instead of throwing exceptions. Ticket: #1866
2010-07-23 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h: Refactoring:
The Settings::addEnabled will return error message instead of
throwing it. Ticket: #1866
2010-07-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Variable scope: Improved verbose information
(see also 7ef0296)
2010-07-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1891
(Internal error when enum assigned to sizeof without brackets)
2010-07-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#1828 (### Internal error in Cppcheck. Please report it.)
2010-07-21 Kimmo Varis <kimmov@gmail.com>
* lib/preprocessor.cpp: Fix path separators for missing include
files-message.
2010-07-21 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Fixed #1892 (Verbosity setting set to false and
not set back to original value) Verbosity was set to false to temporarily reduce printing messages.
But it was not set back to its original value so rest of the
messages that should have been printed for verbose setting enabled
were not printed.
2010-07-21 Kimmo Varis <kimmov@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Better fix for
#1371. Now handles also system includes. And have couple of tests.
2010-07-21 Kimmo Varis <kimmov@gmail.com>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Use enum for header file types
2010-07-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1883 (false
positive: (style) The function 'A::SetPos' can be const)
2010-07-19 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: filelocation-refactoring: Fixed unit tests
in windows
2010-07-19 Daniel Marjamäki <danielm77@spray.se>
* cppcheck.cbproj, testrunner.cbproj: Borland C++: Updated project
files
2010-07-19 Kimmo Varis <kimmov@gmail.com>
* lib/filelister.h: Formatting and improving comments.
2010-07-19 Daniel Marjamäki <danielm77@spray.se>
* : pulled changes from kimmov (filelocation-refactor)
2010-07-19 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp, lib/path.cpp: Remove './' from begin of paths
when printing progress.
2010-07-19 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.cpp, lib/path.cpp, lib/path.h: Move path
simplifying code to Path class.
2010-07-19 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1883 (false positive: (style) The function 'A::SetPos' can be
const)
2010-07-19 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1865
(Tokenizer::simplifyRedundantParantheses: wrong handling of
'operator delete')
2010-07-19 Kimmo Varis <kimmov@gmail.com>
* lib/path.cpp: Use std::replace() to replace chars in paths.
2010-07-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: --verbose: added more information for the
variableScope error message.
2010-07-19 Kimmo Varis <kimmov@gmail.com>
* : Merge remote branch 'remotes/kimmo/master'
2010-07-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1880 (false
positive: Uninitialized array (initialized in subfunction))
2010-07-19 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.h: Remove misleading comment.
2010-07-18 Zachary Blair <zack_blair@hotmail.com>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1856 (false
positive: "pData" nulled but not freed upon failure)
2010-07-19 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1882 (false
negative: function can be declared const)
2010-07-18 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Refactoring
CheckClass::initializeVarList. Ticket #1811
2010-07-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: fixed the mistake I made when applying patch
2010-07-18 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/tokenize.cpp, test/testconstructors.cpp:
uninitialized class members: better handling of nested classes
2010-07-18 Kimmo Varis <kimmov@gmail.com>
* : Merge remote branch 'origin/master'
2010-07-18 Martin Ettl <martin@martin.(none)>
* test/testother.cpp: #1880: added todo testcase (false positive:
(error) Uninitialized variable: y)
2010-07-18 Martin Ettl <martin@martin.(none)>
* test/testmemleak.cpp: added a testcase for ticket #1879
2010-07-18 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1855 (false
positive: uninitialized variable (function call in switch
condition))
2010-07-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: use cppcheckError to report
Tokenizer/Preprocessor error instead of std::cerr
2010-07-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #1843 (Tokenizer::createTokens() calls
std::exit(0))
2010-07-18 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Fix bug that every error item got own
parent item. The code could not find existing parent item since items have paths
with native separators and search was done with non-native path
separators.
2010-07-18 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1870 (Wrong path in report) Current directory was set from first file in the list. That file
could be in subdirectory when wrong path was set. Also getting
absolute path was buggy.
2010-07-18 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1870 (Wrong path in report) Current directory was set from first file in the list. That file
could be in subdirectory when wrong path was set. Also getting
absolute path was buggy.
2010-07-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
#1857 (XML tag no more included for unusedFunction error (1.44
regression))
2010-07-18 Kimmo Varis <kimmov@gmail.com>
* gui/threadresult.cpp, lib/errorlogger.cpp, lib/errorlogger.h: GUI:
Avoid unnecessary path separator conversion.
2010-07-18 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1311 (false negative: missing const not found in derived classes)
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Close application
cleanly when exiting while checking. Earlier commit allowed cppcheck to exit immediately while checking.
This however leads crashes and error logs shown since the thread
termination leaves things in inconsistent state. I thought cppcheck
would close fast enough so these could be ignored. But apparently
not. So this commits adds new bool mExiting for MainWindow and sets that
to true when exiting while checking. When the checking is ready this
attribute is checked and if it is true the application can now be
cleanly exited.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp, gui/aboutdialog.h,
gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/fileviewdialog.cpp, gui/fileviewdialog.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h:
GUI: Fix includes for dialogs/views. At first we created the GUI in the code and so needed all the
layouts etc include to the code. Now when we are using UI files we
don't need all those included. So clean them up. Also use forward
declarations instead of includes in header files when possible.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/csvreport.cpp, gui/txtreport.cpp, gui/xmlreport.cpp: GUI:
Ensure native path separators in reports. Ensure that native separators are used in saved reports. Reports may
be parsed by other programs/scripts so it is important that paths
are properly formatted.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Show paths with native separators in
result tree. GUI used to show paths with / separator which is not native
separator in Windows. So lets convert shown paths to native
separators before adding them to the GUI.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Add *.orig files to gitignore.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/threadresult.cpp: GUI: Fix building after path handling
refactorings.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, lib/lib.vcproj, test/test.vcproj: Update
Visual Studio projects.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp, lib/mathlib.cpp, test/testthreadexecutor.cpp:
Astyle cleanup.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* Makefile, lib/errorlogger.cpp, lib/lib.pri, lib/path.cpp,
lib/path.h: Add Path class for path handling routines. In this initial commit the Path class contains two methods for
converting path separators. I want to move cppcheck path handling to
direction that we internally have paths with / separator. And
convert from/to native separators when needed.
2010-07-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1730 (False
negative in 'variable not initialized in ctor')
2010-07-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h: Fixed #1875
(CheckClass::getVarList: simplify function use)
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Update translation files.
2010-07-17 Kimmo Varis <kimmov@gmail.com>
* : commit 6db365e6f7004872a6d1076ab6c73276af7c14f4 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jul 17 01:27:40 2010 +0300
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/logview.cpp, gui/logview.h, gui/mainwindow.cpp:
GUI: Remember log view size.
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.cpp: Fix comment.
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.cpp, lib/errorlogger.h: Remove unused
ErrorLogger::_writemsg() methods.
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* gui/logview.cpp, gui/logview.h, gui/logview.ui: GUI: Add
Clear-button to log view.
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* gui/logview.cpp, gui/logview.h, gui/logview.ui: GUI: Add
close-button to log view.
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/logview.cpp, gui/logview.h, gui/logview.ui,
gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/threadhandler.cpp, gui/threadresult.cpp, gui/threadresult.h:
GUI: Add simple log view. Adding a simple log view which shows log messages the core code
emits.
2010-07-16 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts, gui/mainwindow.cpp: Fixed #1853 (GUI: Allow
closing gui.exe while checking) The GUI now asks if user wants to stop the current checking and exit
the application.
2010-07-15 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Fixed #1375 (false negative: uninitialized member variables not
found in nested class constructors)
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* lib/check.h, lib/checkmemoryleak.cpp,
lib/checkunusedfunctions.cpp, lib/errorlogger.cpp,
lib/errorlogger.h, lib/preprocessor.cpp, lib/tokenize.cpp: Refactor
ErrorMessage constructor to take Severity::SeverityType. This removes lots of unneeded casting as everybody now uses the
Severity::SeverityType.
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* : Merge remote branch 'remotes/kimmo/severity-refactor'
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* gui/threadresult.cpp: GUI: Fix compile after Severity changes.
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.h: Add debug-severity to Severity::SeverityType.
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.h: Make Severity::none to match and output empty
string.
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* lib/errorlogger.cpp, lib/errorlogger.h, lib/preprocessor.cpp:
Refactor ErrorMessage's severity to Severity::SeverityType.
2010-07-14 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp,
test/testconstructors.cpp: CheckClass: Improvements and refactorings
for constructors and variables checking
2010-07-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1851 (false
positive: Member variable not initialized int ctor)
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
lib/cppcheck.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
test/testcppcheck.cpp, test/testsuite.cpp: Rename
ErrorMessage::toText() to ErrorMessage::toString().
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* lib/check.h, lib/checkmemoryleak.cpp,
lib/checkunusedfunctions.cpp, lib/errorlogger.h: Rename
Severity::stringify() to Severity::toString().
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* lib/check.h, lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/errorlogger.h: Rename Severity::e to Severity::SeverityType.
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj: Add cppcheckexecutor.h to VS project.
2010-07-14 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.h, gui/main.cpp, gui/resultsview.cpp,
gui/resultsview.h, gui/threadhandler.cpp, gui/threadresult.cpp,
gui/threadresult.h: GUI: Sent ErrorItem with Error -signal. This commit modifies and registers ErrorItem as proper metatype so
it can be used with Qt signals. Then sending Error-signals is
refactored so that ErrorItem instances are sent instead of several
different arguments that already contained couple of lists.
2010-07-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1850 (An access to a nested std::map via a negative integer key is
reported as 'Array index out of bounds')
2010-07-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: gcc: fixed compiler warning (suggest
parantheses)
2010-07-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1844 (False positive:
invalid iterator when erase() is used in if-else (with continue))
2010-07-13 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: Added a chapter about the GUI
2010-07-13 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Update translation files.
2010-07-13 Kimmo Varis <kimmov@gmail.com>
* : commit b92f7b854a33954da4a1559767207aabc2ab6111 Author: Kimmo
Varis <kimmov@gmail.com> Date: Tue Jul 13 12:46:28 2010 +0300
2010-07-13 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Remove ; from the end of the
include/define strings in dialog.
2010-07-13 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Rename project file
related methods in mainwindow.
2010-07-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1846 (False
positive with -s: Variable hides typedef with same name)
2010-07-13 Daniel Marjamäki <danielm77@spray.se>
* : commit ab088bcec9a64155a5ae547680483520bc49de06 Author: Robert
Reif <reif@earthlink.net> Date: Tue Jul 13 08:01:57 2010 +0200
2010-07-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1847 (False
positive: Method using std::swap<>() can be declared const)
2010-07-13 Daniel Marjamäki <danielm77@spray.se>
* : commit 51beb6d01a0aca3982aa99ac5bd98fb210f65ede Author: Martin
Ettl <martin@martin.(none)> Date: Mon Jul 12 20:02:58 2010 +0200
2010-07-13 Kimmo Varis <kimmov@gmail.com>
* gui/project.cpp, gui/project.h: GUI: Add two new files I forgot to
add earlier.
2010-07-12 Daniel Marjamäki <danielm77@spray.se>
* gui/xmlreport.cpp: Fixed #1849 (GUI: failed to build gui)
2010-07-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Variable Id: fixed issue
with function call. Ticket: #1848
2010-07-12 Martin Ettl <martin@martin.(none)>
* gui/main.cpp: gui/main added spaces between template brackets
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts, gui/projectfiledialog.cpp: GUI: Show project
file's name in project file -dialog title.
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.h: GUI: Don't mention auto-allocated classes even
in comments.
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/mainwindow.cpp, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Add Project class to handle project
files and projects. This commit separates logic more from the GUI. The dialog class is
only responsible from showing the dialog and handling data in it.
Other related classes do the project file reading/saving/etc.
2010-07-12 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: better
handling of pointer aliasing. Ticket: #1729
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Disable opening XML report file when
checking files.
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/resultstree.cpp,
gui/xmlreport.cpp: GUI: Refactor linenumber in ErrorLine to unsigned
int.
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/threadresult.cpp: GUI: Ignore errors with "debug" severity. GUI doesn't know about "debug" severity. And it is not worth the
trouble to add new category everywhere (icons etc) just for internal
debug messages.
2010-07-12 Kimmo Varis <kimmov@gmail.com>
* lib/tokenize.cpp: Change the "information" error to "debug" error. There was one debugging error sent with "information" severity. That
confused the GUI that didn't know such severity. Change the severity
to "debug" so the meaning of the error is more clear.
2010-07-11 Kimmo Varis <kimmov@gmail.com>
* : commit 8a24435db2f2133f08483b9fb3de9c76100b3d71 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jul 11 16:33:49 2010 +0300
2010-07-11 Kimmo Varis <kimmov@gmail.com>
* : commit c9d63fa454e6954a0ca1215b1e9b9441c2a01817 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jul 11 16:20:19 2010 +0300
2010-07-11 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Ask file location
from user if not found. When loading report from XML there is no full paths so the file's
real path is not known and cppcheck cannot open it. So if the file
has no absolute path then we ask where the file is located from the
user.
2010-07-11 Kimmo Varis <kimmov@gmail.com>
* gui/report.cpp, gui/resultsview.cpp, gui/xmlreport.cpp,
gui/xmlreport.h: GUI: Add errors read from XML report to GUI.
2010-07-11 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Fix line numbers and filenames in
errors. When converting to use new ErrorItem and ErrorLine I made few
mistakes in how I handled the data. And for some reason there was
not even warnings about converting integers to QStrings.
2010-07-11 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.cpp, gui/erroritem.h, gui/gui.pro, gui/main.cpp:
GUI: Fix transporting errors. Need to register integer list as new metatype so that Qt's type
system knows how to use it. Adding also additional constructors for
the ErrorItem.
2010-07-10 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.h, gui/resultstree.cpp, gui/resultsview.cpp,
gui/resultsview.h, gui/threadhandler.cpp, gui/threadresult.cpp,
gui/threadresult.h, gui/xmlreport.cpp: GUI: Use integer list instead
of variant list for line numbers.
2010-07-10 Kimmo Varis <kimmov@gmail.com>
* gui/erroritem.h, gui/gui.pro, gui/report.h, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp: GUI: More refactoring to use
ErrorItem and ErrorLine.
2010-07-10 Kimmo Varis <kimmov@gmail.com>
* gui/csvreport.cpp, gui/csvreport.h, gui/report.h,
gui/resultstree.cpp, gui/txtreport.cpp, gui/txtreport.h,
gui/xmlreport.cpp, gui/xmlreport.h: GUI: Refactor error data passing
to use own class.
2010-07-10 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/report.cpp, gui/report.h, gui/resultsview.cpp,
gui/resultsview.h, gui/xmlreport.cpp, gui/xmlreport.h: GUI: Read
errors from report XML file. This commits adds new "Open XML" item to File-menu. Selecting this
menuitem allows user to select report file to open. When the file is
read the error data is printed to debug output. Later patches will
implement adding error data back to the GUI.
2010-07-10 Kimmo Varis <kimmov@gmail.com>
* gui/xmlreport.cpp, gui/xmlreport.h: GUI: Refactoring xmlreport to
use pointer to stream writing class.
2010-07-10 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: debug mode
2010-07-10 Daniel Marjamäki <danielm77@spray.se>
* Makefile: 1.44: updated Makefile for release
2010-07-10 Daniel Marjamäki <danielm77@spray.se>
* Changelog: Changelog: updated for release
2010-07-10 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.44: updated version information
2010-07-10 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: Manual: Better description of -D. As suggested
by kwin. Ticket #1212
2010-07-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/settings.cpp, lib/settings.h, test/testsettings.cpp:
Unit Testing: Test that suppressions work
2010-07-09 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp: Fixed #1836 (--suppresions file.txt fails due to
wrong line edings)
2010-07-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1834 (False positive:
invalid iterator when erase() is used in if-else)
2010-07-09 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp: Settings: added '#include <cctype>'
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Update translation files.
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.ui: GUI: Set buddies in Project file -dialog.
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/projectfiledialog.cpp: GUI: Don't write empty elements to
project file.
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp, gui/projectfile.h, gui/projectfiledialog.cpp:
GUI: Improve error handling for reading/writing project file.
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/projectfiledialog.cpp, gui/projectfiledialog.h: GUI: Allow
creating new project file. Add new "New project file" item to File-menu and rename existing
"Project File" item to "Open Project File". Selecting new file opens
empty project file dialog. When the dialog is then closed the user
is asked to select a filename for the new project file.
2010-07-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp: GUI: Fix giving filename to project file
saving function.
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck: GUI: Revert testing changes from project file.
2010-07-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp, lib/checkunusedfunctions.h,
lib/cppcheck.cpp, lib/errorlogger.h, test/testunusedfunctions.cpp:
Unused functions: Refactoring
2010-07-08 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp: Suppressions: Validate given id
2010-07-08 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1835 (false
positive: uninitialized variable when using ?)
2010-07-08 Kimmo Varis <kimmov@kimmolaptop.(none)>
* gui/gui.pro: GUI: Remove custom lrelease target. Remove the custom lrelease target since it fails to work in Fedora
13. In Fedora 13 there is no 'lrelease' binary but 'lrelease-qt4'.
2010-07-08 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: fixed
false positive reported in #1729
2010-07-08 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: Better
aliasing support (Ticket #1729)
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.txt: GUI: Update project file spec. Remove autoalloc list from example and remove mentioning that there
is no GUI for project files.
2010-07-08 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck, gui/projectfile.cpp, gui/projectfile.h,
gui/projectfiledialog.cpp, gui/projectfiledialog.h: GUI: Implement
writing project file data to disk from dialog. This commit implements writing data in the project file dialog back
to project file.
2010-07-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Realloc: changed
the error message. I think it's better to mention realloc in the
message.
2010-07-07 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/projectfile.ui, gui/projectfiledialog.cpp,
gui/projectfiledialog.h: GUI: Add dialog for editing project file. This commit adds the dialog and code that reads the project file
data to the dialog. The changed data is not yet saved back to the
file.
2010-07-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/threadexecutor.cpp, cli/threadexecutor.h,
test/testthreadexecutor.cpp: Fixed #1650 (Cppcheck deadlock)
http://sourceforge.net/apps/trac/cppcheck/ticket/1650
2010-07-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testthreadexecutor.cpp: Add more unit tests
2010-07-07 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/threadhandler.cpp, gui/threadhandler.h:
Fixed #1831 (GUI: no progress bar when rechecking files) Need to initialize the checking also when rechecking.
2010-07-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1825 (*log(0)
error)
2010-07-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: only
warn about variables that have variable id > 0
2010-07-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1803 (False
positive: unused variable: this)
2010-07-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1729 (False
positive: variable is assigned a value that is never used (pointer
aliasing))
2010-07-07 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1829 (###
Internal error in Cppcheck. Please report it.)
2010-07-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1789 (false
positive: memory leak (reallocation in subfunction through
parameter))
2010-07-06 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1824 (false
positive: unitialised variable)
2010-07-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1827 (###
Internal error in Cppcheck. Please report it.)
2010-07-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1821
(simplifyTypedef: better typedef support)
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1823 (tokenize &&
wrong)
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Buffer
Overrun: Fixed false positive when variable is reassigned in called
function
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1820 (False
positive: memory leak (auto deallocated class))
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* gui/cppcheck_se.ts: GUI: updated swedish translation
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* gui/cppcheck_se.ts: GUI: updated swedish translation
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1817 (False
positive: Resource leak (casting))
2010-07-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1818 (False
positive: Dangerous usage of strncpy (copying a constant string))
2010-07-04 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/resultsview.cpp, gui/resultsview.h,
gui/threadhandler.cpp, gui/threadresult.cpp, gui/threadresult.h:
GUI: Refactoring progress/finished handling. Progress signal had also item count with it and then the handler
determined that check is ready when max count of progress was done.
Also progressbar was practically reset in every progress signal.
This was simply fragile code. After this patch progress signal has only the current progress
count. Total count of items is given when initializing the checking.
And there is separate function for handling check finishing. This also fixes the bug that progressbar was not hidden after
checking or when interrupting the checking.
2010-07-04 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Fixup TS translation files after they got
messed up earlier. The lupdate got confused of removing "Show security errors" and
there being existing string "Show style errors". lupdate thought the
"Show style errors" was a new version ("similar enough") of "Show
security errors" string instead of new string to translate. Or
actually existing translated string. So many translations got "Show
style errors" translated by earlier translation of "Show security
errors". This commit fixes the mess by manually removing "Show security
errors" references and restoring correct translations of "Show style
errors" from earlier file versions. Good lesson to learn about lupdate behavior.
2010-07-04 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck, gui/mainwindow.cpp, gui/projectfile.cpp,
gui/projectfile.h: GUI: Remove code for automatic deallocated
classes. Project file code still read the list of automatically deallocated
classes from project file. That feature hasn't been supported in few
last releases.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui: GUI: Change UI file to LF EOLs. In previous commit I accidentally committed the UI file with CRLF
EOLs.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h:
GUI: Refactoring toolbar member names to be more consistent.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: GUI: Update translation files.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h:
GUI: Add View-menu item for showing/hiding Categories-toolbar.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts, gui/main.ui: GUI: Move menuitem to hide/show
main toolbar to own submenu.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts, gui/gui.qrc, gui/main.ui: GUI: Add new toolbar
for error/warning categories. This commit adds new toolbar to the GUI for fast and easy switching
of different warning//error categories. The icons are currently just
placeholders until more descriptive icons are created.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/main.ui, gui/mainwindow.cpp: GUI: Rename main toolbar in code.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/cppcheck_de.ts, gui/cppcheck_en.ts,
gui/cppcheck_fi.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/main.ui,
gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp: GUI:
Remove remains of "possible error".
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts, gui/main.ui: GUI: Remove "Show security errors"
action. There was no code using this, just GUI action for it.
2010-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/cppcheck_de.ts, gui/cppcheck_en.ts,
gui/cppcheck_fi.ts, gui/cppcheck_nl.ts, gui/cppcheck_pl.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/main.ui,
gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp: GUI:
Remove remains of "all style". Earlier "all style" was just removed as menu item but all the code
related was left in place. This commit actually removes the now
unneeded code.
2010-07-02 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1821
(simplifyTypedef: better typedef support)
2010-06-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1790
(mismatching allocation/deallocation false positive)
2010-06-30 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#157 (Forgetting to put a break in a switch statement)
2010-06-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1815 (False
positive: uninitialized variable when using ? operator)
2010-06-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1816 (Tokenizer: remove restrict keyword)
2010-06-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Class checking: Fixed FP
for static arrays (not initialized in constructor)
2010-06-29 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1808 (false
positive: uninitialized variable with multiple assignment)
2010-06-28 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: MSI Installer: Fix description text.
2010-06-28 Kimmo Varis <kimmov@gmail.com>
* : commit 914891f247dee27826b9ad0ca65c3ece364a8f8f Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Jun 28 20:47:00 2010 +0300
2010-06-28 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: --author=Robert
Reif <reif@earthlink.net> Fixed #1814 (false positive: Variable hides typedef with same name)
2010-06-28 Kimmo Varis <kimmov@gmail.com>
* win_installer/modpath.iss, win_installer/readme_InnoSetup.txt:
Remove remaining Innosetup installer files. Innosetup installer was removed earlier but some files related to it
were not removed.
2010-06-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1809 (false
positive: uninitialized variable with nested if)
2010-06-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1811 (false
positive: Uninitialized variable)
2010-06-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1808 (false
positive: uninitialized variable with multiple assignment)
2010-06-25 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Unit Testing: Added TODO test case for
uninitialized member variable in operator=. Ticket: #1813
2010-06-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testunusedvar.cpp: Fixed #1813 (false
negative: Member variable not assigned a value in operator=)
2010-06-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1495 (False -s
positive: Member variable not assigned a value in operator=)
2010-06-24 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1812 (false
negative: functionVariableUsage doesn't support static variables)
2010-06-24 firewave <oliverst@online.de>
* lib/checkclass.cpp: Avoid Visual Studio warnings about constant
expressions
2010-06-23 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1732 (False
positive: Variable not assigned a value (pointer to pointer))
2010-06-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1810 (False
positive: Variable 'separator' is assigned a value that is never
used)
2010-06-22 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1807 (false
positive: Variable is not assigned a value (casting function
parameters))
2010-06-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1800 (false
positive: memory leak when ptr used as map key)
2010-06-21 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1799 (false
positive: Variable is assigned a value that is never used)
2010-06-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Refactoring: Removed redundant checks
2010-06-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Refactoring: Reduced copy/pasted code
2010-06-20 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Reduce copy/pasted code
2010-06-20 Martin Ettl <martin@martin.(none)>
* test/testdangerousfunctions.cpp: added testcases for testing
dangerous functions: mktemp
2010-06-19 Nicolás Alvarez <nicolas.alvarez@gmail.com>
* lib/preprocessor.cpp: Change size-t to std::string::size_type.
2010-06-19 Nicolás Alvarez <nicolas.alvarez@gmail.com>
* lib/preprocessor.cpp: Fix build error on 64-bit systems.
2010-06-11 Nicolás Alvarez <nicolas.alvarez@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fix typos in sizeofsizeof
error message.
2010-06-19 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1795 (false
positive: nullpointer dereference (needs to improve
Tokenizer::simplifyKnownVariables))
2010-06-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: Fixed #1633 (tokenizer:
simplifyKnownVariable: improved handling of arithmetic)
2010-06-19 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1802
(Preprocessor: macros are expanded wrong)
2010-06-19 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Refactoring. Broke out code
that parses out the parameters from code.
2010-06-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Borland C++: Fixed compiler errors.
When using 'a?b:c', Borland requires that b and c are the same type
2010-06-19 Daniel Marjamäki <danielm77@spray.se>
* cppcheck.cbproj, testrunner.cbproj: Borland C++: Updated project
files
2010-06-18 Robert Reif <reif@earthlink.net>
* test/testunusedvar.cpp: Refactoring testunusedvariables. This
fixes #1804.
2010-06-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1801
(simplifyTypedef: duplicate typedefs not handled properly)
2010-06-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, test/testthreadexecutor.cpp, tools/dmake.cpp: Added test
case deadlock_with_many_errors() for ticket #1650
http://sourceforge.net/apps/trac/cppcheck/ticket/1650 The test case
is currently commented out, because it would cause tests to hang
also.
2010-06-17 firewave <oliverst@online.de>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, lib/lib.vcproj, lib/lib.vcxproj,
lib/lib.vcxproj.filters, test/test.vcproj, test/test.vcxproj,
test/test.vcxproj.filters: Removed obsolete checkheaders from Visual
Studio projects
2010-06-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1801
(Segmentation fault while scanning Qt's qcups.cpp)
2010-06-16 Leandro Lisboa Penz <llpenz@gmail.com>
* test/testmemleak.cpp: Ticket #1789 is not really fixed; added
TODO.
2010-06-16 Leandro Lisboa Penz <llpenz@gmail.com>
* test/testmemleak.cpp: Improved test of pointer argument realloc.
2010-06-16 Leandro Lisboa Penz <llpenz@gmail.com>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1789 (false positive: memory leak
(reallocation in subfunction through parameter)) Detecting reallocations in the other function.
2010-06-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #853 (False
positive: memory leak for member variable with unknown function)
2010-06-16 Robert Reif <reif@earthlink.net>
* lib/token.cpp, lib/tokenize.cpp, test/testunusedvar.cpp: variable
usage: fix false positives when __attribute__ is used. Ticket: #1792
2010-06-16 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: simplify the alias
handling in the checking of variable usage. Ticket: #1729
2010-06-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1798
(structure templates)
2010-06-15 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp: Applied review suggestions for Ticket #920
2010-06-15 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1545 (new check: usage
of iterator pointing to invalid memory after reserve)
2010-06-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #887 (Tokenizer:
Simplify variable value after loop)
2010-06-15 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checkheaders.cpp, lib/checkheaders.h, lib/lib.pri:
removed the deprecated checkheaders
2010-06-14 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#920 (new style check: find empty catch blocks)
2010-06-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cli/threadexecutor.cpp, cli/threadexecutor.h,
cppcheck.cbp, test/testthreadexecutor.cpp: Add
testthreadexecutor.cpp
2010-06-14 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/testunusedvar.cpp: Fixed #1792 (false positive: Variable 'test'
is assigned a value that is never used)
2010-06-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: Fixed #1776 (False Negative: Unitialized
array)
2010-06-14 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/checkbufferoverrun.cpp, lib/checkother.h,
lib/executionpath.h, lib/token.h: doxygen: fixed error messages
given by doxygen
2010-06-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: more
specific bailouts to reduce false negatives
2010-06-13 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: Added testcase for #1557 (false positive:
memory leak)
2010-06-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1783 (false
positive: uninitalized variable in constructor/operator=, when
calling overloaded functions)
2010-06-13 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1718 (Tokenizer
add close braces to for loop at wrong place when if-else presents
inside)
2010-06-13 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp, lib/tokenize.cpp,
test/testbufferoverrun.cpp: Fixed #1787 (false negative: out of
bounds in derived class)
2010-06-12 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1510 (false
positive '(possible error) Memory leak' when 'a = b = new ...;
delete a' (but not b))
2010-06-12 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: reverted 'added a todo testcase for ticket
#1788'
2010-06-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1788
(Tokenizer: template destructor is lost)
2010-06-11 Martin Ettl <martin@martin.(none)>
* test/testmemleak.cpp: added a few testcases for checking memory
leaks in classes
2010-06-11 Martin Ettl <martin@martin.(none)>
* test/testmemleak.cpp: added a todo testcase for ticket #1788
2010-06-10 Martin Ettl <martin@martin.(none)>
* test/testmemleak.cpp: added todo-testcase for ticket #1401
2010-06-10 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1784 (false
positive: Variable is not assigned a value)
2010-06-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1782
((error) ### Internal error in Cppcheck. Please report it.)
2010-06-09 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1781 (false
positive: uninitialized variable when using asm statement in macro)
2010-06-09 Martin Ettl <martin@martin.(none)>
* test/testother.cpp: added a todo testcase for ticket 1778
2010-06-08 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: read
variable when using syntax '..=*(p);'
2010-06-07 Martin Ettl <martin@martin.(none)>
* AUTHORS: added Martin Ettl to authors list
2010-06-06 Robert Reif <reif@earthlink.net>
* test/testunusedvar.cpp: Variable usage: Added TODO testcases for
handling pointer alias. Ticket: #1729
2010-06-06 Martin Ettl <martin@martin.(none)>
* test/testbufferoverrun.cpp: added TODO_TESTCASE for ticket 1734:
Array index out of bounds
2010-06-06 Martin Ettl <martin@martin.(none)>
* test/testclass.cpp: added a TODO testcase for ticket 1724
2010-06-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1726 (False
negative: null pointer dereference in switch block)
2010-06-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
skipping function call inside allocation
2010-06-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Added
allocation function 'g_strdup_printf'
2010-06-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1722 (Member
variable initialized in call to base class constructor)
2010-06-05 Martin Ettl <martin@martin.(none)>
* lib/checkclass.cpp, test/testclass.cpp: applied patch from
php-coder from ticket 1724; removed TODO_TESTCASES;
2010-06-05 Daniel Marjamäki <danielm77@spray.se>
* man/cppcheck.1.xml: man: updated the cppcheck.1.xml file.
2010-06-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Code coverage: Removed unused code
2010-06-05 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1725 (segfault
in ExecutionPath::bailOutVar (probably caused by #1721 fix))
2010-06-04 Leandro Lisboa Penz <llpenz@gmail.com>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #73 (memory leaks not found when calling
a function that returns allocated memory through a parameter)
2010-06-03 Zachary Blair <zack_blair@hotmail.com>
* AUTHORS: Added Zachary Blair to the AUTHORS file
2010-06-03 Zachary Blair <zack_blair@hotmail.com>
* lib/checkbufferoverrun.cpp: Applied review suggestions for Ticket
#568
2010-06-04 Guillaume Miossec <guillaume.miossec@gmail.com>
* gui/cppcheck_fr.ts: Added french translation
2010-06-03 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1721 (False
negative: uninitialized variable in switch block)
2010-06-03 Martin Ettl <martin@martin.(none)>
* test/testclass.cpp: run astyle
2010-06-03 Martin Ettl <martin@martin.(none)>
* test/testclass.cpp: removed a wrong const declaration
2010-06-03 Martin Ettl <martin@martin.(none)>
* test/testclass.cpp: added a testcase and todo testcases for ticket
#1724
2010-06-03 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, lib/tokenize.cpp, test/testtokenize.cpp,
test/testunusedvar.cpp: Fixed #1723 (Variable assigned value which
is never used but is thrown)
2010-06-02 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: updated --help output. The --enable is used to
enable additional checks.
2010-06-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1720
(segmentation fault of cppcheck)
2010-06-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: astyle formatting
2010-06-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: CheckOther::nullConstantDereference: Fixed
cppcheck warning message - tok may become null
2010-06-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Refactoring of
CheckOther::nullConstantDereference
2010-06-01 Zachary Blair <zack_blair@hotmail.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #568 (string functions with
command line arguments may overflow buffer)
2010-06-01 Nicolás Alvarez <nicolas.alvarez@gmail.com>
* generate_coverage_report: coverage report script: Extract only
relevant data from the .info file. Only files in the current directory are kept. This gets rid of
standard C++ library headers from the coverage report.
2010-06-01 Nicolás Alvarez <nicolas.alvarez@gmail.com>
* generate_coverage_report: coverage report script: Quit immediately
on errors, but don't consider missing coverage_report dir when
deleting it as an error
2010-06-01 Daniel Marjamäki <danielm77@spray.se>
* test/testunusedvar.cpp: Added unit test for ticket #1720
2010-05-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1719 (False
negative: memory leak (fgets in condition))
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Fixed
bug in CheckMemoryLeak::functionReturnType
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1717 (False
positive: Resource leak with while)
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: simplify loops that continue while errno is EINTR
2010-05-30 firewave <oliverst@online.de>
* lib/checkother.h: Fixed Visual Studio 2010 warning
2010-05-30 firewave <oliverst@online.de>
* .gitignore: Added *.opensdf to ignore list
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
fixed false negative when using uninitialized variable inside malloc
call
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
better handling when uninitialized variables are used in function
calls
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: ExecutionPath: Better
handling of 'FOREACH (..) {}'
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: ExecutionPath: better
handling of 'FOREACH(..){..}'
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: Refactoring uninitialized variables (checking
variable declarations)
2010-05-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
better handling of struct variables
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1716 (Wrong
reporting of leak with close() in a while loop condition)
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: small
fixes. add checking of 'g_fopen'. don't let 'fclose' calls be
interpreted as 'callfunc'
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1716 (Wrong
reporting of leak with close() in a while loop condition)
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1715 (switch
with fallthrough and 'return' confuses cppcheck)
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1714 (Wrong
precedence for shift operators when simplifying calculations?)
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
enabled the leaks checking when members are not deallocated in the
destructor. This checking was previously an --all check so there
could be false positives.
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: astyle
formatting
2010-05-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: the virtual destructor
error message needs to be restricted. marked the checking as
inconclusive for now.
2010-05-28 Zachary Blair <zack_blair@hotmail.com>
* : commit 1a25183e8fb5c47c24c6c507e7fad3a0e63fbc28 Author: Robert
Reif <reif@earthlink.net> Date: Sat May 29 07:52:06 2010 +0200
2010-05-28 Zachary Blair <zack_blair@hotmail.com>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #818
(Detect sprintf buffer overrun with struct members)
2010-05-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1713 (remove
Microsoft variants of inline)
2010-05-28 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1671
(simplifyTypedef: support for more typedefs)
2010-05-27 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1712 (False
negative: dereferencing uninitialized pointer)
2010-05-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#1711 (Wrong typedef name shown when struct declared with
__attribute__)
2010-05-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1671
(simplifyTypedef: support for more typedefs)
2010-05-26 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1709 (char
buffer that is only accessed with pointers is marker not assigned)
2010-05-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: astyle
formatting
2010-05-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1704 (false negative: null pointer dereference)
2010-05-26 Zachary Blair <zack_blair@hotmail.com>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #168 (buffer overflow: not enough
room for the null terminator)
2010-05-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1671
(simplifyTypedef: support for more typedefs)
2010-05-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1708 (False
positive for const)
2010-05-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1707 (false
positive: Memory leak)
2010-05-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Removed TODO
2010-05-23 Daniel Marjamäki <danielm77@spray.se>
* test/testclass.cpp: Unit Testing: Added a few more test cases
related to ticket #1700
2010-05-23 Daniel Marjamäki <danielm77@spray.se>
* test/testclass.cpp: Unit Testing: Added test case for ticket 1700
2010-05-23 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: Removed the Tokenizer::simplifyNamespaces. Ticket: #1700
2010-05-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1671
(simplifyTypedef: support for more typedefs)
2010-05-23 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: false positive:
Variable is assigned a value that is never used
2010-05-21 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/cppcheck.h: 2 pass checking: broke out
Cppcheck::analyseFile. To be used for tests
2010-05-21 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/checkother.cpp, lib/checkother.h,
lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h,
test/testother.cpp: Added some multipass checking for the
uninitialized variables. It is still experimental. You can activate
it with the '--test-2-pass' switch. Some more refactorings are
needed to make it truly usable, the main thing is to make it thread
safe.
2010-05-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: fixed gcc compiler warnings (comparing float
values)
2010-05-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed gcc compiler warning
2010-05-21 Robert Reif <reif@earthlink.net>
* lib/preprocessor.cpp: Fixed #1698 (Add define support to GUI)
2010-05-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: give dead pointer a value
2010-05-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1699 (False
positive: The function '...' can be const)
2010-05-20 Robert Reif <reif@earthlink.net>
* gui/mainwindow.cpp, gui/projectfile.cpp, gui/projectfile.h,
gui/projectfile.txt: Fixed #1698 (Add define support to GUI)
2010-05-20 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: #1697 (false positive: The
function can be const)
2010-05-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1695 (Ticket #1614 is broken using latest from git)
2010-05-18 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp: printchecks: better explanation of its
purpose. I call it from gdb when I debug ExecutionPaths.
2010-05-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: astyle formatting
2010-05-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1646 (False
positive: array access after return cannot have default loop value)
2010-05-18 firewave <oliverst@online.de>
* lib/checkother.cpp, lib/executionpath.cpp: Avoid some Visual
Studio warnings
2010-05-18 firewave <oliverst@online.de>
* .gitignore: Added ipch output folder to ignore list
2010-05-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1691 (False
positive: Function parameter 'x' is passed by value. It could be
passed by reference instead.)
2010-05-17 Zachary Blair <zack_blair@hotmail.com>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h, lib/tokenize.cpp,
test/testmemleak.cpp: Fixed #1649 (add a warning for potential
memory leaks when using realloc)
2010-05-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1685
(segmentation fault of cppcheck)
2010-05-17 Daniel Marjamäki <danielm77@spray.se>
* gui/mainwindow.cpp: Fixed #1689 (failed to build gui)
2010-05-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1673
(Tokenizer::simplifyTypedef causes segfault for boost library)
2010-05-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: astyle
formatting
2010-05-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Tokenizer: it is bad to do:
'tok->previous()->deleteThis()'
2010-05-17 Daniel Marjamäki <danielm77@spray.se>
* test/test.vcproj: Visual Studio 2008: Updated test project
2010-05-17 Daniel Marjamäki <danielm77@spray.se>
* test/testcppcheck.cpp: asd
2010-05-16 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1418 (false negative: buffer access out of bounds)
2010-05-16 Erik Lax <erik@datahack.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1683 (false
positive: The function can be const)
2010-05-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1684 (false
positive: buffer access out of bounds when using extern variable
declaration)
2010-05-16 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/errorlogger.h: Refactoring: Removed
'possibleError'
2010-05-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Refactoring: Removed possibleError messages
from CheckMemoryLeaks
2010-05-16 Erik Lax <erik@datahack.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1688
(Tokenizer::simplifyKnownVariables and pointer assignments)
2010-05-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Refactoring: Removed 'possible error'
message about cin
2010-05-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Refactoring: Removed some inconclusive
checking in CheckBufferOverrun
2010-05-16 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/checkclass.cpp, lib/checkclass.h,
lib/checkother.cpp, lib/checkother.h, lib/checkstl.cpp,
lib/errorlogger.h, test/testclass.cpp, test/testdivision.cpp,
test/testother.cpp, test/teststl.cpp: Refactoring: Removed
Severity::possibleStyle
2010-05-16 Daniel Marjamki <danielm77@spray.se>
* lib/cppcheck.cpp, man/manual.docbook: doc: updated docs about -D
command line flag
2010-05-16 Daniel Marjamki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/settings.h, test/testcppcheck.cpp: Fixed
#1212 (Allow giving used defines in command line)
2010-05-16 Daniel Marjamki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, lib/checkmemoryleak.cpp,
lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h,
test/testexceptionsafety.cpp, test/testmemleak.cpp: Code cleanup:
Removed autodealloc handling
2010-05-15 Daniel Marjamki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1678 (false
positive: Member variable not initialized in the constructor, for
arrays of undefined type)
2010-05-15 Erik Lax <erik@datahack.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1679 (Bad iterators
checks fails to detect bugs with indent levels)
2010-05-15 Erik Lax <erik@datahack.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Fixed #1680
(Bad iterators checks fail to detect invalidation of iterator for
deletion by value)
2010-05-15 Daniel Marjamki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1681 (false negative: memory leak in
operator =)
2010-05-15 Daniel Marjamki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Added
test CheckOther::sizeofsizeof. Inspired by #1682
2010-05-14 Daniel Marjamki <danielm77@spray.se>
* lib/mathlib.cpp, test/testsuite.cpp: astyle formatting
2010-05-14 Daniel Marjamki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1682
(Internal error)
2010-05-13 Konrad Windszus <konrad_w@gmx.de>
* Makefile, lib/checkstl.cpp, lib/cppcheck.cpp,
test/testcppcheck.cpp, test/testsuite.cpp, test/testsuite.h,
test/tinyxml/changes.txt, test/tinyxml/tinystr.cpp,
test/tinyxml/tinystr.h, test/tinyxml/tinyxml.cpp,
test/tinyxml/tinyxml.h, test/tinyxml/tinyxmlerror.cpp,
test/tinyxml/tinyxmlparser.cpp: Ticket #1318: Make sure error ids
are unique
2010-05-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1677 (False positive: (style) Variable 'xxx' is assigned a
value that is never used)
2010-05-12 Martin Ettl <martin@martin.(none)>
* lib/mathlib.cpp, test/testmathlib.cpp: mathlib:isInt() now handles
calles of 'u' and 'l' correctly; testcases added
2010-05-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1671
(simplifyTypedef: support for more typedefs)
2010-05-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2010-05-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Fixed #1669 (Still seeing 'possible style' warnings in 1.43)
2010-05-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1665 ('If
you see this, there is a bug': Token::Match('%var% ( %varid% [,)]',
0))
2010-05-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Better handling of
function pointer typedef
2010-05-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1666
(simplifyTypedef: add support for typedefs of functions)
2010-05-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1648
(mismatch allocate and deallocate calls.)
2010-05-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1662 (false
positive: Data is allocated but not initialized, when using sprintf)
2010-05-09 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1660 (false
positive: Variable is assigned a value that is never used, when
using cast)
2010-05-09 Robert Reif <reif@earthlink.net>
* test/testunusedvar.cpp: Added unit test for #5
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1656 (dangerous usage
of erase not detected: for (; it != it2; ++it) ints.erase(it);)
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1658 (false
negative: uninitialized pointer usage)
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: more details about dmake
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Set debug mode
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Set release mode
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* Changelog, createrelease: Changelog: Updated for release
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: dmake: updated compiler flags in release mode.
only -Wall.
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: mention that the Makefile should be
updated
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: cli help: show the flags in alphabetical order
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: Updated version
to 1.43
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: refactoring: spell checking comments
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: updated error message to match latest
versions
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme.txt: mention the online manual
2010-05-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Refactoring: Changed
'possible style' to 'style'
2010-05-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1654 (False
positive: Memory leak with: ( delete ( p ) , ( p ) = 0 );)
2010-05-06 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#959: (new check: wrong usage of fflush()) Simplified and set
severity to error
2010-05-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1651
(Tokenizer::setVarId wrong handling of return statement)
2010-05-05 Daniel Marjamäki <danielm77@spray.se>
* test/testunusedvar.cpp: Robert Reif <reif@earthlink.net> refactoring chained assignments
2010-05-05 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1646 (False
positive: array access after return cannot have default loop value)
2010-05-05 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1647 (False
positive: buffer is not assigned value (assigned through alias))
2010-05-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/tokenize.cpp, test/testtokenize.cpp: Fixed
#1646 (False positive: array access after return cannot have default
loop value)
2010-05-04 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1643 (Variable
usage (pointer is assigned but never used))
2010-05-04 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1639 (False
positive: unused variable value (pointer aliasing))
2010-05-03 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#959 (new check: wrong usage of fflush())
2010-05-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1642
(Tokenizer::simplifyKnownVariables: simplify after loop)
2010-05-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp:
refactoring: changed the severity for strncatUsage from
possibleError to style
2010-05-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp:
refactoring: Use style severity instead of possible error for the
'The size argument is given as a char constant'
2010-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: added testcase for 'if
(str.find(%any%)) ..'
2010-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: refactoring: enable the
'suspicious pointer subtraction' checking
2010-05-01 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1640 (False
negative: Unused value (variable is assigned but never read))
2010-05-01 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Updated with dmake
2010-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Fixed Cppcheck warning about possible
null pointer dereference
2010-05-01 Daniel Marjamäki <danielm77@spray.se>
* test/testunusedvar.cpp: astyle formatting
2010-05-01 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, lib/tokenize.h, test/testunusedvar.cpp: Fixed
#1574 (chain assignments could be simplified) http://sourceforge.net/apps/trac/cppcheck/ticket/1574
2010-05-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1638
(Tokenizer::simplifyKnownVariables: removing variable declaration)
2010-05-01 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Unit testing: Improved
test coverage for variable usage checking
2010-04-30 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1636 (Fix false
positive with strncpy termination check)
2010-04-30 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1622 (False
positive: buf is not assigned a value (pointer aliasing))
2010-04-30 Eric Sesterhenn <eric.sesterhenn@lsexperts.de>
* lib/checkbufferoverrun.cpp: Fixed #1636 (Fix false positive with
strncpy termination check)
2010-04-29 Eric Sesterhenn <eric.sesterhenn@lsexperts.de>
* lib/tokenize.cpp: Fixed #1634 (Null character not correctly
tokenized)
2010-04-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed #1631 (Tokenizer: remove register keyword)
2010-04-29 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1622 (False
positive: buf is not assigned a value (pointer aliasing))
2010-04-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1629 (False
negative: null pointer derefence not detected 'c[0] = 0')
2010-04-28 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, lib/executionpath.h, test/testother.cpp:
Fixed #1632 (false positive: unintialized variable)
2010-04-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1628 (false
negative: memory leak when using redundant braces)
2010-04-27 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Variable usage: Use
variable id instead of variable name to identify variable
2010-04-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h: Fixed #1626 ('Unusual pointer arithmetic' false
positive)
2010-04-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1627 (###### If you see this, there is a bug ###### -
Token::Match('%varid% [ %num% ]', 0))
2010-04-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #943
(Tokenizer: improve handling of pointer aliasing)
2010-04-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: astyle formatting
2010-04-25 Martin Ettl <martin@martin.(none)>
* : commit ec935178fc22d0f35e384c28346122c3614e6575 Author: Martin
Ettl <martin@martin.(none)> Date: Sun Apr 25 13:14:58 2010 +0200
2010-04-25 firewave <oliverst@online.de>
* lib/executionpath.h: Fixed GCC warning about initialization order
2010-04-25 firewave <oliverst@online.de>
* lib/checkother.cpp: Fixed Access Violation with --enable=style
when no tokens exist
2010-04-25 firewave <oliverst@online.de>
* lib/executionpath.cpp: Added missing include
2010-04-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp,
lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testother.cpp: ExecutionPath: Better handling of if
2010-04-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #948
(array index out of bound not detected 'a[i-1] = 0')
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1440 (false negative: memory leak
(function parameters))
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/tokenize.cpp, test/testbufferoverrun.cpp,
test/testsimplifytokens.cpp: Fixed #836 (buffer overrun: memmove)
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1146
(improve check: memory leak not detected (allocation in
subfunction))
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h: --errorlist : don't show inconclusive messages in the
output because those are disabled
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1571 ('C-style
pointer casting' should not be reported for C files)
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1616 (false positive - Upon exception there is a memory leak)
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Removed
the check for unreachable code. The g++ warning -Wunreachable-code
is recommended instead. This closes #1603 (break after a return or
goto should not be an error in a switch statement).
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* test/testunusedvar.cpp: Redundant assignment: Added TODO testcase
for detecting redundant assignment in inner scope
2010-04-24 Daniel Marjamäki <danielm77@spray.se>
* test/testunusedvar.cpp: unit testing: Added TODO test case for
unused variables when using pointer aliasing. Related with ticket
#1622
2010-04-24 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: variable usage:
refactoring the checking
2010-04-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: tokenizer improvements: remove calling
convention (#1619)
2010-04-23 Zachary Blair <zack_blair@hotmail.com>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1169 (improve
check: divsion by zero not detected when using the shift (>>)
operator)
2010-04-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* Cppcheck.xcodeproj/project.pbxproj,
cppcheck.xcodeproj/project.pbxproj: cppcheck.xcodeproj ->
Cppcheck.xcodeproj to avoid collision with tab completion in Linux
2010-04-23 Martin Ettl <martin@martin.(none)>
* test/testbufferoverrun.cpp: added further testcases to
multidimensional out of bounds unit test
2010-04-23 Martin Ettl <martin@martin.(none)>
* test/testbufferoverrun.cpp: update in todo testcase (line number
was wrong)
2010-04-23 Martin Ettl <martin@martin.(none)>
* : commit 572ae0c1b4389ade7ee6296119dc1499e4708a97 Author: Martin
Ettl <martin@martin.(none)> Date: Fri Apr 23 21:56:35 2010 +0200
2010-04-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.xcodeproj/project.pbxproj, project.pbxproj: renamed:
project.pbxproj -> cppcheck.xcodeproj/project.pbxproj
2010-04-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #819 (array index out of bounds
not detected for multidimension arrays)
2010-04-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1615 (False
positive - C-style pointer casting)
2010-04-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: astyle formatting
2010-04-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Cleanup CheckBufferOverrun
2010-04-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Refactoring: Improved the
checkFunctionCalls, warning when size argument is given through char
constant
2010-04-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Refactoring: Moved function call check
to checkFunctionCalls
2010-04-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/token.cpp,
test/testbufferoverrun.cpp: CheckBufferOverrun: Fixed false
positives caused by refactorings
2010-04-22 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1564 (CppCheck does not recognise redundant IF)
2010-04-21 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testsimplifytokens.cpp: Fixed #1619 (tokenizer: remove calling
convention)
2010-04-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: CheckBufferOverrun: simplify checking
of read|write problems
2010-04-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: CheckBufferOverrun: Don't give false
positives when reading from array with strncpy/strncat
2010-04-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: CheckBufferOverrun: Refactoring the
checking of function calls
2010-04-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Refactoring: CheckBufferOverrun
refactorings. split up the checkScope into two separate functions.
The ArrayInfo usage was improved. Also broke out for-loop handling
into separate functions.
2010-04-20 Zachary Blair <zack_blair@hotmail.com>
* lib/checkclass.cpp, lib/checkclass.h,
lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h,
lib/checkother.cpp, lib/checkother.h, lib/checkstl.cpp,
lib/checkstl.h, test/testcharvar.cpp, test/testclass.cpp,
test/testdangerousfunctions.cpp, test/testincompletestatement.cpp,
test/testother.cpp, test/testunusedvar.cpp: Fixed #855 (Refactoring:
move conditions into checks)
2010-04-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Change
"Array index -1 corresponds with 4294967295..." error message into
"Array index -1 is out of bounds"
2010-04-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testfilelister.cpp: fileLister_win32.h -> filelister_win32.h
2010-04-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1614 (negative array index issues in latest from git)
2010-04-19 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Unit Testing: Added TODO testcases for ticket
#1593 (false negative: the function can be declared as const)
2010-04-18 Daniel Marjamäki <danielm77@spray.se>
* runastyle.bat: runastyle.bat: updated astyle script
2010-04-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: Fix one compiler warning
2010-04-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 8eff4fcbba669191d151255d5e10eda2f14e9106 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sun Apr 18
21:07:21 2010 +0200
2010-04-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp: astyle fix
2010-04-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp: astyle formatting
2010-04-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Buffer Overrun: Broke out the checking
for negative array index
2010-04-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h: Refactoring:
Renamed ArrayInfo::type_size to ArrayInfo::element_size
2010-04-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Refactoring: Reusing the ArrayInfo in
CheckBufferOverrun
2010-04-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h:
BufferOverflow: Refactoring ArrayInfo
2010-04-18 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1602 (functions
defined in header outside of class cannot be const)
2010-04-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Buffer overruns: First change to detect
overruns in multidimensional arrays (#819)
2010-04-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1613 (False
-s positive: Template instantiation hides typedef with same name)
2010-04-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testclass.cpp: Fixed #1612 (false positive:
The function can be const)
2010-04-17 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Unit Testing: added assertions for
todo testcases to detect changes
2010-04-17 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1607 (false
positive: variable is assigned a value that is never used)
2010-04-17 Daniel Marjamäki <danielm77@spray.se>
* project.pbxproj: Xcode: Added Xcode project file
2010-04-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL: fixed
false negative when erasing invalidated iterator
2010-04-17 Daniel Marjamäki <danielm77@spray.se>
* test/testunusedvar.cpp: Unit Testing: Added assert for todo
testcase to catch changes.
2010-04-17 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: Unit Testing: Added assert for todo testcase to
catch changes.
2010-04-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Unused struct member:
Fixed false positives
2010-04-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/settings.cpp, lib/settings.h, test/testbufferoverrun.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testdangerousfunctions.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testpreprocessor.cpp, test/testsimplifytokens.cpp,
test/teststl.cpp, test/testtokenize.cpp: Refactoring: Refactoring
the Settings class
2010-04-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: Borland C++: Fixed compiler errors
2010-04-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testcppcheck.cpp: Add test cases for --template parsing
2010-04-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1600 (false positive:
After insert, the iterator 'aI' may be invalid)
2010-04-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/settings.cpp: Fix --template to work again
2010-04-16 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1605 (false
positive: uninitialized variable)
2010-04-16 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1607 (false
positive: variable is assigned a value that is never used)
2010-04-15 firewave <oliverst@online.de>
* lib/cppcheck.cpp, lib/preprocessor.cpp, lib/preprocessor.h: Fix
#1585 (--append doesn't work with TAB formating)
2010-04-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1595 (case
marks improperly tokenized with macro)
http://sourceforge.net/apps/trac/cppcheck/ticket/1595
2010-04-15 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
gui/aboutdialog.cpp, gui/applicationdialog.cpp,
gui/applicationlist.cpp, gui/checkthread.cpp, gui/csvreport.cpp,
gui/fileviewdialog.cpp, gui/mainwindow.cpp, gui/projectfile.cpp,
gui/report.cpp, gui/resultstree.cpp, gui/resultsview.cpp,
gui/settingsdialog.cpp, gui/threadhandler.cpp,
gui/translationhandler.cpp, gui/txtreport.cpp, gui/xmlreport.cpp,
lib/check.h, lib/checkautovariables.h, lib/checkbufferoverrun.cpp,
lib/checkbufferoverrun.h, lib/checkclass.h,
lib/checkdangerousfunctions.h, lib/checkexceptionsafety.h,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.h, lib/cppcheck.cpp, lib/preprocessor.cpp,
lib/settings.cpp, lib/token.cpp, lib/tokenize.cpp, runastyle,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
tools/extracttests.cpp: astyle: Update to astyle 1.24
2010-04-15 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #1596 ('Index out of bounds' false
positive)
2010-04-15 Robert Reif <reif@earthlink.net>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1253 (improve
check: uninitialized variable not found when using reference)
2010-04-15 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Another fix for #1601
(change simplifyInitVar to split declaration from initialization)
2010-04-15 Zachary Blair <zack_blair@hotmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp,
test/testsuite.cpp, test/testsuite.h: Fixed #1526 (Cppcheck checks
redundant configurations)
2010-04-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1588
(typedef struct incorrectly simplified)
2010-04-14 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#1601 (change simplifyInitVar to split declaration from
initialization)
2010-04-14 firewave <oliverst@online.de>
* .gitignore: Added *.sdf files (created by Vsiaul Studio 2010) to
ignore list
2010-04-14 firewave <oliverst@online.de>
* cli/cppcheck.vcproj, cli/cppcheck.vcxproj,
cli/cppcheck.vcxproj.filters, cppcheck.sln, test/test.vcproj,
test/test.vcxproj, test/test.vcxproj.filters: Moved shared files
back into executable projects - it caused the instances of the
checks to be optimized away
2010-04-14 firewave <oliverst@online.de>
* cli/cppcheck.vcxproj, cli/cppcheck.vcxproj.filters,
cppcheck_vs2010.sln, lib/lib.vcxproj, lib/lib.vcxproj.filters,
test/test.vcxproj, test/test.vcxproj.filters: Added Visual Studio
2010 soultion and project files
2010-04-14 firewave <oliverst@online.de>
* : commit e3e2ee35aa7a0d22bfddc2dedeb4e5e630a769c4 Author: firewave
<oliverst@online.de> Date: Wed Apr 14 12:01:45 2010 +0200
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testcppcheck.cpp: Add simple --showtime test case
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Fix compiler warning: cast truncates
constant value
2010-04-13 firewave <oliverst@online.de>
* : commit efd18e3d429a9ef9a22bd438dc18f1b8d66b0ed8 Author: firewave
<oliverst@online.de> Date: Tue Apr 13 22:22:44 2010 +0200
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix: sizeof(char*)
was not simplified correctly
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1599 (false
positive on if( (f = fopen("foo", "r")) == ((FILE*)NULL) ))
http://sourceforge.net/apps/trac/cppcheck/ticket/1599
2010-04-13 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: minor cleanup. we don't need to mention the
'--all' flag anymore.
2010-04-13 firewave <oliverst@online.de>
* cli/cppcheck.vcproj, cppcheck.sln, lib/lib.vcproj,
test/test.vcproj: Moved shared files to seperate lib project
2010-04-13 firewave <oliverst@online.de>
* cli/cppcheck.vcproj, test/test.vcproj: - cleaned up .vcproj files a bit - raised the warning level in test.vcproj to 4 to match
cppcheck.vcproj.
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h, cli/main.cpp,
cli/threadexecutor.cpp, cli/threadexecutor.h, gui/aboutdialog.cpp,
gui/aboutdialog.h, gui/applicationdialog.cpp,
gui/applicationdialog.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/checkthread.cpp, gui/checkthread.h,
gui/common.h, gui/csvreport.cpp, gui/csvreport.h,
gui/fileviewdialog.cpp, gui/fileviewdialog.h, gui/main.cpp,
gui/mainwindow.cpp, gui/mainwindow.h, gui/projectfile.cpp,
gui/projectfile.h, gui/report.cpp, gui/report.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, gui/threadhandler.h, gui/threadresult.cpp,
gui/threadresult.h, gui/translationhandler.cpp,
gui/translationhandler.h, gui/txtreport.cpp, gui/txtreport.h,
gui/xmlreport.cpp, gui/xmlreport.h, lib/check.h,
lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h,
lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkheaders.cpp, lib/checkheaders.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkunusedfunctions.cpp,
lib/checkunusedfunctions.h, lib/classinfo.h, lib/cppcheck.cpp,
lib/cppcheck.h, lib/errorlogger.cpp, lib/errorlogger.h,
lib/executionpath.cpp, lib/executionpath.h, lib/filelister.cpp,
lib/filelister.h, lib/filelister_unix.cpp, lib/filelister_unix.h,
lib/filelister_win32.cpp, lib/filelister_win32.h, lib/mathlib.cpp,
lib/mathlib.h, lib/preprocessor.cpp, lib/preprocessor.h,
lib/settings.cpp, lib/settings.h, lib/token.cpp, lib/token.h,
lib/tokenize.cpp, lib/tokenize.h, test/testautovariables.cpp,
test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdangerousfunctions.cpp,
test/testdivision.cpp, test/testexceptionsafety.cpp,
test/testfilelister.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsimplifytokens.cpp, test/teststl.cpp,
test/testsuite.cpp, test/testsuite.h, test/testtoken.cpp,
test/testtokenize.cpp, test/testunusedfunctions.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp,
tools/dmake.cpp: Update copyright year in all source files
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/filelister_unix.cpp, lib/filelister_unix.h,
lib/filelister_win32.cpp, lib/filelister_win32.h: Change some files
to UTF-8
2010-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp: Disable "Overall time" output when --showtime is
not used
2010-04-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: astyle formatting
2010-04-13 Zachary Blair <zack_blair@hotmail.com>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1530 (possible new check: strlen return value versus zero.)
2010-04-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkclass.h, lib/cppcheck.cpp,
lib/settings.h, lib/tokenize.cpp, test/testcppcheck.cpp: dos2unix
2010-04-13 firewave <oliverst@online.de>
* lib/checkbufferoverrun.cpp, lib/checkclass.h, lib/tokenize.cpp:
Fixed some VS2008 warnings
2010-04-13 firewave <oliverst@online.de>
* cli/cppcheck.vcproj: Removed some duplicated .cpp files from
"Header Files" in Visual Studio project file
2010-04-13 firewave <oliverst@online.de>
* test/testcppcheck.cpp: Added test cases for more command-line
options
2010-04-13 firewave <oliverst@online.de>
* lib/cppcheck.cpp, lib/settings.h: More --showtime updates: - removed "average" - added number of results, average processing time and overall time
to non-"file" output
2010-04-12 Oliver Stoeneberg <kidkat@users.sourceforge.net>
* lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h: showtime:
refactoring and improving. Added summary/file/top5/average options.
2010-04-12 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Revert "Optimization: Made Tokenizer::setVarId a
bit faster by temporarily assigning 'string id'. This means less
string comparisons are needed." This reverts commit 4b8080e425846513c2edae0b34b92d9804f524f4.
2010-04-12 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Unit Testing: Better unit testing of
Tokenizer::setVarId. Related to ticket #1592
2010-04-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1590
(False negative: Array index out of bounds: "0 <= i")
http://sourceforge.net/apps/trac/cppcheck/ticket/1590
2010-04-12 Oliver Stoeneberg <kidkat@users.sourceforge.net>
* lib/cppcheck.cpp: Fixed #1591 (Patch to increase --showtime
resolution)
2010-04-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1588 (typedef struct incorrectly simplified)
2010-04-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: More tests added to
test/testbufferoverrun.cpp
2010-04-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 9a4cbe0540118476d6497e5a9cf53ab5c7f8a94f Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Sun Apr 11 22:53:21
2010 +0300
2010-04-11 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Optimization: Made Tokenizer::setVarId a bit
faster by temporarily assigning 'string id'. This means less string
comparisons are needed.
2010-04-11 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1587 (Crash while processing file)
2010-04-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testcppcheck.cpp: Add some unit tests for command line
argument parsing
2010-04-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Enable -Wshadow in Makefile
2010-04-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkstl.cpp, lib/tokenize.cpp: Fix last of the -Wshadow
warnings.
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Fixed SIGABRT in new checking
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* Makefile, lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fixed #1190 (array index out of bounds
when index variable is assigned in a condition)
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Unit Testing: Added an ASSERT
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Refactoring: simplified test case
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* gui/main.ui, gui/mainwindow.cpp: gui: removed options for possible
error/style
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Cppcheck Help: Removed information about
--auto-dealloc because it is not relevant at the moment.
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: removed information about possible
errors. The inconclusive checks have been disabled. Removed section
about --auto-dealloc.. this section is not relevant at the moment.
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Cppcheck: Deprecated the command line options
-a, --all and --enable=possibleError
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkclass.cpp, lib/checkclass.h,
lib/checkmemoryleak.cpp, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.h, lib/errorlogger.h, lib/settings.cpp,
lib/settings.h, test/testbufferoverrun.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testdangerousfunctions.cpp,
test/testdivision.cpp, test/testincompletestatement.cpp,
test/testmemleak.cpp, test/testsimplifytokens.cpp, test/teststl.cpp:
Refactoring: Disable inconclusive checks. They can still be
activated for debugging/testing purposes
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1357 (problem in stl
insert method of set template)
2010-04-10 Zachary Blair <zack_blair@hotmail.com>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #779
(Tokenizer: delete register keyword everywhere)
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp: Refactoring: use more specific conditions
instead of std::isupper. Only the A-Z are interesting. This also
fixes compiler errors.
2010-04-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1134 (improve check: pointer access out of bounds not detected
(allocated with malloc))
2010-04-09 Martin Ettl <martin@martin.(none)>
* test/testunusedvar.cpp: ticket 1253 added testcases and one todo
2010-04-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cli/threadexecutor.cpp, lib/preprocessor.cpp, lib/preprocessor.h,
lib/token.cpp, lib/token.h, test/testcppcheck.cpp,
test/testmemleak.cpp, test/testsimplifytokens.cpp: Fix more -Wshadow
compile warnings
2010-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed some false
positives for unused struct members
2010-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1579 (False
positive: function can be const when return type is unknown)
2010-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1584 (False
positive: (static) Member variable not assigned a value in
operator=)
2010-04-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1581 (False
positives 'The scope of the variable x can be reduced')
2010-04-08 Martin Ettl <martin@martin.(none)>
* lib/checkmemoryleak.h, lib/cppcheck.cpp: reduced -Wshadow warnings
from gcc-4.4
2010-04-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1576 ('Index out of bounds' false positive)
2010-04-08 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #1537
('Unused private function' when using pointer to member function)
2010-04-08 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister.h: astyle formatting
2010-04-08 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1580
(unnamed anonymous struct can segfault)
2010-04-07 Martin Ettl <martin@martin.(none)>
* lib/filelister.h: fixed ticket 1578, class Filelister had no
virtual dtor
2010-04-07 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Unit testing: Testing handling of Borland C++
properties
2010-04-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fix some -Wshadow compile warnings
2010-04-06 Daniel Marjamäki <danielm77@spray.se>
* : commit 7caaee3739e85d3a577e1dba4deb07d9383b87d4 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Tue Apr 6 22:53:05
2010 +0300
2010-04-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testcppcheck.cpp, test/testpreprocessor.cpp,
test/testsuite.cpp: Add a few test cases for CppCheck::parseFromArgs
2010-04-06 Martin Ettl <martin@martin.(none)>
* test/testbufferoverrun.cpp: added TODO testcase for checking
fwrite() and fread() check for buffer overrun
2010-04-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkmemoryleak.cpp, lib/checkother.cpp:
Fix vs warnings. Apply patch from kidkat.
2010-04-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkunusedfunctions.h: Fix: warning C4138: '*/' found outside
of comment
2010-04-06 Robert Reif <reif@earthlink.net>
* test/testclass.cpp: Unit Testing: Better code coverage of the
operator= checking
2010-04-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: astyle fix
2010-04-06 Jens Bäckman <jens.backman@gmail.com>
* lib/checkmemoryleak.cpp: Fix a rare crash with oddly formatted
source files
2010-04-06 Martin Ettl <martin@martin.(none)>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fixed
ticket 997, now fread and fwrite checked for bufferoverrun
2010-04-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Fix line number in previously
committed unit test
2010-04-05 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Unit Testing: Added unit test for
untested code in CheckBufferOverrun. Using memset on struct.
2010-04-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Refactor
and fix "After a strncpy() the buffer should be zero-terminated"
checking,
2010-04-05 Martin Ettl <martin@martin.(none)>
* lib/checkother.cpp, test/testother.cpp: #ticket 1513: added sqrt()
support
2010-04-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: astyle fix
2010-04-05 Martin Ettl <martin@martin.(none)>
* : commit fe7c6aed9f441bc06bf16898be07df7f3ec11d71 Author: Martin
Ettl <martin@martin.(none)> Date: Mon Apr 5 20:07:53 2010 +0200
2010-04-05 Daniel Marjamäki <danielm77@spray.se>
* test/testbufferoverrun.cpp: Unit Testing: Buffer overruns when
using memchr/memset/memcpy/etc
2010-04-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, lib/mathlib.cpp: astyle fix
2010-04-05 Martin Ettl <martin@martin.(none)>
* lib/checkother.cpp, test/testother.cpp: #ticket 1513 added fmod()
support
2010-04-05 Martin Ettl <martin@martin.(none)>
* lib/checkother.cpp, lib/checkother.h, lib/mathlib.cpp,
test/testother.cpp: added atan2() check to ticket #1513
2010-04-05 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated the Makefile with dmake
2010-04-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Cleanup: Removed unused code from
CheckMemoryLeak
2010-04-05 Daniel Marjamäki <danielm77@spray.se>
* test/testtoken.cpp: Refactoring: Renamed TestTOKEN to TestToken
2010-04-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
better handling of 'a[b[..]]' when b is not initialized
2010-03-16 Kimmo Varis <kimmov@gmail.com>
* lib/filelister_win32.cpp: Improve ifdeffing.
2010-04-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
Detect reading uninitialized data through array/pointer variable
2010-04-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkunusedfunctions.cpp, lib/checkunusedfunctions.h,
lib/cppcheck.cpp, lib/tokenize.cpp: Fix #1322 (Add cppcheckError and
unusedFunction to --errorlist, give out internal errors in xml)
http://sourceforge.net/apps/trac/cppcheck/ticket/1322
2010-04-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: Refactoring unit testing
2010-04-04 Daniel Marjamäki <danielm77@spray.se>
* test/testtokenize.cpp: Added TODO testcase for ticket #1169
(improve check: divsion by zero not detected when using the shift
(>>) operator)
2010-04-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/executionpath.cpp, lib/executionpath.h, test/testother.cpp:
Refactoring: some refactoring of ExecutionPath. The foundError was
removed. No automatic bailout of all checks are made when errors are
found.
2010-04-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1566 (false negative: uninitialized variable)
2010-04-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testother.cpp, test/testtokenize.cpp:
Tokenizer: tokenize 1E-2 into a single token
2010-04-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/cppcheck.cpp, lib/cppcheck.h,
test/testcppcheck.cpp: Fix segmentation fault when calling with
--errorlist and add a testcase for it.
2010-04-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Cleanup: Removed redundant simplification
in checkmemoryleak.cpp
2010-04-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: Cleanup:
Removed unfinnished checking of std::find
2010-04-03 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.h: astyle formatting
2010-04-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* webreport.sh: webreport: detect duplicate code
2010-04-03 Kimmo Varis <kimmov@gmail.com>
* cli/cli.pro: Update CLI Qmake project file compiler flags.
2010-04-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h: Refactoring: Moved copy/paste
code in Tokenizer
2010-04-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h: Refactoring: broke out
copy/pasted code
2010-04-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Borland C++: Fixed compiler error
2010-04-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/mathlib.cpp: astyle fix
2010-04-02 Martin Ettl <martin@martin.(none)>
* lib/mathlib.cpp, lib/mathlib.h, test/testmathlib.cpp: added a
helper function to mathlib::isNullValue(), it checks wheter a string
has a null representation or not and returns a boolian result;
extended nullchecks in testmathlib.cpp
2010-04-02 Martin Ettl <martin@martin.(none)>
* test/testmathlib.cpp: coverage report fix: more testcases for
mathlib::isInt() added in order to get a better coverage
2010-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1527 (Function
can't be const if it has non-const operator overload call)
2010-04-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: astyle fix
2010-04-02 Martin Ettl <martin@martin.(none)>
* : #ticket #1513 added asin() support
2010-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h: Cleanup: The Tokenizer doesn't
need to handle UTF in code nor multiline string. That is handled in
the Preprocessor.
2010-04-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/mathlib.cpp, test/testmathlib.cpp,
test/testother.cpp, test/testsuite.h: astyle fix
2010-04-02 Martin Ettl <martin@martin.(none)>
* : commit 1d1d79a1e51f9d990c9c69823c78870ec1c870f0 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Fri Apr 2 20:25:13 2010
+0200
2010-04-02 Martin Ettl <martin@martin.(none)>
* lib/checkother.cpp, lib/mathlib.cpp, test/testmathlib.cpp,
test/testother.cpp, test/testsuite.cpp, test/testsuite.h: added
acos() check to ticket #1513; added testcases for
MathLib::toDoubleNumber(), now double conversion of zeros is handled
correctly; changed assertEquals() function of testsuite parameters
from unsigned int to double. This is needed to avoid overflow of
unsigned int by comparing negative floating point values.
2010-04-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testclass.cpp: Fixed #1565 (False positive:
Uninitialized variable 'B::j'. There are 2 classes with the name
'B')
2010-04-02 Martin Ettl <martin@martin.(none)>
* lib/checkother.cpp: added log10() check, for checking about
parameters passed to mathfunctions that do not make sense
2010-04-02 Daniel Marjamäki <danielm77@spray.se>
* test/testclass.cpp: Added TODO test case to reduce false negatives
for uninitialized class members
2010-04-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp: Cleanup: Removed unneeded code
2010-04-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1479 (false
positive: unintialized variable when using goto)
2010-04-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1563 (false positive: function can be const (assignment to static))
2010-04-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1553 (false
positive : uninitialized variable for struct timeval from
<sys/time>)
2010-04-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, lib/mathlib.cpp,
lib/mathlib.h, test/testmathlib.cpp, test/testother.cpp: astyle
formatting
2010-04-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
gui/aboutdialog.cpp, gui/applicationdialog.cpp,
gui/applicationlist.cpp, gui/checkthread.cpp, gui/csvreport.cpp,
gui/fileviewdialog.cpp, gui/mainwindow.cpp, gui/projectfile.cpp,
gui/report.cpp, gui/resultstree.cpp, gui/resultsview.cpp,
gui/settingsdialog.cpp, gui/threadhandler.cpp,
gui/threadresult.cpp, gui/translationhandler.cpp,
gui/txtreport.cpp, gui/xmlreport.cpp, lib/check.h,
lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h,
lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkheaders.cpp, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkunusedfunctions.cpp,
lib/cppcheck.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
lib/executionpath.cpp, lib/executionpath.h, lib/filelister.cpp,
lib/filelister_unix.cpp, lib/filelister_win32.cpp, lib/mathlib.cpp,
lib/mathlib.h, lib/preprocessor.cpp, lib/settings.cpp,
lib/token.cpp, lib/tokenize.cpp, test/testbufferoverrun.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
test/testtoken.cpp, test/testtokenize.cpp, test/testunusedvar.cpp,
tools/dmake.cpp, tools/extracttests.cpp: Reverted 'astyle fix'.
Those changes are not in sync with my astyle configuration/setup.
2010-04-02 Martin Ettl <martin@martin.(none)>
* cli/cppcheckexecutor.cpp, cli/threadexecutor.cpp,
gui/aboutdialog.cpp, gui/applicationdialog.cpp,
gui/applicationlist.cpp, gui/checkthread.cpp, gui/csvreport.cpp,
gui/fileviewdialog.cpp, gui/mainwindow.cpp, gui/projectfile.cpp,
gui/report.cpp, gui/resultstree.cpp, gui/resultsview.cpp,
gui/settingsdialog.cpp, gui/threadhandler.cpp,
gui/threadresult.cpp, gui/translationhandler.cpp,
gui/txtreport.cpp, gui/xmlreport.cpp, lib/check.h,
lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h,
lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkheaders.cpp, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkunusedfunctions.cpp,
lib/cppcheck.cpp, lib/errorlogger.cpp, lib/errorlogger.h,
lib/executionpath.cpp, lib/executionpath.h, lib/filelister.cpp,
lib/filelister_unix.cpp, lib/filelister_win32.cpp, lib/mathlib.cpp,
lib/mathlib.h, lib/preprocessor.cpp, lib/settings.cpp,
lib/token.cpp, lib/tokenize.cpp, test/testbufferoverrun.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
test/testtoken.cpp, test/testtokenize.cpp, test/testunusedvar.cpp,
tools/dmake.cpp, tools/extracttests.cpp: astyle fix
2010-04-02 Martin Ettl <martin@martin.(none)>
* lib/checkother.cpp, lib/checkother.h, lib/mathlib.cpp,
lib/mathlib.h, test/testmathlib.cpp, test/testother.cpp: ticket
#1513 new check: Detecting obviously wrong math call arguments
passed to math functions)
2010-04-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1548
(False positive: array index out of bounds in for-loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/1548
2010-04-01 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1552 (false
positive: function can be const (array of struct))
2010-04-01 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1551 (false positive: The function 'A::vSet' can be const)
2010-04-01 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1550 (Improve
check: Assignment to self)
2010-03-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Update codeblocks project file
2010-03-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/filelister.cpp: Fix cross compiling in Linux Change: #include
"fileLister_win32.h" -> #include "filelister_win32.h"
2010-03-31 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: Makefile: Added flag -Wno-long-long
compiler flag to suppress warnings about long long
2010-03-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/tokenize.cpp, test/testtokenize.cpp,
test/testunusedvar.cpp: Fixed #1549 (false positive: uninitialized
variable)
2010-03-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Unit testing: Added test
case for memset. Ticket: #1538
2010-03-31 Robert Reif <reif@earthlink.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp, lib/tokenize.h,
test/testdivision.cpp, test/testtokenize.cpp: Fixed #1492 (false
negatives: array index out of bounds)
2010-03-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Better checking for
assignment to self. Ticket: #1550
2010-03-30 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1539 (False positive: possible error Array index out of bounds)
2010-03-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1535 (False
positive: member variable not initialized, struct with constructor)
2010-03-29 Robert Reif <reif@earthlink.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1536 (###### If you see this, there is a bug ###### Token::Match()
- varid was 0)
2010-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1148 (improve
check: usage of uninitialized variables)
2010-03-28 Daniel Marjamäki <danielm77@spray.se>
* : commit 62d2845014da62f3ae18c468a5a4e6076d288adb Author: Robert
Reif <reif@earthlink.net> Date: Sun Mar 28 15:56:13 2010 +0200
2010-03-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1534 (False
positive with #elif (defined NAME))
http://sourceforge.net/apps/trac/cppcheck/ticket/1534
2010-03-28 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp:
Refactoring: Added CheckClass::isMemberFunc
2010-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1516 (C++Builder
properties mistaken for uninitialized variables)
2010-03-28 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1533 (False
positive: Uninitialized variable)
2010-03-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1532 (hang due
to commit 772aa95c8a)
http://sourceforge.net/apps/trac/cppcheck/ticket/1532
2010-03-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: astyle fix
2010-03-27 Martin Ettl <martin@martin.(none)>
* lib/checkclass.cpp, test/testclass.cpp: extended The function can
be const test
2010-03-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testbufferoverrun.cpp: Fixed #1523 (false
negative:: buffer access out of bounds when using shift operator)
2010-03-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Partial fix for
#1475 (False positive: Not enough parameters for macro: #define A(a,
b...)) http://sourceforge.net/apps/trac/cppcheck/ticket/1475
2010-03-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1519 (false
negative: the function can be declared as const)
2010-03-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/tokenize.cpp,
test/testclass.cpp: Fixed #1525 (false negative: the function can be
declared as const (member declared as mutable))
2010-03-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1529 (false
positive: function can be const (struct member variable))
2010-03-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1496 (false
positive: Member variable not initialized in the constructor
'X::m_d')
2010-03-26 Raphael Geissert <atomo64@gmail.com>
* lib/checkother.cpp, test/testother.cpp: Fixed #1511 (false
negative null pointer deref when dereferencing pointers to
constants)
2010-03-26 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1522 (false
positive: function can be const (assignment in return))
2010-03-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testpreprocessor.cpp,
test/testtokenize.cpp: Tokenizer: Simplify 'false ==' to '!'
2010-03-24 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1522 (false
positive: function can be const (assignment in return))
2010-03-24 Daniel Marjamäki <danielm77@spray.se>
* test/testpreprocessor.cpp: Preprocessor: Added TODO testcase when
using variadic macros
2010-03-23 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1515 (false
positive: The function 'wxThreadInternal::SetExitCode' can be const)
2010-03-23 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1517 (false
negative: the function can be declared as const)
2010-03-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1504 (False
positive: Cppcheck incorrectly reports that extern variable is not
initialized)
2010-03-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp: Fixed #1386 and #1387 (False positives
given by CheckMemoryLeakInFunction when temporary and member
variable don't have the same allocation and deallocation)
2010-03-19 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1498 (false
positive: The function 'V<unsigned>::vSet' can be const)
2010-03-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testclass.cpp: Tokenizer: remove unnamed
anonymous structures and unions (#1493)
2010-03-19 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1491 (False
positive when putting an access specifier at the end of a class
declaration)
2010-03-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1428 (False
positive: (possible error) Memory leak when memory deleted in
destructor)
2010-03-19 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Here is a patch that adds support for derived
structs and fixes a bug that missed some nested structs. (#1493)
2010-03-19 Raphael Geissert <atomo64@gmail.com>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1512
(incorrect handling of ndefs in the preprocessor)
2010-03-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h, lib/tokenize.cpp: astyle formatting
2010-03-18 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: Fixed #1508 (false positive : uninitialized
variable)
2010-03-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h: doxygen: some updates to the lib/checkother
2010-03-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Partial fix for #1493 (false positives:
function can be const and struct or union member is never used)
2010-03-17 Daniel Marjamäki <danielm77@spray.se>
* lib/check.h, lib/checkautovariables.h, lib/checkbufferoverrun.h,
lib/checkclass.h, lib/checkdangerousfunctions.h,
lib/checkexceptionsafety.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.h, lib/tokenize.cpp, lib/tokenize.h: doxygen updates
2010-03-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: unit testing: made Tokenizer functions public
so they can be unit tested
2010-03-17 Daniel Marjamäki <danielm77@spray.se>
* test/testmemleak.cpp: unit testing: use const_cast instead of
defines
2010-03-17 Daniel Marjamäki <danielm77@spray.se>
* doxyfile: doxygen: enabled the JAVADOC_AUTOBRIEF so the @brief
isn't required
2010-03-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.h: refactoring: no need to hide functions
because the definition isn't seen by the core program anyway.
2010-03-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1506
(typedef name hiding check combined with forward declaration leeds
to false positive)
2010-03-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1476 (false positive: Uninitialized variable)
2010-03-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testunusedvar.cpp: Fixed #1501 (false
positive: Variable 'n' is assigned a value that is never used)
2010-03-16 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1503 (False
positive for uninitialized variable)
2010-03-16 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: small const fix
2010-03-15 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Use product name as start
menu shortcut item name.
2010-03-15 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Move couple of strings to productInfo.wxi.
2010-03-14 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.h, lib/token.h: doxygen: Some comments for
CheckOther, added @todo to Token::Match
2010-03-14 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.h, lib/filelister.h, lib/settings.h: doxygen: updated
comments for Cppcheck and FileLister
2010-03-14 Daniel Marjamäki <danielm77@spray.se>
* gui/checkthread.h, gui/resultstree.h, gui/resultsview.h,
gui/threadresult.h: doxygen: fixed warning messages
2010-03-14 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1494 (Improve
Tokenizer::simplifyKnownVariables to handle for loops better)
2010-03-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* doxyfile: doxygen: removed DETAILS_AT_TOP to get rid of warnings
that it is deprecated
2010-03-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h, lib/settings.h: doxygen:
fixed error messages
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.h, lib/checkmemoryleak.h,
lib/preprocessor.cpp, lib/preprocessor.h, lib/settings.h,
lib/token.h: doxygen: fixed warning messages
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/errorlogger.h, lib/mathlib.h: doxygen: updated comments for
ErrorLogger and Severity
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.h, lib/checkclass.h,
lib/checkdangerousfunctions.h, lib/checkmemoryleak.cpp,
lib/checkother.cpp: doxygen: added more comments for
CheckNullPointer and CheckUninitVar
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.h, lib/checkmemoryleak.h: doxygen: added
comments
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1465 (false
positive: unintialized class member)
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1460 (false
positive: memory leak when using throw no_memory)
2010-03-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1477 (false positive: Uninitialized variable when pointer
given to struct)
2010-03-13 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1491 (False
positive when putting an access specifier at the end of a class
declaration)
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: astyle formatting
2010-03-13 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: gcc: removed -Wlogical-op that is not
supported by old GCC
2010-03-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, testrunner.cbproj: Borland C++: Updated project
files
2010-03-12 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1482 (Improve check const-function: function can be made const when
assignment not to member variable (false negative))
2010-03-12 Kimmo Varis <kimmov@gmail.com>
* lib/filelister_unix.cpp: Fix ignoring filelister_unix.cpp code in
Windows.
2010-03-12 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj, test/testfilelister.cpp: Fix compiling tests.
2010-03-12 Daniel Marjamäki <danielm77@spray.se>
* lib/filelister_win32.cpp: astyle formatting
2010-03-11 Kimmo Varis <kimmov@gmail.com>
* tools/Makefile, tools/dmake.cpp: Restore and fix tools Makefile.
Fix include lines.
2010-03-11 Kimmo Varis <kimmov@gmail.com>
* tools/dmake.cpp, tools/dmake.vcproj: Fix dmake for Windows.
2010-03-01 Kimmo Varis <kimmov@gmail.com>
* Makefile, lib/filelister_unix.cpp, lib/filelister_win32.cpp,
lib/lib.pri, tools/Makefile, tools/dmake.cpp: Fix compiling in
Linux. Fix compiling dmake.
2010-02-28 Kimmo Varis <kimmov@gmail.com>
* lib/filelister.cpp, lib/filelister.h, lib/filelister_unix.cpp,
lib/filelister_unix.h, lib/filelister_win32.cpp,
lib/filelister_win32.h: Add Unix/Linux version of FileLister and do
some cleanups.
2010-02-28 Kimmo Varis <kimmov@gmail.com>
* lib/filelister.cpp, lib/filelister.h, lib/filelister_win32.cpp:
Remove Win32 implementation from common file.
2010-03-11 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, gui/mainwindow.cpp, lib/checkheaders.cpp,
lib/cppcheck.cpp, lib/filelister.cpp, lib/filelister.h,
lib/filelister_win32.cpp, lib/filelister_win32.h, lib/lib.pri,
lib/preprocessor.cpp, lib/tokenize.cpp: Implement Win32 FileLister
as separate class. Improve the system used to have separate
versions of code of FileLister for Win32 and Linux. New idea is to
have Base FileLister class implementing common code and then derived
classes for Win32 and Linux specific code. FileLister is not anymore a static class. Instead we use singleton
of derived class.
2010-03-10 Daniel Marjamäki <danielm77@spray.se>
* createrelease: Fixed #1489 (Makefile creates debug version)
2010-03-10 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1488
(Invalid warning about shadowed variable)
2010-03-10 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1486 (--errorlist shows two identical id values)
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* : commit 93f387cfffc20bd346bca77aad06ef4fe3ff69dd Author: Kimmo
Varis <kimmov@gmail.com> Date: Tue Mar 9 20:26:16 2010 +0200
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* : commit ba7655ef0760375ecdca844dcd7691e834130980 Author: Kimmo
Varis <kimmov@gmail.com> Date: Tue Mar 9 20:25:29 2010 +0200
2010-03-09 Kimmo Varis <kimmov@gmail.com>
* : commit 4dd117db49143a2ded15c6588580fcdc26c05931 Author: Kimmo
Varis <kimmov@gmail.com> Date: Tue Mar 9 17:37:39 2010 +0200
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Changelog, createrelease: Changelog: Updated
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: updated version
to 1.42
2010-03-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Add custom banner with
Cppcheck icon.
2010-03-09 Kimmo Varis <kimmov@gmail.com>
* : commit 04ff061bbb1c4d4d894196f9ebf52481d443a4ba Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Mar 9 12:41:40 2010
+0100
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: checkbufferoverrun: Refactorings
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cli.pro, tools/dmake.cpp: dmake,qmake: temporarily
removed -Wsign-conversion
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Revert "checkbufferoverrun: Fixed
signedness compiler warnings" This reverts commit 3123de346cd959244315a687c7c8adc89ae46488. This commit caused failed tests
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: checkbufferoverrun: Fixed signedness
compiler warnings
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: set release mode for Makefile
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated by latest dmake
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, tools/dmake.cpp: dmake, qmake: more sensitive
compiler and runtime
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: dmake: debug/release mode, more gcc
warnings
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Function
constness: I don't think it's necessary to show both definition and
implementation location. I changed so only the location of the
definition is shown. This fixes #1486.
2010-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/check.h: Fix #1485 (cppcheck.exe 1.41 crashes when calling
with option --errorlist)
http://sourceforge.net/apps/trac/cppcheck/ticket/1485
2010-03-08 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wixproj, win_installer/readme.txt:
Installer: Put installer to Build folder and temp files to BuildTmp.
2010-03-08 Kimmo Varis <kimmov@gmail.com>
* win_installer/cli.wxs: Installer: remove unused file.
2010-03-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* AUTHORS: Robert Reif added to AUTHORS file
2010-03-07 Kimmo Varis <kimmov@gmail.com>
* createrelease: Fix filepaths in release script.
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* createrelease: 1.41: Updated version in 'createrelease' script
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.41: Set version in files
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Simplify enum:
Fixed segmentation fault if code ends with enum type id
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1474
(segmentation fault of cppcheck)
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1472 (false
positive: Data is allocated but not initialized: service)
2010-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: Fix
#1469 (False positive: Resource leak when fclose() is inside while)
http://sourceforge.net/apps/trac/cppcheck/ticket/1469
2010-03-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1432 (false
positive: uninitialized variable)
2010-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #1454 (False
positive: arrayindexoutofbounds, static member sharing local name)
http://sourceforge.net/apps/trac/cppcheck/ticket/1454
2010-03-05 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1321 (Improve check const-function: function that is not
implemented inline can be made const)
2010-03-04 Kimmo Varis <kimmov@gmail.com>
* tools/dmake.vcproj: Add VS project file for building dmake.
2010-03-04 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1466
(false positive: Invalid number of character ({) when these macros
are defined: '')
2010-03-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: simplify templates: show debug message when
bailout out
2010-03-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: SimplifyTemplates: some simple refactoring so
template name is properly seen. If it's not properly handled then
bailout. Related with #1464
2010-03-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Partial fix #1464
(takes too long (days) to process some files) Fix template functions
that return "&T".
http://sourceforge.net/apps/trac/cppcheck/ticket/1464
2010-03-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: don't warn about the
suspicious string::find condition because it's not always a bug
2010-03-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Add simple debug print to make it possible to
detect cases where template simplification goes wrong.
http://sourceforge.net/apps/trac/cppcheck/ticket/1464
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Removed unused function
renameMacroVariables
2010-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.cpp: Apply patch #1408 (gui build fails
with Qt-4.4.3: QLocale) Add missing QLocale include. Patch by barsnick.
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: STL: refactorings
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/tokenize.cpp: cleanup: removed unused
variables
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp: null
pointer: Fixed better error message for 'possible null pointer' +
removed redundant check in our Tokenizer.
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: suspicious condition when
using std::find
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: STL if find: check given severity
2010-02-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1453
(possible infinite loop processing GNU Go's engine/montecarlo.c)
http://sourceforge.net/apps/trac/cppcheck/ticket/1453
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: STL: suspicious conditions when using find.
Added ok testcases and assert that no error message is written
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL:
suspicious condition when using find on strings and containers
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi: Installer: Fix path to gui executable.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Remove tabs from project file.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Build to similar folders than cli in Windows. This makes it easier to handle build files and manage installer.
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1439 (false
positive: memory leak when using realloc)
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/tokenize.cpp: Refactoring error messages
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj: Resource compiler still got unnecessary
precompiler defines.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi: Installer: Fix cli executable path.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Move build products to
Build and BuildTmp folders. This avoids polluting source folders with created/temp files. Also
makes it easier for installer to pick files from consistently named
folders.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Projfiles: Fix preprocessor
definitions.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj: Projfiles: fix test project include paths.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj: Projfiles: Fix include paths - remove
unneeded paths.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Projfiles: Use $IntDir and
$OutDir as paths where applicable. Try to also keep outdir clean of unnecessary files and direct most
of build- time files to intdir.
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #1448 (Trying to check Unicode file
prints confusing error)
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1456 (PATCH:
Variable hides typedef with same name false positive)
2010-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1397 (false
positive: Memory leak in while loop)
2010-02-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1455
(Preprocessor: Wrong line number in "No pair for character" error)
http://sourceforge.net/apps/trac/cppcheck/ticket/1455
2010-02-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1456 (PATCH:
Variable hides typedef with same name false positive)
2010-02-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1457 (PATCH:
Variable hides enumerator with same name false negative)
2010-02-26 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Fix comment.
2010-02-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testother.cpp: Add TODO test case for #1444 (inline
suppression suppress all errors of the same type in a function)
http://sourceforge.net/apps/trac/cppcheck/ticket/1444
2010-02-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Add TODO test cases for #1454 (False
positive: arrayindexoutofbounds, static member sharing local name)
http://sourceforge.net/apps/trac/cppcheck/ticket/1454
2010-02-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Cleanup test/testtokenize.cpp a bit by
putting duplicate code into a function.
2010-02-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1452
(Simplify goto better)
2010-02-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1451 (false
positive: operator = should return reference to self)
2010-02-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1445
(segfault in Tokenizer::simplifyRedundantParanthesis())
2010-02-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp, tools/dmake.cpp: Add TODO test case
for #1452 (Simplify goto better)
http://sourceforge.net/apps/trac/cppcheck/ticket/1452
2010-02-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1449
(segmentation fault of cppcheck)
2010-02-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1434 (###
Internal error in Cppcheck. Please report it.)
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* : commit 5254822bedb2d18341542fc1947dd2768fbbf068 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Feb 23 21:27:01 2010
+0100
2010-02-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Attempt to fix: #1425: -I doesn't work
properly in Windows
http://sourceforge.net/apps/trac/cppcheck/ticket/1425
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* cli/CMakeLists.txt, test/CMakeLists.txt: removed some more cmake
files
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* tools/Makefile: tools/Makefile: fixed so the dmake can be built
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Readded old Makefile again
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: Readded man/install to the Makefile
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: removed cmake/scons
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* : commit 8e58cfcd3229b4dca94795f9215bea3a76be5c7d Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Feb 23 18:14:33 2010
+0100
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fix GUI compile error on Linux.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: Add htmlhelp lib to GUI's CMake file.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Update MSI installer to install
HtmlHelp manual.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.h: Remove some excessive empty lines.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: Update translation files.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h:
Open HTML help from Help-menu in Windows.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Remove some excessive empty lines.
2010-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1442 (false
positive: getting offset instead of dereferencing a null pointer)
2010-02-21 Kimmo Varis <kimmov@gmail.com>
* readme.txt: Fix mixed EOL styles in readme.txt. Use LF for now.
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, test/testbufferoverrun.cpp, test/testclass.cpp:
Fixed #1409 (False positive: Buffer access out-of-bounds with
strncpy and an array in typedef'ed struct)
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: removed 'dmake' information
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1426 (false
positive: returning LPVOID can be const)
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#1396 (false positive: Resource leak)
2010-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Fixed #1430 (void foo(int nb))
2010-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Refactored the
CheckOther::functionVariableUsage
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp:
Tokenizer: simple simplification of array sizes
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1395 (false
positive: Possible null pointer dereference)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1424 (false
positive: unintialized variable)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1422 (false
positive: uninitialized variable)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1407 (false
positive memory leak when returning pointer to the allocated memory)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1403 (false
positive: The function can be const)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1402 (false
positive: uninitialized variable)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: astyle formatting
2010-02-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1427 (new check: check for typedef name hiding)
2010-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp: Borland C++: Fixed
compiler errors (operands must be same type)
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: SConstruct, fix compiling on systems where qt4 is not
installed
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: Add: 'scons ccwin32' - Cross compile win32 (cli)
in Linux
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: dmake: simplified a little
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: updated readme.txt
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: SConstruct updated, help target added. Use 'scons -h'
to see help
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: SConstruct update: Add coverage-target and add more
gcc compiler flags
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/mathlib.cpp: Refactoring: Using string::compare instead of
strncmp
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* gui/test.cpp, test/test.cxx: renamed gui/test.cpp to test/test.cxx
2010-02-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct, qt4.py: Add SConstruct and qt4.py for alternative
build system
2010-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Refactoring CheckBufferOverrun. Use
std::string instead of const char *
2010-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testunusedvar.cpp:
astyle formatting
2010-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp,
test/testunusedvar.cpp: readded checks for unused variables and
unreachable code that were removed in
42c608b6f085693f9bc80bf9be9a3570f0a5bf87
2010-02-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1411 (###
Internal error in Cppcheck. Please report it.)
2010-02-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1405 (false
positive: operator = should return reference t
2010-02-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1405 (false
positive: operator = should return reference to itself)
2010-02-17 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1389 (false
positive: uninitialized variable)
2010-02-16 Moritz Barsnick <barsnick@users.sourceforge.net>
* gui/main.ui: Fixed #1334 (gui build fails)
2010-02-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1388 (enum token/template parameter confusion - False
positive)
2010-02-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1392
(Segfault in CheckBufferOverrun::checkScope)
http://sourceforge.net/apps/trac/cppcheck/ticket/1392
2010-02-14 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1333 (Detect access out of bounds 'for (i = 100; i > 0; --i) a[i] =
0;')
2010-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Remove unnecessary file open.
2010-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkclass.h: astyle fix
2010-02-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h, lib/checkheaders.cpp,
lib/checkmemoryleak.cpp, lib/checkmemoryleak.h, lib/checkother.cpp,
lib/checkother.h, lib/checkunusedfunctions.cpp, lib/filelister.cpp,
lib/filelister.h, lib/settings.cpp, lib/settings.h, lib/token.cpp,
lib/token.h, lib/tokenize.cpp, lib/tokenize.h: Refactoring: Use
std::string instead of const char *
2010-02-14 Daniel Marjamäki <danielm77@spray.se>
* cli/CMakeLists.txt: Output the cppcheck program in the base folder
2010-02-14 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Removed old Makefile - we'll use CMake from now on
2010-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/token.h: Added %name% pattern to Token.
Currenly same as %var%, but in the future %var% is supposed to match
only tokens that have varid != 0.
2010-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.h: Fix operator= warning from our own code.
2010-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/tokenize.cpp, test/testdivision.cpp: Fix
#1385 (False positive: unsigned division)
http://sourceforge.net/apps/trac/cppcheck/ticket/1385 This also
fixes a bug in setVarId(). "unsigned int a" didn't get varid, untill
later when unsigned was simplified away.
2010-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1382
(False positive: uninitialized variable when using assembly to
initialize variable)
2010-02-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1340
(False positive: Array out of bounds for re-initialised array
pointer) http://sourceforge.net/apps/trac/cppcheck/ticket/1340
2010-02-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1376 (Member
variable not initialized in the constructor false positive)
2010-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/filelister.cpp, lib/preprocessor.cpp, test/testfilelister.cpp:
Possibly fix #1369 (Internal error - double-declared enum followed
by another enum)
http://sourceforge.net/apps/trac/cppcheck/ticket/1369 Don't include
same file twice if one is a/a.h and other is a/../a/a.h
2010-02-09 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: Fixed #1373 (###### If you see this, there is a
bug ######)
2010-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #1366 (void
Tokenizer::simplifyTemplates() --> Abort)
http://sourceforge.net/apps/trac/cppcheck/ticket/1366
2010-02-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #1364 (False positive: (error) Possible
null pointer dereference)
2010-02-08 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp: Fixed #1360 (false positive:: uninitialized
class member of nested class inside a function)
2010-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testother.cpp: astyle fix
2010-02-08 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1344 (false
negative: missing const not found)
2010-02-07 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkother.cpp, test/testother.cpp: Fixed #1094 (Improve
check: unusual pointer arithmetic: 'ch+str')
2010-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1361 (### Internal
error in Cppcheck. Please report it)
2010-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testtokenize.cpp: Fixed #1356 (Double-False positive:
uninitialized variable)
2010-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed bug in
setVarId. functions should never have a variable id
2010-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1362
(Internal error when using ?-operator and nested {})
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: astyle formatting
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1346 (False
positive: Memory leak when allocated memory is stored elsewhere
inside a condition)
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1363 (false
positive: memory leak)
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Fixed #824 (Exit code of cppcheck)
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: fixed null pointer dereference when using
--errorlist
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1352 (false
positive: uninitialized variable)
2010-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp: Borland C++: Fixed compiler error. When using
'a?b:c', Borland C++ requires that 'b' and 'c' has the same types
2010-02-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1355 (Fixed
enum bug when expression contain comma)
2010-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Partial fix for
#322 (get configurations from headers that don't start at the
beginning of the file)
2010-02-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Minor fix to previous commit
2010-02-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Test case for #1356 (Double-False positive:
uninitialized variable)
2010-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1358
(False negative: out-of-bounds not found near return)
http://sourceforge.net/apps/trac/cppcheck/ticket/1358
2010-02-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#984 (improve output if strncpy is followed by strncat)
2010-02-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1351 (add
expression support to simplifyEnum)
2010-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: CheckClass::noMemset:
Refactoring so it handles more complex std template types
2010-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Class checking: Minor
refactoring when analysing memset on class
2010-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1287 (Use of memset
on struct - std template types not handled)
2010-02-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1337
(Division by zero with __alignof__())
2010-02-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1345 (Not
initialised variables warning missing in classes with dllexport)
2010-02-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
#1342 (Superclass constructors in initializer lists are considered
unused functions when superclass has a namespace.)
2010-02-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1343
(simplifyTypedef doesn't support deeply nested classes)
2010-02-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1341 (false
positive 'uninitialized variable' when using Exception
specifications)
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* man/CMakeLists.txt: CMake - build htmlhelp manual in Cygwin. I want to build htmlhelp manual for Windows with Cygwin. This is the
easiest way to create "native" manual for Windows users.
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* man/CMakeLists.txt: CMake - build HTML manual in Cygwin. Latest update to Cygwin made possible to build HTML manual also in
the Cygwin. Requires latest version 4.5 of DocBook XML.
2010-02-01 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1339 (add
nested struct support to simplifyEnum and simplifyTypedef)
2010-02-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Reverted
4f30468c80e954c8f91e95052d777caf31a01e58. There was false positives
such as #1335 so please fix them and then re-commit.
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* gui/checkthread.cpp: GUI part of ticket #1068 (GUI: stop or quit
when processing a large file).
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* test/CMakeLists.txt: CMake - fix building tests for Visual Studio. Need to include lib sources directly to test project also.
2010-01-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1338
(simplify typedefs with global and nested namespace)
2010-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Added test case for #1333 (Detect
access out of bounds 'for (i = 100; i > 0; --i) a[i] = 0;')
http://sourceforge.net/apps/trac/cppcheck/ticket/1333
2010-01-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1004 (improve check: Unintialized variable not detected when
using a reference (&))
2010-01-31 Monika Lukow <mlukow@jpembedded.eu>
* : commit 25822dff2462d00e7293fbc0793b8e3994acb1a4 Author: Monika
Lukow <mlukow@jpembedded.eu> Date: Sun Jan 31 11:44:30 2010 +0100
2010-01-31 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkbufferoverrun.cpp: Fixed #1274 (false positive: Dangerous
usage of strncat)
2010-01-31 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkother.cpp, test/testother.cpp: Fixed #1094 (Improve
check: unusual pointer arithmetic: 'ch+str')
2010-01-31 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, cli/CMakeLists.txt, gui/CMakeLists.txt: Make
workaround fix for ticket #1299. Since lib does not work when built as an static library, compile lib
code as part of cli/gui code.
2010-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: remove redundant assignments and
variables
2010-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: Remove redundant assignments and
variables
2010-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: remove
the keyword 'inline'
2010-01-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: fix for
multiple array definitions for a single typedef
2010-01-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed #1326 (remove simplified enum definitions)
2010-01-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1331
(simplify typedef of complex arrays)
2010-01-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Null pointer dereference:
sending to output stream
2010-01-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: improved
the simplifyInitVar
2010-01-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #1005 (improve check: nullpointer
dereference not found when it is initialized with NULL-cast)
2010-01-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed 1329
(simplify typedef of function pointer returning template)
2010-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1327 (False
positive: Redundant code: Found a statement that begins with numeric
constant)
2010-01-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkclass.cpp: Remove debug print
2010-01-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, lib/checkclass.cpp, lib/checkmemoryleak.cpp,
lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Improved
updateClassList(), but not yet took it into use. findClassFunction
is now non-static. updateClassList usage is currently commented out
as it doesn't handle class inside a function
2010-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1319 (false
negative: missing const not found)
2010-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed const
simplification
2010-01-29 Robert Reif <reif@earthlink.net>
* test/testsuite.cpp, test/testsuite.h: Fixed #1324 (show number of
tests that don't produce the desired results)
2010-01-29 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1323 (segfault with
style in CheckClass::operatorEqRetRefThis())
2010-01-29 Robert Reif <reif@earthlink.net>
* lib/preprocessor.cpp, lib/tokenize.cpp: Fixed #1325 (Segmentation
fault in simplifyTypedef due to bad preprocessing)
2010-01-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1326 (remove
simplified enum definitions)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1286 (Memory
leak not detected)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: killerbot: Fixed #1314 (specify the files to
check in 1 input file)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1315 (mismatched allocation and
deallocaton not detected)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.h, lib/checkstl.h: updated --doc output about new
checks in 1.40
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: Auto variables: Improved handling of
temporaries
2010-01-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1316 (###
Internal error in Cppcheck. Please report it.)
2010-01-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: Auto variables: returning pointer to
temporary .c_str() data
2010-01-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1302 (False
positive: Confusion between POSIX open() and class member)
2010-01-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1278 (Confusing style
message formatting)
2010-01-26 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, gui/CMakeLists.txt: CMake - Build GUI also in
Cygwin if QT4 is found.
2010-01-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1312 (false
positive: missing const message on functions returning references)
2010-01-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1313
(unnamed enums not simplified properly)
2010-01-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1307
(Internal error with typedef in parameter list)
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: some
refactorings and minor improvements
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1238 (False
Negative : memory leak with template class)
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed
Tokenizer::simplifyKnownVariable bug when the variable is
re-assigned in a loop
2010-01-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1308 (False
positive: The function 'x' can be const for a static member
function)
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: TestOther::uninitvar1: refactoring. splitting
up this function into multiple functions
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp: const class functions: refactorings
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: const: fixed false
positive when using increment/decrement
2010-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, lib/tokenize.cpp, lib/tokenize.h: Fix some
style errors found from our own code.
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: CheckClass: The operator<
etc member functions can often be const
2010-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/teststl.cpp, test/testtokenize.cpp: Fix #1279 (Change error
message: Invalid number of character ({). Can't process file.)
http://sourceforge.net/apps/trac/cppcheck/ticket/1279
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: fixed false positive when
using erase
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1301 (False
positive: Data is allocated but not initialized)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1305 (False
positive: The function 'x' can be const when indirectly calling a
non-const member)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1304 (False
positive: The function 'x' can be const when modifing a member)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1303 (False
positive: The function 'x' can be const for a constructor)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: New Check: Detect return of invalid
reference
2010-01-23 Duraffort <ivoire@dinauz.org>
* gui/CMakeLists.txt: Do not build the gui if Qt4 headers are not
present.
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Revert "removed tools/dmake and
Makefile. Please use cmake from now on." This reverts commit cfacd5fe1014d3fac2cf617f9f9a32ad5c92f561.
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: only run
CheckClass::checkConst if style checking is on
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Partial
fix for #13 - detect simple cases of member functions that can be
const
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: detect when function
pointer that is null is used
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Report when using
uninitialized function pointer
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Function pointers:
re-enabled the simplifyFunctionPointers
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: removed tools/dmake and Makefile.
Please use cmake from now on.
2010-01-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1298
((error) ### Internal error in Cppcheck. Please report it. (typedef
in fun proto))
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1276 (False Uninitialized variable when using goto)
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkstl.h: doxygen and
minor refactorings
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #643 (Member
variable not initialized not detected if any unknown function
called)
2010-01-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1297
(typedef causes internal error in vlc/modules/access/imem.c)
2010-01-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1290 (1.40:
Internal error)
2010-01-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1273 (scope of
variable limited not detected in latest versions)
2010-01-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: This patch
simplifies the function pointer return type code and allows more
complex return types.
2010-01-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improved typedef
simplification of function pointers
2010-01-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1293 (Things
to add to call_func_white_list)
2010-01-20 Daniel Marjamäki <danielm77@spray.se>
* : commit 96359b14ffb8580939a91e57bdc4e4e74b71ee51 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Jan 20 21:19:06 2010
+0100
2010-01-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Handle/simplify
function pointer typedefs
2010-01-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1296 (false
positive: index out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/1296
2010-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Updated cppcheck.cbp project file. Fixes #1292
(cppcheck.cbp needs an update (V1.40))
http://sourceforge.net/apps/trac/cppcheck/ticket/1292
2010-01-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1282 (False
positive for a memory leak in a simple loop)
2010-01-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: CheckMemoryLeak:
Added 'scanf' and 'sscanf' to the whitelist
2010-01-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1266 ('qsort' missing in
call_func_white_list)
2010-01-18 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/cppcheck.h, lib/settings.cpp,
lib/settings.h: Added Cppcheck::terminate function that will
terminate the checking ASAP
2010-01-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1251
(tokenize typedef of reference)
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi, win_installer/cppcheck.wxs: Installer:
Add config variable for pdf manual path.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* : commit 2581c9fa9fc8974ccd150f3a4b05e89d592b6bff Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jan 17 20:41:26 2010 +0200
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt, win_installer/readme_InnoSetup.txt:
Installer: Create short documentation for WiX installer.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Path variable for gui.exe
was missing in one place.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi, win_installer/cppcheck.wxs,
win_installer/productInfo.wxi: Installer: Move installer
configuration to new file.
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1262 (cppcheck
false positives: 'Possible null pointer dereference', 'Uninitialized
variable')
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.h: Fixed doxygen error messages
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.h, lib/checkclass.h,
lib/checkdangerousfunctions.h, lib/checkexceptionsafety.h,
lib/checkother.h, lib/checkstl.h: Reformatting the --doc output to
work better in the wiki
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: updated version to 1.40
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* Changelog: updated Changelog
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, createrelease, lib/cppcheck.cpp,
win_installer/productInfo.wxi: Updated version to 1.40
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: Added TODO test for better pointer
aliasing with memset
2010-01-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1275
(Cppcheck hangs when analysing the code 'typedef struct { } A, *B,
**C;')
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* : commit 97eb380bba8deeb480d035e606157d610db98379 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jan 17 01:21:45 2010 +0200
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Update package version to
300 to use latest installer version.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Add variable for Qt dll location.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wixproj, win_installer/cppcheck.wxs,
win_installer/productInfo.wxi: Install MS CRT runtimes. Add VS2008 CRT merge module to the installer. This is the correct
way to install MS runtimes.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cli.wxs, win_installer/cppcheck.wixproj,
win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Add project file. Project file allows building installer with msbuild. Add config
variables for binaries directories to avoid copying binaries to
installer directory.
2010-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1272 (links
in typedef not handled correctly)
2010-01-16 Daniel Marjamäki <danielm77@spray.se>
* : commit 0a8ca1f160bf635f63e4e7d936a65fac995af779 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Jan 16 13:56:57 2010
+0100
2010-01-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Refactoring the handling of typedefs
2010-01-16 Daniel Marjamäki <danielm77@spray.se>
* cppcheck.cbproj, lib/checkclass.cpp, lib/checkclass.h: Revert
"minor tweak in Borland C++ project file" This reverts commit ad06ee4f71698fcd67d2d42d27c8117ff1ecc234.
2010-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, lib/checkclass.cpp, lib/checkclass.h: minor tweak
in Borland C++ project file
2010-01-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix part of #1262
(cppcheck false positives: 'Possible null pointer dereference'
http://sourceforge.net/apps/trac/cppcheck/ticket/1262
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: refactoring
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/filelister.cpp, lib/preprocessor.cpp: astyle formatting
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/threadexecutor.cpp, cli/threadexecutor.h: lanurmi: Fixed
threads handling when using Sun compiler
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/filelister.cpp, lib/filelister.h, lib/preprocessor.cpp:
lanurmi: Fixed #1269 (Changes required for compiling with Sun's
compiler)
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1264 (False
positive: Resource leak with if-else in while)
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1268 (Null pointer
dereference false positive)
2010-01-14 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now takes a
parameter for source code encoding to support non ascii characters. Also present a nicer error message if highlighting fail for a file.
2010-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h: wrote comments about the
preprocessor
2010-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1265 ((error)
Uninitialized variable on macro expansion)
2010-01-13 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now takes a
--title parameter that will be displayed on top of every page.
2010-01-13 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: Added !DOCTYPE declaration for
html generated by the cppcheck-htmlreport tool.
2010-01-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: fixed
typedef issues
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Uninitialized variables: disable subfunction
analysis if multiple threads are used
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: CheckMemoryLeaks: Added 'strlen' to white
list
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fixed #1258 ('fscanf' missing in
call_func_white_list)
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1259 (false
postive: Member variable 'A::b' is not assigned a value in
'A::operator=')
2010-01-12 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now annotates
the highlighted source code with the cppcheck error message.
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: some cleanup of std::
2010-01-12 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: Fixed some markup errors in
generated html from the cppcheck-htmlreport script.
2010-01-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtoken.cpp: Get rid of casting in test file.
http://sourceforge.net/apps/trac/cppcheck/ticket/1242
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1070 (Improve scope
error message)
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1257
(potential leaks not reported becauseof 'continue' in loop)
2010-01-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1252
(Internal error in Cppcheck while parsing struct)
2010-01-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1250
(tokenize typedef of union)
2010-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1174 (improve check: Unintialized variable not detected in
subfunction)
2010-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/tokenize.cpp,
test/testbufferoverrun.cpp: BufferOverrun: negative index is out of
bounds
2010-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
fixed false positives when using pointer aliasing
2010-01-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1248
(tokenize typedef of array)
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: ExecutionPath: better
handling of for/while/do/switch, it doesn't bail out everything
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1225 (false
negative :: uninitialized variable not detected when using enums)
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: fixed unlogged
errors from the tokenizer and also some errors reported by valgrind
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtoken.cpp: ivoire: 64-bit portability fix
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
better handling of loops and switch
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1220 (False
memory leak when using while)
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Better handling of switch
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1218 (Improve
check: incrementing uninitialized variable i++)
2010-01-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1244
(tokenize typedef of unnamed struct)
2010-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1189 (false
negative: using uninitialized variable i 'a[i] = 0;')
2010-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1231
(Preprocessor: Fail to evaluate '#if ! defined _ABCD_')
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Add "all" target for build.bat.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Make release the default target in build.bat.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Allow building both debug and release targets using
build.bat.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Improve build.bat to support building from QT prompt.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Fix build.bat after directory renames.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/build2.bat: Update build2.bat to point to latest Qt
SDK.
2010-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Borland C++: Fixed compiler error
2010-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: fixed segmentation
fault
2010-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1237
(Uninitialized variable false positive for return-value pattern in
pan source code.)
2010-01-08 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1233 (false
positive: operator = should check for assignment to self)
2010-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1235
(CheckMemoryLeakInFunction: Wrong handling of 'fcloseall')
2010-01-07 Kimmo Varis <kimmov@gmail.com>
* win_installer/build1.bat: Update batch file for latest Qt SDK
location.
2010-01-07 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1232
(segmentation fault of cppcheck when scanning templates)
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: After suggestion from Jim Vollner, remove dead
pointers from the used list
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/token.cpp, lib/tokenize.cpp: uncomment validation of
Tokenizer::_tokensBack
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp,
lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/testbufferoverrun.cpp, test/testsimplifytokens.cpp,
test/testtoken.cpp: Ticket #1228 : Handle tokensBack in the Token
class. When adding&removing tokens the Token class can make sure
that this pointer is updated accordingly. It is very important that
the tokensBack has the same scope as the token list, otherwise there
will be a dead pointer problem.
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1221 ([False
positive] Member variable not initialized with operator[] gives
wrong result)
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* CMake/xmlto.cmake, CMakeLists.txt, man/CMakeLists.txt: CMake -
build Docbook manual in Linux. Add XMLTO macro to build Docbook manual using xmlto program. xmlto
is not available in Windows so limit building to Linux. Adds new target "html" to build which is not run automatically.
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1229 (GUI: project file not read when
checking a file)
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1226 (GUI: project include file
relative path search problem) Thanks for Robert Reif for finding and reporting problem in previous
commit.
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* : commit 5bb3c5898bf87a5aed5e3f775daf7c70fe9fe20c Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Jan 6 01:40:26 2010 +0200
2010-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Added more validating code to tokenizer.
Currently commented out.
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck: Add lib directory to gui "project file" include.
2010-01-05 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1224 (segmentation
fault of cppcheck)
2010-01-05 Kimmo Varis <kimmov@gmail.com>
* test/CMakeLists.txt: CMake - Include test project's header file to
VS IDE project.
2010-01-05 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt: CMake - Include test project when creating VS IDE
project.
2010-01-04 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1215 (are enums processed properly?)
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt: CMake - add header files to CLI project and VS
project.
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* lib/CMakeLists.txt: CMake - add header files to lib project (and
to VS project).
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: CMake - Create folders for GUI files in Visual
Studio IDE.
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* : commit b483221f4534938ef1849d6eefa5b28c4924c952 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jan 3 19:50:04 2010 +0200
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1023 (improve
check: Unintialized variable not detected when using +=)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: refactoring
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: added test case for #1193 (false
negative: array out of bounds in loop when there is calculation)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1216 (false
positive: uninitialized variable when using exit|abort)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, test/testother.cpp:
Fixed #440 (NULL referencing not detected)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/mainwindow.cpp: Fixed #1187 (GUI: fix project file loading)
2010-01-03 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1184 (improve test:
operator =)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1214 (false
positive: uninitialized variable 'bool fixed =
std::ios_base::fixed;')
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1203
(Preprocessor: Doesn't handle macros usage that contain ';')
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1209 (False
positive: uninitialized variable c when it is initialized with
'ab(sizeof(xyz), &c)')
2010-01-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/tokenize.cpp,
lib/tokenize.h, test/testconstructors.cpp, test/testtokenize.cpp:
Fixed #1211 (add struct support for constructor checks)
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1202 (false
positive: uninitialized variable when using 'do')
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1204
(Tokenizer::findClassFunction broken)
2010-01-02 Slava Semushin <php-coder@altlinux.ru>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Fixed
#1013 (autovariables: detect when assigning parameter **par) http://sourceforge.net/apps/trac/cppcheck/ticket/1013
2010-01-02 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1197
(Segmentation fault when we define function which was already
defined by preprocessor) http://sourceforge.net/apps/trac/cppcheck/ticket/1197
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1178 (1.39:
Internal error)
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1200 (false
positive 'uninitialized variable' when using throw)
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: refactoring the fix for #1191
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1191 (false
positive: uninitialized variable)
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1196 (Hang:
Cppcheck hang for the file linux-2.6/drivers/crypto/hifn_795x.c)
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1188 (false
negative: dereferencing p, which is a null pointer 'int y = 5 + *p')
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fixed a hang in
Tokenizer::simplifyFunctionParameters
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp: Self assignment in class: added TODO test
cases to reduce false positives
2009-12-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1184 (improve test: operator =)
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: fixed cppcheck warning
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: Fixed #1181 (Preprocessor fails while
expanding macros)
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1183 (False
positive: uninitialized variable p 'd = bar(sizeof(*p));')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1182 (False
positive: uninitialized variable 'int *pa = &a;')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1173 (Improve check: memory leak not
detected in constructor)
2009-12-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1167 (###
Internal error in Cppcheck. Please report it.)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: cleanup
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1087 (uninitialized
data not detected 'char z = *str')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: Fixed #1105 (improve check: uninitialized
variable not detected for 'a = a')
2009-12-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1176 (void operator
= check doesn't support struct)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1041 (passing a nullpointer to a reference)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1067 (Tokenizer:
K&R style function that returns function pointer)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1177 (False
positive: pointer is not dereferenced 'sizeof(*p)')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1168 (false
positive: Uninitialized variable)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1166 (improve
check: using uninitialized pointer to create reference 'int
&r(*p);')
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testother.cpp: Robert Reif: Fixed #1163
(post increment test broken for complex template types)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1165
(Tokenizer: wrong simplification of 'do { .. } while (0)' if the
body contains continue or break)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h:
ExecutionPath: Refactoring. Removed the bailOut variable
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, lib/executionpath.h, test/testother.cpp:
Fixed #1160 (Null pointer dereference vs. goto)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp: astyle formatting
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Robert Reif: Fixed #1164
(only first void operator = found)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed
#1162 (add support to tokenize typedefs with templates)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, lib/preprocessor.cpp: Valgrind: Fixed
memory leaks when running testrunner that was found by Valgrind
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.h, test/teststl.cpp: Robert Reif: Fixed #1158
((possible style) message with regular check)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed
#1161 (add tokenize support for typedefs with enum definitions)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1159 (Valgrind gives error in
Tokenizer::simplifyWhile0)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1156 ([False
positive] Uninitialized variable - class member in constructor)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, lib/cppcheck.h, lib/preprocessor.cpp,
lib/settings.cpp, lib/settings.h: exitcode suppressions. Partly
fixes #1113
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: Simplify 'while (0)' better
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed another issue with
#1154 (false positive: Data is allocated but not initialized)
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/mathlib.cpp, test/testmathlib.cpp: astyle formatting
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1154 (false
positive: Data is allocated but not initialized)
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1138 (improve
check: dereferencing uninitialized pointer)
2009-12-27 Martin Ettl <martin@martin.(none)>
* lib/mathlib.cpp, test/testmathlib.cpp: added further testcases to
testmathlib::convert(); now the conversion of
+-[hexnumber|octalnumber] works correctly
2009-12-27 Martin Ettl <martin@martin.(none)>
* test/testmathlib.cpp: added further testcases to
testmathlib::isint()
2009-12-27 Martin Ettl <martin@martin.(none)>
* lib/mathlib.cpp, test/testmathlib.cpp: extended testcases of
mathlib; fixed zero conversion: +0 and -0 is converted to 0
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #972 (New
check: return pointer of stack memory)
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Uninitialized variables: Refactoring and
commenting a little
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1153 (False
positive: uninitialized data for reinterpret_cast)
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Fixed #1120 (Test compile warnings with
Cygwin)
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
Fixed false positive for 'if (ptr)'
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1151 (false
positive: Data is allocated but not initialized)
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp: Fixed #1152 (Hang/Slow: ExecutionPath
handling hangs)
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testother.cpp: ExecutionPath: Refactoring if-handling
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/executionpath.cpp, lib/executionpath.h: ExecutionPath:
Refactoring the interface
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testother.cpp: Fixed #683 (wrong usage of strcmp)
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: htmlreport: added brief information in the
manual
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : Merge commit 'hn/master'
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: Robert Reif: fix cppcheck post increment warning
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1141
(Tokenizer: Wrong simplification of calculations)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: fixed unit testing
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Refactoring the
uninitialized variable / null pointer checks so they use a common
function to inspect function calls
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1147 (Improve
check: return uninitialized variable)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed false positives
about uninitialized variables
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1137 (false
positive: uninitialized variable when using a class object)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Robert Reif: Fixed #1139
(false negative: CheckOther::postIncrement() only finds at most one
problem)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: Robert Reif: code cleanup
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: Robert Reif: fix a style warning
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Borland C++: Fixed compiler error
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.h, lib/preprocessor.cpp: Visual Studio: Added
casts to silence compiler warnings
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: Visual Studio:
Fixed unittests
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: C++ Builder: updated the testrunner project
file - added the lib/executionpath.cpp
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1133 (Uninitialized
array: strchr, strrchr, etc)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1128 (false
positive: Data is allocated but not initialized)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1112
(cppcheck fails because of accented characters in comments)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1127
(Segfault with template)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp, test/testother.cpp: astyle formatting
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Eric Sesterhenn: Fixed
#1130 (False positive uninitialized variable)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Eric Sesterhenn:
Fixed #1131 (descriptor leak false positive)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed
#1108 (Only trivial typedefs are tokenized properly)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1096 (Non-obvious
error message: Overlapping data buffer)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1095 (Non-obvious error
message: Dangerous usage of erase)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: preprocessor: removed unnecessary casts
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1126 (False positive: upon exception there is memory leak (calling
unknown function))
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: ericsesterhenn: Fixed
#1091 (improve check: nullpointer dereference not detected)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/executionpath.cpp, lib/executionpath.h: Execution Path:
Refactoring
2009-12-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1124
(Invalid number of character ((). Can't process file.)
http://sourceforge.net/apps/trac/cppcheck/ticket/1124
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.h, test/testmemleak.cpp:
Execution Path: some refactorings of the checking
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1119 (false
positve: uninitialized variable y when y is assigned in inner
expression 'x = (y = 10)')
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1117 (segmentation fault of cppcheck)
2009-12-20 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, test/CMakeLists.txt: CMake - add 'make check'
-target. Tests are now excluded from normal targets to make compiling faster.
'make check' -target will compile and run tests.
2009-12-20 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt, gui/CMakeLists.txt, lib/CMakeLists.txt,
test/CMakeLists.txt: CMake - use more strict compiler flags.
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: Preprocessor: Use 'unsigned char' instead of
'char'
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp: code cleanup
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp: stl size: minor fix to prevent segmentation
fault when token is null
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.h: stl size: added documentation
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp,
test/testconstructors.cpp: Fixed #1093 (False positive: missing
constructor)
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkstl.cpp,
test/testbufferoverrun.cpp: astyle
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: CMake- fix building GUI from different
directory.
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt: CMake - disable building GUI for Cygwin.
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* : commit d51520d656459780d4addc67cd2e1e3dd830bb2b Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Dec 19 16:54:38 2009 +0200
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck-gui.rc: Fix Windows GUI resource file.
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: robert reif:
Fixed #1118 (new check: use empty() instead of checking size()
against zero)
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: CMake
- cleaner way to set additional library for Windows.
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1107 (False positive:
Dangerous usage of erase, when using std::list)
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/filelister.cpp: lanurmi: Fixed #1016 (Patch: Refactor #ifdefs
in filelister.cpp)
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheck.vcproj, test/test.vcproj: Fixed #1101 (link error
with latest git in Visual Studio)
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj: C++ Builder: updated project file
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.h: added error info about the strncpy check
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: ericsesterhenn: Fixed #1106 (check if
buffer is zero terminated after a strncpy)
2009-12-17 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: CMake
- Fix Windows build.
2009-12-17 Kimmo Varis <kimmov@gmail.com>
* lib/CMakeLists.txt: CMake - add missing file in lib.
2009-12-17 Kimmo Varis <kimmov@gmail.com>
* lib/CMakeLists.txt: CMake - reorder files in lib's makefile.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: CMake - build GUI translation files.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, gui/CMakeLists.txt: CMake GUI build - fix adding
resources to GUI.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, gui/CMakeLists.txt: Build GUI using CMake. This is a start for building GUI with CMake. It works but it is a
bit ugly.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, test/CMakeLists.txt: Add testsuite to CMake build
files.
2009-12-12 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, cli/CMakeLists.txt, lib/CMakeLists.txt: Add simple
CMake build files to build lib and cli. Apparently not everybody wants to use QMake to build cppcheck. Which
is understandable if you only want to hack on/build lib and cli. Qt
and QMake are pretty lot to install for just that. So lets start using CMake. It is widely used and is "just" build
system and not programming framework. CMake is also easy to use for
building Qt software too so it can replace QMake. This first commit only builds lib and cli for Linux.
2009-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1086
(segmentation fault of cppcheck '#if
define(A)+define(B)+define(C)!=1')
2009-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1103 (false
positive: uninitialized variable when using references)
2009-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: TestLocalLeaks:
going out of scope
2009-12-15 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/cppcheck-htmlreport: cppcheck doesn't always report a
filename for an error. Added some error checking so this tool doesn't crash.
2009-12-15 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/setup.py: Added a installation script for the
cppcheck-htmlreport utility. The script uses distutils to install the script into /usr/bin/. The
following will install the script: sudo ./setup.py install
2009-12-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fix compiler error: cast from
'CheckLocalLeaks*' to 'int' loses precision
2009-12-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/lib.pri: fixed #1099 (GUI: unable to build gui from current
git-head)
2009-12-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1076
(Invalid number of character ({). Can't process file.)
http://sourceforge.net/apps/trac/cppcheck/ticket/1076
2009-12-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testmemleak.cpp: Added TestLocalLeaks
2009-12-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Test case for #1076 (Invalid number of
character ({). Can't process file.)
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1082 (False
positive: Resource leak in loop which exits only after releasing
resource)
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h, test/testcppcheck.cpp,
test/testpreprocessor.cpp, test/testsuite.cpp: Fixed #1084 (define
configuration lost)
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1058
(Preprocessor: extracting configuration for '#if DEF == 1')
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1072 (False
positive: class member initialization with '*p=0;')
2009-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* using_gcov.txt: removed deprecated file using_gcov.txt
2009-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1097 (Internal
error: When macro is not expanded 'ABC(for (i=0;i<10;i++) ..);')
2009-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1074 (Exception safety: auto deallocated classes don't leak)
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Fixed TODO_ASSERT_EQUALS
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1080 (false
positive: member variable not initialized)
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1075 (False
positive: uninitialized variable 'return bar(s);')
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/tokenize.cpp, test/testpreprocessor.cpp:
Fixed #1060 (Preprocessor: wrong define handling)
2009-12-11 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/cppcheck-htmlreport: index.html page is now complete
with a list of files and all errors found. Other changes: * added a stylesheet and made the html design much better. * contains links directly to the line in the source file.
2009-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1061 (false
positve: uninitialized variable)
2009-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1024
(Preprocessor: doesn't expand macro in macro)
2009-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Refactoring the
Preprocessor::expandMacros
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fix
#1071 ((style) The function 'throw' is never used)
http://sourceforge.net/apps/trac/cppcheck/ticket/1071
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Apply patch from #1066 (Speed up cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/1066
2009-12-08 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/README.txt, htmlreport/cppcheck-htmlreport: Added a
python script that takes the cppcheck output xml file and generates
a html report of it. The html report is complete with syntax
highlighted source code using the pygments module. This initial commit contains generation of html files but the actual
errors is missing from the html content and the index.html file.
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Fix #1069
(Minor spelling mistake across cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/1069
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Added test case for else if
simplification
2009-12-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1065 (Internal
error - incrementing single char in char array)
http://sourceforge.net/apps/trac/cppcheck/ticket/1065
2009-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1063 (False positive: deallocated memory doesn't leak upon
exception)
2009-12-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #1057 (Tokenizer:
negative numbers are not tokenized correctly in switch-case)
http://sourceforge.net/apps/trac/cppcheck/ticket/1057
2009-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: small fix to previous commit
2009-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: Minor refactoring for checkother.cpp
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: STL: fix iterator bug
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Visual C++: Suppress compiler warnings
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Reverted refactoring
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Fix so the unit tests work
again
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/cppcheck.cpp, lib/preprocessor.cpp,
lib/preprocessor.h, lib/settings.cpp, lib/settings.h: twistedwave:
Fixed #1055 (Support for inline suppressions)
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Refactoring to make it
simpler
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
newcheck: added the 'newcheck' functionality. It's still in early
state so it needs refactoring
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: class
checking: It's a 'possible style' error if a private constructor is
not initializing a member variable
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: restored to debugging mode
2009-12-06 Martin Ettl <martin@martin.(none)>
* gui/resultstree.cpp, gui/resultstree.h: gui:added an right-click
option "copy message"
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Updated Changelog
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: update the Makefile for the release
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheck.rc, cli/main.cpp, createrelease, lib/cppcheck.cpp,
win_installer/cli.wxs: version 1.39
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: suppress 'internal error' message about failed
template instantiation in release mode
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1052
(Internal error for 'int vals[] = { 0x13, 1?0x01:0x00 };')
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1051 (segmentation fault when there is
syntax error)
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1050
(Internal error: In tokenizer for: 'do { sizeof 1; } while (0);')
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1049 (Tokenizer: internal error for
'std::list<std::string[8]> w1, w2;')
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1048 (False positive: exceptNew error with nothrow)
2009-12-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Minor fixes to the man page.
2009-12-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: CRLF -> LF fix
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1046 (tokenizer:
internal error for 'discard_block< (1 << 24), 10, 24 > u, v;')
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, man/cppcheck.1.xml: updated help about --enable
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, lib/settings.cpp: Borland C++: fixed compiler
error and updated the project file to include iterator debugging
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp: Fixed #1044 (Access violation with
--enable=all)
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1026 (false positive: buffer access out of bounds)
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, lib/settings.cpp: Fixed #1043 (use cppcheck:..
syntax in error messages)
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/settings.cpp: --enable: readded code so that parameters can be
comma separated
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/settings.cpp: fix a bug in commit
84a6fe6b54c26acb5d1dc3fd57b1de9634a801b1
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: updated the manual
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, lib/settings.cpp, test/testexceptionsafety.cpp:
Fixed #1034 (change --enable to --enable=all)
2009-12-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testtokenize.cpp: Fix #1037 (tokenizing a nested do while,
while loop fails)
http://sourceforge.net/apps/trac/cppcheck/ticket/1037
2009-12-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkmemoryleak.cpp: astyle fix
2009-12-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Eric Sesterhenn:
Fixed #1032 (False positive resource leak with exit at end of
function)
2009-12-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1030 (wrong
line number with goto)
2009-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, test/testexceptionsafety.cpp: Refactoring: Parse
--enable values in Settings class
2009-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp: Add --unused-functions back to help, but mention
that it is deprecated.
2009-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2009-11-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testmemleak.cpp,
test/testsimplifytokens.cpp: ericsesterhenn: Fix #1028 (False
positive resource leak)
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fix #1022 (False positive:
uninitialized variable when using local struct)
2009-11-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp: Fix #986 (Move --all and --style to --enable)
http://sourceforge.net/apps/trac/cppcheck/ticket/986
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1027
(Internal error: sizeof a++)
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: changed error message when there an internal
error in Cppcheck is found
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1020
(lib/tokenize.cpp:4615: bool Tokenizer::validate() const: Assertion
0 failed)
2009-11-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h: validator bugs
are now printed using the errorlogger
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/check.h: DJGPP: fix runtime errors because list is destroyed
before objects
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro, test/test.pro: use checked STL in debugmode
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro: cli: in release use the NDEBUG to avoid assertions
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/gui.pro: gui: with the define NDEBUG the assertions are
disabled
2009-11-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/preprocessor.cpp: Use sizeOfType()
instead of sizeof(void*)
2009-11-28 Martin Ettl <martin@martin.(none)>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: partial
fix of ticket #997; added check for write() two testcases
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/token.cpp, lib/token.h,
lib/tokenize.cpp: mode change from 755 to 644
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1021 (Out-of-bounds access false positive)
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/token.cpp: minor fixes
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/token.cpp, lib/token.h: fixed buffer overrun and removed
redundant function Token::str
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: Borland C++: updated the testrunner project
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Borland C++: Fixed compiler error
2009-11-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp: Token debug function
printOut() can now print out filename instead of index
2009-11-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/testsimplifytokens.cpp: Fix #1018 (strcat(strcat()) causes
assertion in Tokenizer::validate) Test case provided by povaddict
http://sourceforge.net/apps/trac/cppcheck/ticket/1018
2009-11-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1015
(SIGABRT: Tokenizer::validate for openttd/src/ai/ai_config.cpp)
2009-11-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1014
(Preprocessor: Invalid preprocessing of '#define some_delete(x)
delete x;')
2009-11-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1007
(False positive array index out of bounds concerning a switch
statement in a for loop) Bailout if switch is found in for loop.
http://sourceforge.net/apps/trac/cppcheck/ticket/1007
2009-11-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/resultstree.cpp: Robert Reif: initialize array (#366)
2009-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cppcheck.wxs: windows installer: non-advertised
shortcut for manual. Seems to work better
2009-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #989
(CppCheck crashes on Win XP when scanning large
directories/subdirectories)
2009-11-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Added 'make man' to Makefile
2009-11-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.h: Fix #1003 (Compiler warning: is there a reason for
Tokenizer::getErrorMessages to be virtual?) Destructor is now
virtual. http://sourceforge.net/apps/trac/cppcheck/ticket/1003
2009-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Temporary fix for
#994 (cppcheck cannot check my sources with segfaulting)
2009-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #993 (Latest Git
drop aborts at 63% of wine tree)
2009-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/build3.bat: Installer: minor fix in build script
2009-11-22 Slava Semushin <php-coder@altlinux.ru>
* lib/preprocessor.cpp: lib/preprocessor.cpp: clean up code. Improvements for: 092f64b77a554848db35b263bfd252f266db80f3 No functional change.
2009-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h, lib/tokenize.h,
test/testpreprocessor.cpp: Fixed #982 (Preprocessor: detects and
remove conditions which always true)
2009-11-21 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp: Fixed #988
(Tokenizer::simplifyDoWhileAddBraces(): don't add braces after "do"
when it not a loop) FIXME: test cases needed. http://sourceforge.net/apps/trac/cppcheck/ticket/988
2009-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cli.wxs, win_installer/cppcheck.wxs,
win_installer/gui.wxs, win_installer/productInfo.wxi: Windows
Installer: added manual.pdf, renamed cppcheck.msi => cli.msi,
renamed gui.msi => cppcheck.msi, fixes for upgrading
2009-11-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #995
(false positive: buffer access out of bounds when using fgets)
http://sourceforge.net/apps/trac/cppcheck/ticket/995
2009-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #985
(Detect buffer overrun with read())
http://sourceforge.net/apps/trac/cppcheck/ticket/985
2009-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #965
(Division by zero false positive with nested macros)
2009-11-21 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #990
(Tokenizer::simplifyIfAddBraces() handle case where statement after
if doesn't end by semicolon) http://sourceforge.net/apps/trac/cppcheck/ticket/990
2009-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #960
(Tokenizer::validate() assertion failure with mismatched brackets)
2009-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Fixed #912 (### Unlogged error at
Tokenizer::syntaxError: Invalid number of character (())
2009-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/resultstree.cpp: Fix #864 (GUI fails to open second position
for multi-line errors) Apply patch from robertreif
http://sourceforge.net/apps/trac/cppcheck/ticket/864
2009-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp: Fix #981 (GUI saves report with wrong
extension) Apply patch from robertreif
http://sourceforge.net/apps/trac/cppcheck/ticket/981
2009-11-20 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #983
(Tokenizer::simplifyTypedef() incorrectly substitute type inside
namespace) http://sourceforge.net/apps/trac/cppcheck/ticket/983
2009-11-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Add execution parameters to codeblocks project file:
p.cpp --debug
2009-11-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #971
(Preprocessor: Handle partial macro in macro)
http://sourceforge.net/apps/trac/cppcheck/ticket/971
2009-11-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #968 (False
positive when TEMP_FAILURE_RETRY used)
2009-11-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Added a few TODO test cases for #971
(Invalid number of characters (())
http://sourceforge.net/apps/trac/cppcheck/ticket/971
2009-11-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: astyle fix
2009-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: fixed testcase so it's valid syntax
2009-11-18 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #970 (Tokenizer:
Incorrect comparison order simplification) Revert changes from 11cb7b4710cf78be6d6efc8ad3165e0e98cadd3a commit
for lib/tokenize.cpp (fixed it by another way). Teach unsignedint() to expand "unsigned" in casts. http://sourceforge.net/apps/trac/cppcheck/ticket/970
2009-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: refactorings
2009-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/resultstree.cpp: robertreif: Fixed #442 (Filter duplicate
errors in GUI)
2009-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/resultstree.cpp: robertreif: Fixed #726 (GUI: Fix quoting of
paths with spaces in Windows)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/buildman.sh, man/manual.docbook: Manual: Minor refactorings.
Added a simple build script
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #925 (uninitialized
deletion not detected)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/mathlib.cpp: Fixed #891 (false positive: division by zero)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/mainwindow.cpp: gui: fixed compiler error
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: better description of --enable (#883)
2009-11-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp: Minor fix to previous commit
2009-11-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp,
test/testother.cpp: Fix #964 (Integer division by zero exception)
http://sourceforge.net/apps/trac/cppcheck/ticket/964
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/cppcheck.1.xml: manual: updated the manpage regarding --enable
(#883)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: help screen updates for the --enable command
(#883)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, test/testexceptionsafety.cpp: Fixed #883 (Add new
command line argument --enable)
2009-11-15 Slava Semushin <php-coder@altlinux.ru>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #842
(out of bounds: when buffer is allocated with malloc) http://sourceforge.net/apps/trac/cppcheck/ticket/842
2009-11-15 Slava Semushin <php-coder@altlinux.ru>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #900
(Improve out-of-bounds check to detect error with "new char(x)") http://sourceforge.net/apps/trac/cppcheck/ticket/900
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #953 (false
positive: 'uninitialized variable' with function pointer)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #483 (False
positive: found leak when foreach for lists used)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
simple code cleanup
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #915 (false
positive: memory leak for struct member (allocated in condition)
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #936 (false
positive: uninitialized variable '.. else return; .. ')
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: some minor refactorings
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: removed command line flag --exception-safety
from the help page
2009-11-14 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #961 (Tokenizer:
call simplifyCasts() before removing "unsigned" keyword) http://sourceforge.net/apps/trac/cppcheck/ticket/961
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: Manual: Minor refactorings
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #944 (new false positives against Wine
Git Tree)
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #913 (false
positive: uninitialized variable)
2009-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
When #error is encountered the result is an empty string => don't
check configuration
2009-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #919
(possible memory leak not detected)
2009-11-14 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #954
(Tokenizer: correctly simplify sizeof of class members) http://sourceforge.net/apps/trac/cppcheck/ticket/954
2009-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: added the section 'introduction'
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fix #945
(Array index out of bounds not detected, because of "int const")
http://sourceforge.net/apps/trac/cppcheck/ticket/945
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/tokenize.cpp, test/testbufferoverrun.cpp: Fix
#947 (Errors not detected when size_t is used instead of int)
http://sourceforge.net/apps/trac/cppcheck/ticket/947
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #946
(False positive: Buffer access out-of-bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/946
2009-11-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #951
(Preincremented struct member confused with numeric constant)
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: Test case for
#903 (segmentation fault of cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/903
2009-11-13 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp: Fixed #903 (segmentation fault of cppcheck) http://sourceforge.net/apps/trac/cppcheck/ticket/903
2009-11-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #950 (Bug in
cppcheck tokenize.cpp)
2009-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: Manual: Working draft for a Cppcheck manual
2009-11-12 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp: Fixed #935 (Tokenizer: link() problem) http://sourceforge.net/apps/trac/cppcheck/ticket/935
2009-11-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h: Use validate
after tokenize and simplifyTokenlist calls. Disabled until known
problems fixed.
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Uninitialized variables:
detect uninitialized pointer array
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #928 (false
positive: member variable not initialized in constructor)
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #931 (Invalid interator
false positive with identical variable names)
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #929 (Uninitialized
variable false positive)
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #932 (false positive:
Dereferenced iterator 'i' has been erased)
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: astyle formatting
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: unit testing: minor syntax updates
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: minor updates
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: unit testing: minor syntax fixes
2009-11-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Made some syntax errors slightly easier to
detect.
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/main.html, htdocs/top.html: webpage: removed main.html and
top.html
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/help.html, htdocs/index.html: webpage: removed the
index.html and help.html
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/help.html, htdocs/index.html, htdocs/main.html,
htdocs/top.html: webpage: created a simple website for us
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkother.cpp, test/testexceptionsafety.cpp: Fixed #832
(Exception Safety: deallocating member pointer and then throwing
exception)
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: extract more tests
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #910 (false
positive: uninitialized variable for array)
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun.cpp: fixed unit test
error
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: extract to cpp instead and
don't generate the Makefile - it's easier to use a simple standard
Makefile instead.
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun.cpp: minor updates
to make it work better as extracted code
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: Added a simple program for
extracting testcode from our unit testing
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun: minor updates to
make the code more easily compilable
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: uninitialized data: minor
fix to handle 'new char [' better
2009-11-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: astyle fix
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
uninitialized data: added more checking for allocated data
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #907
(Tokenizer: known result of strlen)
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fixed #905 (memory leak not detected when
using puts)
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.sln: Visual C++: removed 'gui' target from the cppcheck
solution
2009-11-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #903
(false positive: buffer access out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/903
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: cleanup in testbufferoverrun.cpp
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
better checking of strncpy
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: removed --exception-safety and added --enable
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #904 (false
positive: uninitialized variable)
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #902 (false
positive: uninitialized variable when variable is initialized in
macro)
2009-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #898
(Tokenizer: remove unneeded const after *)
2009-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #897 (false
positive: uninitialized variable when assigning pointer to array to
struct member)
2009-11-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #896 (False positive with --all when return value of open() is
positive in a loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/896
2009-11-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.h, test/testexceptionsafety.cpp: updated
error message when memory leaks upon exception
2009-11-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Add one more test case for #895 (false
positive: Suspicious pointer subtraction)
2009-11-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fix #895 (false positive:
Suspicious pointer subtraction)
http://sourceforge.net/apps/trac/cppcheck/ticket/895
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: use Token::link instead of findmatch to find
']'
2009-11-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/teststl.cpp, test/testtokenize.cpp: Fix
#894 (Invalid line number in "Invalid number of character")
http://sourceforge.net/apps/trac/cppcheck/ticket/894
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #893 (False
Positive: Uninitialized variable b in a[0] = b[0] = '\0';)
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
test/testexceptionsafety.cpp: Exception safety: added check for
unsafe reallocation of member pointer
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
test/testexceptionsafety.cpp: Exception Safety: detect unsafe
multiple new in a execution path (#831)
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #890 (false
positive: Uninitialized variable when pointer takes the address to
array)
2009-11-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #881 (Tokenizer:
Something seems to be wrong in Tokenizer::simplifyKnownVariables)
http://sourceforge.net/apps/trac/cppcheck/ticket/881
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: STL: refactoring and fixing
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: Refactoring
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: astyle
formatting
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL: added
check for dangerous usage of std::find (#829)
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #764 (usage of
unitialized variable not detected)
2009-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testother.cpp,
test/testpreprocessor.cpp: Fixed #882 (false positive: uninitialized
variable)
2009-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #889 (false
positive: uninitialized variable)
2009-11-01 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: fixed todo testcase
2009-11-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed segmentation
fault. Had to change one test case to TODO for now.
2009-11-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testclass.cpp, test/testsimplifytokens.cpp:
Fixed #880 (Tokenizer: The Tokenizer::simplifyTemplates doesn't
handle recursive templates)
2009-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Templates: Better
handling of recursive templates
2009-11-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fix #884 (False positive:
Possible null pointer reference about a non-pointer)
http://sourceforge.net/apps/trac/cppcheck/ticket/884
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h,
test/testexceptionsafety.cpp: Fixed #831 (Exception safety: multiple
new in a simple execution path)
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #843 (new check:
Passing uninitialized array to strlen/strdup/strcpy/strcat/etc)
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #877 (False positive:
After insert, iterator may be invalid)
2009-10-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Fix #685 (Include file not found is printed
with -v when include file is empty)
http://sourceforge.net/apps/trac/cppcheck/ticket/685
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #430
(Tokenizer: handle templates with partial specialisation)
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #876 (false
positive: uninitialized variable)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #875 (Uninitialized
variable: initialization in subfunction)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: uninitialized variables: return|goto are not
used in variable declarations
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: null pointer: fixed false
positive when condition checks if pointer is ok
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
#867 (unused member function warning)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
fixed false positive when switch is used
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Uninitialized pointers:
It's allowed to dereference uninitialized non-pointer variables
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #874 (false
positive: uninitialized variable)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
fixed false positives for member variables
2009-10-29 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: uninitialized variables: Added TODO testcase
for removing false positives
2009-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
uninitialized variables: added check
2009-10-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #870 (The
CheckClass::getVarList method detects 'const' as a variable name.)
http://sourceforge.net/apps/trac/cppcheck/ticket/870
2009-10-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #868
(False positive - buffer access out of bounds in for loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/868
2009-10-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp: Minor fix to previous commit
2009-10-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Modify
CheckBufferOverrun::checkGlobalAndLocalVariable() to use varid only.
Also add some TODO test cases.
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* all.pro, cppcheck.pro: Renamed top-level cppcheck.pro to all.pro
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheck.vcproj, test/test.vcproj: Visual Studio: Manually
edited the vcproj files. The absolute paths were replaced with
relative paths
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.pro: Restructuring: updated the top cppcheck.pro file
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro, cli/cppcheck.vcproj, cli/resource.h, cppcheck.sln,
cppcheck.vcproj, gui/gui.pro, lib/lib.pri, lib/resource.h,
test/test.vcproj, testrunner.sln, testrunner.vcproj: Restructuring:
Updated the Visual Studio project files. They are now generated by
qmake
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Detect simple leak
2009-10-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/build1.bat, win_installer/build2.bat: Make switching
QT version easier in build batch files.
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/errorlogger.cpp: Fixed #854 (invalid XML generated for folders
containing &)
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #860 (Improve
double delete detection)
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj: Restructuring: Updated the Borland C++ project
file
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro, cli/cppcheck.rc, gui/gui.pro, lib/cppcheck.rc,
win_installer/build.proj, win_installer/build1.bat,
win_installer/build2.bat, win_installer/build3.bat: Restructuring:
updated win_installer scripts
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Test case for #863 (false positive
memset array of pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/863
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testsimplifytokens.cpp: Fix #863
(false positive memset array of pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/863 Also fix test
cases for 64 bit systems.
2009-10-27 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp, lib/settings.h: simple optimisation
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.vcproj, testrunner.vcproj: Apply patches from polygon7 to
fix #857 (Compilation error after refactoring the folder structure)
http://sourceforge.net/apps/trac/cppcheck/ticket/857
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, tools/dmake.cpp: astyle fix
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: Restructuring: Updated the dependency
walker
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* test/test.pro: Restructuring: Updated test/test.pro
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/cppcheck.h: Refactoring: Changed pointer to
reference
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* doxyfile: Restructuring: Doxyfile updated
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* generate_coverage_report: Restructuring: Generate coverage report
2009-10-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: codeblocks project file updated
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Refactoring: Updated Makefile
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/main.cpp, cli/threadexecutor.cpp, cli/threadexecutor.h,
lib/cppcheckexecutor.cpp, lib/cppcheckexecutor.h, lib/lib.pri,
lib/threadexecutor.cpp, lib/threadexecutor.h: restructuring the
folder structure
2009-10-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/mainwindow.cpp, lib/cppcheck.cpp,
lib/cppcheck.h: Refactoring: Make Cppcheck::version() static Update
codeblocks projectfile
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cli.pro, cli/cppcheckexecutor.cpp,
cli/cppcheckexecutor.h, cli/main.cpp, cli/threadexecutor.cpp,
cli/threadexecutor.h, gui/checkthread.h, gui/gui.pro,
gui/mainwindow.cpp, gui/resultsview.h, gui/threadhandler.h,
gui/threadresult.h, lib/cppcheckexecutor.cpp,
lib/cppcheckexecutor.h, lib/lib.pri, lib/src.pri, lib/src.pro,
lib/threadexecutor.cpp, lib/threadexecutor.h: fixed qmake building
with new folder structure
2009-10-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Fixed typo in man page
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/main.cpp, cli/threadexecutor.cpp, cli/threadexecutor.h,
lib/check.h, lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h,
lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkheaders.cpp, lib/checkheaders.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkunusedfunctions.cpp,
lib/checkunusedfunctions.h, lib/classinfo.h, lib/cppcheck.cpp,
lib/cppcheck.h, lib/cppcheck.rc, lib/errorlogger.cpp,
lib/errorlogger.h, lib/filelister.cpp, lib/filelister.h,
lib/mathlib.cpp, lib/mathlib.h, lib/preprocessor.cpp,
lib/preprocessor.h, lib/resource.h, lib/settings.cpp,
lib/settings.h, lib/src.pri, lib/src.pro, lib/token.cpp,
lib/token.h, lib/tokenize.cpp, lib/tokenize.h, runastyle,
runastyle.bat, src/check.h, src/checkautovariables.cpp,
src/checkautovariables.h, src/checkbufferoverrun.cpp,
src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkexceptionsafety.cpp, src/checkexceptionsafety.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checkstl.cpp, src/checkstl.h, src/checkunusedfunctions.cpp,
src/checkunusedfunctions.h, src/classinfo.h, src/cppcheck.cpp,
src/cppcheck.h, src/cppcheck.rc, src/cppcheckexecutor.cpp,
src/cppcheckexecutor.h, src/errorlogger.cpp, src/errorlogger.h,
src/filelister.cpp, src/filelister.h, src/main.cpp,
src/mathlib.cpp, src/mathlib.h, src/preprocessor.cpp,
src/preprocessor.h, src/resource.h, src/settings.cpp,
src/settings.h, src/src.pri, src/src.pro, src/threadexecutor.cpp,
src/threadexecutor.h, src/token.cpp, src/token.h, src/tokenize.cpp,
src/tokenize.h, test/testautovariables.cpp,
test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdangerousfunctions.cpp,
test/testdivision.cpp, test/testexceptionsafety.cpp,
test/testfilelister.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.h,
test/testtoken.cpp, test/testtokenize.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, tools/dmake.cpp: refactoring the folder
structure
2009-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: Updated for the release
2009-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Changelog: updated the Changelog
2009-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss, win_installer/cppcheck.wxs: updated
version to 1.38
2009-10-24 Daniel Marjamäki <danielm77@spray.se>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #253
(MemoryLeakInClass: False positive when memory is released in
function, which is called from destructor)
2009-10-24 Daniel Marjamäki <danielm77@spray.se>
* src/checkunusedfunctions.cpp: don't report that the function
WinMain is unused
2009-10-23 Daniel Marjamäki <danielm77@spray.se>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Added
and fixed testcase TestMemleakInClass::class13
2009-10-22 Daniel Marjamäki <danielm77@spray.se>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #851
(Tokenizer: sizeof(*a) returns incorrect result)
2009-10-22 Daniel Marjamäki <danielm77@spray.se>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #428 (Memory
leak not detected with class)
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #844
(Tokenizer: Simplify 'sizeof *ptr' correctly)
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* src/checkstl.cpp, src/checkstl.h: Fixed #830 (id 'pushback' used
twice)
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* cppcheck.pro: Removed toplevel qmake pro file that doesn't work
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* cppcheck.geany: removed geany project file
2009-10-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #767
(Tokenizer: Known variable variable not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/767
2009-10-20 Daniel <daniel@daniel-desktop.(none)>
* src/checkother.cpp, test/testother.cpp: Fixed #839 (False
positive: possible null pointer dereference after new)
2009-10-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Minor refactoring.
2009-10-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Improved
countSprintfLength() to detect more errors with %d. Fixed some
errors from test cases. Added more test cases.
2009-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkexceptionsafety.cpp,
src/checkexceptionsafety.h, test/testexceptionsafety.cpp: Fixed by
#828 (Exception Safety: No throwing in destructors)
2009-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp: David Binderman: Remove dead variable
2009-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: Null
pointers: Detect code where the assignment is conditional
2009-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: STL: checking
that containers are matching
2009-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #827
(Tokenizer: sizeof is incorrectly simplified)
2009-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #449 (false
postive:: resource leak when using errno)
2009-10-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #826
(False positive: sprintf with "f%s")
http://sourceforge.net/apps/trac/cppcheck/ticket/826
2009-10-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/check.h, src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h:
Fix #825 (Error with id syntaxError not in list printed with
--errorlist) http://sourceforge.net/apps/trac/cppcheck/ticket/825
2009-10-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Fix segmentation fault with
--errorlist
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: unused struct member:
bail out when casting
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Pointer Aliasing:
Handle pointer aliasing through the
Tokenizer::simplifyKnownVariables
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testunusedvar.cpp:
Unused struct members: bail out upon casting
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/mainwindow.cpp, src/cppcheck.cpp, src/cppcheck.h: fixed
compiler error when building gui
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.h, src/cppcheckexecutor.cpp: Fixed
#824 (Exit code of cppcheck)
2009-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: stl: after
vector::insert, iterators may become invalid
2009-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #823
(Buffer overrun with memcpy)
2009-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: fixed doxygen
warning messages
2009-10-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #821
(Preprocessor: Wrong stringification in macros)
2009-10-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: Fixed #820 (Borland C++: Compiler errors because
of time_t)
2009-10-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Buffer
overrun errors behind function call should be possible errors.
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Move
buffer overrun errors behind --all Fix one possible error issue with
arrayindexoutofbounds Make sure that possible errors are not shown
without --all
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 4036dd5effb90957b2b9b7ffb861344215757953 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Tue Oct 13 22:39:51
2009 +0300
2009-10-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: stl: better checking for
invalid iterator after push_back
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/settings.cpp, src/settings.h: Fix #815 (rev. 47e9d1:
compilation error)
http://sourceforge.net/apps/trac/cppcheck/ticket/815
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Undocumented --showtime option should now work
on other platforms also. Improved --showtime to give more
information.
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp, gui/threadhandler.cpp, gui/threadhandler.h:
Fix #455 (Recheck is enabled when no previous results available)
http://sourceforge.net/apps/trac/cppcheck/ticket/455
2009-10-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit ed3860a0a74ffcd325d0380130de83e703f82659 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Mon Oct 12
21:36:28 2009 +0200
2009-10-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* readme.txt: Fix #814 (Improvements for readme.txt)
http://sourceforge.net/apps/trac/cppcheck/ticket/814
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #812
(False positive: sprintf with "%.4s" with --all)
http://sourceforge.net/apps/trac/cppcheck/ticket/812
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #694
(False (possible error) Buffer overrun with %-1s) ashim2009 did most
of the work http://sourceforge.net/apps/trac/cppcheck/ticket/694
2009-10-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* webreport.sh: script for creating web content
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h: Refactoring: Split null
pointer check into 4 smaller functions.
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testdivision.cpp: Fix #810 (false
positive: Division with signed and unsigned operators)
http://sourceforge.net/apps/trac/cppcheck/ticket/810
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Getting rid of warning C4267: 'return' :
conversion from 'size_t' to 'unsigned int'
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Getting rid of compiler warning: C4310: cast
truncates constant value
2009-10-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/build.proj, win_installer/build1.bat,
win_installer/build2.bat: win_installer: Added build scripts
2009-10-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/gui.wxs, win_installer/productInfo.wxi:
win_installer: minor tweaks
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/build.bat: a simple build script for building devinfo.html
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #808
(Segfault in Preprocessor)
http://sourceforge.net/apps/trac/cppcheck/ticket/808
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit d2e2b1d9feb1e826c7118e1c8c3f85ae89895e38 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sat Oct 10
22:10:33 2009 +0200
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Fix compiler warning warning C4512:
'PreprocessorMacro' : assignment operator could not be generated
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Get rid of compiler warning warning C4127:
conditional expression is constant
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Get rid of a compiler warning.
conversion from 'size_t' to 'int', possible loss of data
2009-10-10 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #809
(Tokenizer: don't replace sizeof() of unknown type to zero) http://sourceforge.net/apps/trac/cppcheck/ticket/809
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: Added testcase for #807 (cppcheck crashes
scanning ruby 1.9.1)
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: minor refactoring
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Borland C++: Fixed compiler errors
2009-10-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #806 (cppcheck
crashes scanning openssl)
2009-10-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: jonas054: fixed #807 (cppcheck crashes scanning
ruby 1.9.1)
2009-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leaks: minor cleanups
2009-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: optimisation: made the memory leaks
checking faster
2009-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: optimisation: removed duplicate call of
Tokenizer::setVarId
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/settings.cpp,
src/settings.h: Fix #674 (Feature request: error filtering)
--suppressions argument added to CLI
http://sourceforge.net/apps/trac/cppcheck/ticket/674
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: More test cases for sprintf counter
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: sprintf
counter improvements
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #802 (possible null
pointer dereference reported for reference)
http://sourceforge.net/apps/trac/cppcheck/ticket/802
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkstl.cpp: Use var id instead of var name in check stl.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkstl.cpp: Use varid instead of varname in stl check.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/checkstl.cpp, test/testother.cpp,
test/teststl.cpp: Optimize speed and fix one false positive with stl
checks.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Added more test cases for sprintf
counter
2009-10-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Ashim
Kapoor: updated the counter (#694)
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Refactoring: Moved some code into a new
function. Renamed count->countSprintfLength. Added code to collect
sprintf parameters. Added a few TODO test cases.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #801
(Tokenizer: Simplify sizeof for function parameters)
http://sourceforge.net/apps/trac/cppcheck/ticket/801
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #487
(Tokenizer: Simplify sizeof for string array and string pointer)
http://sourceforge.net/apps/trac/cppcheck/ticket/487
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkmemoryleak.cpp,
src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Refactored sizeof simplification and fixed one TODO assert.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Detect referenced by value
errors for std::map also.
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #388 (resource
leak not detected, allocation through function call)
http://sourceforge.net/apps/trac/cppcheck/ticket/388
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #796
(segmentation fault while scanning)
http://sourceforge.net/apps/trac/cppcheck/ticket/796
2009-10-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: don't
write errors for static member variables
2009-10-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: Fix #797
(false positive: variable scope when using function call)
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #575
(Array index out of bounds check: get address of one-past-the-end
array is legal) http://sourceforge.net/apps/trac/cppcheck/ticket/575
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #580 (double
free not found) http://sourceforge.net/apps/trac/cppcheck/ticket/580
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: Moved some
test cases from testtokenize into testsimplifytokens and added one
TODO case.
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #795
(Preprocessor: Incorrect handling of #if (A) || (B))
http://sourceforge.net/apps/trac/cppcheck/ticket/795
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #765 (divsion by zero
not detected in std::cout stream)
http://sourceforge.net/apps/trac/cppcheck/ticket/765
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Removed variable that wasn't used.
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Replace substr() with compare() to speed up
preprocessing. See #762 (version 1.37 of cppcheck runs extremely
slowly on windows)
http://sourceforge.net/apps/trac/cppcheck/ticket/762
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #794
(Floating point exception on CheckBufferOverrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/794
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #365 (Improve
simplifyQuestionMark() in tokenize.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/365
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Refactoring: Remove
findClosing(). It is replaced by Token::link().
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #771 (False positive.
Null pointer dereference in a switch case)
http://sourceforge.net/apps/trac/cppcheck/ticket/771
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix
simplifyRedundantParanthesis() to work after '}'
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #776
(Tokenizer: remove useless brackets around variable assignment)
http://sourceforge.net/apps/trac/cppcheck/ticket/776
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #778
(Tokenizer: impove simplification inside if())
http://sourceforge.net/apps/trac/cppcheck/ticket/778
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #793 (Improve
passedByValue check)
http://sourceforge.net/apps/trac/cppcheck/ticket/793
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* generate_coverage_report: Better cleanup for coverage script.
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* generate_coverage_report: Add script generate_coverage_report for
generating test coverage report using gcov and lcov
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #777
(Tokenizer: double casting simplified incorrectly)
http://sourceforge.net/apps/trac/cppcheck/ticket/777
2009-10-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #784
(Tokenizer: Simplify 2[a] -> a[2])
http://sourceforge.net/apps/trac/cppcheck/ticket/784
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #789 (false
positive: resource leak reported when using for loop)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: Fixed #786 (memleak: segmentation fault
for 'if TRACE_ON(x)')
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Minor fixes (#772)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #785 (False
positive: resource leak of extern FILE*)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: doc: fixed linebreak in previous commit
6aea2faacd
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: doc: refactoring of the docs for CheckOther
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h: Removed
CheckOther::warningIf
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #727 (False
positive: Resource leak when release is done inside function call)
2009-10-04 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h: Fixed #783
(Refactoring: autoVariables error message is hard coded in 3
locations) http://sourceforge.net/apps/trac/cppcheck/ticket/783
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: astyle formatting
2009-10-04 Slava Semushin <php-coder@altlinux.ru>
* test/testother.cpp: Fixed #782 (Checks are missing test cases) http://sourceforge.net/apps/trac/cppcheck/ticket/782
2009-10-04 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.h: src/preprocessor.h: fixed comment. removeParantheses() doesn't throws exception. Correction for 1a48f869c84018d73fd63bf59263224b019a5997 commit. No code change.
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp,
test/testsimplifytokens.cpp, test/testtokenize.cpp: use '<'
comparisons instead of '>' (#610)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fixed #772 (Preprocessor: #if(A) is not
seen equal to #if A)
2009-10-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #733 (New
check: locking & unlocking mutex and semaphore variables)
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #780
(Tokenizer: replace typedef for pointers to struct) http://sourceforge.net/apps/trac/cppcheck/ticket/780
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp: Token::Match(): made message about bug more
verbose.
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: Fixed #775 (###### If you see this,
there is a bug ###### Token::Match() - varid was 0) http://sourceforge.net/apps/trac/cppcheck/ticket/775
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyVarDecl(): join 2 conditions. No functional change.
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #770 (Tokenizer:
Var id not set for static variables in some cases) http://sourceforge.net/apps/trac/cppcheck/ticket/770
2009-10-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/tokenize.cpp: Borland C++: Fixed
compiler errors
2009-10-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Attempt to speed up preprocessing on
macro-in-macro situations. See #762 (version 1.37 of cppcheck runs
extremely slowly on windows)
http://sourceforge.net/apps/trac/cppcheck/ticket/762
2009-10-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: TODO test cases
TestTokenizer::vardec_static added
2009-10-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Abort comma simplification when ", %num%" is
detected. This increases speed a lot in some rare situations.
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: refactoring unit tests
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed
#679 (False positive: Unused private function produced by exception
specification)
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/application.ui: eliedebrauwer: fix typo (#755)
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/cppcheck_nl.ts: eliedebrauwer: dutch translation (#756)
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/gui.pro, gui/translationhandler.cpp: eliedebrauwer: dutch
translation (#756)
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Minor fix to man page
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #421 (Memory
leak not found when typeid() is used.)
http://sourceforge.net/apps/trac/cppcheck/ticket/421
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Trivial refactoring
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #741
(False positive: Buffer overrun with -a when index increased in
multiple locations)
http://sourceforge.net/apps/trac/cppcheck/ticket/741
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fix #419 (missleading buffer overrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/419
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Removed dead code created by previous commit
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #763
(Tokenizer: Goto incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/763
2009-09-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: fixed TODO_ASSERT_EQUALS
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testsimplifytokens.cpp, test/testtokenize.cpp: Fix #745 (false
positive: possible null pointer dereference , while)
http://sourceforge.net/apps/trac/cppcheck/ticket/745
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #744
(False positive: (possible error) Array index out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/744
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #759 (Tokenizer:
Incorrect var id when two variables with same name)
http://sourceforge.net/apps/trac/cppcheck/ticket/759
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp: Fix
#761 (Tokenizer: typedef inside class is incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/761
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #760
(Tokenizer: Goto not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/760
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Added TODO test cases:
simplifyTypedef, simplifyTypedef2, simplifyTypedef3
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #750 (cppcheck wants
variable outside do-loop to be only inside loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/750 Fix #758 (False
positive on variable scope with boost foreach)
http://sourceforge.net/apps/trac/cppcheck/ticket/758
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Changed simplifyConditionOperator() to create
also {} around if and else Fixed validate() in tokenizer.
2009-09-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: added a TODO_ASSERT_EQUALS for the
counter
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Fix #757 (Change message: (style) The class 'KClass' has no
constructor) http://sourceforge.net/apps/trac/cppcheck/ticket/757
2009-09-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::tokenize(): removed useless
const_cast. No functional change.
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: TODO test case for count() added
2009-09-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Ashim
Kapoor: deal with backspace better (#694)
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Fix comment in test case
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.h, test/testother.cpp: Check nullpointer check is
now executed without --style flag Added TODO test case for
nullpointer check
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #751 (if-condition
considered redundant even with else-branch)
http://sourceforge.net/apps/trac/cppcheck/ticket/751 Fix also other
issue with if(a.b) delete c.b; Fix also other issue with if(a.b.c)
delete a.b.c;
2009-09-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #746 (False
positive, Memory leak when goto is used)
2009-09-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
a TODO_ASSERT_EQUALS for a false positive
2009-09-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp: Fix #739 (Pre-defined output
format templates)
http://sourceforge.net/apps/trac/cppcheck/ticket/739 Patch from
lanurmi. Slightly modified by me.
2009-09-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fix #754
(Tokenizer: transform modifier "signed" to "int")
http://sourceforge.net/apps/trac/cppcheck/ticket/754 Also fix int
unsigned -> unsigned int
2009-09-28 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #753 (Tokenizer:
don't simplify variables inside do {} while loop) http://sourceforge.net/apps/trac/cppcheck/ticket/753
2009-09-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: Refactoring the unit testing of format
strings
2009-09-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #728 (False
positive, resource leak, when released in a loop)
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: fixed
regression. test suite was broken after my
e8c83613e4bcc95b7c3d91d5c71f4e2363a5cdf3 commit.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #740
(False positive, buffer overrun with --all) Regression since 07f41f4563fc138b527af6ce153433a661250020 commit. http://sourceforge.net/apps/trac/cppcheck/ticket/740
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: removed
useless semicolon. No functional change.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #738
(False Buffer overrun with -a when i is increased by more than 1
inside loop body) http://sourceforge.net/apps/trac/cppcheck/ticket/738
2009-09-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/aboutdialog.cpp, gui/aboutdialog.h,
gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/applicationlist.cpp, gui/applicationlist.h,
gui/checkthread.cpp, gui/checkthread.h, gui/common.h,
gui/csvreport.cpp, gui/csvreport.h, gui/fileviewdialog.cpp,
gui/fileviewdialog.h, gui/main.cpp, gui/mainwindow.cpp,
gui/mainwindow.h, gui/projectfile.cpp, gui/projectfile.h,
gui/report.cpp, gui/report.h, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h,
gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, gui/threadhandler.h, gui/threadresult.cpp,
gui/threadresult.h, gui/translationhandler.cpp,
gui/translationhandler.h, gui/txtreport.cpp, gui/txtreport.h,
gui/xmlreport.cpp, gui/xmlreport.h, src/check.h,
src/checkautovariables.cpp, src/checkautovariables.h,
src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkclass.cpp, src/checkclass.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checkstl.cpp, src/checkstl.h, src/checkunusedfunctions.cpp,
src/checkunusedfunctions.h, src/classinfo.h, src/cppcheck.cpp,
src/cppcheck.h, src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, src/filelister.cpp,
src/filelister.h, src/main.cpp, src/mathlib.cpp, src/mathlib.h,
src/preprocessor.cpp, src/preprocessor.h, src/settings.cpp,
src/settings.h, src/threadexecutor.cpp, src/threadexecutor.h,
src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testcppcheck.cpp,
test/testdangerousfunctions.cpp, test/testdivision.cpp,
test/testfilelister.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsimplifytokens.cpp, test/teststl.cpp,
test/testsuite.cpp, test/testsuite.h, test/testtoken.cpp,
test/testtokenize.cpp, test/testunusedfunctions.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp,
tools/dmake.cpp: Fix GPL comments in all files. ">." was missing
from the end.
2009-09-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Remove redundant comparison
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #714
(False Buffer overrun with -a when i is increased by more than 1 in
a loop) http://sourceforge.net/apps/trac/cppcheck/ticket/714
2009-09-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/mathlib.cpp, src/mathlib.h, src/tokenize.cpp, src/tokenize.h,
test/testsimplifytokens.cpp: Fix #720 (String length for strings
like this "\x61" is calculated wrong)
http://sourceforge.net/apps/trac/cppcheck/ticket/720
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Detects invalid iterator
inside for() when postfix form of increment used.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed #735 (Detects invalid
iterator after push_back() when iterator declared inside for()) http://sourceforge.net/apps/trac/cppcheck/ticket/735
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Detect
buffer overruns when ?: use as sprintf() argument.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #729
(False positive: Buffer overrun when ? is used to select parameter) http://sourceforge.net/apps/trac/cppcheck/ticket/729
2009-09-26 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, test/testbufferoverrun.cpp, test/testtoken.cpp:
Fixed #731 (False positive, strcpy copying a buffer with a null
character) http://sourceforge.net/apps/trac/cppcheck/ticket/731
2009-09-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: CheckBufferOverrun::count(): commented
out debug message. Added in 3da779725db1de541fd5e0c14468b3b09e6234a6 commit.
2009-09-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Ashim
Kapoor: handle %i,%f,%d,%x,%X better (#694)
2009-09-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #732 (Tokenizer:
Incorrect simplification) Regression since 58a9e05697b4585883bbc00153d1584d9247190f commit. http://sourceforge.net/apps/trac/cppcheck/ticket/732
2009-09-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: Fixed #710 (False positive:
invalid vector iterator after push_back)
2009-09-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #718 (False
positive, resource leak when break in a loop before exit)
2009-09-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #730
(False positive, buffer overrun with strncpy)
http://sourceforge.net/apps/trac/cppcheck/ticket/730
2009-09-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leaks: Added a TODO assertion for a
false positive
2009-09-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #678 (False
positive: Unused private function produced by inner class)
2009-09-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Ashim Kapoor: Added function that
returns minimum size of format strings (#694)
2009-09-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 16e55f4f8908acbc47b76ad7f89c73df2dabd8fe Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Thu Sep 24 23:46:08
2009 +0300
2009-09-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: fixed
a TODO_ASSERT_EQUALS
2009-09-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Revert "Makefile: made it ready for release" This reverts commit 67d695437430e93a788a378cb73611ff49fb7229.
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #700 (False
positive: Memory leak)
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.h, src/tokenize.h, testrunner.vcproj: Replaced
UNIT_TESTING ifdef with _MSC_VER
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #713 (Tokenizer:
Simplify 0L) http://sourceforge.net/apps/trac/cppcheck/ticket/713
Use MathLib to handle other variations of 0.
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheckexecutor.h: Changed some CppcheckExecutor functions
and variables protected and virtual.
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/gui.wxs: added wix file for gui installation
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* readme.txt: cross compiling info added to readme.txt
2009-09-23 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifySizeof(): use Token::getStrLength(). Fixed wrong result when string contains escaped quotes. Correction for 0e729fedc070962d1023d4cd9ad9bdaa8e0eee30 commit.
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cppcheck.wxs: Windows Installer: A simple installer
without the gui
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #713 (Tokenizer:
Simplify 0L) http://sourceforge.net/apps/trac/cppcheck/ticket/713
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: updated the Changelog
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: made it ready for release
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss: updated version to 1.37
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #716
(segmentation fault: sizeof string)
2009-09-22 Slava Semushin <php-coder@altlinux.ru>
* test/testdivision.cpp: test/testdivision.cpp: fixed syntax errors
in TestDivision::division8 Before testrunner complains: ### Unlogged error at Tokenizer::syntaxError: Invalid number of
character ({) ### Unlogged error at Tokenizer::syntaxError: Invalid
number of character ({) ### Unlogged error at
Tokenizer::syntaxError: Invalid number of character ({) Broken since 36c7108a2821c477cf4d5eb9289281de8cd285ce commit where
test case was added.
2009-09-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::createLinks(): fixed typo in comment. Since commit 1c01dd64f353d6872ec4b04867393aa283423445.
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #715 (False
positive: Resource leak when exit() after if loop)
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #702 (If you see
this, there is a bug - varid was 0)
2009-09-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #706 (false
positive: invalid number of character ((), can't process file)
http://sourceforge.net/apps/trac/cppcheck/ticket/706
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #701 (false
positive: Invalid deallocation)
http://sourceforge.net/apps/trac/cppcheck/ticket/701
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #703 (Tokenizer:
Create links for [])
http://sourceforge.net/apps/trac/cppcheck/ticket/703
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: astyle fix
2009-09-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Changelog
2009-09-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss, win_installer/cppcheck.wxs: Version:
1.36
2009-09-20 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Additional fix for better
simplifying array declaration. Pointed out by hyd_danmar@ in IRC. Addressed to #696
2009-09-20 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #690
(False positive: (possible error) Buffer overrun) http://sourceforge.net/apps/trac/cppcheck/ticket/690
2009-09-20 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #696 (Tokenizer:
Simplify array declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/696
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #667
(Preprocessor does not handle macro inside macro correctly)
http://sourceforge.net/apps/trac/cppcheck/ticket/667
2009-09-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp, test/testtokenize.cpp: astyle fix
2009-09-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h, src/tokenize.cpp, test/testother.cpp: Fixed #673
(False positive: null pointer dereference when dynamic cast is used)
2009-09-19 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h: Token::stringifyList(): removed const
modifier from parameter. const useless in this case because argument passed by value. No functional change.
2009-09-19 Slava Semushin <php-coder@altlinux.ru>
* test/testtokenize.cpp: test/testtokenize.cpp: refactoring code. - introduce and use simplifyKnownVariables() function - don't append leading space to result string with tokens No functional change.
2009-09-19 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.h: Preprocessor: document that removeComments()
may throws exception. No code change.
2009-09-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #688 (False positive in error category
when --all is used)
2009-09-18 Vesa Pikki <spyree@gmail.com>
* gui/checkthread.cpp: Fixed ticket#687. Thread state is now
initialized to "Ready".
2009-09-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: Preprocessor: Skip BOM
2009-09-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #676 (The scope of
variable can actually not be limited)
2009-09-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #677 (False
positive: Unused private function produced by class member
initialization)
2009-09-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fixed by #675 (false
positive: when operator is overloaded)
2009-09-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #684
(Tokenizer: (65536*72/100) incorrectly simplified to zero)
http://sourceforge.net/apps/trac/cppcheck/ticket/684
2009-09-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #671 (False
positive. Leak when loop is before exit)
2009-09-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testdivision.cpp: Fixed #669 (possible
style without --all + false positives)
2009-09-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: TODO test case for preprocessor macro
handling
2009-09-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #658
(Assertion 'begin != __null' failed)
2009-09-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #670 (Tokenizer:
Simplify '\0' into 0)
http://sourceforge.net/apps/trac/cppcheck/ticket/670
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Tokenizer: Added a simple
validation function that we can use during debugging
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: simplifyTemplates: assert that braces and
parantheses are handled correctly
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* test/testsimplifytokens.cpp: TestSimplifyTokens::sizeof_(): don't
append leading space. No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp: Token::getStrLength(): fixed errors from valgrind. Correction for 13b2edd61e70d4d886e0cf5ba587aa8b2f9f2d3e commit.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #645
(Tokenizer::simplifyCasts() breaks link() if casts function) http://sourceforge.net/apps/trac/cppcheck/ticket/645
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* test/testtoken.cpp: TestTOKEN::getStrLength(): allocate tok
variable in stack (instead of in heap) No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp: Token::getStrLength(): use Token::strValue(). No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h: Token::strValue(): added const
modifier. Correction for 241f585d34cb6f645d112c5e0cc54fe852c21c3b commit. No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyMathFunctions(): change return type to void. Correction for 241f585d34cb6f645d112c5e0cc54fe852c21c3b commit. No functional change.
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkbufferoverrun.cpp, src/checkmemoryleak.h,
src/cppcheck.cpp, src/preprocessor.cpp, src/threadexecutor.h,
src/tokenize.cpp, src/tokenize.h: Fixed #478 (Warnings in Visual
Studio build with -W4)
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: added test assertion. simplify
';alloc;exit;' to ';exit;'
2009-09-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testsimplifytokens.cpp, test/testtoken.cpp: Fix #594 (division
by zero not detected when using atol or atof)
http://sourceforge.net/apps/trac/cppcheck/ticket/594 Simplify
atol("0") into 0 (and other atol() calls also)
2009-09-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Fix #662 (Command line option --append not
documented) http://sourceforge.net/apps/trac/cppcheck/ticket/662
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: minor
refactorings
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, test/testclass.cpp: Fixed
#375 (new check: Detect when using 'this-x')
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #518 (False
positive for leaks when function from err()-family used)
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #644
(Tokenizer::simplifyComma: Wrong simplification in cast)
2009-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: More Fixing of
#635 (Preprocessor: remove 'asm(...)')
2009-09-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/mathlib.cpp, test/testmathlib.cpp: Fix ticket #632 (Mathlib
isInt() identifies "330L" as not int)
http://sourceforge.net/apps/trac/cppcheck/ticket/632
2009-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Simple fix for #635 (preprocessor: remove
'asm(...)')
2009-09-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Fixed some "is
passed by value" errors from cppcheck source.
2009-09-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Fix #656 (Improve
const-correctness)
http://sourceforge.net/apps/trac/cppcheck/ticket/656 Applied
slightly modified patch from elfring
2009-09-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: New test case in
TestSimplifyTokens::template_default_parameter
2009-09-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: Fixed #650 ('possible style' pre-incrementing
error shown without --all)
2009-09-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/settings.cpp, src/settings.h: Settings:
Added an 'append' command line flag that allows the user to provide
extra information about functions. See ticket #260
2009-09-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: astyle fix
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* test/testsimplifytokens.cpp: Added test cases for #487.
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Refactoring: move code for
sizeof() simplification to method. Introduce and use Tokenizer::simplifySizeof() method. No functional change.
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyNestedStrcat): correctly set
line numbers for new tokens. Pointed out by aggro80@ in IRC. Thanks!
2009-09-06 Kimmo Varis <kimmov@gmail.com>
* readme_gui.txt: Upate QT framework's URL to readme.
2009-09-06 Kimmo Varis <kimmov@gmail.com>
* gui/readme.txt, readme_gui.txt: Move gui's readme to root
directory to make it easier to find.
2009-09-06 Kimmo Varis <kimmov@gmail.com>
* readme.txt: Wrap long line in readme.txt.
2009-09-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Templates: Scaled
up the handling of default values for template parameters (#638)
2009-09-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix another issue
related to #647 (Crash during tokenizing (wrong) K&R function
declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/647
2009-09-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #647 (Crash
during tokenizing (wrong) K&R function declaration)
http://sourceforge.net/apps/trac/cppcheck/ticket/647 Thanks to
undingen for providing a patch
2009-09-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/cppcheckexecutor.cpp,
src/errorlogger.cpp, src/errorlogger.h, src/settings.h,
test/testcppcheck.cpp: New command line argument added --template
Fix ticket #462 (Allow using template to customize output format)
http://sourceforge.net/apps/trac/cppcheck/ticket/462
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.cpp: Fixed #585 (Preprocessor: Don't check the
same configuration twice) http://sourceforge.net/apps/trac/cppcheck/ticket/585
2009-09-05 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testbufferoverrun.cpp,
test/testsimplifytokens.cpp: Fixed #629 (Tokenizer: expand nested
strcat() calls) http://sourceforge.net/apps/trac/cppcheck/ticket/629
2009-09-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit d9d2f53df6eb547432366937175af8f8b29c63a8 Author: Aleksey
Palazhchenko <alek.silverstone@gmail.com> Date: Fri Sep 4 22:59:25
2009 +0400
2009-09-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: Added a todo test case for the
getcode function
2009-09-04 Aleksey Palazhchenko <alek.silverstone@gmail.com>
* test/test.pro: Fixes in test.pro
2009-09-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 74086740172d1d9dfdaf5501a5f22aa1f48d32a6 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Thu Sep 3 23:28:00
2009 +0300
2009-09-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: remove
typename tokens
2009-09-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/filelister.cpp: Fix ticket #642 (txx (template implementation
files) not recognized/checked.)
http://sourceforge.net/apps/trac/cppcheck/ticket/642
2009-09-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: Quick
fix for the problem with default value for a template argument
2009-09-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: Templates: Added todo testcase for
handling default values for template arguments. Related with ticket
#638
2009-09-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #637 (False
positive, Using 'memset' on struct that contains a 'std::string')
http://sourceforge.net/apps/trac/cppcheck/ticket/637
2009-09-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Added few memset test cases
2009-09-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/mathlib.cpp, test/testmathlib.cpp,
test/testother.cpp: Don't warn about division by zero if zero if
floating point number. Fix bug from mathlib isInt() and add test
case from which few are false positives
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
a todo testcase to find more leaks
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
todo testcases to find more memory leaks
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: CheckMemoryLeakInFunction: print
simplified tokens only with --debug and --verbose. Suggested by aggro80@ and approved by hyd_danmar@ in IRC.
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::syntaxError(): throw exception when
debug enabled. This allows to stop test suite when first syntax error found.
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* src/mathlib.cpp, src/token.cpp, src/tokenize.cpp: Print error
messages to stderr (instead of stdout).
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* test/testmemleak.cpp: test/testmemleak.cpp(dofindleak): provide
settings object with debug enabled. This allows to print tokens when syntax error found in one of tests.
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: fixed
a todo testcase
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: minor fix for testcase
2009-09-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::syntaxError: show details about
unlogged syntax error.
2009-09-01 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed #631 (False positive
matching iterator which is dereferenced) http://sourceforge.net/apps/trac/cppcheck/ticket/631
2009-09-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #630 (Division by zero
check only looks at first character of divisor)
http://sourceforge.net/apps/trac/cppcheck/ticket/630 Thanks to
liam_routt for finding this and providing fix for it.
2009-08-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: Preprocessor: Added a todo testcase
2009-08-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/tokenize.cpp, test/testclass.cpp: Borland
C++: Don't warn about uninitialized variables that are declared in
the __published section. These are auto-initialized
2009-08-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: astyle fix
2009-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Refactoring:
Refactoring of the unit testing for the CheckMemoryLeakInFunction
2009-08-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix ticket #612 (Division
by zero not detected when zero has type suffix)
http://sourceforge.net/apps/trac/cppcheck/ticket/612
2009-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit c50f7787f90ecd44395f2fb1fae4f69ca3a37899 Author: Slava
Semushin <php-coder@altlinux.ru> Date: Sun Aug 30 18:44:23 2009
+0700
2009-08-30 Aleksey Palazhchenko <alek.silverstone@gmail.com>
* src/src.pro: Fixes in src.pro 1) Binary shouldn't be in bundle (Mac OS X). 2) Binary doesn't use Qt at all.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: CheckBufferOverrun::checkScope(): use
Token::getStrLength(). No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h, test/testtoken.cpp:
Token::getStrLength(): introduce new static method. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.cpp: Preprocessor::getcfgs(): use
std::list::unique() for removing duplicates. No functional change.
2009-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: Refactoring: Use the Token::link
2009-08-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #611
(Preprocessor: the configurations "A;B" and "B;A" are the same)
http://sourceforge.net/apps/trac/cppcheck/ticket/611
2009-08-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp,
test/testsimplifytokens.cpp: astyle fix
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::setVarId(): simplify code a bit. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::setVarId(): use Token::link() instead
of loop. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::setVarId(): simplify condition. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer: don't call simplifyCalculations()
twice. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyFunctionParameters(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyConditionOperator(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::elseif(): change
return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyDoWhileAddBraces(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyIfAddBraces(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyComma():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyIfNotNull():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyIfNot():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyIfAssign():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyVarDecl():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyCasts():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyLogicalOperators(): change return type to void. No functional change.
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #615 (Memleak
was detected in 1.32 but not in 1.33 and later)
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #414 (memory
leak in if-else construct not detected)
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
improved the simplification of 'if* ;'
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
todo test case. reduce exit better
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: enhance simplifyNot() and rename to
simplifyLogicalOperators(). Don't replace "and" everything becuse it may be used as variable
name. Better fix for #620 Corrections for commit
eb05cf904df3b9b1e90de5dcc912817e83d422c8
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyNot): replace "if" by "else
if" and added braces. No functional change.
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leaks: fixed bug. return|else are
not part of a variable declaration
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #620
(Tokenizer: replace "and" by "&&") http://sourceforge.net/apps/trac/cppcheck/ticket/620
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyIfAssign): fixed to link()
just inserted tokens. Fixed segfault on samba sources.
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyComma): join two if bodies to
one. No functional change.
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #618
(Tokenizer: Wrong handling of enum) http://sourceforge.net/apps/trac/cppcheck/ticket/618
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: CheckMemoryLeakInFunction(getcode): don't
call Token::Match() if varid equals to zero.
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer: call createLinks() only once. Fixed simplifyIfAssign() and simplifyIfNot() to link() just inseted
tokens. No functional change.
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
better handling of open/close
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: astyle
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #627 (False
positive with --all, Resource leak with open())
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
handling asprintf better
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Fixed
two todo testcases (getcode handling of asprintf)
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
a todo testcase
2009-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Testing that asprintf is handled correctly
2009-08-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/tokenize.cpp: Fixed bug in Token::deleteThis
and optimized createLinks() calls.
2009-08-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp: astyle fix
2009-08-28 Daniel Marjamki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: fixed failed assertions when running
the testrunner
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #625
(cppcheck dumps core on valid code)
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/tokenize.cpp, test/testsimplifytokens.cpp, test/testsuite.h:
Fixed #622 (Tokenizer: Calculations are wrong)
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/filelister.cpp: Borland C++: Fixed problem in FileLister
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/checkmemoryleak.cpp, src/mathlib.cpp: borland c++: fixed
compiler errors
2009-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #623 (False
positive: possible null pointer dereference when using the ?:
operator)
2009-08-27 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Fixed #616 (Tokenizer: simplifyTemplates()
should link() all inserted brackets) This also fixed #619. http://sourceforge.net/apps/trac/cppcheck/ticket/616
http://sourceforge.net/apps/trac/cppcheck/ticket/619
2009-08-27 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Revert "Fixed #616 (cppcheck crashes with
Eigen/src/Cholesky/CholeskyInstantiations.cpp)" This reverts commit 89f96451742fcab458650581e01895acb7e1de07. This change not fully and properly fixes a problem but just work
arround it. The root of problem is because
Tokenizer::simplifyTemplates() inserts new tokens with brackets
which not link()-ed.
2009-08-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix the last test case
from ticket #613 (array members variables are not checked in
constructor) http://sourceforge.net/apps/trac/cppcheck/ticket/613
2009-08-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
better handling of pragma asm and pragma endasm
2009-08-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #617
(False positive "buffer overrun" when sprintf() doesn't have
optional parameters) http://sourceforge.net/apps/trac/cppcheck/ticket/617
2009-08-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: added testcase for the
Tokenizer::simplifyGoto
2009-08-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #498
(Tokenizer: simplify 'goto')
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Fixed #616 (cppcheck crashes with
Eigen/src/Cholesky/CholeskyInstantiations.cpp) http://sourceforge.net/apps/trac/cppcheck/ticket/616
2009-08-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Fix sytax error in uninitVarArray(). This also
causes the test to fail, so changing it as TODO. See
http://sourceforge.net/apps/trac/cppcheck/ticket/613
2009-08-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: astyle fix
2009-08-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Refactoring the unit tests of
TestMemleakInFunction
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: Fixed #614 (If you see this, there is a
bug ###### Token::Match() - varid was 0) http://sourceforge.net/apps/trac/cppcheck/ticket/614
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h:
src/checkmemoryleak.{h,cpp}: minor improvements. Corrections for commit 0d6b6e840dea7a09fa3d52b98f3148a12942e067 No functional change.
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Replace "const
unsigned int" to "unsigned int" in methods parameters. No functional change.
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkclass.cpp: src/checkclass.cpp: propagate Token::strAt(). No functional change.
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyGoto): create links for
inserted braces.
2009-08-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: fixed segmentation fault
2009-08-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testmemleak.cpp,
test/testother.cpp, test/testsimplifytokens.cpp: Fixed #498
(Tokenizer: simplify 'goto')
2009-08-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp: TestClass: Added a testcase where a array
member variable is initialized through strcpy
2009-08-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #613 (array
members variables are not checked in constructor)
http://sourceforge.net/apps/trac/cppcheck/ticket/613 Patch from
micres
2009-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/token.h: astyle formatting
2009-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Refactoring the unit testing. Wrote special
tests for CheckMemoryLeakInFunction::findleak
2009-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : Merge commit 'd0k/master'
2009-08-23 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #603 (Tokenizer:
Incorrect simplification of < >) http://sourceforge.net/apps/trac/cppcheck/ticket/603
2009-08-23 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp, test/testother.cpp: Fixed #581 (Wrong usage of
div-function) http://sourceforge.net/apps/trac/cppcheck/ticket/581
2009-08-23 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenize: minimize createLinks() calls. No functional change.
2009-08-22 Benjamin Kramer <benny.kra@gmail.com>
* src/token.cpp, src/token.h: Token: inline some functions
2009-08-22 Benjamin Kramer <benny.kra@gmail.com>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Improve
performance by using bsearch(3) instead of a std::set The function name list is already in memory so we can avoid copying
it into a std::set if we sort the list alphabetically. This way no
binary search tree has to be allocated. Before (best of 5 runs): ./testrunner > /dev/null 0,21s user 0,00s
system 95% cpu 0,221 total After (best of 5 runs): ./testrunner >
/dev/null 0,20s user 0,00s system 95% cpu 0,210 total
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* test/testother.cpp: TestOther::varScope5: fixed syntax error in
test case. Testrunner complains about "Unlogged error at
Tokenizer::syntaxError" since
74bbe945f6a55c3eb9d125b1f16566b0f10c1479 commit.
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h, src/tokenize.cpp:
Token::createMutualLinks(): introduce and use. No functional change.
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer: propagate Token::eraseTokens(). No functional change.
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyTokenList(): call link() for
just inserted tokens.
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Refactoring: Use the MathLib::toString() to
stringify a number. No functional change.
2009-08-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #507
(Preprocessor: Incorrect expanding of inner macros)
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed
#592 (Tokenizer: improve the tokenization of do .. while) http://sourceforge.net/apps/trac/cppcheck/ticket/592
2009-08-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #608 (Tokenizer:
simplifyKnownVariables doesn't handle 'while (--i)' correctly)
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyIfAddBraces: use
Token::link() instead of loop. No functional change.
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #609 (Tokenizer:
don't add {} after do-while();) http://sourceforge.net/apps/trac/cppcheck/ticket/609
2009-08-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: Refactoring: Use the MathLib::toString to
stringify a number
2009-08-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: Fixed
#599 (False positive: null pointer dereference)
2009-08-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/filelister.cpp: astyle formatting
2009-08-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #600
(Tokenizer: if(!(fclose(fd) == 0)) is simplified incorrectly)
http://sourceforge.net/apps/trac/cppcheck/ticket/600
2009-08-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #598
(Preprocessor: Multiline comments add line change to wrong location)
http://sourceforge.net/apps/trac/cppcheck/ticket/598
2009-08-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Memory leaks: Use varid instead of varname
2009-08-18 Kimmo Varis <kimmov@gmail.com>
* : commit 85682ed4298352a69d0cd9658111b8c72d4e1b67 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Tue Aug 18
20:49:08 2009 +0200
2009-08-18 Kimmo Varis <kimmov@gmail.com>
* createrelease: List Windows resource file as file to update.
2009-08-18 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt: Installer: update readme for latest
changes.
2009-08-18 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Add Polish GUI translation
file.
2009-08-18 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Pick cppcheck executable
from correct directory. VS IDE builds the executable to Build/Release folder but QMake
generated makefiles build to Src/Release.
2009-08-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkmemoryleak.cpp,
src/checkother.cpp: Refactoring: Use the Token::link instead of loop
2009-08-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/mathlib.cpp: Fix ticket #597 (Compile error with Visual C++)
http://sourceforge.net/apps/trac/cppcheck/ticket/597
2009-08-17 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, readme.txt, src/src.pro: Don't force debug builds in
qmake project files. When creating makefiles with qmake one needs to give the target in
command line. E.g. $ qmake -config debug or $ qmake -config release For Visual studio projects both targets are generated by just
running the qmake command without switches.
2009-08-17 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, src/src.pro: Add new header file to qmake project
files.
2009-08-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp: Use _str.length() == 1, instead of _str[1] == 0
2009-08-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h: Fix ticket #543 (Possible buffer
overrun in Token::Match())
http://sourceforge.net/apps/trac/cppcheck/ticket/543 Get rid of
string copying in Token::Match(), also improves speed a little.
8.0s -> 7.7s
2009-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: generated the Makefile
2009-08-17 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp, test/testother.cpp: Fixed #272 ("The scope of
the variable XXX can be limited" not detected when variable is
initilialized during declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/272
2009-08-17 Slava Semushin <php-coder@altlinux.ru>
* src/mathlib.cpp: MathLib(isInt): formatted and get rid of tabs. No functional change.
2009-08-17 Slava Semushin <php-coder@altlinux.ru>
* src/mathlib.cpp: MathLib(isInt): use std::tolower(). No functional change.
2009-08-17 Slava Semushin <php-coder@altlinux.ru>
* src/mathlib.cpp: MathLib(isInt): use isxdigit(). No functional change.
2009-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/mathlib.cpp, test/testmathlib.cpp:
ettlmartin: improved the MathLib::IsInt
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: CheckMemoryLeak:
try to speed up call_func(). Using std::set::find() instead of sequence of Match() calls.
2009-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: updated the Makefile for the release
2009-08-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* Changelog, createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss: Update version number to 1.35
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* .gitignore: .gitignore: added src/Makefile generated by qmake.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp: CheckAutoVariables(autoVariables):
make code more readable. - Reduce indentation - Don't check bindent in many conditions - Move inner if-s to outer condition Should be no functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp: CheckAutoVariables: const modifier
propagation. No functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp: CheckAutoVariables: don't save and
search for local variables with varId 0.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp: CheckAutoVariables: added braces. No functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp:
CheckAutoVariables(returnPointerToLocalArray): replace std::list to
std::set Use std::set and std::set::find() instead of std::list and
std::find(). First should be faster (runs in the logarithmic time)
than second (runs in linear time). No functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h:
CheckAutoVariables: change type of vp_list member to std::set. Change type of vda_list from std::list to std::set. It allows to us
use find() method instead of self-written loop which may be slow. No functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h:
CheckAutoVariables: change type of vd_list member to std::set. Change type of vda_list from std::list to std::set. It allows to us
use find() method instead of self-written loop which may be slow. No functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h:
CheckAutoVariables: change type of vda_list member to std::set. Change type of vda_list from std::list to std::set. It allows to us
use find() method instead of self-written loop which may be slow. No functional change.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h:
CheckAutoVariables: use varId instead of variable names. This change similar to be89be8c30326954369c6132c6ebfb47d5ea0ab0 but
for vd_list member.
2009-08-16 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h,
test/testautovariables.cpp: Fixed #590 (False positive: Invalid
deallocation when variables have same name) http://sourceforge.net/apps/trac/cppcheck/ticket/590
2009-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/cppcheck_se.ts: Swedish: Updated the translation file
2009-08-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/csvreport.cpp, src/filelister.cpp: line change and encoding
fixes
2009-08-15 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.cpp, src/preprocessor.h: Fixed #588
(Preprocessor: Sort the configurations) http://sourceforge.net/apps/trac/cppcheck/ticket/588
2009-08-14 danmar <danmar@ab00979.kgk.ad>
* src/checkmemoryleak.h, src/tokenize.h: Visual C++: Fixed
testrunner compilation problems
2009-08-14 danmar <danmar@ab00979.kgk.ad>
* cppcheck.cbproj, src/filelister.cpp: Borland C++ Builder: Fixed
compilation problems when compiling cppcheck
2009-08-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: fix ticket #586
(Preprocessor: Lines like "#error don't" can cause "no pair for
character" errors)
http://sourceforge.net/apps/trac/cppcheck/ticket/586
2009-08-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/mathlib.cpp: mathlib: minor fix
2009-08-13 danmar <danmar@ab00979.kgk.ad>
* src/checkbufferoverrun.cpp, src/mathlib.cpp, src/token.cpp,
test/testmemleak.cpp, testrunner.cbproj: Borland C++ Builder: Fixed
compilation and testrunner problems
2009-08-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, src/classinfo.h, src/tokenize.cpp, src/tokenize.h,
test/testtokenize.cpp: Initial work for class and member
function/variable list in tokenizer.
2009-08-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: preprocessor: added todo testcase for
detecting redundant preprocessor conditions
2009-08-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #583 (False
positive: the nullpointer check doesn't handle goto properly)
2009-08-12 Slava Semushin <php-coder@altlinux.ru>
* test/testautovariables.cpp, test/testother.cpp: Fixed ticket #541
(Wrong testcases produce unlogged error at Tokenizer::syntaxError) http://sourceforge.net/apps/trac/cppcheck/ticket/541
2009-08-12 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #584
(Tokenizer: don't set varId for class declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/584
2009-08-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp:
Refactoring: updated the nullPointer message so it contains the name
of the pointer
2009-08-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #566 (False positive when assigning the
return value of realloc(NULL,..) to a pointer variable holding a
freed memory address)
2009-08-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #582
(Preprocessor: Remove assembler code inside pragmas)
2009-08-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fixed ticket #578 (missing
virtual destructor not detected)
http://sourceforge.net/apps/trac/cppcheck/ticket/578
2009-08-09 Vesa Pikki <spyree@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts,
gui/gui.pro, gui/translationhandler.cpp: Added a Polish translation
file. Also added some missing Finnish and English translations.
2009-08-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Hoangtuansu: Fixed #537
(false positive::operator= should return something)
2009-08-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cppcheck.wxs: Created an experimental wix
installation file
2009-08-09 Gianluca Scacco <gscacco@users.sourceforge.net>
* src/checkautovariables.cpp: Style check
2009-08-09 Gianluca Scacco <gscacco@users.sourceforge.net>
* test/testautovariables.cpp: Added new test for invalid
deallocation
2009-08-09 Gianluca Scacco <gscacco@users.sourceforge.net>
* src/checkautovariables.cpp, src/checkautovariables.h: Invalid
deallocation check done
2009-08-09 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #574
(Tokenizer: not assign varId when variable first afer keyword and
has long type) http://sourceforge.net/apps/trac/cppcheck/ticket/574
2009-08-09 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #572
(Tokenizer: improve detection of arrays) http://sourceforge.net/apps/trac/cppcheck/ticket/572
2009-08-09 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed ticket #573 (False
positive of set range check when we dereferencing iterator) http://sourceforge.net/apps/trac/cppcheck/ticket/573
2009-08-09 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: checkbufferoverrun.cpp: get rid of
Match() usage with varid 0.
2009-08-08 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
ticket #570 (Buffer overrun not detected when sprintf() format
string greater then buffer size) http://sourceforge.net/apps/trac/cppcheck/ticket/570
2009-08-08 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
ticket #571 (Buffer overrun for sprintf() not detected after first
')' symbol) http://sourceforge.net/apps/trac/cppcheck/ticket/571
2009-08-08 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #565
(Tokenizer: simplify variable declaraion like 'int z = x >> 16') http://sourceforge.net/apps/trac/cppcheck/ticket/565
2009-08-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Improve speed with files containing classes.
E.g. measured speed difference was 1m11.042s --> 0m45.005s with one
large test file.
2009-08-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: Fixed #525 (false positive:
vector range checking with <)
2009-08-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #564
(set variable id for "struct ABC **p")
http://sourceforge.net/apps/trac/cppcheck/ticket/564
2009-08-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/tokenize.cpp,
test/testsimplifytokens.cpp: Fix ticket #563 (set variable id for
**p) http://sourceforge.net/apps/trac/cppcheck/ticket/563
2009-08-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Bail out if variable id is 0. This
should be reverted when #563 has been fixed
2009-08-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Improve speed a lot for files that have long
number lists like = { 0,1,2,3,4, etc. }
2009-08-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #555 (False
positive: [CuTest.c:25]: (error) Memory leak: len)
2009-08-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #558 (Tokenizer:
Bad simplification of 'for(unsigned i = 0; i < 100; ++i)')
2009-08-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #528
(Tokenizer: Simplify: 'if(!(a->x=b()))')
2009-08-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit c6a1f173182b128a8f03168cd48265f8b66e44b2 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Tue Aug 4 22:41:32
2009 +0300
2009-08-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkautovariables.h,
src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkclass.h, src/checkdangerousfunctions.h,
src/checkmemoryleak.cpp, src/checkmemoryleak.h, src/checkother.h,
src/checkstl.h, src/cppcheck.cpp: Listing error messages in XML
format
2009-08-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #554
(resource leak false positive)
2009-08-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h, src/tokenize.h, test/testmemleak.cpp,
test/testredundantif.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Refactoring the unit testing
2009-08-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #531 (false
positive about missing virtual destructor)
http://sourceforge.net/apps/trac/cppcheck/ticket/531
2009-08-03 Kimmo Varis <kimmov@gmail.com>
* gui/test.cpp: Oops. Didn't mean to commit the change to
gui/test.cpp. But since I did, lets remove the linefeeds and make
the function look like it gets called.
2009-08-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix ticket #552
(False positive with --all when realloc is used with two variables.)
http://sourceforge.net/apps/trac/cppcheck/ticket/552
2009-08-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: TODO test case
realloc5 added and "Checkmemoryleak: simplifycode result for" debug
info added.
2009-08-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/test.cpp, src/mathlib.cpp, src/tokenize.cpp: astyle fix
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: fixed
regression.
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: don't call
Token::Match() for variables with varId 0.
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Improved
"index out of bounds" check. Corrected 342acaaaf2f56e1de18371a1a726425127939178 commit.
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* test/testbufferoverrun.cpp: test/testbufferoverrun.cpp: improve
test cases.
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/mathlib.cpp, src/mathlib.h, src/tokenize.cpp: MathLib:
introduce and use calculate() method. No functional change.
2009-08-02 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI: update translation
files.
2009-08-02 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/test.cpp: Add 'possible style error'
severity for the GUI. Fixes ticket #436 (GUI: All style -severity). The possible style
errors can be now selected visible / hidden so all severities have
their own menu item.
2009-08-02 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Use native path separators in main window
caption.
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: src/tokenize.cpp: don't call std::string.c_str()
for Token::str() argument. In 4286fdbabb64014fd6ef968e163257a977400d3e commit I introduce
Token::str() method with std::string argument and now we may get rid
of useless std::string.c_str() calls. No functional change.
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #549
(Tokenizer: improve calculation simplification) http://sourceforge.net/apps/trac/cppcheck/ticket/549
2009-08-02 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #547
(index out of bounds not detected when addition used as array index) http://sourceforge.net/apps/trac/cppcheck/ticket/547
2009-08-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #542 (Tokenizer:
allow numbers in templates parameters) http://sourceforge.net/apps/trac/cppcheck/ticket/542
2009-08-01 Kimmo Varis <kimmov@gmail.com>
* : commit 5ce15eeb232e3f4a73b4285e0e5fb4c187ce443f Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Aug 1 18:28:21 2009 +0300
2009-08-01 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp: src/checkstl.cpp(iterators): some corrections. Corrections for my changes in
12ca70fe5a61fa9a7b847411ca23329c52544402 and
347802f81983bf94494c50bd71522f5c5d8f1e15 commits.
2009-08-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #539
(Tokenizer: don't replace constants variables with varid 0) http://sourceforge.net/apps/trac/cppcheck/ticket/539
2009-08-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
fixed problem in Preprocessor::expandMacros when macro argument is
for example 'unsigned long'
2009-08-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointers: fixed a
false positive
2009-08-01 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/resultsview.cpp: GUI:
Make two report saving errors translatable.
2009-07-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #511 (false
positive, memory leak when using 'var = ({});')
2009-07-31 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp: GUI: Fix bug that GUI didn't close the report
file.
2009-07-31 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/mainwindow.h,
gui/resultstree.cpp: GUI: Fix GUI to recognize and use "possible
error" type (was "all" earlier).
2009-08-01 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, src/tokenize.cpp, test/testtokenize.cpp: Fixed
#521 (Tokenizer: improve static variable detection) Also change cppcheck default behavior to don't show "If you see
this, there is a bug" message for each variable without varId. This
feature was very helpful for developers but may annoying users. http://sourceforge.net/apps/trac/cppcheck/ticket/521
2009-07-31 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Fixed ticket #534 (Segmentation fault when
checking VLC sourcecode) Fixed all valgrind errors. http://sourceforge.net/apps/trac/cppcheck/ticket/534
2009-07-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: astyle formatting
2009-07-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointers: detect when
there are possible null pointer dereferencing when looping through a
linked list both in inner and outer loops at the same time
2009-07-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: null pointers: Added a todo testcase
2009-07-31 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed ticket #503
(Dereferencing after erase() not work if we try to get access to
member) http://sourceforge.net/apps/trac/cppcheck/ticket/503
2009-07-31 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #523
(Tokenizer: set varId for types with long namespaces) FIXME: skip namespaces by the best way. http://sourceforge.net/apps/trac/cppcheck/ticket/533
2009-07-31 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #532
(Tokenizer: set varId for types which have comma in template
parameter) http://sourceforge.net/apps/trac/cppcheck/ticket/532
2009-07-30 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp: src/checkstl.cpp(iterators): skip already
processed tokens. No functional change.
2009-07-30 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp: src/checkstl.cpp(iterators): simplify condition.
2009-07-30 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp: src/checkstl.cpp(iterators): fixed coding
mistake.
2009-07-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: include <ctime> for clock_t (fix compile
problem)
2009-07-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Speedup of the
match_cfg_def function
2009-07-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Added more tests to test case
TestSimplifyTokens::ifassign1
2009-07-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #529
(Tokenizer: simplify if((x==0)))
http://sourceforge.net/apps/trac/cppcheck/ticket/529
2009-07-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak for
struct member: fixed false positive when the struct pointer is
stored away
2009-07-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointers: Fixed false
positive when 'do' are used
2009-07-29 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed ticket #524 (Containers
range check shouldn't stop at first founded error) http://sourceforge.net/apps/trac/cppcheck/ticket/524
2009-07-29 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp: src/checkstl.cpp(stlBoundries): simplify
condition. No functional change.
2009-07-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #522
(Tokenizer: recognize comma in container with STL type declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/522
2009-07-29 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp: src/checkstl.cpp(iterators): reduce indentation. No functional change.
2009-07-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #520
(Tokenizer: properly set varId for containers with STL types) http://sourceforge.net/apps/trac/cppcheck/ticket/520
2009-07-28 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #519
(Tokenizer converts commas in for-loops) http://sourceforge.net/apps/trac/cppcheck/ticket/519
2009-07-28 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #514
(false positive:: memory leak when using comma near delete[]) http://sourceforge.net/apps/trac/cppcheck/ticket/514
2009-07-28 Slava Semushin <php-coder@altlinux.ru>
* test/testautovariables.cpp: test/testautovariables.cpp: renamed
some testcases. Make it readable. No functional change.
2009-07-28 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, test/testautovariables.cpp:
checkautovariables: added newlines to make code more readable. No code change.
2009-07-28 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, test/testautovariables.cpp: Fixed
ticket #517 (False positive for extern variables: return of the
address of an auto-variable) http://sourceforge.net/apps/trac/cppcheck/ticket/517
2009-07-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkclass.cpp, src/checkmemoryleak.cpp, src/checkother.cpp:
Replace Match() to operator==() from std::string. No functional change.
2009-07-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkclass.cpp,
src/checkmemoryleak.cpp, src/checkother.cpp, src/checkstl.cpp,
src/checkunusedfunctions.cpp, src/preprocessor.cpp,
src/tokenize.cpp: Replace simpleMatch() to operator==() from
std::string. No functional change.
2009-07-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp:
src/checkautovariables.cpp(autoVariables): simplify condition. No functional change.
2009-07-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp: src/checkautovariables.cpp: assign
default value to std::string during object creation. No functional change.
2009-07-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/settings.cpp, src/settings.h: gcc: added an
option '--showtime' => show some simple timing information
2009-07-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Improve test case
TestSimplifyTokens::comma_keyword
2009-07-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Update to ticket #265 (Log a warning when an
include file is not found) Only warn about "foo.h", don't warn about
<foo.h> http://sourceforge.net/apps/trac/cppcheck/ticket/265
2009-07-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: astyle formatting
2009-07-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
ticket #499 (buffer overflow not detected when using macros) sprintf() buffer overrun detection works wrong due to typo (since
time when it was added in commit
a604f56f1960d3abe7a7c4bbc221bf62ccb676a2). Also reports buffer overrun when sprintf() writes bytes equal to
buffer size -- in this case off-by-one error appears. http://sourceforge.net/apps/trac/cppcheck/ticket/499
2009-07-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Fixed ticket #496 (Tokenizer: simplify statements with "," better) https://sourceforge.net/apps/trac/cppcheck/ticket/496
2009-07-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: Fixed #506 (###### If you see this, there is a
bug ###### Token::Match())
2009-07-26 Slava Semushin <php-coder@altlinux.ru>
* gui/cppcheck_ru.ts: gui/cppcheck_ru.ts: start Russian translation.
2009-07-26 Slava Semushin <php-coder@altlinux.ru>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts: gui: regenerate ts-files.
2009-07-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Removed some debug output which should not
be on and cleaned up a little.
2009-07-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix ticket #265 (Log a warning when an
include file is not found)
http://sourceforge.net/apps/trac/cppcheck/ticket/265
2009-07-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #504 (false
positive: null pointer dereference)
2009-07-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: speedup of CheckOther::postIncrement
2009-07-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: Added more tests to the
TestPreprocessor::match_cfg_def (#505)
2009-07-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: astyle formatting
2009-07-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.h, test/testpreprocessor.cpp: Preprocessor: Added
todo test case for better evaluation of #if conditions
2009-07-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #501
(Preprocessor should read open configurations that are defined
within the file)
2009-07-25 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp: src/checkother.cpp: simplify condition a bit. No functional change.
2009-07-25 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkother.cpp, src/tokenize.cpp,
src/tokenize.h, test/testtokenize.cpp: Fixed ticket #500 (Tokenizer:
simplify the "(p != NULL)" conditions) Also teach simplifyIfNot() to handle variables like Foo::var. https://sourceforge.net/apps/trac/cppcheck/ticket/500
2009-07-25 Slava Semushin <php-coder@altlinux.ru>
* test/testtokenize.cpp: test/testtokenize.cpp: use
tokenizeAndStringify() function. Instead of self-written code. No functional change.
2009-07-24 booga <booga@myhost.(none)>
* src/checkother.cpp, src/checkstl.cpp, test/testother.cpp,
test/teststl.cpp: astyle FTW (should have read about that sooner)
2009-07-24 booga <booga@myhost.(none)>
* src/checkother.cpp, src/checkother.h, src/checkstl.cpp,
src/checkstl.h, test/testother.cpp, test/teststl.cpp: Fix #476 STL
Container checks. Fix #473 Add post increment check for STL objects
and Classes.
2009-07-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp,
test/testsimplifytokens.cpp: Tokenizer: simplify return statements -
remove redundant parantheses
2009-07-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
false positive for struct members - better handling of if/else
2009-07-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: added a todo test case for
struct members when using if-else
2009-07-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointers: fixed false
positives when checking if pointer is null at many locations (#485)
2009-07-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointers: fixed false
positives (#49)
2009-07-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #493 (Memory
leak: False positive when using the exit(0))
2009-07-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointers:
dereferencing a pointer and then checking if it's null (#49)
2009-07-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: tokenizer: simplify
'?:' better when the condition is always true
2009-07-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Better evaluation of conditions such as '#if defined A || defined B'
(#469)
2009-07-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: tokenizer: added todo for simplifying
'(true?x:y)' => '(x)'
2009-07-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: astyle formatting
2009-07-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #469
(Preprocessor should read open configurations that are defined
within the file)
2009-07-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #497
(Templates are not expanded correctly)
2009-07-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #494 (False
positives of checking leaks struct members) Better handling of
function calls
2009-07-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: null
pointers: better checking when dereferencing pointer and then
checking if it is null (#485)
2009-07-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testcppcheck.cpp,
test/testmemleak.cpp: dereferencing deallocated memory: it is ok to
take the address to deallocated memory but it is not ok to
dereference the address
2009-07-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: invalid
pointer usage: broke out CheckOther::invalidPointer from the
CheckOther::nullPointer (#485)
2009-07-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit d2278b5ce0d23b864cd99a998866b45e1bdf257b Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Mon Jul 20 23:24:23
2009 +0300
2009-07-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix ticket #486 (C-style
pointer casting misses const pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/486
2009-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointer
dereferencing: fixed another false positive (#485)
2009-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointer
dereferencing: removed a few false positives in the new check that I
added (#485)
2009-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: fix bug in previous commit that fixed #485
2009-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #485 (detect when
code is checking for null after dereferencing)
2009-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Fixed hanging in
Preprocessor::expandMacros when trying to replace all '__VA_ARGS__'
with '__VA_ARGS__'
2009-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak for
struct member: made the checking more sensitive. Skip bail-out
execution paths were the member is properly deallocated
2009-07-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: memleak: implemented simple checking for
leaking struct members
2009-07-19 Slava Semushin <php-coder@altlinux.ru>
* test/testrunner.cpp: test/testrunner.cpp: fixed exit code when
count of fails tests equals to 256. When 256 tests fails return code was 0 and it was wrong. Now exit
code may be only 0 or 1 and not show how many tests fails. Thanks to aggro80@ for pointing to this!
2009-07-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testmemleak.cpp, test/testtokenize.cpp:
astyle formatting
2009-07-18 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp:
src/checkmemoryleak.cpp: added fchmod() function to white list.
2009-07-18 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp, test/testother.cpp: Finally fixed ticket #284
(style check: redundant condition improvement) http://sourceforge.net/apps/trac/cppcheck/ticket/284
2009-07-18 Slava Semushin <php-coder@altlinux.ru>
* test/testrunner.cpp, test/testsuite.cpp, test/testsuite.h: Fixed
ticket #481 (testrunner should exit with non-zero status if one of
tests fails) http://sourceforge.net/apps/trac/cppcheck/ticket/481
2009-07-18 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #464
(resource leak not detected when getc is used on the file handle) http://sourceforge.net/apps/trac/cppcheck/ticket/464
2009-07-18 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #479 (varId
not assigned to reference to standart container) http://sourceforge.net/apps/trac/cppcheck/ticket/479
2009-07-18 Kimmo Varis <kimmov@gmail.com>
* : commit d1eb7e65584421d346c69371594301c227cf05c8 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jul 18 13:34:00 2009 +0300
2009-07-18 Kimmo Varis <kimmov@gmail.com>
* src/src.pro: Enable more warnings in QMake-generated makefiles. Use same warning levels for GCC than in original makefile. Use W4
level for Visual Studio.
2009-07-18 Slava Semushin <php-coder@altlinux.ru>
* test/teststl.cpp: Fixed ticket #477 (Bug in Token::Match() during
process TestStl::pushback3) http://sourceforge.net/apps/trac/cppcheck/ticket/477
2009-07-18 Kimmo Varis <kimmov@gmail.com>
* : commit 180a04316d511d743508adc595d2cab6ef564711 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jul 18 11:25:22 2009 +0300
2009-07-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: tokenizer: improved
the Tokenizer::simplifyIfNot
2009-07-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/main.cpp: astyle formatting
2009-07-17 Slava Semushin <php-coder@altlinux.ru>
* src/checkclass.cpp, test/testclass.cpp: Fixed ticket #459 (false
positive::Member variable not initialized in constructor) http://sourceforge.net/apps/trac/cppcheck/ticket/459
2009-07-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/aboutdialog.h, gui/applicationdialog.h,
gui/applicationlist.h, gui/checkthread.h, gui/common.h,
gui/csvreport.h, gui/fileviewdialog.h, gui/mainwindow.h,
gui/projectfile.h, gui/report.h, gui/resultstree.h,
gui/resultsview.h, gui/settingsdialog.h, gui/threadhandler.h,
gui/threadresult.h, gui/translationhandler.h, gui/txtreport.h,
gui/xmlreport.h, src/check.h, src/checkautovariables.h,
src/checkbufferoverrun.h, src/checkclass.h,
src/checkdangerousfunctions.h, src/checkheaders.h,
src/checkmemoryleak.h, src/checkother.h, src/checkstl.h,
src/checkunusedfunctions.h, src/cppcheck.h, src/errorlogger.h,
src/filelister.h, src/mathlib.h, src/preprocessor.h,
src/settings.h, src/token.h, src/tokenize.h: doc: updated doxygen
comments. three groups where created - 'GUI', 'Core' and 'Checks'
2009-07-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.geany, src/main.cpp: doc: changed the doxygen comments
for the mainpage
2009-07-16 Vesa Pikki <spyree@gmail.com>
* gui/main.cpp, gui/mainwindow.cpp, gui/mainwindow.h,
src/preprocessor.cpp, src/tokenize.cpp: Added support for checking
files via commandline arguments.
2009-07-14 Kimmo Varis <kimmov@gmail.com>
* : commit c6b82cab21cffa6d7ec6ae5d8f15bb6dbd861707 Author: Kimmo
Varis <kimmov@gmail.com> Date: Tue Jul 14 18:47:38 2009 +0300
2009-07-14 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Add generated GUI header files to gitignore.
2009-07-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: doxygen: added a todo to simplify 'for' loops
better in the tokenizer
2009-07-14 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Place intermediate resource files to temp
folder.
2009-07-14 Kimmo Varis <kimmov@gmail.com>
* src/src.pro, test/test.pro: Add QMake project files for core and
tests. Ticket #472 (QMake project file to build cppcheck core).
2009-07-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: fixed todo test case - detect
iterator usage after push_front|push_back
2009-07-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
tokenizer: simplify the '?:' operator
2009-07-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: simplify tokens: simplify test cases
2009-07-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkunusedfunctions.cpp,
src/preprocessor.cpp, src/token.cpp, src/tokenize.cpp: doxygen: made
the todos visible in the doxygen output
2009-07-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkheaders.cpp, src/checkunusedfunctions.cpp,
src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h,
test/testpreprocessor.cpp, test/testsimplifytokens.cpp,
test/teststl.cpp, test/testtokenize.cpp: minor refactoring: header
cleanup. use forward declarations instead of includes
2009-07-13 Kimmo Varis <kimmov@gmail.com>
* : commit 7f7e85390f72ee63ec9bdf4642a36b144dcb69f3 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Jul 13 18:53:43 2009 +0300
2009-07-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
test/testbufferoverrun.cpp, test/testdangerousfunctions.cpp:
refactoring: Renamed checking classes
2009-07-13 Kimmo Varis <kimmov@gmail.com>
* : commit 6393498966e7e030445cca0387c85942826964d7 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Jul 13 16:51:35 2009 +0300
2009-07-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.h, src/errorlogger.h: astyle formatting
2009-07-13 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp: GUI: Remove security-category. The security-category was removed from core in commits
03f3ee62a0d9a7e38f1dfcbefae872cd08990dbc and
11bc5195b84c18cc59f336cc0588dc07294a1de7.
2009-07-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: refactoring:
Refactoring of the leak-checking classes
2009-07-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/main.cpp, src/token.h: doxygen: updated a few comments
2009-07-13 Kimmo Varis <kimmov@gmail.com>
* : commit d88cf4d3e4caa2a7d9234d8be9aefa67df081dc0 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Jul 13 11:39:46 2009 +0300
2009-07-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkautovariables.cpp,
src/checkautovariables.h, src/checkbufferoverrun.cpp,
src/checkclass.cpp, src/checkdangerousfunctions.cpp,
src/checkmemoryleak.cpp, src/checkmemoryleak.h, src/checkother.cpp,
src/checkstl.cpp, src/errorlogger.h, test/testbufferoverrun.cpp,
test/testconstructors.cpp, test/testdivision.cpp,
test/testmemleak.cpp: refactoring: renamed the severity "all" to
"possible error"
2009-07-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/gui.pro, gui/mainwindow.cpp, src/errorlogger.h,
src/settings.cpp, src/settings.h: cleanup: continued with the
removing of the security. Some more work is needed but now
everything compiles and runs at least.
2009-07-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: doc: add link
2009-07-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checksecurity.cpp, src/checksecurity.h,
test/testsecurity.cpp, tools/dmake.cpp, tools/errmsg.cpp: cleanup:
removed deprecated files. security checking and errmsg
2009-07-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, win_installer/cppcheck.iss:
updated version to 1.34
2009-07-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: unused private
functions: don't check classes declared in header files unless it is
known that their whole implementation is seen
2009-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/about.ui, gui/cppcheck_de.ts, gui/cppcheck_en.ts,
gui/cppcheck_fi.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI:
Improve About-dialog layout. Add vertical spacer above texts to that icon box becomes narrow and
text box wide.
2009-07-12 Kimmo Varis <kimmov@gmail.com>
* gui/about.ui: GUI: Wordwrap texts in the About-dialog. Fixes ticket #454 (About-dialog size/text problems).
2009-07-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/main.cpp: doxygen: wrote a simple text for the mainpage
2009-07-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: better
description for the message with id strncatUsage
2009-07-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheckexecutor.cpp, src/errorlogger.cpp,
src/errorlogger.h, src/settings.cpp, src/settings.h,
src/threadexecutor.cpp, test/testcppcheck.cpp, test/testsuite.cpp:
Revert "cppcheck: Now it's possible to change the output format, for
example to a visual studio compliant format" This reverts commit 91a8dbd7b987d6af5f0c00b850bcdd82fe848459.
2009-07-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.geany: geany: updated the project file
2009-07-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkclass.cpp, src/checkclass.h,
src/checksecurity.h, src/checkstl.h, src/preprocessor.cpp,
src/preprocessor.h: refactoring: minor refactorings and added some
doxygen comments
2009-07-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheckexecutor.cpp, src/errorlogger.cpp,
src/errorlogger.h, src/settings.cpp, src/settings.h,
src/threadexecutor.cpp, test/testcppcheck.cpp, test/testsuite.cpp:
cppcheck: Now it's possible to change the output format, for example
to a visual studio compliant format
2009-07-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkother.cpp, src/checkstl.cpp: doc: added more
information when '--verbose' is used for these error messages: * dangerous usage of erase * overlapping data buffer
2009-07-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: templates: simplified a todo test
case by removing a redundant function from the code
2009-07-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memleak: fixed todo
test case
2009-07-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #431
(Unused private function, wrong line when two functions with same
name)
2009-07-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #382 (False
positive: public function flagged as 'Unused private function')
2009-07-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/cppcheck_se.ts: Translation: Updated the translation file for
swedish
2009-07-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: addon to previous commit - changed
ASSERT_EQUALS to TODO_ASSERT_EQUALS for the todo test case
2009-07-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leaks: Added a simple todo test case
2009-07-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #446 (memory
leak false positive when variable is static)
2009-07-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: Don't simplify
declarations of static variables
2009-07-06 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.cpp: GUI: Add icons for error messages of failed
report saving.
2009-07-06 Kimmo Varis <kimmov@gmail.com>
* gui/csvreport.h, gui/txtreport.h, gui/xmlreport.h: GUI: Make
report class destructors virtual.
2009-07-06 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/csvreport.cpp,
gui/csvreport.h, gui/gui.pro, gui/mainwindow.cpp, gui/report.h,
gui/resultsview.cpp, gui/resultsview.h: GUI: Add new CSV report
type. CSV files are handy (and commonly used) to export/import data
to other programs. CSV reports allow easy import of cppcheck error
data to other programs for further processing.
2009-07-06 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Add option to create
desktop icon for GUI.
2009-07-06 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Remove QT-based from GUI
description and use only GUI. Users don't care and don't need to
know that GUI is QT-based. It may even confuse some who don't know
what QT is. So use simply GUI.
2009-07-06 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Label GUI as Beta.
2009-07-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/mainwindow.cpp, src/checkbufferoverrun.cpp,
src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/cppcheck.cpp, src/filelister.cpp, src/filelister.h,
src/tokenize.cpp, src/tokenize.h, test/testcharvar.cpp,
test/testcppcheck.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testtokenize.cpp,
test/testunusedvar.cpp, tools/dmake.cpp: Refactoring: Rename member
functions to follow naming guidelines.
2009-07-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.h, test/testmemleak.cpp: Test case improvement,
unused function removed from tokenizer.
2009-07-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp: Fix
ticket #457 (False positive: Member variable not assigned a value in
copy constructor)
http://sourceforge.net/apps/trac/cppcheck/ticket/457 Simplify "a =
0, b = 0;" into "a = 0; b = 0;"
2009-07-04 Kimmo Varis <kimmov@gmail.com>
* : commit b6e543fd4f0e98410527500f2b7f60986304189f Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jul 4 22:33:18 2009 +0300
2009-07-04 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: Fix ticket #456 (GUI:: save only the results
selected in view settings)
http://sourceforge.net/apps/trac/cppcheck/ticket/456
2009-07-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: TODO Test case
TestSimplifyTokens::remove_comma added
2009-07-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp, gui/translationhandler.cpp: astyle fix
2009-07-04 Vesa Pikki <spyree@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/translationhandler.cpp:
I reverted back the translation file checking. Allthough I put it
after QTranslator had failed to load the translation. This still
allows QTranslator to try and open the file with several variations
of the file. To user we'll tell that the default file is missing.
2009-07-04 Vesa Pikki <spyree@gmail.com>
* gui/translationhandler.cpp: Removed an unnecessary translation
file check. It was missing the file extension and QTranslator
returns false if it was unable to find the translation file which is
just as good. QTranslator can also check for several variations of
the given filename.
2009-07-04 Vesa Pikki <spyree@gmail.com>
* : commit e656c951e59bbde0eba9e23dfb3c7f10a4249af3 Author: Vesa
Pikki <spyree@gmail.com> Date: Sat Jul 4 11:06:29 2009 +0300
2009-07-04 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/projectfile.cpp, gui/projectfile.h: GUI:
Read include directories from project file.
2009-07-04 Kimmo Varis <kimmov@gmail.com>
* src/cppcheck.cpp, src/cppcheck.h, src/settings.h: Move include
paths list to Settings class so we can set include paths from GUI.
2009-07-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #448
(false positive:: resource leak)
http://sourceforge.net/apps/trac/cppcheck/ticket/448 Tokenizer
improved to simplify "if( (p)==-1 )"
2009-07-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #452 (Failure
to detect "member var not initialized in constructor" if class
inherits) http://sourceforge.net/apps/trac/cppcheck/ticket/452
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/resultstree.cpp: GUI:
Show instructions instead of error when viewer application is not
configured.
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/mainwindow.cpp,
gui/translationhandler.cpp: GUI: Further improve error message for
lang file not found. Not being able to switch language is critical
error, not just warning. Also show full file name (with extension)
of the file not found.
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/translationhandler.cpp:
GUI: Check translation file exists before loading it. This allows
more accurate error message for the user.
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.ui: Fix EOL style for gui/resultsview.ui that got
converted to Windows style. Apparently QT Creator blindly converts
file EOL style without any warning to user.
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.ui: GUI: Remove doubled margin from main window.
The main window sets default margin for central widget. And layout
was setting another margin so margin was doubled.
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss, win_installer/readme.txt: Installer:
Install translation files.
2009-07-03 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Remove unused variable.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* : commit 7a4115236aa61e3c8d3ca9264d816515e572a3a5 Author: Vesa
Pikki <spyree@gmail.com> Date: Thu Jul 2 23:41:37 2009 +0300
2009-07-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Fix ticket #434 (Unused function gets reported
dozens of times)
http://sourceforge.net/apps/trac/cppcheck/ticket/434 Using
--unused-functions with -j will now print out error message:
"cppcheck: error: --unused-functions can't be used with -j option."
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/translationhandler.cpp, gui/translationhandler.h: Added
missing license texts.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/fileviewdialog.cpp, gui/fileviewdialog.h, gui/mainwindow.cpp,
gui/mainwindow.h, gui/resultsview.cpp, gui/resultsview.h,
gui/threadhandler.h: Disabling progressbar if stop button is
pressed. This actually had no visible effect on KDE.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/main.ui,
gui/mainwindow.cpp, gui/mainwindow.h: Checks if toolbar is closed
when opening view menu. Basically just reverted back Kimmo's code
that was lost in merge.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/main.ui: Removed unused statusbar.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/file.ui,
gui/fileviewdialog.cpp, gui/fileviewdialog.h, gui/gui.pro,
gui/mainwindow.cpp: Fileview dialogs now use Qt Designer ui files.
Translation also updated.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/about.ui, gui/aboutdialog.cpp, gui/aboutdialog.h,
gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/gui.pro: About dialog
now uses Qt Designer ui file. Updated translations again.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* : commit 32725c872ec24903c3625ebb32605bb2eacf0e67 Author: Vesa
Pikki <spyree@gmail.com> Date: Thu Jul 2 19:15:34 2009 +0300
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/application.ui, gui/applicationdialog.cpp,
gui/applicationdialog.h, gui/mainwindow.cpp, gui/settings.ui,
gui/settingsdialog.cpp, gui/settingsdialog.h: Settings dialog and
application dialog now use Qt Designer ui files.
2009-07-02 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/mainwindow.cpp, gui/resultstree.cpp:
Astyle fixes.
2009-07-02 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp, gui/cppcheck_de.ts, gui/cppcheck_en.ts,
gui/cppcheck_fi.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI: Add
homepage URL to About-dialog.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/application.ui, gui/cppcheck_de.ts, gui/cppcheck_en.ts,
gui/cppcheck_fi.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts,
gui/gui.pro, gui/settings.ui: Added ui files for Settings and
Application dialogs. The code doesn't use those at the moment
though. Updated the translation files aswell.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/mainwindow.cpp,
gui/resultstree.cpp: Error types are now translated aswell.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp, gui/resultsview.h: Toolbar can now be hidden.
Treeview's headers will now be translated when language changes.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* readme.txt: Added instructions to compile the GUI.
2009-07-02 Vesa Pikki <spyree@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h, gui/common.h,
gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/fileviewdialog.cpp,
gui/gui.pro, gui/main.cpp, gui/main.ui, gui/mainwindow.cpp,
gui/mainwindow.h, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp, gui/resultsview.h, gui/resultsview.ui,
gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, gui/translationhandler.cpp,
gui/translationhandler.h: Began adding translations and using Qt
Designer .ui files. Also added QSetting value names to common.h Work is halfway on both translations and .ui files. I added a very quick and rough finnish translation. The program now requires the translation files to be created before
running that can be done with lrelease gui.pro. To compile the whole GUI one must do the following cd gui qmake
lrelease gui.pro make
2009-07-02 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/mainwindow.cpp, gui/resultstree.cpp,
gui/settingsdialog.cpp, gui/threadhandler.cpp: GUI: Do not make
settings names translatable. Having translated settings names is a
bad idea. If user changes GUI language one loses settings. Also
settings might be exported/imported and translated names might not
work between systems/users.
2009-07-02 Kimmo Varis <kimmov@gmail.com>
* : commit c79d50a7103ac08f31c392d9c7ebac6affff68b0 Author: Kimmo
Varis <kimmov@gmail.com> Date: Thu Jul 2 00:05:09 2009 +0300
2009-07-01 Kimmo Varis <kimmov@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h,
gui/resultstree.cpp, gui/threadhandler.cpp: Astyle fixes.
2009-07-01 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Add View-menu item to
show/hide standard toolbar.
2009-06-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix ticket
#445 (simple to avoid false positive for buffer overflow)
http://sourceforge.net/apps/trac/cppcheck/ticket/445 Simple bailout
in case "if" is found inside the for-loop.
2009-06-27 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.h: Fix couple of typos in comments.
2009-06-27 Kimmo Varis <kimmov@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp: GUI: Remove GUI for showing unused functions.
Implements ticket #443 (Remove checking of unused functions from
GUI) https://sourceforge.net/apps/trac/cppcheck/ticket/443 See also
ticket #434 https://sourceforge.net/apps/trac/cppcheck/ticket/434
2009-06-27 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Disable checking unused functions.
Implements ticket #443 (Remove checking of unused functions from
GUI) https://sourceforge.net/apps/trac/cppcheck/ticket/443 See also
ticket #434 https://sourceforge.net/apps/trac/cppcheck/ticket/434
2009-06-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.geany, src/cppcheck.cpp, src/preprocessor.cpp,
src/preprocessor.h, test/testpreprocessor.cpp: Fix ticket #267
(Glued define and define name in output text) The handling of ifdef configurations where rewritten. Either a
configuration is handled properly or it is not handled at all.
2009-06-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/aboutdialog.h, gui/fileviewdialog.h,
gui/projectfile.h, gui/report.h, gui/txtreport.h, gui/xmlreport.h:
Fixed compile error in Linux Include guard naming fix (names
starting with underscore+capital letter are reserved in C++, so we
should not use those) Codeblocks project file update
2009-06-24 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.h: GUI: Add include guard for projectfile.h.
2009-06-24 Kimmo Varis <kimmov@gmail.com>
* : commit 678714419c562d67e12111fc6b5472b53ba34c45 Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Jun 24 10:54:56 2009 +0300
2009-06-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: minor fix of test case
2009-06-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: calling unknown function -> use
2009-06-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: added test case
2009-06-23 Kimmo Varis <kimmov@gmail.com>
* gui/projectfile.cpp: Fix ticket #437 (Compile warnings in GUI (in
Linux)) https://sourceforge.net/apps/trac/cppcheck/ticket/437 Add
empty cases for XML element types we don't need to handle.
2009-06-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: codeblocks project file updated
2009-06-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #435 (False
positive: Invalid number of character when ({}) is used in code)
http://sourceforge.net/apps/trac/cppcheck/ticket/435
2009-06-22 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Add checked directory
path to main window caption.
2009-06-22 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck, gui/projectfile.txt: Fix EOL style of project
file doc and example project file.
2009-06-22 Kimmo Varis <kimmov@gmail.com>
* gui/readme.txt, win_installer/cppcheck.iss,
win_installer/readme.txt: Add QT XML DLL to Windows installer and
update docs.
2009-06-22 Kimmo Varis <kimmov@gmail.com>
* : commit 1aafeebe7b2abd606043bcb212ad3fcca483e10b Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Jun 22 11:57:17 2009 +0300
2009-06-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: astyle formatting
2009-06-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.h: doc: simplified the documentation for
autovariables a bit
2009-06-21 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Fixed ticket #399 (Add detection for resource
leaks after open() usage) http://sourceforge.net/apps/trac/cppcheck/ticket/399
2009-06-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp:
CheckMemoryLeakInFunction: More sensitive checking when the code
calls an unknown function
2009-06-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: detect memory leak
when all is given when calling an unknown function
2009-06-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Replace "#if !defined(A)" with "#ifndef A"
2009-06-21 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Don't allow to open Settings-dialog while
checking.
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Rename Check all/Uncheck all View-menu
items to Show all/Hide all. It is not obvious for user what those
items do and after all it is about showing/hiding all items.
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp, gui/resultsview.h: GUI: Enable clearing/saving
results also if there are only hidden results. This commit fixes a
bug in my earlier commit that only checked visible results.
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* : commit 71aa189efbbb221d755086958c63013be63d9362 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jun 20 23:23:54 2009 +0300
2009-06-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, src/tokenize.h, test/testunusedprivfunc.cpp:
Fix ticket #426 (Problem with include)
http://sourceforge.net/apps/trac/cppcheck/ticket/426
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Clear results from view before starting
new compare. Strictly speaking this is not necessary but it is the
easiest way to set the GUI state to "no results"-state.
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp, gui/resultsview.h: GUI: Disable result cleaning
and saving during the checking.
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Add Doxygen output directory to gitignore.
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* : commit 210014b930928b323dd5e592c35c674c6e61871c Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jun 20 20:55:28 2009 +0300
2009-06-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testcharvar.cpp: Fixed #425 (False
positive: usage of char variable.. c = c & 0x03) Using char variables in bit operations are ok if: * the result is stored in a char * the variable is and'ed with a number that is less than 0x100
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/threadhandler.cpp,
gui/threadhandler.h: GUI: Make ThreadHandler class part of object
tree.
2009-06-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: CheckMemoryLeakInClass: Only show the
memory leak message when --all is used
2009-06-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp, test/testmemleak.cpp,
test/testsimplifytokens.cpp: Fixed ticket #411 (false positive:
resource leak in while loop)
2009-06-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: refactoring testcases for
Tokenizer::simplifyAddBraces
2009-06-20 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.h, src/cppcheck.h, src/cppcheckexecutor.h,
src/errorlogger.h, src/token.h: Doxygen fixes. Wrong parameter names
etc.
2009-06-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: Fixed
problem when simplifying casts
2009-06-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #416 (False
positive: Redundant code)
http://sourceforge.net/apps/trac/cppcheck/ticket/416
2009-06-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Better handling of macros that has parantheses but not parameters
such as "#define AAA( ) aaa"
2009-06-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: astyle fix
2009-06-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket #417
(Crashes in windows because of invalid char value) negative char values are allowed in strings and comments. but not in
other code.
2009-06-19 Kimmo Varis <kimmov@gmail.com>
* : commit 923e01af3fd18c9156601afc811206ab0a2146bd Author: Kimmo
Varis <kimmov@gmail.com> Date: Fri Jun 19 15:19:32 2009 +0300
2009-06-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h, test/testother.cpp: Fixed #420
(WarningOldStylePointerCast() needs a test case)
2009-06-19 Kimmo Varis <kimmov@gmail.com>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Revert "Fix
ticket #417 (Crashes in Windows because of invalid char value)" This reverts commit 70db2562f498cd29a310dc88d2b47a232cd89690. See the ticket - the fix was not correct fix.
2009-06-19 Kimmo Varis <kimmov@gmail.com>
* : commit d5d96d2535c6bcb0581e63818e0cbcf440e2d703 Merge: 12f3ac5
e8d1905 Author: Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
Date: Thu Jun 18 23:10:16 2009 +0200
2009-06-19 Kimmo Varis <kimmov@gmail.com>
* : commit 12f3ac5a2fd77472ed4848bd39dfb47f9f9097b9 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Thu Jun 18
23:09:11 2009 +0200
2009-06-19 Kimmo Varis <kimmov@gmail.com>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #417
(Crashes in Windows because of invalid char value) 8-bit characters
and UTF-8 characters are now converted to spaces. They can only
appear in the code files in comments or string/char constants. So we
cannot just ignore them as that would change length.
2009-06-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #418
(delete a,b; not tokenized correctly)
http://sourceforge.net/apps/trac/cppcheck/ticket/418
2009-06-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix ticket #413 (false
positive: C-style pointer casting for pure virtual function)
http://sourceforge.net/apps/trac/cppcheck/ticket/413
2009-06-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/fileviewdialog.cpp, gui/fileviewdialog.h: Encoding changed
from ISO* to UTF-8
2009-06-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: astyle fix
2009-06-18 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #278
(variable id: references are not handled correctly) http://sourceforge.net/apps/trac/cppcheck/ticket/278
2009-06-18 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: GUI: Use native file selection dialog
to select viewer application. In Windows use *.exe filter since
almost all executable applications have that extension so it makes
no sense to show all files.
2009-06-18 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Use native file selection dialog when
selecting report file.
2009-06-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed a false
positive (memory leak) This false positive was first discovered in the VLC sourcecode. The
TestMemoryLeakInFunction::simple11 test case is a simplified test
code of that code.
2009-06-17 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Use native dialogs in
Windows for check file/directory selection.
2009-06-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testconstructors.cpp: Fix ticket #309
(false positive::is not assigned a value in 'A::operator=')
http://sourceforge.net/apps/trac/cppcheck/ticket/309
2009-06-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.h, test/testmemleak.cpp: Created a new class
for detecting leaks (forgetting to free struct members)
2009-06-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #131
(Regression: leak reported by 1.27 is not reported by 1.29) The leak will be reported as a definite bug again. Not just a
possible bug. cppcheck don't know if the execution path is
possible, but it knows that if the execution path is taken the
memory leak will be certain.
2009-06-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Improved the
"CheckMemoryLeak::functionReturnType"
2009-06-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheckexecutor.cpp, src/errorlogger.cpp, src/errorlogger.h:
getXMLFooter() and getXMLHeader() functions added and taken into use
2009-06-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #264 (Memory Leak: alloc by assigning to
a return value) The fix was inspired by the previous patch submitted by hoangtuansu
2009-06-15 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: GUI: Refactor menu and
toolbar creation to own methods.
2009-06-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket #405
(#ifdef A and #if defined A should be handled as same configuration)
http://sourceforge.net/apps/trac/cppcheck/ticket/405
2009-06-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp: astyle fix
2009-06-15 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/tokenize.cpp, test/testmemleak.cpp,
test/testtokenize.cpp: Fixed ticket #346 (adding a "const" token
prevents detection of memory leak) http://sourceforge.net/apps/trac/cppcheck/ticket/346
2009-06-14 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp: Made License and Authors dialogs a bit bigger.
2009-06-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/token.cpp, src/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #387 (Templates: template functions
that return a pointer are not simplified correctly) * Fixed so that the tokenizer handle variable declarations better
when the variable is assigned the return value of a template
function * Fixed so that the simplifyTemplates detect that a template
function is used when its return value is taken
2009-06-14 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: GUI: Add new context menu
items to copy filename/full path to clipboard.
2009-06-14 Kimmo Varis <kimmov@gmail.com>
* : commit 801a241e0b6452ab773b9c9c769fa8b0c3fa775b Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jun 14 12:57:43 2009 +0300
2009-06-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit be52e573f3573af2497138719bb00d101ccef663 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sun Jun 14
11:28:25 2009 +0200
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h, src/tokenize.cpp: Token: introduce
str(const std::string &) method. Get rid of useless std::string.c_str() calls. No functional change.
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtoken.cpp: Replace
tok->previous()->previous() call to tok->tokAt(-2). Done by command: git grep -l 'previous()->previous()' | xargs sed -i
's|previous()->previous()|tokAt(-2)|' No functional change.
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: Replace
tok->previous()->previous()->previous() call to tok->tokAt(-3). Done by command: git grep -l 'previous()->previous()->previous()' |
xargs sed -i 's|previous()->previous()->previous()|tokAt(-3)|' No functional change.
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/tokenize.cpp, test/testtoken.cpp:
Replace tok->next()->next() call to tok->tokAt(2). Done by command: git grep -l 'next()->next()' | xargs sed -i
's|next()->next()|tokAt(2)|' No functional change.
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: Replace tok->next()->next()->next() call
to tok->tokAt(3). Done by command: git grep -l 'next()->next()->next(),' | xargs sed
-i 's|next()->next()->next()|tokAt(3)|' No functional change.
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: Replace
tok->next()->next()->next()->next() call to tok->tokAt(4). Done by command: git grep -l 'next()->next()->next()->next(),' |
xargs sed -i 's|next()->next()->next()->next()|tokAt(4)|' No functional change.
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* test/testbufferoverrun.cpp, test/testconstructors.cpp,
test/testmemleak.cpp: Embed errout.str() into ASSERT_EQUALS() call. Get rid of useless variables. No functional change.
2009-06-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
ticket #373 (False unused functions) Skip template functions when checking for unused functions
2009-06-14 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket #403
(false positive::Array index out of range) http://sourceforge.net/apps/trac/cppcheck/ticket/403
2009-06-14 Kimmo Varis <kimmov@gmail.com>
* src/cppcheck.rc: Fix the copyright text in Windows executable.
2009-06-14 Kimmo Varis <kimmov@gmail.com>
* gui/gui.qrc: GUI: Remove the SVG icon from the resources file as
it is not used.
2009-06-13 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Move Windows-specific options and files to own
scope in project file.
2009-06-13 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck-gui.rc: GUI: Include Windows resources from resource
file having version info.
2009-06-13 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Add common.h to the project.
2009-06-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Fixed ticket #398 (valgrind shows error when
running testrunner)
http://172.29.29.21/apps/trac/cppcheck/ticket/398
2009-06-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp, src/errorlogger.cpp: Fix ticket #397 (xml
output doesn't encode " and & -characters as it should)
http://sourceforge.net/apps/trac/cppcheck/ticket/397
2009-06-12 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp: Force extension to the file and check save
type by filter and not by filename.
2009-06-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #367
(Deallocating a deallocated pointer false positive when va_list
used) The overall matching of functions when calls are made were improved.
2009-06-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: astyle fix
2009-06-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed ticket #374 (False
positive: The scope of variable can be limited) A few refactorings and fixes were made
2009-06-12 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed
ticket #392 (false positive and wrong allocation and deallocation
not detected) http://sourceforge.net/apps/trac/cppcheck/ticket/392
2009-06-12 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::createLinks(): correct comment. No code change.
2009-06-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.h: doc: minor update. The [BR] is not
working as I thought
2009-06-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkautovariables.h, src/checkbufferoverrun.h,
src/checkclass.h, src/checkdangerousfunctions.h,
src/checkheaders.h, src/checkmemoryleak.h, src/checkother.h,
src/checksecurity.h, src/checkstl.h, src/cppcheck.cpp: doc:
generating wiki documentation
2009-06-12 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed
ticket #390 (wrong allocation and deallocation not detected) http://sourceforge.net/apps/trac/cppcheck/ticket/390
2009-06-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkautovariables.h, src/checkbufferoverrun.h,
src/checkclass.h, src/checkdangerousfunctions.h,
src/checkmemoryleak.h, src/checkother.h, src/checksecurity.h,
src/checkstl.h: added a classInfo function for each check class
2009-06-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testsimplifytokens.cpp: Fix ticket #386 (False positive (memory
leak) with comma)
http://apps.sourceforge.net/trac/cppcheck/ticket/386
2009-06-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #377
(False positive with "char a[]") Updated the tokenizer so "char a[]" is tokenized into "char *a"
2009-06-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.cpp, src/errorlogger.h: Partial fix for ticket
#380 (Error reporting on unused functions) Returning hard coded line
number 1 and assumed that severity should be "style"
https://apps.sourceforge.net/trac/cppcheck/ticket/380
2009-06-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: codeblocks project file updated
2009-06-10 Slava Semushin <php-coder@altlinux.ru>
* src/checkunusedfunctions.h: src/checkunusedfunctions.h: assign
default values in initializer list. No functional change.
2009-06-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/resultstree.cpp: Fix compile error in GUI
2009-06-10 Slava Semushin <php-coder@altlinux.ru>
* src/cppcheck.cpp: Don't print message about missing source files
when --errorlist used. Also exit with zero status in this case. Fix for 5193a36a6a2490f199de41c430482586557d9894 commit.
2009-06-10 Slava Semushin <php-coder@altlinux.ru>
* : commit d9f2dd385b3f2ab16b45a2ef084fe7447fa04659 Author: Slava
Semushin <php-coder@altlinux.ru> Date: Wed Jun 10 01:52:42 2009
+0700
2009-06-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.cpp, src/checkautovariables.h,
src/checkother.cpp, src/checkother.h, test/testautovariables.cpp,
test/testother.cpp: Refactoring: Moved
CheckOther::returnPointerToLocalVariable to CheckAutoVariables
2009-06-09 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: One messagebox was missing "this"
parameter.
2009-06-09 Kimmo Varis <kimmov@gmail.com>
* testrunner.vcproj: Update VS testrunner project.
2009-06-09 Vesa Pikki <spyree@gmail.com>
* gui/resultsview.cpp: Astyle formatting.
2009-06-09 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/resultsview.cpp, gui/resultsview.h: Force
progressbar to be visible when checking starts.
2009-06-09 Vesa Pikki <spyree@gmail.com>
* gui/applicationdialog.cpp, gui/mainwindow.cpp,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h:
Added messagebox to inform user about not found/non visible errors.
2009-06-09 Vesa Pikki <spyree@gmail.com>
* : commit 814cd37c905e9016aaf45f3189d8401dfbf166af Author: Vesa
Pikki <spyree@gmail.com> Date: Tue Jun 9 09:30:28 2009 +0300
2009-06-09 Kimmo Varis <kimmov@gmail.com>
* gui/readme.txt: GUI: Add readme file with instructions for running
and compiling the GUI.
2009-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.h: Doxygen: Added a few simple doxygen
comments for the leaks checking
2009-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Refactoring: Split up the CheckMemoryLeak into
CheckMemoryLeakInFunction and CheckMemoryLeakInClass
2009-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Refactoring: Renaming the CheckMemoryLeakClass
to CheckMemoryLeak. Deleted testmemleakmp
2009-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleakmp.cpp: deleted the testmemleakmp file
2009-06-08 Kimmo Varis <kimmov@gmail.com>
* gui/settingsdialog.cpp: GUI: If application list contains
applications select the first by default.
2009-06-08 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Show error message when the viewer
application cannot be started.
2009-06-08 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: Fix #378 (GUI doesn't start application
if path contains spaces) In Windows we must surround paths including
spaces with quotation marks. This patch fixes application path when
it is read from Browse-dialog.
2009-06-08 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: GUI: Show application path with native
separators.
2009-06-08 Kimmo Varis <kimmov@gmail.com>
* cppcheck.vcproj: Update VS project file after files were renamed.
2009-06-08 Kimmo varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Update project file after file renaming.
2009-06-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkfunctionusage.cpp, src/checkfunctionusage.h,
src/checkunusedfunctions.cpp, src/checkunusedfunctions.h,
src/cppcheck.cpp, src/cppcheck.h, test/testfunctionusage.cpp,
test/testunusedfunctions.cpp: Refactoring: Renamed
CheckFunctionUsage to CheckUnusedFunctions
2009-06-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.h, src/checkbufferoverrun.h,
src/checkclass.h, src/checkdangerousfunctions.h,
src/checkmemoryleak.h, src/checkother.h, src/checksecurity.h,
src/checkstl.h: Added headers to the "--errorlist" output
2009-06-07 Kimmo Varis <kimmov@gmail.com>
* : commit 8375d1f1aeef4273a73bd030357f373b2d360cae Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jun 7 14:46:34 2009 +0300
2009-06-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Added a Changelog file that is generated automaticly by
git2cl
2009-06-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, win_installer/cppcheck.iss:
Updated version to 1.33
2009-06-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix ticket #371
(Resource leak when exit() and if() uses together)
http://apps.sourceforge.net/trac/cppcheck/ticket/371
2009-06-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.cpp, test/testautovariables.cpp: Fix #370
(Assign auto variable to parameter false positive)
2009-06-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #368 (Leak
detected when allocated memory assigned to member of structure which
returned from function) The return value of strcpy wasn't handled very well
2009-06-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testfunctionusage.cpp: Refactoring: Simple code cleanup
2009-06-06 Kimmo Varis <kimmov@gmail.com>
* : commit 3142a73fd99462a3c88d99fe31fdb6757fa65e80 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Jun 6 13:07:20 2009 +0300
2009-06-06 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/settingsdialog.cpp: GUI: Make Settings-dialog a parent of Add
Application-dialog.
2009-06-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/settingsdialog.cpp, gui/settingsdialog.h:
GUI: Make mainwindow parent of Settings-dialog.
2009-06-06 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: GUI: Astyle fix.
2009-06-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fix #153
(Unsigned divide) The "unsigned i" variable declaration wasn't handled well. So I
added an "int" token.
2009-06-06 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: GUI: Convert native path to internal
presentation. If application path is edited by hand there can be
native Windows path separators. Unify path separators to internal
presentation before storing the path.
2009-06-06 Kimmo Varis <kimmov@gmail.com>
* gui/main.cpp: GUI: Fix handling UTF-8 strings in sources. Our
source files are UTF-8 and as such contain some chars outside 7-bit
ASCII. To handle UTF-8 correctly we must set text codec for QT to
UTF-8.
2009-06-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testother.cpp: Fix ticket
#364 (false positive:: division by zero)
http://apps.sourceforge.net/trac/cppcheck/ticket/364
2009-06-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/aboutdialog.cpp, gui/aboutdialog.h: UTF-8 fixes
to GUI files aboutdialog.* added to codeblocks projectfile
2009-06-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #353
(No pair for character (').)
http://apps.sourceforge.net/trac/cppcheck/ticket/353
2009-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/cppcheck.cpp: Created an undocumented command
line flag "--errorlist" that prints all messages
2009-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkfunctionusage.cpp, test/testfunctionusage.cpp: Fix #359
(Incorrect unused function)
2009-06-05 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp: GUI: Fix warning from About-dialog layout.
2009-06-05 Kimmo Varis <kimmov@gmail.com>
* : commit aaba5735ed6dd93b5fa74a79be65975106c96e45 Author: Kimmo
Varis <kimmov@gmail.com> Date: Fri Jun 5 10:37:50 2009 +0300
2009-06-05 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt: Update Windows installer readme for
including QT GUI and other installer improvements.
2009-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #354 (false
positive: memory leak)
2009-06-05 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #360
(Teach about new(std::nothrow) form) http://apps.sourceforge.net/trac/cppcheck/ticket/360
2009-06-05 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testbufferoverrun.cpp: Fixed ticket #329
(snprintf size is out of bounds when two variables in one scope with
similar names) FIXME: Because it's fix for simplifyTokenList() test should be moved
to test/testsimplifytokens.cpp file. http://apps.sourceforge.net/trac/cppcheck/ticket/329
2009-06-05 Slava Semushin <php-coder@altlinux.ru>
* test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testdivision.cpp, test/testfunctionusage.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testother.cpp, test/teststl.cpp, test/testtokenize.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp: Strip redundant
std::string usage from tests. Second round: handle empty strings. Done by command: git grep -l ASSERT_EQUALS | xargs sed -i
's|ASSERT_EQUALS(std::string(\(".*"\)),|ASSERT_EQUALS(\1,|' Should be no functional change.
2009-06-05 Slava Semushin <php-coder@altlinux.ru>
* src/checkclass.cpp, test/testclass.cpp: Fixed ticket #358 (Local
typedef flagged as uninitialized member) http://apps.sourceforge.net/trac/cppcheck/ticket/358
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Enable sorting in results view.
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* gui/settingsdialog.cpp: GUI: Improve Settings-dialog layout.
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/threadhandler.cpp,
gui/threadhandler.h: GUI: Prevent exiting the application while
checking.
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp: GUI: Add program icon to the About-dialog.
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* gui/aboutdialog.cpp, gui/aboutdialog.h, gui/gui.pro,
gui/mainwindow.cpp: GUI: Add About-dialog. Replace messagebox
containing about-text with dialog. About-dialog must contain
copyright information.
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Remove some empty lines.
2009-06-04 Kimmo Varis <kimmov@gmail.com>
* : commit a74faf334e2737c90f7f90e82b1be8d53a9ef7ee Author: Kimmo
Varis <kimmov@gmail.com> Date: Thu Jun 4 12:38:08 2009 +0300
2009-06-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix ticket #352
(Memory leaks: Missed memory leak when "--all" is not given)
http://apps.sourceforge.net/trac/cppcheck/ticket/352 Detect memory
leaks without --all when there is "alloc ; assign callfunc ;
2009-06-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #351 (false
positive::resource leak)
http://apps.sourceforge.net/trac/cppcheck/ticket/351
2009-06-03 Vesa Pikki <spyree@gmail.com>
* gui/resultstree.h: Added a missing include.
2009-06-03 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h,
gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, gui/threadresult.cpp, gui/threadresult.h:
Added the initial version of saving results to a file.
2009-06-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/applicationdialog.h, gui/applicationlist.h, gui/common.h,
gui/settingsdialog.h, src/mathlib.cpp, src/mathlib.h: Changed EOL
character to LF in a few files.
2009-06-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/checkthread.cpp: astyle fix
2009-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #350
(False positive: Array index out of bounds)
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* doxyfile: Add GUI code to doxygen output.
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/checkthread.cpp, gui/checkthread.h, gui/mainwindow.cpp,
gui/threadhandler.cpp: GUI: Implement stopping the compare. Threads
must be exited from check cleanly even though it takes small amount
of time. Just terminating thread can have unpredictable side-effects
(even weird crashes).
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/threadresult.h: Fix mixed EOL style.
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/resultsview.cpp,
gui/resultsview.h: GUI: Add Collapse/Expand all -items to View-menu.
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.h: Fix mixed EOL style.
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.h: Fix mixed EOL style.
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/resultsview.h: Fix mixed EOL style.
2009-06-02 Kimmo Varis <kimmov@gmail.com>
* gui/resultstree.cpp: GUI: Include result tree icons to resource
(and executable).
2009-06-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #339
(Buffer overrun not detected with pointer arrays)
http://apps.sourceforge.net/trac/cppcheck/ticket/339
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #349
(Add detection for resource leaks after tmpfile() usage) https://apps.sourceforge.net/trac/cppcheck/ticket/349
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #348
(Simplify sizeof for pointers) https://apps.sourceforge.net/trac/cppcheck/ticket/348
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyTokenList: use SizeOfType(). No functional change.
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyTokenList: reduce indent. No functional change.
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyTokenList: some improvements. Corrections for 2de4c516e9e5e3dd9590379b0e980c9fc484db89 commit: - declare variable near their usage - set right position of next token
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testdangerousfunctions.cpp,
test/testdivision.cpp, test/testfilelister.cpp,
test/testincompletestatement.cpp, test/testmathlib.cpp,
test/testmemleak.cpp, test/testother.cpp, test/testredundantif.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp,
test/testtokenize.cpp, test/testunusedprivfunc.cpp: Strip redundant
std::string usage from tests. Done by command: git grep -l ASSERT_EQUALS | xargs sed -i
's|ASSERT_EQUALS(std::string(\(".\+"\)),|ASSERT_EQUALS(\1,|' Should be no functional change.
2009-05-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #338
(Simplify sizeof for pointer arrays) by patch submitted by
php-coderrr http://apps.sourceforge.net/trac/cppcheck/ticket/338
2009-06-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: src/tokenize.cpp(unwantedWords): propagate const
modifier. No functional change.
2009-05-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Variable Id: structs must
not have variable id
2009-05-31 Slava Semushin <php-coder@altlinux.ru>
* : commit fb0c217c3e4103219737a1e20e68e95b05ee82f3 Author: Slava
Semushin <php-coder@altlinux.ru> Date: Sun May 31 20:48:40 2009
+0700
2009-05-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #344
(Tokenizer crash in Windows)
http://apps.sourceforge.net/trac/cppcheck/ticket/344
2009-05-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Fixed ticket #345 ('!' and 'not' tokens interpreted differently even
though they mean the same)
2009-05-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errorlogger.cpp, src/errorlogger.h, test/testcppcheck.cpp: Fix
ticket #318 ('..' in include will cause conflicting slashes in
messages)
2009-05-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkfunctionusage.cpp, test/testfunctionusage.cpp: Fix for
#341 (Functions passed as pointer not detected as used)
2009-05-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: cppcheck: removed the 'this may take several
minutes' when checking unused functions. The check is much faster
nowadays
2009-05-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
calling function that deallocates the memory and allocates new
memory https://apps.sourceforge.net/trac/cppcheck/ticket/336
2009-05-30 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Add manifest for Windows build.
2009-05-30 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, src/filelister.cpp: GUI: Fix building with MinGW.
Add shlwapi library to qmake project file. Use WCHAR instead of
wchar_t.
2009-05-30 Kimmo Varis <kimmov@gmail.com>
* src/filelister.cpp: Make GUI work in Windows compiled with VS.
Since GUI is QT project it is also Unicode project. And other
cppcheck code is ANSI code. So we must convert data between Unicode
and ANSI when calling WinAPI functions. WinAPI functions want
Unicode strings but e.g. std::string contains ANSI strings.
2009-05-30 Kimmo Varis <kimmo@kimmo-laptop.(none)>
* .gitignore: Add more generated GUI files to gitignore.
2009-05-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit d33139b2c781d1c4eda1b8ab56212aef5fb1cf42 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sat May 30
14:24:55 2009 +0200
2009-05-30 Kimmo Varis <kimmov@gmail.com>
* src/filelister.cpp: Windows: Fix FileLister to send full paths
instead of only filenames.
2009-05-30 Kimmo Varis <kimmov@gmail.com>
* : commit b2d50ca512ca136732e69bb4e7d9641fd0d168e1 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat May 30 10:32:33 2009 +0300
2009-05-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* AUTHORS, cppcheck.cbp, gui/applicationdialog.cpp,
gui/applicationdialog.h, gui/applicationlist.cpp,
gui/applicationlist.h, gui/checkthread.cpp, gui/checkthread.h,
gui/common.h, gui/main.cpp, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, gui/threadhandler.h, gui/threadresult.cpp,
gui/threadresult.h, src/check.h, src/checkautovariables.cpp,
src/checkautovariables.h, src/checkbufferoverrun.cpp,
src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkfunctionusage.cpp, src/checkfunctionusage.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checksecurity.cpp, src/checksecurity.h, src/checkstl.cpp,
src/checkstl.h, src/cppcheck.cpp, src/cppcheck.h,
src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, src/filelister.cpp,
src/filelister.h, src/main.cpp, src/mathlib.cpp, src/mathlib.h,
src/preprocessor.cpp, src/preprocessor.h, src/settings.cpp,
src/settings.h, src/threadexecutor.cpp, src/threadexecutor.h,
src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testcppcheck.cpp,
test/testdangerousfunctions.cpp, test/testdivision.cpp,
test/testfilelister.cpp, test/testfunctionusage.cpp,
test/testincompletestatement.cpp, test/testmathlib.cpp,
test/testmemleak.cpp, test/testmemleakmp.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsecurity.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
test/testsuite.h, test/testtoken.cpp, test/testtokenize.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp,
tools/dmake.cpp, tools/errmsg.cpp: Fix ticket #325 (Replace
developer names in source files with AUTHORS file)
http://apps.sourceforge.net/trac/cppcheck/ticket/325
2009-05-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #342 (Simplify
"if( (true) == true )")
http://apps.sourceforge.net/trac/cppcheck/ticket/342
2009-05-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Changed expected result for test case
TestTokenizer::removeParantheses3 to simplify it more
2009-05-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix bug related to ticket
#330, cppcheck hanged with some files containing "(("
http://apps.sourceforge.net/trac/cppcheck/ticket/330
2009-05-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Simplifying
redundant parantheses http://apps.sourceforge.net/trac/cppcheck/ticket/330
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* gui/threadhandler.h: Fix EOL style (had Unix/DOS) mixed style.
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* gui/applicationdialog.cpp: GUI: Fix typo in Add New Application
-dialog.
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Add separator in View-menu before
check/uncheck all.
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Add GUI build folders to gitignore.
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck-gui.rc, gui/gui.pro: GUI: Add application icon for
Windows.
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: GUI: Use PNG icon instead of SVG icon for
Check directory -action.
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/gui.qrc, gui/main.cpp, gui/mainwindow.cpp,
gui/resultstree.cpp: Add icon files to resource file. Having
resource files compiled in the executable makes installing the
application easier (especially on Windows).
2009-05-28 Kimmo Varis <kimmov@gmail.com>
* src/filelister.cpp: Fix building GUI with Visual Studio.
2009-05-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #319 (Function
names are tagged as variables)
http://apps.sourceforge.net/trac/cppcheck/ticket/319
2009-05-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp, test/testtokenize.cpp: Added test case
TestMemleak::dealloc_and_alloc_in_func
2009-05-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket 330 (found
memory leak when __builtin_expect uses)
2009-05-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket 308 (cppcheck
msg:: invalid number of ((). Cant process file)
2009-05-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit 650d58e3de2a9487edc36e97fb55cf0ebefb9f77 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Wed May 27
19:38:26 2009 +0200
2009-05-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss, win_installer/readme.txt: Installer:
Add docoments to Start-menu. Add AUTHORS.txt, COPYING.txt and
readme.txt to the Start-menu. Files are opened by default .txt file
viewer which is usually Notepad.
2009-05-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Add .txt extension to text
files. Windows does not know how to open files without extension in
name so add .txt extension when installing for AUTHORS and COPYING.
2009-05-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Install AUTHORS-file.
AUTHORS is good to install as it tells who are working with
cppcheck.
2009-05-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Add large installer bitmap.
Adding large installer image which is shown as "sidebar" of
installer's welcome window. The bitmap is combination of Inno Setup
standard image and cppcheck icon.
2009-05-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt: Installer: Fix output folder name in
installer readme.
2009-05-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Installer: Add small image shown in
top of the installer.
2009-05-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, test/testtokenize.cpp: Fix ticket #334
(segmentation fault on boost 1.39.0)
http://apps.sourceforge.net/trac/cppcheck/ticket/334
2009-05-26 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp: Astyle formatting.
2009-05-26 Vesa Pikki <spyree@gmail.com>
* AUTHORS, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h: Added 22x22 icons from
http://tango.freedesktop.org. Also added icon source to AUTHORS
file. Also added toolbar with the default actions. Added icons to
result files and errors.
2009-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/icon.svg, gui/main.cpp, logo.svg: renamed the logo files to
icon instead
2009-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/main.cpp, logo.svg: logo: modified the logo so it looks better
when used as mainicon for the gui program
2009-05-25 Vesa Pikki <spyree@gmail.com>
* gui/main.cpp: GUI now uses Cppcheck's logo.
2009-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* logo.svg: Added a temporary logotype for cppcheck
2009-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed ticket #333 (tokenizer: incorrect
removal of decrement/increment)
2009-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #317
(pre-increment causes style false positive)
2009-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #317
(pre-increment causes style false positive)
2009-05-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #332
(White space between macro name and '(' causes macro simplification
to fail) http://apps.sourceforge.net/trac/cppcheck/ticket/332
2009-05-24 Vesa Pikki <spyree@gmail.com>
* : commit d9c36eada2cdc5f6c2e9b8f92bd319789fc588eb Author: Vesa
Pikki <spyree@gmail.com> Date: Sun May 24 12:09:37 2009 +0300
2009-05-24 Vesa Pikki <spyree@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h,
gui/settingsdialog.cpp, gui/settingsdialog.h: User can now undo
changes to application list by clicking cancel.
2009-05-24 Vesa Pikki <spyree@gmail.com>
* gui/applicationdialog.cpp, gui/applicationlist.cpp,
gui/mainwindow.cpp, gui/settingsdialog.cpp: Astyle formatting.
2009-05-24 Vesa Pikki <spyree@gmail.com>
* gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/applicationlist.cpp, gui/checkthread.cpp, gui/checkthread.h,
gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp,
gui/settingsdialog.cpp: Fixed issues pointed out by Reijo. The
number of threads is now atleast 1. Added a very simple about
dialog with version number and license. Replaced all CppCheck's
with Cppcheck. Renamed "show more errors" to "show possible false
positives" in the menu. User created application now has to have a
name and a path.
2009-05-24 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp:
src/checkmemoryleak.cpp(GetAllocationType): simplify condition a
bit. Replace two Token::simpleMatch() calls to one Token::Match(). Correction for my previous
(2654a4aa54457f71b5dbcdc43ee714a054e65069) commit. No functional change.
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Added support to search resource leaks after
opendir()/fdopendir() usage.
2009-05-20 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp, test/testother.cpp: Part of fix for ticket
#284 (style check: redundant condition improvement) Fixed case "if (p) delete [] p;" and also added test case for it. http://apps.sourceforge.net/trac/cppcheck/ticket/284
2009-05-20 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp, test/testother.cpp: Part of fix for ticket
#284 (style check: redundant condition improvement) Fixed case "if (p != NULL) delete p;" and also added test case for
it. http://apps.sourceforge.net/trac/cppcheck/ticket/284
2009-05-24 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp:
src/checkmemoryleak.cpp(GetDeallocationType): removed brackets. No functional change.
2009-05-23 Vesa Pikki <spyree@gmail.com>
* gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/applicationlist.h, gui/common.h, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.h,
gui/settingsdialog.h, gui/threadhandler.h, gui/threadresult.h: Added
more comments to class members and methods.
2009-05-23 Vesa Pikki <spyree@gmail.com>
* gui/applicationlist.cpp, gui/applicationlist.h,
gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp,
gui/resultstree.h, gui/settingsdialog.cpp, gui/settingsdialog.h: Now
starts the default application by double clicking the error.
2009-05-23 Vesa Pikki <spyree@gmail.com>
* : commit 70c32c10e4e3b69562d00ffc2922f46f7c280ee8 Author: Vesa
Pikki <spyree@gmail.com> Date: Sat May 23 14:26:04 2009 +0300
2009-05-23 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Added 17 functions
which work with FILE structure to white list. Inspired by previous commit.
2009-05-23 Vesa Pikki <spyree@gmail.com>
* gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/applicationlist.cpp, gui/applicationlist.h, gui/gui.pro,
gui/mainwindow.cpp, gui/mainwindow.h, gui/settingsdialog.cpp,
gui/settingsdialog.h: Added the ability to add/remove/modify
applications to open errors with. Only the list of applications
added, errors cant be opened yet.
2009-05-23 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #327
(File descriptor leak not detected when feof() used) Thanks to aggro80@ for help. http://apps.sourceforge.net/trac/cppcheck/ticket/327
2009-05-23 Vesa Pikki <spyree@gmail.com>
* gui/resultstree.cpp, gui/resultstree.h: When adding a new error,
only hides it and doesn't check all errors.
2009-05-23 Vesa Pikki <spyree@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h, gui/test.cpp, gui/threadhandler.cpp,
gui/threadresult.cpp, gui/threadresult.h: Results tree now uses only
QStandardItemModel for data storage. Items are now hidden from the
tree and the tree is not recreated everytime it is refreshed. Also
added test.cpp as a sample data for GUI testing. Added Check all
and uncheck all buttons to menu to show/hide all errors more easily.
2009-05-23 Vesa Pikki <spyree@gmail.com>
* gui/gui.pro: Updated new cppcheck files to project file.
2009-05-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix ticket #304 (#include <file.h> should
be searched from paths given with -I parameter.)
http://apps.sourceforge.net/trac/cppcheck/ticket/304 Note that the
ticket is same as with previous commit, but task description was
changed a little.
2009-05-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix ticket #304 (#include <file.h> should
be parsed like #include "file.h" is being parsed)
http://apps.sourceforge.net/trac/cppcheck/ticket/304
2009-05-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testmemleak.cpp: Fix ticket #326 (Reported
memory leak when pointer returned by assign to function's parameter)
http://apps.sourceforge.net/trac/cppcheck/ticket/326
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkfunctionusage.cpp, src/checkmemoryleak.cpp,
src/tokenize.cpp: Replaced two Token::simpleMatch() calls to one
Token::Match(). Suggested by hyd_danmar in ticket
http://apps.sourceforge.net/trac/cppcheck/ticket/323 No functional change.
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #324
(Teach about fcloseall() function) http://apps.sourceforge.net/trac/cppcheck/ticket/324
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkdangerousfunctions.h: Fixed ticket #300 (wrong level
given) Enable checks of dangerous functions only when --style option used. http://apps.sourceforge.net/trac/cppcheck/ticket/300
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkother.cpp, tools/errmsg.cpp:
Propagate static and const modifiers. No functional change.
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkdangerousfunctions.cpp:
Removed unused or superfluous headers. No functional change.
2009-05-22 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
test/testautovariables.cpp, test/testdangerousfunctions.cpp: Updated
wrong comments (looks like after copy&paste). No code change.
2009-05-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Updated man page to reflect AUTHORS file.
2009-05-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #299 (Memory
leak not detected when parameters contain ::)
http://apps.sourceforge.net/trac/cppcheck/ticket/299
2009-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* AUTHORS: AUTHORS: Added an authors file Ticket: http://apps.sourceforge.net/trac/cppcheck/ticket/325
2009-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.cpp, src/checkclass.cpp,
src/checkfunctionusage.cpp, src/checkheaders.cpp,
src/checkmemoryleak.cpp, src/checkother.cpp, src/checkstl.cpp,
src/preprocessor.cpp, src/tokenize.cpp: Applied patch
0001-Use-Token-simpleMatch-instead-of-Token-Match-w Author: php-coder Ticket: http://apps.sourceforge.net/trac/cppcheck/ticket/323
2009-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: Applied patch
0003-GetAllocationType-mark-some-members-as-static-and-a.patch Author: php-coder Ticket: http://apps.sourceforge.net/trac/cppcheck/ticket/321
2009-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Applied patch
0002-CheckMemoryLeak-renamed-enum-members.patch Author: php-coder
2009-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.h: Applied patch
0001-src-checkmemoryleak.h-replaced-assignment-in-contru.patch Author: php-coder
2009-05-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #316
(\n is tokenized into \\ in a string when macro is used)
http://apps.sourceforge.net/trac/cppcheck/ticket/316
2009-05-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Apply patch #320
from php-coderrr ([PATCH] Determine memory leaks after strndup()
usage) http://apps.sourceforge.net/trac/cppcheck/ticket/320
2009-05-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix ticket #315 (Segmentation fault when
checking Linux kernel) (previous fix was only partial fix)
http://apps.sourceforge.net/trac/cppcheck/ticket/315
2009-05-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #315
(Segmentation fault when checking Linux kernel)
http://apps.sourceforge.net/trac/cppcheck/ticket/315
2009-05-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testconstructors.cpp: astyle fix
2009-05-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testconstructors.cpp: Classes: Static
variables don't need to be initialized or assigned in constructors
etc http://apps.sourceforge.net/trac/cppcheck/ticket/307
2009-05-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: STL: It is ok to compare
vector iterators with <
https://apps.sourceforge.net/trac/cppcheck/ticket/313
2009-05-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix for ticket
291 - preprocessor: better handling of defines
http://apps.sourceforge.net/trac/cppcheck/ticket/291
2009-05-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #312
(division by pointer value causes wrong tokenizing)
http://apps.sourceforge.net/trac/cppcheck/ticket/312
2009-05-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: Preprocessor: Added test case for #291.
One of the assertions is a TODO and it should be fixed. http://apps.sourceforge.net/trac/cppcheck/ticket/291
2009-05-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix ticket #306 (Invalid multi-line
comment produces cryptic internal error)
http://apps.sourceforge.net/trac/cppcheck/ticket/306
2009-05-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testpreprocessor.cpp: Added TODO test case
TestPreprocessor::multiline_comment Made tokenizer to printout token
list in case of syntax error, if debug is used
2009-05-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: Added TODO test case TestMemleak::stdstring
2009-05-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtoken.cpp, test/testtokenize.cpp: Fix ticket #305
(Negative value passed to ASSERT_EQUALS)
http://apps.sourceforge.net/trac/cppcheck/ticket/305 Moved also test
case from testtokenizer to testtoken.
2009-05-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h,
test/teststl.cpp, test/testtokenize.cpp: Fix ticket #288
(Tokenizer::syntaxError should use error logger instead of
std::cout) http://apps.sourceforge.net/trac/cppcheck/ticket/288
2009-05-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #302
(White space between "\" and newline not handled correctly)
http://apps.sourceforge.net/trac/cppcheck/ticket/302
2009-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, win_installer/cppcheck.iss:
Updated version to 1.32
2009-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: null pointer
dereferencing: check that its a pointer that is dereferenced to
avoid false positives when using classes that behave almost like
pointers (#295)
2009-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
Handling exit (#297)
2009-05-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fix #289 (if() is not properly tokenized)
http://apps.sourceforge.net/trac/cppcheck/ticket/289
2009-05-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/threadexecutor.cpp: Apply #296 ([PATCH] cppcheck leak memory
when -j option uses)
http://apps.sourceforge.net/trac/cppcheck/ticket/296
2009-05-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/tokenize.cpp, src/tokenize.h,
test/testpreprocessor.cpp: Fix ticket #294 (### Error: Invalid
number of character ()
http://apps.sourceforge.net/trac/cppcheck/ticket/294
2009-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: fixed
problem when for example calling static member function in a
template class (#293)
2009-05-08 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss, win_installer/readme.txt: Add VS
runtimes to the Windows installer. cppcheck requires VS 9
runtimefiles to run. Those runtimes are installed by many programs
and it is probable lots of people already have them. But still there
are users without those files. And for them it is non-trivial task
to get cppcheck to run. So better just include runtimes for
everybody.
2009-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: template: no usage
-> no expansion (#292)
2009-05-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: testautovariables added to the codeblocks project
file
2009-05-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h,
test/testautovariables.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/teststl.cpp,
test/testtokenize.cpp: Initial fix for ticket #283 (segmentation
fault when checking xterm sources)
http://apps.sourceforge.net/trac/cppcheck/ticket/283 It should print
out error message now instead of crashing. Cleanup is needed.
2009-05-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: templates: don't expand forward declarations for
templates
2009-05-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #282 (protected
destructor - false positive)
http://apps.sourceforge.net/trac/cppcheck/ticket/282
2009-05-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: stl: removed false positives
for STL buffer overruns. Bailing out when it can't be checked if the
index is ok or not. (#285)
2009-05-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memleak: removed
false positives for pclose (#286)
2009-05-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates:
instantiations in a template class (#280)
2009-05-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: Added TODO test case
TestMemleak::assign_pclose
2009-05-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Added test case
TestSimplifyTokens::template7
2009-05-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: speedup
by breaking out inner loops (#257)
2009-05-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Handling newlines when using # to stringify parameters (#281)
2009-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: speedup: made the token simplifications a little
faster
2009-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: templates: extracted the
template simplification into a separate function
2009-05-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #276 (simplification:
Variable value) http://apps.sourceforge.net/trac/cppcheck/ticket/276
2009-05-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkclass.cpp,
src/checkheaders.cpp, src/checkmemoryleak.cpp, src/token.cpp,
src/token.h, src/tokenize.cpp, test/testtokenize.cpp: Fix #279
(Refactoring: replace and remove Token::aaaa , Token::aaaa0 and
Token::aaaa1) http://apps.sourceforge.net/trac/cppcheck/ticket/279
2009-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: varid: speedup of the algorithm for setting
variable ids
2009-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: varid: updated handling
of variable id for class variables (#26)
2009-05-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Fix possible bug caused by previous commit.
2009-05-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Fix slowlyness, caused by one of the previous
commits.
2009-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: stl: Fixed
ticket #277 - dereferencing an iterator that has been erased
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: give class
member variables varId (#26)
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: stl: added a ticket for the todo test case
TestStl::eraseDereference
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: stl: added todo test case, invalid iterator
after insert
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: stl: added todo test case, erasing invalid
iterator
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: stl: added test case, dereferencing an iterator
that has been erased
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmathlib.cpp: testing mathlib: Test that conversion to
numbers work
2009-05-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkother.cpp, src/mathlib.h,
src/tokenize.cpp: Refactoring: Using MathLib for converting string
to number commit beacd5793f9e9987432a20ac39a76ae6c2c8babd Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sat May 2
10:44:18 2009 +0200 memleak: using mathlib commit 4d28172a5d88cc2cbe5ed94a4e4fdbd0dd4bb5e1 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sat May 2
10:35:06 2009 +0200 tokenizer: using the MathLib for converting string to number commit 4e4b95b3554c9c6d121efeb39741204b1621b1a3 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sat May 2
10:28:39 2009 +0200 CheckOther: Using mathlib
2009-05-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testtokenize.cpp: refactoring:
Replaced 'aaaa'
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #204 (false
positive::memory leak with --all when free is guarded by simple if)
http://apps.sourceforge.net/trac/cppcheck/ticket/204
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: simplify
assembler (#270), fix _asm also.
http://apps.sourceforge.net/trac/cppcheck/ticket/270
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix ticket #196
(False positive: Resource leak)
http://apps.sourceforge.net/trac/cppcheck/ticket/196
2009-05-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: simplify
assembler (#270)
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Astyle fix
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #275
Simplify if( a == 0 ), if( 0 == a ) into if( !a )
http://apps.sourceforge.net/trac/cppcheck/ticket/275
2009-05-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testconstructors.cpp: astyle formatting
2009-05-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testconstructors.cpp: class checking: enabled test case. The
--all setting must be provided
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: astyle fix
2009-05-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testconstructors.cpp,
test/testmemleak.cpp: Fix partially ticket #196 False positive:
Resource leak And add few test cases related to it. Move one failing
test behind TODO
http://apps.sourceforge.net/trac/cppcheck/ticket/196
2009-05-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp: class checking: only check class assignments
if the --all has been given
2009-05-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, test/testconstructors.cpp:
class checking: Checking that vectors/lists/strings etc are modified
in the assignment function
2009-04-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #269
(Incorrect variable id, when delete is used.)
http://apps.sourceforge.net/trac/cppcheck/ticket/269
2009-04-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Added test case TestTokenizer::varid_delete
for ticket #269 http://apps.sourceforge.net/trac/cppcheck/ticket/269
2009-04-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: Added test case
TestMemleak::free_member_in_sub_func for ticket #253
http://apps.sourceforge.net/trac/cppcheck/ticket/253
2009-04-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: stl: checking that iterator is
used against a single container
2009-04-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: stl: added todo test case about using same
iterator with different containers
2009-04-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: changed todo comment to TODO_ASSERT_EQUALS
2009-04-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: checkstl:
Check for invalid pointer to vector element
2009-04-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testconstructors.cpp: added todo test case for detecting
unmodified containers in the operator= function
2009-04-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
handling std::auto_ptr (#266)
2009-04-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit b49997e69d7d058ea722d2d7ef8d4a231a514181 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Mon Apr 27
21:29:03 2009 +0200
2009-04-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Improve fix to
ticket #261: Allow macro definition to have uncoupled double quote.
http://apps.sourceforge.net/trac/cppcheck/ticket/261
2009-04-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Report correct file and line in message 'No pair for character..'
(#261)
2009-04-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: push_back: updated the
checking of push_back (#263)
2009-04-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: varid: Set variable id
for stl containers and iterators
2009-04-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: push_back: added a few todo test cases for the
checking of push_back
2009-04-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.cpp: astyle fix
2009-04-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errorlogger.cpp, test/testcppcheck.cpp: xml generator: handle
'<' and '>' (#263)
2009-04-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #258
(segmentation fault)
http://apps.sourceforge.net/trac/cppcheck/ticket/258
2009-04-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: return pointer to local
array: fixed false positive when return value is converted to for
instance a std::string (#255)
2009-04-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/mathlib.cpp, src/mathlib.h, test/testmathlib.cpp: mathlib:
Fixed todo 3/2=1
2009-04-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Fix ticket #257 (Improve speed of template
tokenizing) http://apps.sourceforge.net/trac/cppcheck/ticket/257
2009-04-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: private
functions: don't report false positives when using initialization
lists (#254)
2009-04-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: STL boundries:
added new check written by Bill Eggert (#247)
2009-04-13 Kimmo Varis <kimmov@gmail.com>
* .gitignore: Improve gitignore file for VS. Improve gitignore to
ignore Visual Studio build directories and other VS generated files
not wanted in version control.
2009-04-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/threadhandler.cpp, src/check.h: Fix ticket #252
(Fix --style warnings in cppcheck)
http://apps.sourceforge.net/trac/cppcheck/ticket/252
2009-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, win_installer/cppcheck.iss:
updated version to 1.31
2009-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmathlib.cpp: math lib: 3/2 should result in 1
2009-04-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: Fix ticket #248 (STL erase
check broken?) http://apps.sourceforge.net/trac/cppcheck/ticket/248
2009-04-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.sln, cppcheck.vcproj, testrunner.sln, testrunner.vcproj:
changed mode of visual studio files
2009-04-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.sln, cppcheck.vcproj, testrunner.sln, testrunner.vcproj:
updated Visual Studio files
2009-04-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Add mathlib to codeblocks projectfile
2009-04-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/mathlib.cpp, src/mathlib.h: mathlib: Added licence text
2009-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: simplify calculations: Don't simplify division
with 0
2009-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/tokenize.cpp: tokenize: use mathlib when simplifying
calculations (ticket: 236)
2009-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, cppcheck.geany, src/mathlib.cpp, src/mathlib.h,
test/testmathlib.cpp: added testing for mathlib
2009-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/mathlib.cpp, src/mathlib.h: Added math library that
was created by hoangtuansu
2009-04-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #212
(Tokenizer: Handle L "text")
http://apps.sourceforge.net/trac/cppcheck/ticket/212
2009-04-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Fix ticket #244 (Headers from included file
are searched from wrong path)
http://apps.sourceforge.net/trac/cppcheck/ticket/244
2009-04-04 Leandro Lisboa Penz <lpenz@notebook.penz>
* .gitignore: .gitignore: do not show status of built files.
2009-04-04 Leandro Lisboa Penz <lpenz@notebook.penz>
* test/testmemleak.cpp: checkmemoryleak: fixed and reactivated
forwhile9 and forwhile10 tests.
2009-04-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix ticket
#243 (boundary checking)
http://apps.sourceforge.net/trac/cppcheck/ticket/243
2009-04-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: astyle fix
2009-04-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix ticket #242 (Preprocessor: Bail out
on failure instead of terminating the program)
http://apps.sourceforge.net/trac/cppcheck/ticket/242
2009-04-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checksecurity.cpp: Fix some potential null pointer crashes
2009-03-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, test/testconstructors.cpp:
operator=: changed error message when variable is not assigned
2009-03-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #239
(missing function implementation in namespace causes crash)
http://apps.sourceforge.net/trac/cppcheck/ticket/239
2009-03-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: division with zero =>
division by zero
2009-03-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: zero
division: it's an error
2009-03-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: tokenizer: don't
replace sizeof when size can't be determined (#233)
2009-03-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkautovariables.cpp: astyle fix
2009-03-28 Gianluca Scacco <gianluca@gianluca-laptop.(none)>
* test/testautovariables.cpp: Added new test to autovariable
2009-03-28 Gianluca Scacco <gianluca@gianluca-laptop.(none)>
* src/checkautovariables.cpp, test/testautovariables.cpp: Fixed
ticket #228: false positive with usage of an auto-variable
2009-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Don't treat
typedefs as variable declarations (#234)
2009-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leaks: refactoring the TODO test
cases
2009-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp: performance
enhancement (patch submitted by davidmiller in ticket 231)
2009-03-28 Nicolas Le Cam <niko.lecam@gmail.com>
* test/testmemleak.cpp: Add TestMemleak::realloc4 that currently
fail. Change TestMemleak::if10, TestMemleak::forwhile8 and
TestMemleak::realloc2 as they are currently leaking memory, mark
them as TODO. Comment out TestMemleak::forwhile9 and
TestMemleak::forwhile10 as they are wrong (infinite loops).
2009-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: removed TestOther::zeroDiv3 - it is not valid
2009-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: added
check for zero division. The code was written by Nguyen Duong Tuan
2009-03-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: possible
null pointer dereference after a while-loop
2009-03-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: moved checks back to style (where they used to
be)
2009-03-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: tokenizer: fix segmentation fault if end of
token list is reached
2009-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp, test/testmemleak.cpp, test/testsuite.h:
testing: new handling of todo test cases. If they use
TODO_ASSERT_EQUALS instead we can detect when they are fixed
2009-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: variable id: enabled test case for function
parameters
2009-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: variable id: give
std::string variables an id
2009-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.cpp: astyle formatting
2009-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Buffer overrun: Added check to detect
when size argument to memset is a char constant (#213)
2009-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testmemleak.cpp, test/testtokenize.cpp:
simplify tokens (known variable values in conditions)
2009-03-24 Gianluca Scacco <gscacco@users.sourceforge.net>
* src/checkautovariables.cpp: Fixed Ticket #202: Return of the
address of an auto-variable
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed ticket 216 (False
positive: variable scope)
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp: register CheckClass
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: fixed testcase
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: added testcase
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: Fixed ticket 197 (false positive: condition is
always true/false)
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: fixed
snprintf false positive (#210)
2009-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Simplify if conditions more.. simplifyIfAssign + simplifyIfNot
2009-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testcharvar.cpp: Fixed ticket 205 (False
positive: char variable used in bit operation)
2009-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed the testcase
TestMemleak::realloc3
2009-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
simplify tokens: move assignment out from condition (Ticket #201)
2009-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: added todo test case for ticket 200
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/settingsdialog.cpp, gui/settingsdialog.h: Removed unnecessary
options from settings dialog.
2009-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit a87419f59b099adc374d74a103835b66b7ee2f22 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sun Mar 22
18:57:53 2009 +0100
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp: Added a window title.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/common.h: Added license text.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* : commit 1e66d7f0e44949fc56e57b93cf1c106b736a363e Author: Vesa
Pikki <spyree@gmail.com> Date: Sun Mar 22 19:41:32 2009 +0200
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp: Conflicts: gui/mainwindow.cpp gui/resultstree.cpp
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h: Merged gui branch to master.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp: Astyle formatting.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/common.h, gui/mainwindow.cpp, gui/mainwindow.h,
gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp,
gui/resultsview.h: Can now hide and show results based on cpp flags.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h: Added view menu and buttons
for it.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp,
gui/threadhandler.cpp, gui/threadhandler.h: Added recheck and clear
results buttons.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/threadhandler.cpp: astyle formatting.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/mainwindow.h, gui/resultstree.cpp,
gui/threadhandler.cpp, gui/threadhandler.h: Added recheck and clear
results buttons.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/mainwindow.cpp, gui/resultstree.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, test/testautovariables.cpp: Astyle
formatting.
2009-03-22 Vesa Pikki <spyree@gmail.com>
* : commit 5e1994068ad4d81d38cc9cbf4ff7beff58cdac25 Author: Vesa
Pikki <spyree@gmail.com> Date: Sun Mar 22 14:32:07 2009 +0200
2009-03-22 Vesa Pikki <spyree@gmail.com>
* gui/checkdialog.cpp, gui/checkdialog.h: Removed check dialog.
Files to be checked are selected by default file open dialog with
all checking options enabled.
2009-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: updated the Makefile
2009-03-22 Gianluca Scacco <gscacco@users.sourceforge.net>
* Makefile, test/testautovariables.cpp: Fixed error compiling
testautovariables
2009-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.cpp: astyle code formatting
2009-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit e017d5a07928fba2836dbcfa96d7ca42b3a4634c Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sun Mar 22
08:20:15 2009 +0100
2009-03-22 Gianluca Scacco <giangy@giangy-desktop.(none)>
* src/checkautovariables.cpp, src/checkautovariables.h: Refactoring
of CheckAutoVariables
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: improved the Tokenizer::setVarId to handle
function parameters better
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkautovariables.cpp,
src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkmemoryleak.cpp, src/checkmemoryleak.h, src/errorlogger.h:
refactoring error messages
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: updated the MakeFile
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkautovariables.cpp: Fixed 188 (Return of auto
variable address), applied patched submitted by gscacco
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checksecurity.cpp, src/checksecurity.h, src/errorlogger.h,
test/testsecurity.cpp: refactoring error messages
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checkstl.cpp, src/checkstl.h, src/errorlogger.h: refactoring
error messages
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.geany: added geany project file
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: refactoring -
handling the stlOutOfBounds error message the new way
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkstl.h: refactoring - added a function
getErrorMessages that will be used to get a list of error messages
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.h, test/teststl.cpp: refactoring - fixed
the unit tests
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp, tools/errmsg.cpp: refactoring: The
errmsg is no longer supposed to generate the errorLogger code
2009-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkautovariables.h, src/checkbufferoverrun.h,
src/checkclass.h, src/checkdangerousfunctions.h,
src/checkmemoryleak.h, src/checkother.h, src/checkstl.h,
src/cppcheck.cpp: refactoring: there are now 2 functions for running
checks. 'runChecks' and 'runSimplifiedChecks'
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, cppcheck.cbp, src/check.h, src/checkstl.cpp: refactoring
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkstl.cpp, src/checkstl.h: refactoring:
generate error message in the class
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h: refactoring: Added a function to the Check base class
that allows easier error reporting
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/token.cpp: improved Token::tokAt to handle negative argument
too
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkdangerousfunctions.cpp,
src/checkdangerousfunctions.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/cppcheck.cpp, test/testcharvar.cpp,
test/testdangerousfunctions.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testmemleakmp.cpp, test/testother.cpp,
test/testredundantif.cpp, test/testunusedvar.cpp: refactoring the
rest of the classes
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/cppcheck.cpp, test/testbufferoverrun.cpp: refactoring
checkbufferoverrun
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, src/cppcheck.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testunusedprivfunc.cpp: refactoring CheckClass
2009-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkstl.cpp, src/checkstl.h: refactoring
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit 5565be0c74cbda4de3582dab1d057710de76d7ce Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Thu Mar 19
21:20:08 2009 +0100
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkautovariables.cpp, src/checkautovariables.h,
src/errorlogger.h, tools/errmsg.cpp: added and integrated
checkautovariables that gscacco created
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkautovariables.cpp, src/checkautovariables.h,
test/teststl.cpp: astyle formatting
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkautovariables.cpp, src/checkautovariables.h,
src/errorlogger.h, tools/errmsg.cpp: added checkautovariables and
integrated it into cppcheck
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: astyle formatting
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: refactoring: fixed the teststl so it is runnable
again
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbp, src/check.h, src/checkstl.cpp, src/checkstl.h,
src/cppcheck.cpp: refactoring: loop through all Check instances and
execute the runChecks function
2009-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h: refactoring: removed the changes
to the error handling
2009-03-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit a573c62cd532d3bdae381f8cf4696ec2e2eccd0a Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Wed Mar 18
22:40:38 2009 +0100
2009-03-18 Nicolas Le Cam <niko.lecam@gmail.com>
* test/testtokenize.cpp: Fix compilation on 64bit systems
2009-03-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed
ticket 184 (Tokenizer - Simplification: Split up variable
declarations)
2009-03-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed tokenizer: "return
- 2 ;" --> "return -2 ;"
2009-03-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #191
(semicolon after #endif stop tokenizing of function)
http://apps.sourceforge.net/trac/cppcheck/ticket/191
2009-03-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp: Astyle fix
2009-03-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, test/testmemleakmp.cpp, test/testtoken.cpp: Fixed some
memory leaks in test cases
2009-03-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/token.cpp, src/tokenize.cpp,
test/testtokenize.cpp: tokenize negative numbers into a single token
2009-03-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Fix ticket #186 (runtime error when checking
code that has a namespace)
http://apps.sourceforge.net/trac/cppcheck/ticket/186
2009-03-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: Refactoring the code for the templates handling
2009-03-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: Added test case for detecting false positive in
the STL size handling
2009-03-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h: --debug flag
can be used to printout token list (for development purposes)
2009-03-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #179
(preprocessor issues)
http://apps.sourceforge.net/trac/cppcheck/ticket/179
2009-03-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: Ticket #184 (Tokenizer - Simplification:
Split up variable declarations), added testcases
2009-03-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
Ticket #82 (detect buffer overrun; dynamic memory)
2009-03-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: test case stringify3 added
2009-03-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testmemleak.cpp,
test/testpreprocessor.cpp, test/testtokenize.cpp: Improved tokenizer
to handle '#' better. Previously everything after # was combined
into a single token, now # is considered more like an alphabet, with
few exceptions, e.g. "##" tokens.
2009-03-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix Ticket 180
(Templates: Expanding member functions that are not implemented
inline)
2009-03-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: replace
constructor/destructor names when expanding template classes
2009-03-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Test case stringify2() added.
2009-03-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #177
(Tokenizer doesn't add braces around if-scope)
http://apps.sourceforge.net/trac/cppcheck/ticket/177
2009-03-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #181
(#pragma causes wrong line numbers)
http://apps.sourceforge.net/trac/cppcheck/ticket/181
2009-03-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp, src/tokenize.h: Improve
creation of link() for Token class. Tokenizer::simplifyTokenList()
should now return code where Token::link() actually works.
2009-03-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: better
handling of templates with multiple type arguments
2009-03-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leak: handle
allocation in deallocation list
2009-03-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Memory leaks: Refactoring to use
Tokenizer::FindClassFunction. Enabled test case, the memory leak is
now detected
2009-03-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit 3b29125d659c1cb4d1547cba3597b06a4b9454c9 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Fri Mar 13
22:38:42 2009 +0100
2009-03-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, src/tokenize.cpp,
src/tokenize.h: refactoring: moved 'FindClassFunction' from
CheckClass to Tokenizer
2009-03-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp: Fixed ticket #169
(Add Token::link())
http://apps.sourceforge.net/trac/cppcheck/ticket/169
2009-03-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: TestMemleak: added two testcases for
checking for leaks in classes
2009-03-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testsimplifytokens.cpp: Fix ticket #151 (Handling of
namespaces) http://apps.sourceforge.net/trac/cppcheck/ticket/151
2009-03-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: expanding template
classes
2009-03-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testconstructors.cpp: uninitialized const
pointer member variables
2009-03-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: astyle style fixes
2009-03-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: simplify
template functions with 1 type argument
2009-03-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: astyle fix
2009-03-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: made the
Tokenizer::simplifyCasts more generic
2009-03-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: Fixed ticket 134 (memory leak not
detected) caused by wrong checking if code is inside class function
or not
2009-03-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket 147
(Invalid line number for error message)
2009-03-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checksecurity.h: removed unused private function
CheckSecurity::eraseCheckLoop
2009-03-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: simplify casts
2009-03-09 Kimmo Varis <kimmov@gmail.com>
* : commit 9698c6d96b86f608ff0473776584edb416a59d57 Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Mar 9 20:03:22 2009 +0200
2009-03-09 Vesa Pikki <spyree@gmail.com>
* : commit b3923b72ad48cc09ff4ec8355b0d406af02a580a Author: Kimmo
Varis <kimmov@gmail.com> Date: Mon Mar 9 19:58:38 2009 +0200
2009-03-09 Vesa Pikki <spyree@gmail.com>
* : commit 3d6e3d38bbc67a4742a1a775142867e0c254b07d Author: Vesa
Pikki <spyree@gmail.com> Date: Mon Mar 9 19:35:43 2009 +0200
2009-03-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Build installer to Build directory in
project root. Currently installer is build to subdirectory of the
iss file which is not obvious place to find it. Also it is not good
practice to build executables to source directories.
2009-03-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Set description for the installer
file. This description is shown in the explorer.
2009-03-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Set user wiki URL as
application/support URL. The installer was setting Sf.net project
page as an URL which might be confusing for the users. Better use
the wiki page.
2009-03-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.iss: Set version number for the installer
file. The installer file was missing a version number (was shown as
0.0.0.0) in the Windows Explorer. Set the installer file version
number identical to product version number.
2009-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Added test case for #147 (Invalid line
number for error message)
http://apps.sourceforge.net/trac/cppcheck/ticket/147
macro_linenumbers() in test/testpreprocessor.cpp
2009-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.cpp: Fix ticket #148 (unable to compile with
g++-3.3) http://apps.sourceforge.net/trac/cppcheck/ticket/148
2009-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Man page copyright year changed to 2009
2009-03-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cppcheck.iss: updated version to 1.30 in
installation script
2009-03-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: updated version to 1.30
2009-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Astyle fix
2009-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #145
(Line numbers are invalid if file is included inside #ifdef)
http://apps.sourceforge.net/trac/cppcheck/ticket/145
2009-03-07 unknown <NonUser@.(none)>
* gui/checkdialog.cpp, src/filelister.cpp: Windows Qt compilation
fixes. FileLister::RecursiveAddFiles failed to compile in Windows
when GUI was compiled. Since that method wasn't used in Qt build I
ifdeffed it out. Also removed vcl related code from checkdialog since that was
removed from release.
2009-03-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Improve man page
2009-03-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease: createrelease updated to use git instead of svn
2009-03-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp: Fix ticket #140 (New command
line option --auto-dealloc), added documentation
2009-03-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Fix ticket #141 (changed the makefile),
changing compiler is now easier in the makefile.
http://apps.sourceforge.net/trac/cppcheck/ticket/141
2009-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp: Fix ticket #137 (--version
would be nice) and also do some cleanup for help texts
http://apps.sourceforge.net/trac/cppcheck/ticket/137
2009-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/threadexecutor.cpp: Fix ticket #139 (Compilation error on
building cppcheck version 1.29 with gcc-4.3.2 on Ubuntu 8.10)
http://apps.sourceforge.net/trac/cppcheck/ticket/139
2009-03-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/settings.cpp, src/settings.h,
test/testmemleak.cpp: astyle formatting
2009-03-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: auto-deallocated classes: added command line
option for specifying .lst file
(http://apps.sourceforge.net/trac/cppcheck/ticket/120)
2009-03-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/settings.cpp, src/settings.h,
test/testmemleak.cpp: added internal support for handling list of
classes that are automaticly deallocated
2009-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/checkstl.cpp, src/cppcheck.cpp,
src/cppcheckexecutor.cpp, src/cppcheckexecutor.h, src/main.cpp,
src/settings.cpp, src/settings.h: Fix ticket #135 (Add option to
control main() exit value)
2009-03-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: Fix segmentation fault that
happens with invalid code.
2009-03-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #133
(Segmentation fault when static_cast is in for loop)
2009-03-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp: checkbufferoverrun: fixed bug - skip
some checks when variable id is unknown (Ticket: 138)
2009-03-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: reverted accidental changes committed in [1330]
2009-03-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/tokenize.cpp: fixed tokenizer problem when
reading char constants
2009-03-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: simplify calculations better
2009-03-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: known variables: better
handling of ++ and --
2009-03-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #132 (False
positive returning memcpy())
2009-03-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, test/testsimplifytokens.cpp, test/testtokenize.cpp:
Fix ticket Add/Change #125 (the printout of the token list is wrong)
2009-03-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h: Refactoring: Combined printOut() and
stringifyList() in Token class
2009-03-03 Kimmo Varis <kimmov@users.sourceforge.net>
* createrelease: Use svn export to export sources without SVN
folders.
2009-03-03 Kimmo Varis <kimmov@users.sourceforge.net>
* createrelease: Use variable for relase folder and version in
release script.
2009-03-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: unused private
function: better handling of initialization lists in constructors
2009-03-02 Vesa Pikki <spyree@users.sourceforge.net>
* gui/resultsview.cpp, gui/threadhandler.cpp, gui/threadresult.cpp:
Removed some unnecessary debug prints.
2009-03-02 Vesa Pikki <spyree@users.sourceforge.net>
* gui/checkdialog.cpp, gui/checkdialog.h, gui/checkthread.cpp,
gui/checkthread.h, gui/resultstree.cpp, gui/resultsview.cpp,
gui/resultsview.h, gui/threadhandler.cpp, gui/threadhandler.h,
gui/threadresult.cpp, gui/threadresult.h, src/filelister.h: Now adds
directory contents to list of files to check. Only adds proper
(.cpp,.c,.cpp,...) files to the list of files to check. Modified
checkthread to clear results after each file.
2009-03-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease: createrelease: The script for creating the 1.29
source packages
2009-03-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: unused private
function: fixed false positive (ticket: 129)
2009-03-01 Vesa Pikki <spyree@users.sourceforge.net>
* gui/checkdialog.cpp, gui/checkdialog.h, gui/checkthread.cpp,
gui/checkthread.h, gui/gui.pro, gui/mainwindow.cpp,
gui/mainwindow.h, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp, gui/resultsview.h, gui/threadhandler.cpp,
gui/threadhandler.h, gui/threadresult.cpp, gui/threadresult.h: Began
implementing ThreadExecutor with Qt threads. Still a work in
progress. Added tr to all strings.
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Copyright fix for the man page
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Copyright for the man page
2009-03-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: memory leak: fixed issue with reporting wrong
location
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/threadexecutor.cpp: Fixed some compiling warnings by adding
more error checking.
2009-03-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: removed deprecated flag 'firstMatch'
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.h, tools/errmsg.cpp: Copyright fixes
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.h, src/threadexecutor.cpp: Fixing compile problem
with new gcc
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkclass.cpp, src/checkclass.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkfunctionusage.cpp, src/checkfunctionusage.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checksecurity.cpp, src/checksecurity.h, src/checkstl.cpp,
src/checkstl.h, src/cppcheck.cpp, src/cppcheck.h,
src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, src/filelister.cpp,
src/filelister.h, src/main.cpp, src/preprocessor.cpp,
src/preprocessor.h, src/settings.cpp, src/settings.h,
src/threadexecutor.cpp, src/threadexecutor.h, src/token.cpp,
src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdangerousfunctions.cpp,
test/testdivision.cpp, test/testfilelister.cpp,
test/testfunctionusage.cpp, test/testincompletestatement.cpp,
test/testmemleak.cpp, test/testmemleakmp.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsecurity.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.cpp,
test/testsuite.h, test/testtoken.cpp, test/testtokenize.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp,
tools/dmake.cpp, tools/errmsg.cpp: Copyrights updated
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Added GUI to codeblocks project file
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.h, tools/errmsg.cpp: Fixed another --style problem
with our code
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/threadexecutor.cpp, src/threadexecutor.h: Fixed bug, -j option
produced duplicate error messages.
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.cpp, src/errorlogger.h, tools/errmsg.cpp: Use
reference instead of string copy (fixes some --style warnings from
our code)
2009-03-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: removed the '--vcl' flag from the console app
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Removed --vcl fromt he man page
2009-03-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Updated man page for --vcl
2009-03-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testother.cpp, test/testtokenize.cpp:
variable id: fixed so that the variable ids are assigned correctly
(ticket:126)
2009-03-01 Vesa Pikki <spyree@users.sourceforge.net>
* gui/checkdialog.cpp, gui/checkdialog.h, gui/checkthread.cpp,
gui/checkthread.h, gui/gui.pro, gui/main.cpp, gui/mainwindow.cpp,
gui/mainwindow.h, gui/resultstree.cpp, gui/resultstree.h,
gui/resultsview.cpp, gui/resultsview.h, gui/settingsdialog.cpp,
gui/settingsdialog.h, runastyle, runastyle.bat: Began implementing a
simple Qt based GUI. Also modified astyle scripts to format gui
code aswell.
2009-02-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: variable
declarations: don't simplify when declaring and assigning array in
the same statement
2009-02-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: variable id: handling
'return' and 'else' better
2009-02-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: moved sizeof
tests to the TestSimplifyTokens class
2009-02-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: refactoring unit tests
2009-02-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: sizeof: fixed a problem
with 'sizeof(varname)' but there are more to fix with it
2009-02-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.h: Added Cppcheck::clearFiles()
function.
2009-02-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: simplify known variable:
don't simplify this ';i++;'
2009-02-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkfunctionusage.cpp: unused functions: fixed false
positives
2009-02-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: Reverted changes made in [1289]
2009-02-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: simplify tokens:
fixed bug when removing redundant parantheses around variable
2009-02-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: array index out of bounds: Added todo
test case TestBufferOverrun::array_index_13 for ticket #118
2009-02-26 Kimmo Varis <kimmov@users.sourceforge.net>
* win_installer/cppcheck.iss: Use 'folder' instead of 'directory' in
Windows installer.
2009-02-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: simplify tokens:
remove redundant parantheses around variable.. 'p = (q);'
2009-02-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak: Fixed
a false positive when all is given
2009-02-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: unused private
function: Handle 'embedded' function implementations better
2009-02-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp: checkclass: refactoring
2009-02-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: reverted [1282]
because some changes were committed by mistake
2009-02-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: checkclass:
refactoring
2009-02-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: sizeof fix. classes and structs are always given
the size 100. This removes false positives about mismatching size
2009-02-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: simplify tokens: simplify
known variable value handles ++ and -- better
2009-02-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak: fixed
false positive when using 'return strcpy'
2009-02-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
improved handling of --vcl
2009-02-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/cppcheckexecutor.cpp,
src/settings.cpp, src/settings.h, src/threadexecutor.cpp: Change -w
to -j to make it similar with make and scons.
2009-02-22 Kimmo Varis <kimmov@users.sourceforge.net>
* src/cppcheck.rc: Windows RC file is ANSI file, storing as UTF-8
messes it up.
2009-02-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.h, tools/errmsg.cpp: Members of
ErrorLogger::ErrorMessage made public for better access to them.
2009-02-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.h: CppCheck::addFile() accepts
paths also now.
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbp: codeblocks: Updated the project file with the new
security check
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/tokenize.cpp, test/testclass.cpp:
constructors: don't warn about missing constructor if class only has
static variable members
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: buffer
overrun: catch cases when using cin to read to a char array
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checksecurity.cpp, src/checksecurity.h,
test/testsecurity.cpp: security: renamed classes
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checksecurity.cpp, src/checksecurity.h,
src/checkvalidate.cpp, src/checkvalidate.h, test/testsecurity.cpp,
test/testvalidate.cpp: security: Renamed files
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: TestClass: Added test for
uninitialized "mutable int i"
2009-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.vcproj: Visual C++: Updated the project file to include
the thread execution
2009-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: buffer
overrun: dangerous usage of strncpy+strncat
2009-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/errorlogger.h,
test/testbufferoverrun.cpp, tools/errmsg.cpp: buffer overrun: Added
checking of strncat
2009-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: added todo testcases for strncat
checking
2009-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/threadexecutor.cpp: g++: fixed compiler errors
2009-02-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/cppcheckexecutor.cpp,
src/settings.cpp, src/settings.h, src/threadexecutor.cpp,
src/threadexecutor.h, tools/errmsg.cpp: Fix ticket #113 (Add support
for multi core CPUs and -w parameter to specifify amount of worker
threads)
2009-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: simplify known variables:
variable used as array index
2009-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/cppcheck.cpp, src/errorlogger.h,
src/settings.cpp, src/settings.h, test/testmemleak.cpp: memory leak:
Added command line flag '--vcl' that is used to suppress error
messages for VCL code
2009-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cbp, src/cppcheck.cpp, src/cppcheck.h,
src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, src/threadexecutor.cpp,
src/threadexecutor.h, test/testsuite.h, tools/errmsg.cpp: Multicore
cpu support for Linux (currently disabled and compiling produces
warnings) "no errors" output removed.
2009-02-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkvalidate.cpp, src/checkvalidate.h, src/errorlogger.h,
src/settings.cpp, src/settings.h, test/testvalidate.cpp,
tools/errmsg.cpp: security: added simple gui checking
2009-02-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkvalidate.cpp, src/checkvalidate.h,
src/errorlogger.h, test/testvalidate.cpp, testrunner.vcproj,
tools/errmsg.cpp: input validation: added checking
2009-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: fixed failed tests
2009-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: reverted [1254] it was made by
mistake
2009-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: stl push_back: Added check (invalid
iterator)
2009-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, src/cppcheck.cpp,
src/errorlogger.h, test/teststl.cpp, tools/errmsg.cpp: stl
push_back: Added check (invalid iterator)
2009-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: activated the Tokenizer::elseif functionality
2009-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Added Tokenizer::elseif for breaking up 'else if' into 'else { if
..'
2009-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: varid: Added a todo test case for giving
function parameters varid
2009-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: fixed issues
related to variable ids * use setVarId in simplifyTokenList * make sure function parameters and variables declared in for
example for loops get variable ids
2009-02-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: astyle fix
2009-02-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: improved the
simplification of '*(var+num)' => 'var[num]'
2009-02-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: tokenizer: Remove
redundant parantheses around number. Ticket: #105
2009-02-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed bug in
tokenizer that removed '\' from preprocessor lines Ticket: #106
2009-02-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/filelister.cpp: FileLister: handle '\\' path separator the
same way '/' is handled
2009-02-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/filelister.cpp: filelister: use '\\' instead of '/' in windows
paths
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Code comments updated
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errorlogger.h, tools/errmsg.cpp: Code comments updated
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Added test case TestTokenizer::sizeof5
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/tokenize.cpp, test/testtokenize.cpp: Constant
variable converting converted struct members (foo.a => foo.45) also,
fixed that.
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #107
(Convert + + into + and + - into -) and add test case for it
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Fixed typos in test case and enabled
it.
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: astyle fix
2009-02-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: tokenize '++',
'--' and '>>' correctly
2009-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/errorlogger.h, test/testclass.cpp,
test/testconstructors.cpp, tools/errmsg.cpp: Fix ticket #104 (Change
(error) Uninitialized member variable -> (style) Member variable not
initialized in the constructor)
2009-02-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: debug output: commented out the code for writing
token listing
2009-02-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak: handle
'delete (p)' and 'delete [] (p)'. Fixes ticket 102
2009-02-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/tokenize.cpp: simplify known value: insert
known variable value into calculations
2009-02-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: simplify tokens: added todo test case, the
varid is lost when simplifying variable declarations
2009-02-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: simplify token list: Added a TODO test
case. variable id is lost
2009-02-13 Leandro Penz <lpenz@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
support for ##-comma-eating in variadic macros; passing now fmt2
test.
2009-02-13 Leandro Penz <lpenz@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Tokenizer: fixed ##
tokenization.
2009-02-13 Leandro Penz <lpenz@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
initial variadic macro support; passing now on fmt1 case.
2009-02-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/token.cpp, src/token.h, test/testtokenize.cpp:
Token::stringifyList: Added function that stringifies a token list
2009-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Improved test case "double_plus"
2009-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, test/testsimplifytokens.cpp: Added test case
double_plus and improved Token::printOut
2009-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #100 (Simplify
constants simplifies leaks out from variable scope and simplifies
whole file)
2009-02-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: buffer
overruns: added simple support for initialized array
2009-02-12 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkother.cpp, test/testincompletestatement.cpp: Incomplete
statements: removed false positive when setting array of structures
or multi-dimensional arrays.
2009-02-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Test case TestTokenizer::simplify_constants
added (commented out)
2009-02-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: stl dangerous usage of erase:
Added test cases about using return and goto
2009-02-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: buffer overrun: improved checking of
global variables
2009-02-11 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkother.cpp, test/testincompletestatement.cpp: Incomplete
statement: fixed and enabled intarray test case.
2009-02-11 Leandro Penz <lpenz@users.sourceforge.net>
* test/testincompletestatement.cpp: Incomplete statement: test case
for statement that begins with numeric constant.
2009-02-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkbufferoverrun.cpp, src/checkbufferoverrun.h:
checkbufferoverrun: cleaned up the header includes
2009-02-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: updated the Makefile
2009-02-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, src/cppcheck.cpp,
src/errorlogger.h, test/teststl.cpp, tools/errmsg.cpp: dangerous
usage of erase: added check
2009-02-10 Kimmo Varis <kimmov@users.sourceforge.net>
* cppcheck.vcproj, testrunner.vcproj: Update Visual Studio project
files.
2009-02-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkheaders.cpp, src/cppcheck.cpp, src/cppcheck.h,
src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, test/testsuite.cpp,
test/testsuite.h, tools/errmsg.cpp: Refactoring: reportErr takes now
only one parameter, ErrorLogger::ErrorMessage, which contains all
required information and also some help functions for formatting it
for output.
2009-02-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: stl: added testcase for bad
iterator usage
2009-02-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkstl.cpp, src/checkstl.h, src/cppcheck.cpp,
test/testbufferoverrun.cpp, test/teststl.cpp: Moved stloutofbounds
check to CheckStl class.
2009-02-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbp: codeblocks: updated the project file
2009-02-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp: astyle coding style update
2009-02-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkstl.cpp, src/checkstl.h, src/cppcheck.cpp,
src/errorlogger.h, test/teststl.cpp, tools/errmsg.cpp: STL: added
check for iterator usage
2009-02-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/errorlogger.h, tools/errmsg.cpp:
stlOutOfBounds error message created
2009-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fix ticket #94 (STL container overrun).
Check is currently behind --all
2009-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/checkdangerousfunctions.cpp,
src/checkheaders.cpp, src/cppcheck.cpp, src/cppcheck.h,
src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, src/tokenize.cpp,
src/tokenize.h, test/testdangerousfunctions.cpp,
test/testsuite.cpp, test/testsuite.h, tools/errmsg.cpp: Fix ticket
#93 (Write xml results into error stream instead of results.xml
file.) and also refactor the code to use ErrorLogger::reportErr()
for all errors, for both xml and plain text. And move xml formatting
from Cppcheck to CppcheckExecutor.
2009-02-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: memory leak: keep track of --all better
2009-02-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testincompletestatement.cpp: incomplete statement: added a
testcase for a false positive
2009-02-09 Kimmo Varis <kimmov@users.sourceforge.net>
* cppcheck.vcproj: Update Visual Studio project file.
2009-02-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: uninitialized variables:
added testcases and made a fix
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Update to codeblocks project file
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cbp, src/checkbufferoverrun.cpp,
src/checkclass.cpp, src/checkdangerousfunctions.cpp,
src/checkfunctionusage.cpp, src/checkmemoryleak.cpp,
src/checkother.cpp, src/cppcheck.cpp, src/errorlogger.cpp,
src/errorlogger.h, src/errormessage.cpp, src/errormessage.h,
tools/dmake.cpp, tools/errmsg.cpp: Fix ticket #80 (refactoring:
classes ErrorMessage and ErrorLogger), note that errormessage and
errorlogger were merged, errormessage.* is no more.
2009-02-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leak: Test code was supposed to call
unknown function
2009-02-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errormessage.h, test/testmemleak.cpp, tools/errmsg.cpp:
mismatching allocation size: moved to error suite
2009-02-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leaks: Make sure leak is found even
when using unknown functions
2009-02-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leak: find
memory leak in TestMemleak::unknownFunction2
2009-02-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leak:
Handling function that can't be traced into
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed issue about 4+5
being made a single token, problem appeared in recent commits.
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #89 (False
positive, (style) Redundant code - begins with numeric constant
(e-value))
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testincompletestatement.cpp,
test/testtokenize.cpp: Improve fix made for Ticket #85 to handle
strings that are in 3 parts also.
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testincompletestatement.cpp,
test/testtokenize.cpp: Fixed ticket #88 (False positive, (style)
Redundant code - begins with numeric constant)
2009-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testincompletestatement.cpp,
test/testsimplifytokens.cpp: Fix ticket #85 (False positive (style)
Redundant code, begins with string)
2009-02-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leaks: Added todo testcase - handle
function calls that can't be followed
2009-02-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h: Fixed compiler warning ( #81 ) and
optimized the speed a little. Removed _cstr from Token class, use
_str.c_str() instead.
2009-02-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/tokenize.cpp, test/testpreprocessor.cpp:
Fixed more of ticket #81 (getting rid of compiler warnings)
2009-02-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.h, src/checkother.h, src/preprocessor.h,
src/tokenize.h, test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testdangerousfunctions.cpp, test/testdivision.cpp,
test/testfunctionusage.cpp, test/testincompletestatement.cpp,
test/testmemleak.cpp, test/testmemleakmp.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testtokenize.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp: Fix ticket #84 (unit testing: use
"protected" instead of preprocessor)
2009-02-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp, test/testtokenize.cpp:
Fix ticket #83 (cppcheck hangs) and add a test case for it
2009-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: Borland C++: Fix to make it compile
2009-02-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Fixed partially ticket #81 (getting rid of
compiler warnings)
2009-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
src/errormessage.h, src/tokenize.cpp, test/testmemleak.cpp,
tools/errmsg.cpp: memory allocation: check for mismatching size
2009-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: TestMemleak: fixed
problems with wrong linenumbers. This fixes ticket 79
2009-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj: Borland C++: Added CheckDangerousFunctions.* to
the project
2009-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/filelister.cpp: FileLister: Added code that I received from
Jeffrey Walton to handle directories and files better
2009-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: TestMemleak: Fixed tests
2009-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/errormessage.h, tools/errmsg.cpp: mismathing
allocation and deallocation: moved to error checks
2009-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testcppcheck.cpp,
test/testmemleak.cpp: errmsg: use the error message dealloc-use
2009-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: memleak: removed false positives for
mismatching allocation and deallocation
2009-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errormessage.h, test/testbufferoverrun.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdivision.cpp, test/testmemleak.cpp,
test/testother.cpp, tools/errmsg.cpp: Fixed: Ticket #78 Change
(always) into (error) in error messages
2009-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testcppcheck.cpp: Added test case linenumbers2
2009-02-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/cppcheck.cpp, test/testmemleak.cpp:
memleak: corrected the wrong line number (#77)
2009-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cbp, test/testcppcheck.cpp: testcppcheck.cpp
file added, test case "linenumbers" added, codeblocks project file
updated
2009-02-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testincompletestatement.cpp: incomplete
statement: minor update
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp: activated TestClass:function
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: remove casts: Added test
case to ensure that function declarations are not reduced
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp, test/testtokenize.cpp: testclass: added todo
testcase for #74
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, src/errormessage.h,
test/testother.cpp, tools/errmsg.cpp: returning pointer to local
array
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testcharvar.cpp: charvar: fixed todo
testcase
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun: activated test
2009-02-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: memory leak: fixed ticket #9
2009-02-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed varid is 0 bug
which happened with sizeof(var[0]) and added testcase for it
2009-02-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* testrunner.vcproj: Updated testrunner.vcproj files
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.vcproj: visual c++: added checkdangerousfunctions
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease: added createrelease script
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: setvarid
handle variable declaration at start of token list
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Tokenizer: sizeof
handling of 'sizeof(var[0])'
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Tokenizer: setVarId
improved to handle declaration at the first token
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testbufferoverrun.cpp,
test/testtokenize.cpp: tokenizer: improved sizeof handling
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: TestTokenize: Added testcase sizeof2 (TODO)
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: testtokenize: sizeof handling
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: testmemleak: fixed a test case
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leaks: Minor fix to output correct
severity
2009-02-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: TestMemleak: Added test cases
2009-02-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.h, src/cppcheckexecutor.cpp,
src/cppcheckexecutor.h, src/errorlogger.h, src/errormessage.cpp,
src/errormessage.h, src/settings.cpp, src/settings.h,
test/testsuite.cpp, test/testsuite.h, tools/errmsg.cpp: xml:
generating better xml output
2009-02-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: astyle formatting
2009-02-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkclass.cpp, src/checkfunctionusage.cpp,
src/checkmemoryleak.cpp, src/checkother.cpp, src/errormessage.cpp,
src/errormessage.h, tools/errmsg.cpp: errmsg: refactoring the error
messages
2009-02-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.rc, win_installer/cppcheck.iss:
changed version to 1.28
2009-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkmemoryleak.cpp, src/checkmemoryleak.h: Removed some dead
code and improved one function to use reference instead of a copy.
2009-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Fixed man page, previous version had <dir>
while < and > should be used.
2009-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkother.h, src/preprocessor.h: Fixing files using dos-style
line change to use unix-style line change.
2009-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Updated codeblocks projectfile
2009-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: removed unused function definition for
stringifySeverity
2009-01-31 Kimmo Varis <kimmov@users.sourceforge.net>
* cppcheck.vcproj: Add new files (Src/checkdangerousfunctions.cpp
and .h) to Visual Studio project.
2009-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkdangerousfunctions.cpp, test/testdangerousfunctions.cpp:
Running astyle for the previous commits
2009-01-31 Leandro Penz <lpenz@users.sourceforge.net>
* Makefile, src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/cppcheck.cpp, test/testdangerousfunctions.cpp:
dangerousfunctions: added check for mktemp (ticket #69), and
refatored gets and scanf check from bufferoverrun into
dangerousfunctions.
2009-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/cppcheck.cpp, src/errormessage.h,
test/testmemleak.cpp, tools/errmsg.cpp: mismatching allocation /
deallocation: moved to --all
2009-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
src/errormessage.h, test/testmemleak.cpp, tools/errmsg.cpp: errmsg:
output severity in messages. a fix to track severity in the memory
leaks check
2009-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: mismatching allocation and deallocation:
added test case that currently generates false positives
2009-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errormessage.h, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testother.cpp, test/testredundantif.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp,
tools/errmsg.cpp: errmsg: write severity in the message
2009-01-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: added test case
TestBufferOverrun::sizeof2
2009-01-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testcharvar.cpp: added todo testcase
2009-01-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Updated man page for --unused-functions and
--xml-results
2009-01-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: preprocessor: Added testcase fmt2 that
is commented out because it doesn't work yet
2009-01-28 Kimmo Varis <kimmov@users.sourceforge.net>
* cppcheck.vcproj: Visual Studio: Remove incremental linking from
release target due to other option disabling it and causing warning:
Linking... LINK : warning LNK4075: ignoring '/INCREMENTAL' due to
'/OPT:ICF' specification
2009-01-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testbufferoverrun.cpp: tokenizer: fixed
TestTokenizer::sizeof1
2009-01-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/settings.cpp, src/settings.h: unused
functions: Created command line parameter --unused-functions
2009-01-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/settings.cpp, src/settings.h: xml results:
added a command line switch for generating simple results.xml file
2009-01-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: bad sizeof handling
2009-01-28 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkmemoryleak.cpp: MatchFunctionsThatReturnArg: calling
Match only once.
2009-01-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Partial support for
sizeof x, by converting it into sizeof(x). Does not handle complex
structures. Closing ticket #65
2009-01-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, test/testtokenize.cpp: Fixed bug in
multiCompare, which fixes ticket #66 ([False positive] "Buffer
overrun" with "--all")
2009-01-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp: uninitialized member: don't check private
constructors
2009-01-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: function parameters: fixed segmentation fault
(derefence null)
2009-01-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: sprintf overlapping data
2009-01-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testtokenize.cpp: Fix ticket #25 (simplify "void f(x) int x; {"
into "void f(int x) {")
2009-01-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/errormessage.h, tools/errmsg.cpp: sprintf
overlapping data: added extra text that is shown if --verbose is
given
2009-01-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/errormessage.h, tools/errmsg.cpp: errmsg:
Moved 'function parameter parname is passed by value' to the style
checks
2009-01-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memleak: class
function usage (fixing #63)
2009-01-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp:
tokenizer: simplify redundant paranthesis
2009-01-25 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: memleak: strcat_result_assignment fixed by
checking some functions for "x = func(x[),]".
2009-01-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: testmemleak: removed the test case that was
added in [1105]. It has been moved to the TestTokenizer instead
2009-01-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: testtokenize: Added test case for
simplifying '((x))' to '(x)'
2009-01-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: testpreprocessor: removed unused test
case
2009-01-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: Added test case complex_free
2009-01-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: Test case added: strcat_result_assignment
2009-01-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
stringify macros
2009-01-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.h: Updated comments in code
2009-01-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Fix ticket #58 (If given path is empty it is
assumed that it wasn't given)
2009-01-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Fix ticket #57 (wrong path in error message)
2009-01-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
insert space. '#if(' => '#if ('
2009-01-24 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memleak:
*x=malloc(); func(&x) is no longer reported as a leak (eliminated
&use2).
2009-01-24 Leandro Penz <lpenz@users.sourceforge.net>
* test/testbufferoverrun.cpp: snprintf: more tests.
2009-01-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testpreprocessor.cpp: Added test case
preprocessor_and_operation for ticket #55 (also fixed style from
previous commit)
2009-01-24 Kimmo Varis <kimmov@users.sourceforge.net>
* src/cppcheck.cpp: Fix two overly long lines in command line help.
2009-01-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: testtokenize: updated
'TestTokenize::simplify_function_parameters'
2009-01-24 Kimmo Varis <kimmov@users.sourceforge.net>
* cppcheck.vcproj: Visual Studio: add resource.h into VS project.
2009-01-24 Kimmo Varis <kimmov@users.sourceforge.net>
* win_installer/cppcheck.iss, win_installer/modpath.iss: Ticket #34:
Windows installer: Add cppcheck folder to system path.
2009-01-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: tokenizer: Added guard in case the preprocessor
is mismatching
2009-01-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: cppcheck: printing preprocessed file to
'temp.txt'
2009-01-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Fixed ticket #54 (Make cppcheck print status
e.g. 4/20 files checked)
2009-01-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Added test case
simplify_function_parameters
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkother.cpp, src/checkother.h, src/preprocessor.cpp,
src/preprocessor.h, src/tokenize.cpp, src/tokenize.h: removed
windows encodings
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkother.cpp, src/checkother.h, src/preprocessor.cpp,
src/preprocessor.h, src/tokenize.cpp, src/tokenize.h: borland and
visual c++ fixes
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp: reverted [1084] it can be fixed better
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp: borland: the strtol is found in
<stdlib.h>
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkmemoryleak.cpp, src/filelister.cpp:
include: Had to include <cstring> in a few places to be able to
compile cppcheck
2009-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Add additional checking to avoid ethernal
loops when someone is using incorrect different case for the same
file. It should be unlikely that anyone would actually use
different files in the same project and separate them only by casing
of some letters.
2009-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkclass.cpp, src/checkclass.h,
src/checkheaders.cpp, src/checkmemoryleak.cpp, src/checkother.cpp,
src/filelister.cpp, src/filelister.h, src/preprocessor.cpp,
src/token.cpp, src/tokenize.cpp: Fixing ticket #35 (Get rid of
#ifdefs in our code where possible)
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak: don't
give false positive when deallocating member variable this->i (#53)
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsuite.cpp: removed compiler warning
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: better fix to get rid of compiler warning is to
comment the function parameter
2009-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/preprocessor.cpp: Fixed Ticket #52, Cppcheck
hangs when checking VLC's source code
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
fixed bug with mixed macros ABC and ABCD
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: removed bam coding
2009-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: The stdlib.h is needed for the
exit function
2009-01-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: cppcheck: The '&&' should be '||' when checking
if a check should be called
2009-01-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Build: Enabled the Wextra flag when
building cppcheck
2009-01-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp: Fix Ticket #46, invalid
commandline. (Also added -h and --help parameters)
2009-01-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
handle redefinition of macro
2009-01-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/cppcheck.h,
src/preprocessor.cpp, src/preprocessor.h: Fix Ticket #30, Need a way
to specify include file folders (-I parameter was added)
2009-01-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
handle include guards by not checking for configurations in header
files
2009-01-21 Nicolas Le Cam <kush@users.sourceforge.net>
* src/preprocessor.cpp: Code cleanup.
2009-01-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errormessage.h, src/preprocessor.cpp: Fixed style
2009-01-21 Nicolas Le Cam <kush@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix
Preprocessor::read to handle char constant of more than one char,
fixing issue #45; Fix the test that handle the case.
2009-01-21 Nicolas Le Cam <kush@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, src/cppcheck.cpp,
src/errormessage.h, test/testunusedvar.cpp, tools/errmsg.cpp: Remove
checks that are already covered well by most compilers (Unreachable
Code; Assignment in Condition; Unused Variable).
2009-01-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fix Ticket #43, preprocessor: include
file doesn't work so good in subfolders (note, because of other
issues, checking will be very slow now that this is fixed)
2009-01-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/checkbufferoverrun.cpp,
src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h,
src/checkfunctionusage.cpp, src/checkfunctionusage.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/cppcheck.cpp, src/cppcheck.h, src/cppcheckexecutor.cpp,
src/cppcheckexecutor.h, src/errorlogger.h, src/errormessage.cpp,
src/errormessage.h, src/filelister.cpp, src/filelister.h,
src/main.cpp, src/preprocessor.cpp, src/preprocessor.h,
src/settings.cpp, src/settings.h, src/token.cpp, src/token.h,
src/tokenize.cpp, src/tokenize.h, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testdivision.cpp,
test/testfilelister.cpp, test/testfunctionusage.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testmemleakmp.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsimplifytokens.cpp,
test/testsuite.cpp, test/testsuite.h, test/testtoken.cpp,
test/testtokenize.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, tools/dmake.cpp, tools/errmsg.cpp: Fixed
Ticket #40, Check copyright texts in files, now that we have new
developers.
2009-01-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Added test case
multi_character_character
2009-01-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/cppcheck.cpp: uninitialized variables: run
always
2009-01-21 Nicolas Le Cam <kush@users.sourceforge.net>
* src/checkother.cpp: Fix CheckOther::functionVariableUsage, passing
a variable to a function also means reading it.
2009-01-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
handled problem with parsing strings when expanding macros
2009-01-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: code style
2009-01-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: preprocessor: Added todo test. It
crashes when it's used
2009-01-20 Nicolas Le Cam <kush@users.sourceforge.net>
* src/tokenize.cpp: Fix Tokenizer::setVarId for pointers and two
types variable declaration
2009-01-20 Nicolas Le Cam <kush@users.sourceforge.net>
* src/checkother.cpp: CheckOther::functionVariableUsage: minor
optimization.
2009-01-20 Nicolas Le Cam <kush@users.sourceforge.net>
* src/token.cpp: Token::Match: Allow pattern like '*|'
2009-01-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixes test case "file2",
fixes bug with include file handling
2009-01-20 Nicolas Le Cam <kush@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp: Tokenizer: Remove
'unlikely' keyword in simplifyTokenList; Don't check for it in
CheckMemoryLeak.
2009-01-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* using_gcov.txt: doc: how to use gcov
2009-01-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
Handle ##
2009-01-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: tokenize ##
better
2009-01-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: tokenizer: added testcase with include
files. It should be fixed.
2009-01-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h: code
cleanup
2009-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errormessage.h, test/testpreprocessor.cpp: Added test case
preprocessor_doublesharp, executed ./runastyle for errormessage.h
2009-01-19 Nicolas Le Cam <kush@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h: Update
errormessage.h and code using it.
2009-01-19 Nicolas Le Cam <kush@users.sourceforge.net>
* tools/errmsg.cpp: errmsg: Don't create unused parameters
2009-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: codeblocks project file changed to use make target
testrunner, instead of test
2009-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Added a test case
and fixed bug. If #include was inside a string, cppcheck hanged in
preprocessor.
2009-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Changed output of the program to print out the
file name before preprocessor.
2009-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed bug in line numbers
and enabled test case that spots it.
2009-01-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: testtokenize: Added test "file1". It
currently fails.
2009-01-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: tokenizer: activated the handling of #file and
#endfile
2009-01-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Activated the include handling
2009-01-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: testtokenize: Removed unneeded test case
"define1"
2009-01-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: testpreprocessor: Removed test that
doesn't work now that the preprocessor handles includes
2009-01-19 Kimmo Varis <kimmov@users.sourceforge.net>
* src/cppcheck.rc: Visual Studio: Fix building resource file with
Visual Studio Express.
2009-01-18 Nicolas Le Cam <kush@users.sourceforge.net>
* : Add bugtraq:url and bugtraq:logregex properties
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Fixing crash, not sure about side effects.
Ticket #37
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/preprocessor.cpp: Added temporary bailout
code, cppcheck crashes when string checking leaks out. This needs a
better fix, this is just to see the problem more easily.
2009-01-18 Nicolas Le Cam <kush@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: unreachableCode: Moved
warning of a break statement following a return in --style; Added a
test case; Minor optimization.
2009-01-18 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: functionVariableUsage:
no longer SIGSEGVs on unfinished struct. Fixes Ticket #31.
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/tokenize.cpp, src/tokenize.h: More work
for includes, still commented out. Uncomment from tokenize.cpp and
preprocessor.cpp to take into use.
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h: More work for includes,
still commented out. Tokenizer needs #file handling
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: code style fix
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: strPlusChar: Fixed false
positives
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h: Some work for the
include support (commented out for now)
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: preprocessor: make sure macros are not
expanded when they are found in strings
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
Make sure that "#define ABC (a+b+c)" is expanded correctly
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Reactivated the expandMacros.
This time it's done after the #if #else #endif has been processed
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
fixed so the TestPreprocessor::preprocessor_undef succeeds
2009-01-18 Kimmo Varis <kimmov@users.sourceforge.net>
* win_installer/readme.txt: Improve the Windows installer readme
text.
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: style updated
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Refactoring. Broke out some
functionality of expandMacros into a class Macro
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Fix compile warning signed-unsigned
2009-01-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Refactoring: Style applied
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Reverted [1008] - The old
expandMacros was readded
2009-01-18 Kimmo Varis <kimmov@users.sourceforge.net>
* src/cppcheck.rc, src/resource.h: Fix VS build broken due to
tripled version resource info.
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: Tokenizer: Added unit test to check that
define is tokenized correctly
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: tokenizer: The tokenizer
shouldn't handle comments nor preprocessor directives. The
preprocessor will take care of that
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Removed
"Preprocessor::expandMacros" and commented all its tests
2009-01-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Don't use the "expandMacros"
from cppcheck
2009-01-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix Ticket #32 False
positive with --style: Uninitialized member variable (when stream is
used)
2009-01-17 Kimmo Varis <kimmov@users.sourceforge.net>
* src/filelister.cpp: Does not understand . as current folder (Trac
#4)
2009-01-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Test case for Ticket #32
2009-01-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: unused var: fixed
false positives when using shift operator
2009-01-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* tasks.txt: Removed tasks.txt, most of it is moved to Track, some
general issues were not
2009-01-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/errormessage.h, src/resource.h,
test/testbufferoverrun.cpp, tools/errmsg.cpp: bounds checking: Added
error message "snprintf size is out of bounds"
2009-01-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.vcproj, src/cppcheck.rc, src/resource.h: Patch [ 2508549
] Add Windows version resource
2009-01-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* win_installer/cppcheck.iss, win_installer/readme.txt: patch [
2508523 ] Windows installer (with readme.txt based on patch
comments)
2009-01-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/errormessage.h,
test/testmemleak.cpp, tools/errmsg.cpp: errmsg: added varname to the
message "deallocating a deallocated pointer"
2009-01-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: unused variable:
reading the value of variable in a for loop.. "for(;a;)" see ticket
#18
2009-01-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak: detect
memory leak (#6)
2009-01-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Added .c++ to help texts also.
2009-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: bail out code in expandMacros
2009-01-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/filelister.cpp: Add support for .c++ files ( Debian
Bug#512060: cppcheck: refuses to check .c++ files )
2009-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Fixed a null pointer
dereference
2009-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leak: Fixed
false positives about deallocating pointer that has already been
deallocated
2009-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkfunctionusage.cpp: function usage: don't report "main"
and "if" as unused
2009-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leak: don't show debug info
2009-01-16 Kimmo Varis <kimmov@users.sourceforge.net>
* testrunner.vcproj: Visual Studio: fix testrunner project file by
adding subfolders to paths. Disable 'warnings as errors' as there
are lots of warnings.
2009-01-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/errormessage.h,
test/testmemleak.cpp, tools/errmsg.cpp: memory leaks: Added checking
of deallocate to see that the pointer isn't deallocated already
2009-01-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: code style
2009-01-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: str plus char: added
simple variable handling
2009-01-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp: code style fixing
2009-01-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, src/cppcheck.cpp,
src/errormessage.h, test/testother.cpp, tools/errmsg.cpp: str plus
char: Added check and error message for str + ch
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: Bail out the expandMacros if
it finds "#undef". The previous handling can cause cppcheck to hang
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
test/testclass.cpp, tools/errmsg.cpp: errmsg: Added 'condition is
always true/false'
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Uninitialized member
variables: Checking enum variables
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: a segmentation fault fix.
Check if tokens is null.
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: dos2unix fixing
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leak: Added test case
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leak: fixed false positive about
using variable after it is released
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: cppcheck: added function call to the variable
scope check.
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.vcproj: Visual C++: Added "src/errormessage.*" to the
project file
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: buffer overruns: added sprintf checking
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.h: doxygen: Added comments in
checkbufferoverrun.h
2009-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Memory leak: Readded some checking to classes
2009-01-14 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkother.cpp: unreachableCode: avoid SIGSEGV when there is
no "}" after return.
2009-01-14 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: functionVariableUsage:
support for nested struct/union declaration.
2009-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leak: Fixed
a false positive
2009-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkfunctionusage.cpp, src/checkother.cpp, src/cppcheck.cpp,
src/errormessage.h, tools/errmsg.cpp: errmsg: Added 'assignment in
if-condition'
2009-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: refactoring
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: testpreprocessor: commented the "undef"
test that doesn't work
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: added message about bad usage of char
variable
2009-01-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Added test case which currently fails,
#undef is not handled
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added message for 'incomplete statement'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added messages for 'variable is not used /
not read / not assigned'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added message 'function parameter is
passed by value'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: added message 'unreachable code below
return'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added 'unused struct member'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testdivision.cpp: testdivision: The 'unsigned division' is a
style check
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errormessage.h, tools/errmsg.cpp: errmsg: Made the 'unsigned
division' a style error
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, src/cppcheck.cpp,
src/errormessage.h, test/testcharvar.cpp, test/testdivision.cpp,
test/testincompletestatement.cpp, test/testother.cpp,
test/testredundantif.cpp, test/testunusedvar.cpp, tools/errmsg.cpp:
errmsg: Added 'unsigned division'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp: refactoring: cleanup old code
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added message 'Overlapping data buffer'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added "found redundant if - 'if
(condition);'
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
Style updates
2009-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
Handle newlines better
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
fixed a small bug when expanding macro without parameter
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
Fixed bug when expanding macros without parameters
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
expand macro without parameters
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: struct member usage:
bail out the check if the struct contain any functions
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testother.cpp: setVarId: Fixed bug
(variable id for struct member not correctly set)
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: preprocessor: Added a test to see that
"<backslash><newline>" is handled correctly inside strings
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkfunctionusage.cpp, src/errormessage.h,
src/preprocessor.cpp, tools/errmsg.cpp: errmsg: the "unused
function" message shall not take any Tokenizer nor Token parameters
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor:
Handle "<backslash><newline>" better
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkfunctionusage.cpp, src/cppcheck.cpp,
src/errormessage.h, src/settings.cpp, src/settings.h,
tools/errmsg.cpp: errmsg: added "unused function"
2009-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: dmake: Minor updates. Moved target
"all" a little. Handle the change 937 where "make test" also
executes testrunner
2009-01-10 Leandro Penz <lpenz@users.sourceforge.net>
* Makefile: make test now builds everything and runs all tests.
2009-01-10 Leandro Penz <lpenz@users.sourceforge.net>
* src/token.cpp, test/testtokenize.cpp: match: skip initial !!
patterns if on first token.
2009-01-10 Leandro Penz <lpenz@users.sourceforge.net>
* src/token.cpp: match: optimisation
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: added "mismatching allocation and
deallocation"
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: cppcheck: Minor bug fix
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/cppcheck.cpp, src/errormessage.h, tools/errmsg.cpp: errmsg:
Added error messages for "Array index out of bounds" and "Buffer
overrun"
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: added error message about virtual
destructors
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added "operator= should return something
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errmsg: Added "Using 'memset' on class"
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/cppcheck.cpp, src/errormessage.h,
test/testunusedprivfunc.cpp, tools/errmsg.cpp: errmsg: Added "Unused
private function ..."
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/cppcheck.cpp, src/errormessage.h,
test/testconstructors.cpp, tools/errmsg.cpp: errmsg: Added
"uninitialized member variable"
2009-01-10 Leandro Penz <lpenz@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: checkmemoryleak: no
longer flag "dealloc ; alloc ; if continue ;" as a leak, even with
--all
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: unused struct member:
fixed false positive for member "const int a;"
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testother.cpp, tools/errmsg.cpp: astyle:
updated the code style
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: sprintf: fixed bug "false
positive when variable is used again after snprintf"
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkclass.cpp, src/cppcheck.cpp,
src/errormessage.h, test/testconstructors.cpp, tools/errmsg.cpp:
errmsg: Added errormessage for 'the class 'classname' doesn't have a
constructor'
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errormessage.h, tools/errmsg.cpp: errmsg: bug fix
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: sprintf: fixed false
positives with "sprintf(buf, "%i", sizeof(buf));
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: errmsg: reformatted with astyle
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: errmsg: The generated code is compliant with the
astyle formatting
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: dmake: minor fixes. The tools binaries
will be put in the tools folder
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/token.cpp: match: optimisation
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: code style fixing
2009-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: handle the \newline in strings
2009-01-10 Leandro Penz <lpenz@users.sourceforge.net>
* src/token.cpp, test/testtokenize.cpp: token: when Token::Match
reached the end of input, it returned true if the next pattern was
!!. It now returns true only if all remaining patterns are !!.
2009-01-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* tasks.txt: tasks updated, parseArgs refactoring idea was rejected
2009-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tasks.txt: tasks: removed the "new checks" sections because these
are better reported in the tracker
2009-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: make: updated the make so that the
tools are built with "make all". And added the errormessage.h
generator to the makefile also
2009-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
tools/errmsg.cpp: errormessage: added error message
ErrorMessage::dangerousUsageStrtol
2009-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errormessage.cpp: errormessage: added header
2009-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/dmake.cpp: dmake: don't generate Makefile if there are no
src files
2009-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: tokenize: avoid "terminate called after throwing
an instance of 'std::out_of_range'"
2009-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, test/testpreprocessor.cpp: Added test case for
preprocessor which currently fails. codeblocks project file updated,
tools-files added.
2009-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.h, src/cppcheckexecutor.cpp,
src/cppcheckexecutor.h, src/main.cpp: Main returns now EXIT_SUCCESS
or EXIT_FAILURE instead of 0. Feature request fixed: [ 2489787 ]
Return value of cppcheck is always 0
2009-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/cppcheck.cpp, src/errormessage.h,
test/testother.cpp: astyle changes, missed from previous commits
2009-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Fixed make install from the generated
makefile
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkother.cpp, src/cppcheck.cpp,
src/errormessage.h, test/testredundantif.cpp, tools/errmsg.cpp:
errormessage: Added a few more messages for checkother.cpp
2009-01-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/errormessage.h, tools/errmsg.cpp: Added license text to
errormessage.h (via code tha generates it) and also mention that it
is generated by machine
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/cppcheck.cpp, tasks.txt:
errormessage: Added the new errormessage handling to cppcheck
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/errormessage.cpp, src/errormessage.h: errormessage: updated
the files. the errormessage.h is automaticly generated by the
tools/errmsg program
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: tools/errmsg: some refactoring
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: sprintf: check for
dangerous usage with sprintf|snprintf with overlapping data
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* runastyle: runastyle : also set the code style in the tools
2009-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/dmake.cpp, tools/errmsg.cpp: tools: Added headers to source
files
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h, src/tokenize.cpp,
test/testmemleak.cpp: Simplify tokens: add a ";" after case and
default
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: preprocessor: applied patch submitted by
kimmov
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkmemoryleak.cpp,
src/preprocessor.cpp, src/token.cpp, src/tokenize.cpp: Reverted
[890] it cause more problems with Visual C++
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.vcproj: Visual C++: Applied patch "fix_vs_project.patch"
that kimmov submitted
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/dmake.cpp, tools/errmsg.cpp: tools: updated the code style
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkmemoryleak.cpp,
src/preprocessor.cpp, src/token.cpp, src/tokenize.cpp: Borland C++:
Removed unneeded ifdefs
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* runastyle.bat: windows: Added runastyle.bat
2009-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, testrunner.cbproj: Borland C++: Updated the
project files
2009-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp: Optimization: 6,2 s -> 5,6 s
2009-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Changed codeblocks project file to reflect new build
targets
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: tools/dmake: A few simple fixes.
Commited the new Makefile
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/Makefile, tools/dmake.cpp: tools: dmake added a tool for
maintaining the Makefile
2009-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* doxyfile, tasks.txt: Doxyfile added
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: tools/errmsg: minor fixes
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: tools/errmsg: code correction
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: tools/errmsg: generate documentation
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: tools/errmsg: generate the function to use when
determining if a check should be done or not
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/errmsg.cpp: tools: Added a folder where we can keep small
usable utilities
2009-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, checkbufferoverrun.cpp, checkbufferoverrun.h,
checkclass.cpp, checkclass.h, checkfunctionusage.cpp,
checkfunctionusage.h, checkheaders.cpp, checkheaders.h,
checkmemoryleak.cpp, checkmemoryleak.h, checkother.cpp,
checkother.h, cppcheck.cbp, cppcheck.cpp, cppcheck.h,
cppcheckexecutor.cpp, cppcheckexecutor.h, errorlogger.h,
errormessage.cpp, errormessage.h, filelister.cpp, filelister.h,
main.cpp, preprocessor.cpp, preprocessor.h, runastyle,
settings.cpp, settings.h, src/checkbufferoverrun.cpp,
src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h,
src/checkfunctionusage.cpp, src/checkfunctionusage.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/cppcheck.cpp, src/cppcheck.h, src/cppcheckexecutor.cpp,
src/cppcheckexecutor.h, src/errorlogger.h, src/errormessage.cpp,
src/errormessage.h, src/filelister.cpp, src/filelister.h,
src/main.cpp, src/preprocessor.cpp, src/preprocessor.h,
src/settings.cpp, src/settings.h, src/token.cpp, src/token.h,
src/tokenize.cpp, src/tokenize.h, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testdivision.cpp,
test/testfilelister.cpp, test/testfunctionusage.cpp,
test/testincompletestatement.cpp, test/testmemleak.cpp,
test/testmemleakmp.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsimplifytokens.cpp,
test/testsuite.cpp, test/testsuite.h, test/testtoken.cpp,
test/testtokenize.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, testbufferoverrun.cpp, testcharvar.cpp,
testclass.cpp, testconstructors.cpp, testdivision.cpp,
testfilelister.cpp, testfunctionusage.cpp,
testincompletestatement.cpp, testmemleak.cpp, testmemleakmp.cpp,
testother.cpp, testpreprocessor.cpp, testredundantif.cpp,
testrunner.cpp, testsimplifytokens.cpp, testsuite.cpp, testsuite.h,
testtoken.cpp, testtokenize.cpp, testunusedprivfunc.cpp,
testunusedvar.cpp, token.cpp, token.h, tokenize.cpp, tokenize.h:
Refactoring: Added src/ and test/ folders. Moved source files to
those folders, updated makefile and codeblocks project file.
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tasks.txt: tasks : Added tasks to create a doxygen project file
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tasks.txt: tasks: rewrote the tasks file
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: Preprocessor: Refactoring
the unit testing. And enabled the macro expansion
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: Preprocessor: Improved
handling of multiline macros
2009-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: Fixed the preprocessor dependencies
2009-01-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* tasks.txt: tasks.txt updated, %var1% task is done
2009-01-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkmemoryleak.cpp, token.cpp, token.h: Refactoring: %var1%
complitely removed. Execution time increased from 4,7 to 6,2
seconds.
2009-01-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkmemoryleak.cpp: Refactoring: Getting rid of %var1%
2009-01-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkmemoryleak.cpp: Refactoring: Getting rid of %var1%
2009-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testpreprocessor.cpp: Preprocessor : Added a few more testcases
for the macro expansion
2009-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: Preprocessor: Added simple
handling for expanding preprocessor macros
2009-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* runastyle: runastyle: Added script for running "astyle" with the
options I have chosen against all cpp and h files
2009-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkbufferoverrun.cpp, checkbufferoverrun.h, checkclass.cpp,
checkclass.h, checkfunctionusage.cpp, checkfunctionusage.h,
checkheaders.cpp, checkheaders.h, checkmemoryleak.cpp,
checkmemoryleak.h, checkother.cpp, checkother.h, cppcheck.cpp,
cppcheck.h, cppcheckexecutor.cpp, cppcheckexecutor.h,
errorlogger.h, errormessage.h, filelister.cpp, filelister.h,
main.cpp, preprocessor.cpp, preprocessor.h, testbufferoverrun.cpp,
testcharvar.cpp, testclass.cpp, testconstructors.cpp,
testdivision.cpp, testfilelister.cpp, testfunctionusage.cpp,
testincompletestatement.cpp, testmemleak.cpp, testmemleakmp.cpp,
testother.cpp, testpreprocessor.cpp, testredundantif.cpp,
testrunner.cpp, testsimplifytokens.cpp, testsuite.cpp, testsuite.h,
testtoken.cpp, testtokenize.cpp, testunusedprivfunc.cpp,
testunusedvar.cpp, token.cpp, token.h, tokenize.cpp, tokenize.h:
Style: Updated the coding style with "astyle"
2009-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
Preprocessor: Began work on the macro handling
2009-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkclass.cpp: Refactoring: Simplified a condition
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkclass.cpp: Refactoring: Getting rid of %var1%
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp: Refactoring: Getting rid of %var1%
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkclass.cpp, checkother.cpp, token.cpp: Fixed several bugs from
previous commits and added check code that will print errors if
varid is 0 when %varid% is given in Match().
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkclass.cpp, token.cpp, token.h: Refactoring: findMatch() that
supports varId added. %var1% -> %varid% changed
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* filelister.cpp: MinGW: Applied the patch submitted by kidkat that
makes cppcheck compilable with MinGW
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: variable usage: fixed false
positive when using operator '^'
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* filelister.cpp: Made previous feature request fix more portable
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: variable usage: The check must be made before
simplifyTokenList to avoid false positives
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* filelister.cpp: Fix for feature request: [ 2485706 ] Add support
to *.C file extension
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: Variable usage: Addon to previous commit. Also
handle "&=" and "^="
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: unused variable: Fixed false
positive when using '|=' assignment
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Variable usage : Fixed false
positives for struct/union member variables
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Variable usage: Fixed false
positive with operators ~ and !
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Variable usage: Fixed false
positives (tmp1 ? tmp2 : tmp3)
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testunusedvar.cpp: variable usage: added a test case to make sure
usage in a if is seen
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Variable usage : Fixed false
positive with modulo
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: Variable usage: Fixed a segmentation fault
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Struct member usage : Check
union member variables at the same time
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: Variable usage: fixed false positives for union
member variables
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: struct member usage: fixed
false positives
2009-01-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkother.cpp: Refactoring var1 -> varid
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Function usage : Fixed false
positives for inline structs
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testunusedvar.cpp: Variable usage : Fixed a false
positive for ("b = (int)a;" => a is read)
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize : Removed unneeded variable
2009-01-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: Refactoring : Changed a 'strcmp' to a
'simpleMatch'
2009-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkother.cpp: Possibly bug fix, changed %var% into %var1% as
name was also given as a parameter to Match(). Not sure which was
intended here.
2009-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp, checkclass.cpp, checkmemoryleak.cpp,
checkother.cpp, token.cpp, token.h, tokenize.cpp: Refactoring:
Changed order of parameters in Match() and findMatch() (deprecated
parameter moved to last)
2009-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkother.cpp, testcharvar.cpp: Refactoring: %var1% -> %varid%
2009-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp, checkbufferoverrun.h, checkclass.cpp,
checkclass.h, checkfunctionusage.cpp, checkheaders.cpp,
checkmemoryleak.cpp, checkmemoryleak.h, checkother.cpp,
checkother.h, tasks.txt, testmemleak.cpp, testmemleakmp.cpp,
testsimplifytokens.cpp, testsuite.h, testtoken.cpp,
testtokenize.cpp, token.cpp, token.h, tokenize.cpp, tokenize.h:
Refactoring: Rename class "TOKEN" to "Token"
2009-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: Buffer overrun: Moved the "buffer overrun" and
"array index out of bounds" to "--all" because there were false
positives
2009-01-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cbp, errormessage.cpp, errormessage.h:
ErrorMessage class added (not used yet and it is still unfinished)
2009-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Refactoring : Removed a short commented code
that I never use anyway
2009-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Using freed memory : Fixed
false positive when usage is something like: printf("free %x",p);
2009-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed a
regression and added a test case
2009-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp, checkbufferoverrun.h, checkclass.cpp,
checkclass.h, checkfunctionusage.cpp, checkfunctionusage.h,
checkheaders.cpp, checkheaders.h, checkmemoryleak.cpp,
checkmemoryleak.h, checkother.cpp, checkother.h, cppcheck.cpp,
cppcheck.h, cppcheckexecutor.cpp, cppcheckexecutor.h,
errorlogger.h, filelister.cpp, filelister.h, main.cpp,
preprocessor.cpp, preprocessor.h, settings.cpp, settings.h,
testbufferoverrun.cpp, testcharvar.cpp, testclass.cpp,
testconstructors.cpp, testdivision.cpp, testfilelister.cpp,
testfunctionusage.cpp, testincompletestatement.cpp,
testmemleak.cpp, testmemleakmp.cpp, testother.cpp,
testpreprocessor.cpp, testredundantif.cpp, testrunner.cpp,
testsimplifytokens.cpp, testsuite.cpp, testsuite.h, testtoken.cpp,
testtokenize.cpp, testunusedprivfunc.cpp, testunusedvar.cpp,
token.cpp, token.h, tokenize.cpp, tokenize.h: Copyright 2007-2008 ->
2007-2009
2009-01-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* token.cpp: Refactoring: Constructor of TOKEN changed to use
initialization list instead of assignment.
2009-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
Preprocessor : Replace "#if defined(.." with "ifdef .." where
possible
2009-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leak : Added test case "if10" which is
similar to "if9"
2009-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak: Improved the
checking of usage after free (if str is freed then "char c =
str[0];" is illegal)
2009-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leak: Renamed the test case "func12" to
"if9"
2009-01-02 Nicolas Le Cam <kush@users.sourceforge.net>
* testmemleak.cpp: Memory leak : Add a new test that currently fail
to highlight a regression
2009-01-02 Nicolas Le Cam <kush@users.sourceforge.net>
* cppcheck.cpp: Preprocessor: Get rid of an unused parameter
2009-01-02 Nicolas Le Cam <kush@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
Preprocessor: Get rid of an unused parameter
2009-01-02 Nicolas Le Cam <kush@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Completly fix
false positive when using callbacks (Bug 2458510)
2009-01-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkother.cpp: Refactoring: i++; changed to ++i;
2009-01-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp, checkclass.cpp, checkheaders.cpp,
checkmemoryleak.cpp, checkother.cpp, cppcheck.cpp,
preprocessor.cpp, testmemleak.cpp, testsuite.cpp, token.cpp,
tokenize.cpp: Refactoring: Prefer ++i; over i++;
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : Changed the handling of
"realloc" a little. The "getcode" will return "realloc" instead. And
this will be converted to "dealloc;alloc;" before simplifycode
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : a little different handling
when the callstack gets too big
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : fixed false
positive when there are recursive calls. (using memory after it has
been freed)
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed false
positives for "memory is used after it has been freed"
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : Fixed a bug in getcode
(assignment)
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testtoken.cpp, token.cpp, token.h,
tokenize.cpp: TOKEN: Renamed TOKEN::setstr to TOKEN::str
2009-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fix to avoid
false positives
2008-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: memory leak: removed 'if(true)' and
'if(false)' as these are handled in the tokenizer instead
2008-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* releasenotes.txt: releasenotes : removed this file
2008-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Added check
"Using resource after it has been released"
2008-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: if checking : fixed bug in previous commit
2008-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: if statements : bug fix and refactorings in the
checking for "if (condition);"
2008-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: help : minor updates to help text that cppcheck
shows when no parameters are given
2008-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* readme.txt: readme : minor updates
2008-12-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp: c++check -> cppcheck
2008-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* releasenotes.txt: releasenotes : edit
2008-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: cppcheck : updated version to 1.27 in help text
2008-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : Reverted 796 and 797. I didn't
see definite improvements
2008-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : Removed checking of 'if(true)'
and 'if(false)' as these are handled in the Tokenizer
2008-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : Optimising the
'CheckMemoryLeakClass::simplifycode'
2008-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leak : Remove false positive for "if
(cond1) str=strdup(); if (cond2) str=strdup();"
2008-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: memory leak : fixed false positive for "list
<< data"
2008-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed false
positive for "list += data"
2008-12-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp: Bail out text is now not printed with --quiet option
2008-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed a
problem with a fclose inside an if condition
2008-12-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* releasenotes.txt: releasenotes updated command line options made
more accurate
2008-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* releasenotes.txt: releasenotes : Added release notes for the
coming 1.27 release
2008-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenizer::setVarId : Minor bug fix
2008-12-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.cpp: Optimizing setVarId()
2008-12-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h: preprocessor optimized to handle
faster removal of spaces near newline
2008-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.vcproj: Visual C++ : Updated the project file
2008-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak: Added check
"TestMemoryLeak::throw2" (no false positive upon throw)
2008-12-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp, man/cppcheck.1.xml, readme.txt, settings.cpp,
settings.h: Bailing out if too many (over 12) configurations found
froma file. --force parameter added to prevent this from happening.
2008-12-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* preprocessor.cpp: Change one while loop to use stl algorithms and
added TODO about slow part of code
2008-12-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp, preprocessor.cpp, preprocessor.h: Added preprocessor
a way to retrieve configurations and file content one configuration
at time, because large files could consume 500 MB or even more
memory.
2008-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leaks : Fixed false
positive for "p" when there is a line such as "p2 = p + 1;"
2008-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsimplifytokens.cpp: removeRedundantConditions : Added a simple
test case for "else if (false)"
2008-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsimplifytokens.cpp: removeRedundantConditions : Fixed the test
case added in [777]
2008-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsimplifytokens.cpp: removeReduntantConditions : Added test
case
2008-12-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* testsimplifytokens.cpp, tokenize.cpp, tokenize.h:
removeReduntantConditions() can now handle if( true ) else if ()
conditions also.
2008-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leak : Added TODO test case "class3". It
currently fails
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: refactoring : Removed unread variable 'staticfunc'
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkbufferoverrun.cpp, token.cpp, token.h, tokenize.cpp:
TOKEN::Match : Removed the parameter varnames2 because it's unused
and deprecated
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp: uniformize files
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, Makefile.gprof: Makefile : Removed the .gprof makefile
and added a CGLAGS variable so the normal Makefile can easily be
changed
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leaks : Fixed false
positive with return (Bug 2458436)
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile : Reverted the Makefile changes in [763]
because they were committed by mistake
2008-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed false
positive when using callbacks (Bug 2458510)
2008-12-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.cpp: Cleanup to removeReduntantConditions()
2008-12-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile.gprof: added Makefile that can be used when profiling
cppcheck with gprof
2008-12-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.cpp: Minor improvement to removeReduntantConditions()
2008-12-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize : optimising "simplifyConditions"
2008-12-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tokenize.cpp: Tokenizer::setVarId : small optimisations
2008-12-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: memory leaks : optimising 'simplifycode'
2008-12-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkclass.cpp: checkclass : simple refactorings. Use Match
pattern better. Use str() and simpleMatch instead of Match when
possible
2008-12-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* token.h: Some comments added
2008-12-23 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp: Formatting: demux simpleMatch for readability
2008-12-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* token.cpp, token.h: Optimization: isNotPattern() removed
2008-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize : small optimisations. Use simpleMatch and
direct std::string comparisons instead of Match
2008-12-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* token.cpp: Optimization, improved Match(). The str[0] == '%'
improvement
2008-12-23 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp: Fix comparison between signed and unsigned integer
expressions warning
2008-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: simplifyKnownVariables : optimisation
2008-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: memory leaks : bug fix
2008-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsimplifytokens.cpp, testtokenize.cpp, tokenize.cpp:
simplifyIfAddBraces : Further fixes so that braces will be added to
an "else" statement too
2008-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkbufferoverrun.cpp: checkbufferoverrun : a bug fix and a
better use of Match
2008-12-22 Nicolas Le Cam <kush@users.sourceforge.net>
* checkbufferoverrun.cpp: Minor optimizations: introduce use of
simpleMatch, don't use [simple]Match on one word patterns; Minor
style formattings
2008-12-22 Nicolas Le Cam <kush@users.sourceforge.net>
* filelister.cpp: Fix FileLister::RecursiveAddFiles on files without
a base path.
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsimplifytokens.cpp, testtokenize.cpp, tokenize.cpp:
simplifyIfAddBraces : Added check to cppcheck as it seems to work
pretty good now
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: simplifyIfAddBraces : Fixed a segmentation fault
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: simplifyIfAddBraces : Fixed minor
bug that caused the closing brace to be put on the wrong place
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp: TestTokenizer : Split the test
TestTokenizer::simplifyKnownVariables into 5 separate tests
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp: TestTokenizer : Broke up
TestTokenizer::ifAddBraces into a few separate tests
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: simplifyIfAddBraces : Fixed segmentation fault
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leaks : Reduce "if {
dealloc ; return ; } if return ;" to "if return ;". Related with bug
2458532
2008-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp, tokenize.h: Tokenizer : Added
function 'simplifyIfAddBraces'
2008-12-22 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp: Fix simpleMatch when pattern only contain one word
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp, token.h: Implement simpleMatch that should be use when
pattern contains no flags
2008-12-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* testsimplifytokens.cpp, tokenize.cpp, tokenize.h: More improvement
to removeReduntantConditions() and few tests for it also
2008-12-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp, tokenize.h: Remove reduntant if
sentences that are never executed.
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* tokenize.cpp: Optimization: Speed up typedef simplification.
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* tokenize.cpp: Fix signed/unsigned warning (thanks Aggro)
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* checkmemoryleak.cpp, token.cpp, tokenize.cpp: Refactoring: strdup
also exists in MSVS
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp, token.h, tokenize.cpp: Opimization: Remove
combineWithNext Member, use an array instead
2008-12-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* testsimplifytokens.cpp: Few tests added for checking simplify of
if sentences
2008-12-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.cpp: Fixed bug, varid was not assigned properly when bool
use = false; was splitted into two statements in simplify code.
2008-12-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* token.cpp, token.h, tokenize.cpp: Improving
simplifyKnownVariables() to simplify bool variables used inside if()
like int values are simplified.
2008-12-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp: Fixed one compiler (gcc) warning.
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* checkbufferoverrun.cpp: Fix bug I introduced in rv727
2008-12-21 Nicolas Le Cam <kush@users.sourceforge.net>
* checkbufferoverrun.cpp, checkmemoryleak.cpp, tokenize.cpp: Minor
optimizations and fixes
2008-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: simplifyKnownVariables: fixed a segmentation fault
2008-12-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkother.cpp, testother.cpp: Fixed bug with redundant condition:
http://sourceforge.net/forum/forum.php?thread_id=2711792&forum_id=693501
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, checkmemoryleak.h, testmemleakmp.cpp: Memory
leak : Updated the multipass checking a little
2008-12-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* testclass.cpp: Updated the test to reflect change in previous
commit
2008-12-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkclass.cpp: Improved the error message related to virtual
destructors
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkclass.cpp: refactoring : Replaced "aaaa" with "str"
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbp, testmemleakmp.cpp: codeblocks : added testmemleakmp
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, checkclass.cpp, checkmemoryleak.cpp, checkmemoryleak.h:
memory leak : Added experimental functionality for multipass
checking of memory leaks. Only added in the unit tests yet.
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp, token.h: Refactoring : Removed the function 'findtoken'
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkclass.cpp: Refactoring : Replaced findtoken with findmatch
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp: refactoring : Replaced 'findtoken' with
'findmatch'
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkbufferoverrun.cpp: buffer overrun : Refactoring
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkbufferoverrun.cpp, checkbufferoverrun.h, cppcheck.cpp,
testbufferoverrun.cpp: buffer overruns : renamed functions + minor
simplification
2008-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkclass.cpp, checkclass.h, cppcheck.cpp, testconstructors.cpp,
testunusedprivfunc.cpp: Class checking : Renamed the check functions
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Man page updated
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Project file updated
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* testother.cpp: Updated app name and copyright to this new file
also
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Updated author names to man page
2008-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testother.cpp: Redundant condition: Added a test case
when a condition is not redundant
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkbufferoverrun.cpp, checkbufferoverrun.h, checkclass.cpp,
checkclass.h, checkfunctionusage.cpp, checkfunctionusage.h,
checkheaders.cpp, checkheaders.h, checkmemoryleak.cpp,
checkmemoryleak.h, checkother.cpp, checkother.h, cppcheck.cpp,
cppcheck.h, cppcheckexecutor.cpp, cppcheckexecutor.h,
errorlogger.h, filelister.cpp, filelister.h, main.cpp,
preprocessor.cpp, preprocessor.h, settings.cpp, settings.h,
testbufferoverrun.cpp, testcharvar.cpp, testclass.cpp,
testconstructors.cpp, testdivision.cpp, testfilelister.cpp,
testfunctionusage.cpp, testincompletestatement.cpp,
testmemleak.cpp, testpreprocessor.cpp, testredundantif.cpp,
testrunner.cpp, testsimplifytokens.cpp, testsuite.cpp, testsuite.h,
testtoken.cpp, testtokenize.cpp, testunusedprivfunc.cpp,
testunusedvar.cpp, token.cpp, token.h, tokenize.cpp, tokenize.h:
Copyright and app name changed in each file
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* filelister.cpp, testclass.cpp: Fixed bug, checking single file was
not possible. Few new tests added also
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* checkfunctionusage.cpp, checkfunctionusage.h, cppcheck.cpp: Don't
use keyword "this" in constructor
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, readme.txt: Update man page and readme to
reflect the new syntax
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp: Interface: Tags -a, -q, -s and -v added.
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp: Interface: New version of interface and help texts,
--errorsonly changed to --quiet
2008-12-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp: Interface: Removed --recursive option, made it
default. Changed help texts.
2008-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.vcproj: visual c++: updated the project file
2008-12-18 Nicolas Le Cam <kush@users.sourceforge.net>
* checkbufferoverrun.cpp, checkbufferoverrun.h, checkclass.cpp,
checkclass.h, checkfunctionusage.cpp, checkfunctionusage.h,
checkheaders.cpp, checkheaders.h, checkmemoryleak.cpp,
checkmemoryleak.h, checkother.cpp, checkother.h, cppcheck.cpp,
cppcheck.h, cppcheckexecutor.cpp, cppcheckexecutor.h,
errorlogger.h, filelister.cpp, filelister.h, main.cpp,
preprocessor.cpp, preprocessor.h, settings.cpp, settings.h,
testbufferoverrun.cpp, testcharvar.cpp, testclass.cpp,
testconstructors.cpp, testdivision.cpp, testfilelister.cpp,
testfunctionusage.cpp, testincompletestatement.cpp,
testmemleak.cpp, testpreprocessor.cpp, testredundantif.cpp,
testrunner.cpp, testsimplifytokens.cpp, testsuite.cpp, testsuite.h,
testtoken.cpp, testtokenize.cpp, testunusedprivfunc.cpp,
testunusedvar.cpp, token.cpp, token.h, tokenize.cpp, tokenize.h:
Formatting: uniformize end of lines.
2008-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: variable id : set variable ids for
struct members
2008-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp: token : if setstr is used clear the variable id
2008-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp: Memory leaks : Remove "if break|continue ;"
that may otherwise cause false positives
2008-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenizer : using the simplifyKnownVariables
2008-12-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkclass.cpp, testclass.cpp: virtual destructors : no
errormessage if the derived class has no destructor or empty
destructor
2008-12-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: memory leak : fixed 2 bugs
related to the testcases TestMemleak::if7 and TestMemleak::simple9
2008-12-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp, token.h, tokenize.cpp: token : fixed so that
TOKEN::_previous is updated when deleting tokens
2008-12-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsuite.cpp, testsuite.h: testsuite : make it possible to run a
specific testcase
2008-12-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leak : Added a test case for future
checking of struct members
2008-12-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed issue
2429936 - false positive reported on the break in the code "loop {
dealloc ; alloc ; if break ; }"
2008-12-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leaks : Added test case for bug 2429936
2008-12-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkmemoryleak.cpp, testmemleak.cpp: Memory leak : Fixed bug
described in issue 2432631. False positive on something like this..
"alloc ; if(!var) alloc;"
2008-12-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp, token.h: token : minor refactoring to
TOKEN::insertToken. Give the linenr and fileIndex the same values as
this token. It's better than nothing
2008-12-15 Nicolas Le Cam <kush@users.sourceforge.net>
* checkother.cpp, checkother.h, cppcheck.cpp: Removes
WarningIs(Alpha|Digit) checks as this can introduce more problems
than fixes.
2008-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tasks.txt: tasks : Added task for optimising TOKEN::Match
2008-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkother.cpp, testredundantif.cpp: Redundant condition : fixed
the checking
2008-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, checkother.cpp, checkother.h, testredundantif.cpp:
Redundant condition : Added a check
2008-12-14 Nicolas Le Cam <kush@users.sourceforge.net>
* tokenize.cpp: Fix compilation
2008-12-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckFunctionUsage.cpp, CheckFunctionUsage.h,
CheckHeaders.cpp, CheckHeaders.h, CheckMemoryLeak.cpp,
CheckMemoryLeak.h, CheckOther.cpp, CheckOther.h, FileLister.cpp,
FileLister.h, checkbufferoverrun.cpp, checkbufferoverrun.h,
checkclass.cpp, checkclass.h, checkfunctionusage.cpp,
checkfunctionusage.h, checkheaders.cpp, checkheaders.h,
checkmemoryleak.cpp, checkmemoryleak.h, checkother.cpp,
checkother.h, filelister.cpp, filelister.h, testfilelister.cpp:
Refactoring and fix to previous commits by me, forgot to actually
rename the files before ...
2008-12-14 Nicolas Le Cam <kush@users.sourceforge.net>
* FileLister.cpp, tokenize.cpp: Formatting: uniformize end of lines.
2008-12-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cbp, cppcheck.cpp, cppcheck.h,
testbufferoverrun.cpp, testcharvar.cpp, testclass.cpp,
testconstructors.cpp, testdivision.cpp, testfilelister.cpp,
testfunctionusage.cpp, testincompletestatement.cpp,
testmemleak.cpp, testunusedprivfunc.cpp, testunusedvar.cpp,
tokenize.cpp: Refactoring: Renamed all files to lower case. Also
added testfilelister.cpp which was forgotted from previous commit.
2008-12-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* FileLister.cpp, FileLister.h, Makefile, tokenize.cpp: Fixed bug,
paths like "/path/../index.h" created duplicate warnings with files
like "/index.h". Relative paths are now simplified to look a like.
Test cases added.
2008-12-14 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckMemoryLeak.cpp, testtoken.cpp, testtokenize.cpp,
tokenize.cpp, tokenize.h: Formatting: uniformize end of lines.
2008-12-14 Nicolas Le Cam <kush@users.sourceforge.net>
* tasks.txt: Add something I want to work on
2008-12-14 Nicolas Le Cam <kush@users.sourceforge.net>
* tokenize.cpp: Add the last c++ cast operator
2008-12-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tasks.txt: tasks : things that can be done
2008-12-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp: Old TODO comment removed
2008-12-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp: More tests added for simplifyKnownVariables()
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: tokenizer : updated
simplifyKnownVariables
2008-12-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp, tokenize.h: Started making
simplifyKnownVariables(), but it is very much unfinished. Two test
cases added for it.
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak : added standard functions that
are safe and doesn't need to be checked
2008-12-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.cpp, tokenize.h: Refactoring, simplifyConditions(),
simplifyCasts() and simplifyFunctionReturn() now return the opposite
of their boolean return value.
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp, tokenize.cpp, tokenize.h: Tokenizer : Simplify
function calls for functions that only returns a constant value
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp, tokenize.cpp, tokenize.h: Tokenizer : Added
function for simplifying casts
2008-12-13 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckFunctionUsage.cpp, testsimplifytokens.cpp: Refactoring:
changed "aaaa" to "str"
2008-12-13 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckMemoryLeak.cpp, cppcheck.cpp,
preprocessor.cpp, preprocessor.h, testbufferoverrun.cpp,
testmemleak.cpp, testtokenize.cpp, token.cpp, token.h, tokenize.cpp:
Formatting: uniformize end of lines.
2008-12-13 Nicolas Le Cam <kush@users.sourceforge.net>
* testmemleak.cpp: Add three memoryleak tests involving pointer
casting that currently 'fail'
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leak : Added a test case for false
positive when using function call
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, testbufferoverrun.cpp: Buffer overrun :
Use variable id if available in check of memset etc
2008-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak : Fixed a test where pointer is
reassigned
2008-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* testmemleak.cpp: Slightly improved test case
2008-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* testmemleak.cpp: Added test case for false positive, fails
currently
2008-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp: Refactoring, some !Match() calls chanded into
using !!else syntax
2008-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, token.cpp, token.h: TOKEN: Patterns like "if ;
!!else" are now possible
2008-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenizer::SetVarId : Fixed segmentation fault
2008-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h,
testbufferoverrun.cpp: CheckBufferOverrun : Using variable id to
check local array variables
2008-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* testmemleak.cpp: testmemleak: Added 2 tests, fopen() and popen()
should return resource leak, instead of memory leak
2008-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp: testbufferoverrun : Added a testcase where
variable id is needed to avoid false positive
2008-12-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h: Memoryleak: fopen and
popen report now "Resource leak" instead of "Memory leak"
2008-12-12 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp: Fix a crash in eraseToken
2008-12-11 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckOther.cpp: Fix compilation under VS2003
2008-12-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp: Minor bug fix, CppCheck::Check didn't reset error
list after all checking was done.
2008-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp, preprocessor.cpp, preprocessor.h,
testpreprocessor.cpp: preprocessing : Skip special characters.
Refactoring.
2008-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* todo.txt: todo : deleted this deprecated file
2008-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* readme.txt: readme : fixed the readme file
2008-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: memory leak : Minor fixes to make the unit
tests work
2008-12-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckMemoryLeak.cpp, CheckOther.cpp,
FileLister.cpp, FileLister.h, testmemleak.cpp: code cleanups
2008-12-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leaks : Minor updates
and refactoring
2008-12-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Borland C++ : minor update to make the code
compilable with borland c++
2008-12-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Virtual destructor : minor fix to avoid false
positives when more modifiers are used
2008-12-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* FileLister.cpp, FileLister.h: FileLister: Borland can use windows
api for file searching
2008-12-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, token.cpp, token.h: Project file updated
(testtoken.cpp was missing), added TOKEN::printOut() function to
help with debugging.
2008-12-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, testtoken.cpp: Added test file for TOKEN class
2008-12-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp, token.cpp, token.h, tokenize.cpp:
Refactoring: Moved token creation and token deletion into TOKEN
class. Added previous() (not tested yet)
2008-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: cppcheck : Set variable ids
2008-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: testmemleak : added a unit test that ensures that
the variable id handling works correctly. But it's currently not
working, and therefore it's commented out
2008-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp, token.h: token : Updated the "Match" function so it can
check the variable id
2008-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Variable usage : 2 more fixes
2008-12-09 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckFunctionUsage.cpp, CheckMemoryLeak.cpp,
CheckMemoryLeak.h, CheckOther.cpp, CheckOther.h, FileLister.cpp,
FileLister.h, cppcheck.cpp, cppcheck.h, cppcheckexecutor.cpp,
cppcheckexecutor.h, errorlogger.h, main.cpp, preprocessor.cpp,
preprocessor.h, settings.cpp, settings.h, testbufferoverrun.cpp,
testconstructors.cpp, testfunctionusage.cpp, testmemleak.cpp,
testpreprocessor.cpp, testrunner.cpp, testsimplifytokens.cpp,
testsuite.cpp, testsuite.h, testtokenize.cpp, testunusedvar.cpp,
token.cpp, token.h, tokenize.cpp, tokenize.h: Formatting: uniformize
end of lines.
2008-12-08 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckFunctionUsage.cpp, CheckMemoryLeak.cpp,
CheckMemoryLeak.h, CheckOther.cpp, CheckOther.h, FileLister.cpp,
FileLister.h, cppcheck.cpp, cppcheck.h, cppcheckexecutor.cpp,
cppcheckexecutor.h, errorlogger.h, main.cpp, preprocessor.cpp,
preprocessor.h, settings.cpp, settings.h, testbufferoverrun.cpp,
testconstructors.cpp, testfunctionusage.cpp, testmemleak.cpp,
testpreprocessor.cpp, testrunner.cpp, testsimplifytokens.cpp,
testsuite.cpp, testsuite.h, testtokenize.cpp, testunusedvar.cpp,
token.cpp, token.h, tokenize.cpp, tokenize.h: Revert revisions 627
and 628
2008-12-08 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckClass.h,
CheckMemoryLeak.cpp, CheckMemoryLeak.h, CheckOther.cpp,
CheckOther.h, FileLister.h, cppcheck.cpp, cppcheck.h,
cppcheckexecutor.cpp, cppcheckexecutor.h, errorlogger.h,
preprocessor.cpp, preprocessor.h, settings.cpp, settings.h,
testconstructors.cpp, testfunctionusage.cpp, testmemleak.cpp,
testpreprocessor.cpp, testsimplifytokens.cpp, testsuite.h,
testtokenize.cpp, testunusedvar.cpp, token.cpp, token.h,
tokenize.cpp, tokenize.h: Formatting: uniformize end of lines (part
2)
2008-12-08 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckFunctionUsage.cpp, CheckMemoryLeak.cpp,
CheckMemoryLeak.h, CheckOther.cpp, CheckOther.h, FileLister.cpp,
FileLister.h, cppcheck.cpp, cppcheck.h, cppcheckexecutor.cpp,
cppcheckexecutor.h, errorlogger.h, main.cpp, preprocessor.cpp,
preprocessor.h, settings.cpp, settings.h, testbufferoverrun.cpp,
testconstructors.cpp, testfunctionusage.cpp, testmemleak.cpp,
testpreprocessor.cpp, testrunner.cpp, testsimplifytokens.cpp,
testsuite.cpp, testsuite.h, testtokenize.cpp, testunusedvar.cpp,
token.cpp, token.h, tokenize.cpp, tokenize.h: Formatting: uniformize
end of lines.
2008-12-08 Nicolas Le Cam <kush@users.sourceforge.net>
* token.cpp: TOKEN::Match minor optimization
2008-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckFunctionUsage.cpp, CheckHeaders.cpp, CheckMemoryLeak.cpp,
CheckOther.cpp, token.cpp, token.h, tokenize.cpp: Refactoring: Rest
of the public variables in TOKEN moved to private area.
2008-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckFunctionUsage.cpp,
CheckHeaders.cpp, CheckMemoryLeak.cpp, CheckOther.cpp,
errorlogger.h, testbufferoverrun.cpp, testsimplifytokens.cpp,
testtokenize.cpp, token.cpp, token.h, tokenize.cpp: Refactoring:
TOKEN::next renamed to _next, getter and setter functions for it
added next() and next(TOKEN*).
2008-12-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Variable usage : A few small fixes to reduce false
positives
2008-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, token.cpp, token.h, tokenize.cpp: Refactoring:
TOKEN::varId was moved from public to private
2008-12-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, token.h, tokenize.cpp, tokenize.h: Variable Id :
First simple implementation
2008-12-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsuite.h: testing : Minor fix for ASSERT_EQUALS macro
2008-12-08 Nicolas Le Cam <kush@users.sourceforge.net>
* testtokenize.cpp: Fix two warnings
2008-12-08 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckClass.cpp: Virtual Destructor : Minor optimization
2008-12-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, testrunner.cbproj: Borland C++ : Updated project
files cppcheck and testrunner
2008-12-07 Nicolas Le Cam <kush@users.sourceforge.net>
* testunusedvar.cpp: Fix compilation
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, cppcheck.cpp, testunusedvar.cpp: function variable
usage : various fixes. but probably more fixes are needed.
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, testunusedvar.cpp: function variable
usage : Added a simple check
2008-12-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, token.cpp: Fixed bug in TOKEN::multiCompare.
"abc" and "a" were matched.
2008-12-07 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckMemoryLeak.cpp: Minor optimization. Reuse findmatch result
instead of recalling it
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp: tokenizer : The token "a" shouldn't match the
pattern "abc|def", added assertion to a test but it's currently
commented because it fails
2008-12-07 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Constructors: Fix checking
of 'operator=' with test
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbp: cppcheck.cbp : Added testclass.cpp
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testclass.cpp: Virtual destructors : Don't check
base classes when inheritance is non-public
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckClass.h, testconstructors.cpp: Constructors :
Refactoring + Added checking of 'operator='
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Fixed a bug in Tokenizer::simplifyTokenList. The
keyword operator is never used in a variable declaration
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leaks : Handle
assignments better - bug 2395524
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Check constructors: Minor optimisation
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Constructors : Fixed so the
test that kush_eplus added works
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Refactoring. Use "str" instead of "aaaa0"
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Refactoring: use "findmatch" instead of
"findtoken"
2008-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testclass.cpp: Virtual destructors : Handle
inheritance where "private|protected|public" is not defined
2008-12-07 Nicolas Le Cam <kush@users.sourceforge.net>
* testconstructors.cpp: Add a test case that currently fail
2008-12-07 Nicolas Le Cam <kush@users.sourceforge.net>
* FileLister.cpp: Fix bug when calling cppcheck without --recursive
flag
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testclass.cpp: Virtual destructors : Minor fix to a test to handle
a private inheritance
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Virtual Destructors : pattern for declaring a
derived class... "class %var% : public|protected|private %var% .."
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testclass.cpp: virtual destructor : iterate
through base classes for a derived class to check that the
destructor in each base class i virtual
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Uninitialized member
variables : Don't give false positives for private constructors
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testclass.cpp: testclass : Added a new unit testing file
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Minor optimisation. Don't do redundant checking
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: "~Base" should generate two tokens. "~"
and "Base"
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckClass.h, cppcheck.cpp: Class checking : Check
that base class destructors are virtual. Experimental
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckClass.h: CheckClass : Refactoring - Removed
include and moved struct VAR into the class
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Unreachable code : minor bug fixes
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Unreachable code : Fixed false positives for label
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, cppcheck.cpp: Added check that
detects unreachable code below a 'return' statement
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp: Memory
leaks: Better handling of "realloc". Fixing bug [ 2395262 ]
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp: TODO: Added a todo for refactoring TOKEN::Match
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenizer: Remove "volatile" keyword to simplify
checking
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp: Fixed so that the expected and actual values in
asserts are not mixed
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp: testtokenize: Added TestTokenize::match1 that
makes sure the old matching of "|" and "||" still works
2008-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak.cpp, g_renew and g_try_renew
also removed
2008-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: False positive with g_realloc().
Removed g_realloc() and g_try_realloc() for now. See feature request
[ 2395262 ] Check leaks with realloc, g_realloc and g_try_realloc()
2008-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp, cppcheck.h, cppcheckexecutor.cpp,
cppcheckexecutor.h: cppcheck and executor, fixed compiling error
2008-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp, cppcheck.h, cppcheckexecutor.cpp,
cppcheckexecutor.h: refactoring: Increased constness of function
parameters
2008-12-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* preprocessor.cpp: Preprocessor: Fixed bug, read() didn't handle
correctly string constants like this: "\""
2008-12-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, token.cpp: Token: Fixed bug in match
function, simplified CheckBufferOverrun code
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: refactoring - changed "aaaa" to
"str"
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Replace a complicated condition with a
"Match"
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Replace "aaaa" and "strcmp" with "str" and
"Match"
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Refactoring so str and Match is
used instead of aaaa and strcmp etc
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Replaced a few "strcmp" with
"=="
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Buffer overrun: Minor refactoring. Use the
Match function better.
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Minor refactorings
2008-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: CheckOther: Fixed a compiler warning
2008-12-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, token.cpp: Bug fix: Minor bug in previous
commit, test added to catch that bug also.
2008-12-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, token.cpp, token.h, tokenize.cpp: TOKEN: Match()
function improved, %any% and const|volatile kind of patterns are now
accepted. Simplified comparing on tokenize.cpp.
2008-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: Tokenizer: Simplify numeric
comparisons
2008-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsuite.cpp: testsuite: show diffing strings better when they
are not equal
2008-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp: TestTokenize: Use TOKEN::str() instead of
TOKEN::aaaa() where possible
2008-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
Preprocessor: Minor refactoring and improved testing
2008-12-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: Tokenizer: Fixed bug, const and
volatile functions were not recogniced by fillFunctionList()
2008-12-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: fixed
handling of tabs and spaces
2008-12-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leaks: Various improvements in
"simplifycode"
2008-12-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Further improvements of
"simplifycode"
2008-12-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Changed a comment
2008-12-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj: updated the borland project file
2008-12-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h: Minor improvement to code
comments.
2008-12-01 Nicolas Le Cam <kush@users.sourceforge.net>
* CheckOther.cpp: Warning If minor optimizations
2008-12-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckOther.h: Patch: [ 2371330 ] Removed
CheckOther::WarningDangerousFunctions() declaration
2008-12-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Refactoring and
improvements of simplifycode etc
2008-12-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsuite.cpp, testsuite.h: testing: minor refactoring so better
error messages are shown
2008-12-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp: Memory
leaks: When "--debug" is given the checking will be different to
highlight problems in "getcode" and "simplifycode"
2008-11-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: added comment about "--debug" flag. This is used for
various debugging purposes so the behaviour of c++check is undefined
if it's given
2008-11-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: The "do" must
be handled differently. Made a first fix for it
2008-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp, man/cppcheck.1.xml: Verbose: Added line change to
help text printing and updated man page
2008-11-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp, cppcheck.h, settings.cpp, settings.h: Verbose error
message output through '--verbose'
2008-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Fixed the test
'CheckMemoryLeak::func8'
2008-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Test Memory leak: Added a test case, currently a
false positive is generated
2008-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: cppcheck: Write version number etc
2008-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Moved the class
member checking to the "--all"
2008-11-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, cppcheck.cpp,
testbufferoverrun.cpp: Array index : No recursive checking unless
the "--all" has been given
2008-11-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* FileLister.cpp, cppcheck.cpp, man/cppcheck.1.xml: Recursive file
listing, .cxx added to file list
2008-11-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp: Removed debug output
2008-11-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leaks: Reverted the
sensitive checking in r536. And improved the simplifycode function.
2008-11-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leaks: Made the
checking a lot more sensitive
2008-11-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h: CheckMemoryLeak:
Refactoring. Use TOKEN::isStandardType instead of rewriting its
functionality
2008-11-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* token.cpp, token.h: token: refactoring the 'isStandardType' a
little
2008-11-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: testmemleak: Added 'func7' test case. Not working
yet
2008-11-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp, cppcheck.h: Feature added: CppCheck class has now
function addFile(string,string) which allows checking of unreal
files, by giving just filename and file content as a parameter.
2008-11-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp, testbufferoverrun.cpp, testcharvar.cpp,
testmemleak.cpp, tokenize.cpp, tokenize.h: Refactoring: Removed
_settings member from the Tokenizer
2008-11-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp, testbufferoverrun.cpp, testcharvar.cpp,
testconstructors.cpp, testdivision.cpp, testfunctionusage.cpp,
testincompletestatement.cpp, testmemleak.cpp,
testsimplifytokens.cpp, testtokenize.cpp, testunusedprivfunc.cpp,
testunusedvar.cpp, tokenize.cpp, tokenize.h: Refactoring: Tokenizer
- renaming functions, moved the 'tokenizeCode' to the private
section
2008-11-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, tokenize.cpp: TODO: added a todo to add an
error message. and removed an "invalid" todo
2008-11-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp: Function usage: Report which file the
missing function is implemented in
2008-11-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.h, cppcheckexecutor.cpp, cppcheckexecutor.h,
errorlogger.h: Refactoring: Added missing license texts and some
comments
2008-11-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Refactoring: Updated project file for Code::Blocks
2008-11-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cpp, cppcheck.h, cppcheckexecutor.cpp,
cppcheckexecutor.h, errorlogger.h, main.cpp, testsuite.cpp,
testsuite.h: Refactoring: CppCheckExecutor class added
2008-11-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckFunctionUsage.cpp,
CheckHeaders.cpp, CheckMemoryLeak.cpp, CheckOther.cpp,
testsimplifytokens.cpp, testtokenize.cpp, token.cpp, token.h,
tokenize.cpp: TOKEN: Refactoring the 'str' member variable
2008-11-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* FileLister.cpp: Visual C++: Updated the FileLister (applied patch
FileLister_ReworkRecursiveAddFiles submitted by kush_eplus)
2008-11-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* token.cpp: bug fix, didn't compile on Linux (3 utf characters on
top of file again)
2008-11-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.vcproj: Visual C++: Updated the project file * removed 'commoncheck' * added 'checkfunctionusage' * added 'token'
2008-11-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, token.cpp: Borland C++: Minor updates so cppcheck
compiles with Borland C++
2008-11-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cpp, cppcheck.h, main.cpp, settings.cpp, settings.h:
Refactoring: Started making CppCheck class more generally usable
(e.g. as a part of IDE).
2008-11-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile: Refactoring: Updated makefile to be more up-to-date
after big refactoring changes.
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp: Function usage: Better handling of
'!foo()'
2008-11-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, testrunner.cbp: Project files: Changed both targets
to same file, using custom makefile
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp: Function usage: Minor update in the
pattern for using function
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, testfunctionusage.cpp: Function Usage:
Handling '.. else foo()'
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, testfunctionusage.cpp: Function usage:
Handling callbacks better: 'void (*f)() = cond ? foo : NULL'
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, testfunctionusage.cpp: Function usage:
handling 'return foo();' better
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbp: codeblocks: Added project file for cppcheck
2008-11-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, token.cpp, token.h, tokenize.cpp: Refactoring:
IsName() and IsNumber() are no longer static and they don't take a
parameter.
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testfunctionusage.cpp: Added test file for function usage
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, Makefile, testrunner.cbp: Function Usage:
Make sure it's detected that func is used in code such as 'if (
func() ) { ..'
2008-11-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h,
CheckFunctionUsage.cpp, CheckFunctionUsage.h, CheckMemoryLeak.cpp,
CheckMemoryLeak.h, FileLister.h, cppcheck.cpp, cppcheck.h,
testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testincompletestatement.cpp, testmemleak.cpp,
testtokenize.cpp, testunusedprivfunc.cpp, testunusedvar.cpp,
tokenize.cpp, tokenize.h: Refactoring: Renamed some member
variables: variable -> _variable
2008-11-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckFunctionUsage.cpp,
CheckHeaders.cpp, CheckMemoryLeak.cpp, CheckOther.cpp, token.cpp,
token.h, tokenize.cpp: Refactoring: at() changed to tokAt() and
getstr() changed to strAt()
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp: Function usage: Fixes in the check
2008-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, CheckFunctionUsage.h, cppcheck.cpp,
cppcheck.h, testbufferoverrun.cpp, testcharvar.cpp,
testmemleak.cpp, testrunner.cbp, testsuite.cpp, testtokenize.cpp,
tokenize.cpp, tokenize.h: Refactoring: The
Tokenizer::FillFunctionList has no use of its parameter. Enabled the
CheckFunctionUsage
2008-11-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* testtokenize.cpp: Bug fix: Didn't compile on Debian, missing
#include
2008-11-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckFunctionUsage.cpp,
CheckHeaders.cpp, CheckMemoryLeak.cpp, CheckOther.cpp, Makefile,
token.cpp, token.h, tokenize.cpp, tokenize.h: Refactoring: token.*
files added, Some functions from Tokenizer moved under TOKEN.
Renamed few functions, like gettok() -> at(), combineWithNext() and
deleteNext() are also new names for old functions. Usage was gettok(
tok, 2 ), but now it is tok->at( 2 ).
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Added checking for 'kcalloc'
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: The 'realloc' shouldn't be
treated exactly like 'malloc'
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckClass.h, CheckHeaders.cpp, CheckHeaders.h,
CheckMemoryLeak.cpp, CheckMemoryLeak.h, CheckOther.cpp,
CheckOther.h, testbufferoverrun.cpp, testcharvar.cpp,
testconstructors.cpp, testdivision.cpp,
testincompletestatement.cpp, testmemleak.cpp, testtokenize.cpp,
testunusedprivfunc.cpp, testunusedvar.cpp, tokenize.cpp, tokenize.h:
increased constness of member variable _tokenizer in the Check*
classes
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, tokenize.cpp,
tokenize.h: CheckBufferOverrun: increased constness of _tokenizer
member
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp, cppcheck.h, testbufferoverrun.cpp, testcharvar.cpp,
testconstructors.cpp, testdivision.cpp,
testincompletestatement.cpp, testmemleak.cpp, testrunner.cbp,
testsimplifytokens.cpp, testtokenize.cpp, testunusedprivfunc.cpp,
testunusedvar.cpp, tokenize.cpp, tokenize.h: Check Function Usage:
Removed much of the old checking and made some refactoring
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckFunctionUsage.cpp, CheckFunctionUsage.h, Makefile: Function
Usage: Added a new class for checking function usage
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testtokenize.cpp, tokenize.cpp, tokenize.h:
tokenizer: simplifyConditions tries to simplify conditions.. those
that are always true to '( true )' and those that are always false
to '( false )'
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Handle
conditions that are always true / false
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testincompletestatement.cpp, testmemleak.cpp,
testtokenize.cpp, testunusedprivfunc.cpp, testunusedvar.cpp,
tokenize.cpp: tokenizer: Added DeallocateTokens to the destructor so
it's not necessary to cleanup manually
2008-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp, tokenize.h: tokenizer: Added
functions "alwaysTrue" and "alwaysFalse" to check if a condition is
always true / false
2008-11-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, CommonCheck.cpp,
CommonCheck.h, Makefile, cppcheck.cpp, preprocessor.cpp,
testbufferoverrun.cpp, testcharvar.cpp, testmemleak.cpp,
tokenize.cpp, tokenize.h: Refactoring: CommonCheck.* files are
removed. Rest of the global functions from there were moved to
Tokenizer class
2008-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h: Memory leak: Added
checking for 'fopen' and 'popen'
2008-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Better handling
when calling functions
2008-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: unsigned division and char variable usage - moved
checks to "--style"
2008-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckHeaders.cpp, CheckHeaders.h,
CheckMemoryLeak.cpp, CheckMemoryLeak.h, CheckOther.cpp,
CheckOther.h, CommonCheck.cpp, CommonCheck.h, cppcheck.cpp,
cppcheck.h, errorlogger.h, preprocessor.cpp, preprocessor.h,
testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testincompletestatement.cpp, testmemleak.cpp,
testpreprocessor.cpp, testrunner.cpp, testsimplifytokens.cpp,
testsuite.cpp, testsuite.h, testtokenize.cpp,
testunusedprivfunc.cpp, testunusedvar.cpp, tokenize.cpp, tokenize.h:
Refactoring: Errors are no longer logged via global functions to a
global stream. Instead callback function is used via interface.
ErrorLogger interface was added and taken into use.
2008-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, CommonCheck.cpp,
CommonCheck.h, tokenize.cpp, tokenize.h: Refactoring: Some global
functions moved to Tokenizer class
2008-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp, tokenize.h: cleanup
2008-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp, tokenize.h: Function list: Remove
functions with duplicate names to prevent false positives
2008-11-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Minor update to make the
checking stronger
2008-11-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Readded some
checks that were removed in r481
2008-11-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Moved false
positive to "--all" upon some special case conditions (bug 2313129)
2008-11-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Buffer overrun: Fixed a segmentation fault
2008-11-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: limit the max call depth to 2
2008-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Minor fix to prevent hang
2008-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cpp: minor update to startup message
2008-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp: preprocessor: Better warning when illegal
character found
2008-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: moved
simplifyTokens rule to '--all'
2008-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Better handling
of 'if (0 != p)'
2008-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, testbufferoverrun.cpp: Array index
overrun: Improved the checking of class variables
2008-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: testmemleak: Removed old TODO
2008-11-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckHeaders.cpp, CheckOther.cpp, tokenize.cpp, tokenize.h:
Refactoring: tokens() changed to const and to return const pointer.
2008-11-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, testsimplifytokens.cpp,
testtokenize.cpp, tokenize.cpp, tokenize.h: Refactoring: Global
variable tokenes is no more.
2008-11-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h: Refactoring: static
variable in CheckMemoryLeak is now a private member of the class.
2008-11-16 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckMemoryLeak.cpp, CheckMemoryLeak.h, cppcheck.cpp,
testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testmemleak.cpp, testrunner.cpp,
testunusedprivfunc.cpp, tokenize.cpp, tokenize.h: Few static
variables are now private members. ShowAll etc. global variables are
now members of Settings class and given as a parameter to the
classes that need them.
2008-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp: Memory
leak: Mismatching allocation and deallocation in subfunction
2008-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Added a simple
test case
2008-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp: Memory
leak: reverted most of change 461.
2008-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Added test case
that failed. And fixed it.
2008-11-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.cpp: Bug fix: Missing include from previous commit,
didn't compile on Debian.
2008-11-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckMemoryLeak.cpp, CommonCheck.cpp,
CommonCheck.h, cppcheck.cpp, cppcheck.h, testbufferoverrun.cpp,
testcharvar.cpp, testmemleak.cpp, tokenize.cpp, tokenize.h:
Refactoring: Global/Static variables, FunctionList, GlobalFunctions
and UsedGlobalFunctions are now private members of Tokenizer class.
Class GlobalFunction is now private subclass of Tokenizer. Global
functions CheckGlobalFunctionUsage, FillFunctionList and
GetFunctionTokenByName are now member functions of Tokenizer.
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp: Memory
Leak: Handling Linux lists better => Detect more leaks
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbp: codeblocks: Added project file 'testrunner.cbp'
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp, testsimplifytokens.cpp, tokenize.cpp:
SimplifyTokens: Replace 'sizeof(*abc)' with '100'. This prevents
false positives in checks
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testsimplifytokens.cpp, tokenize.cpp: Simplify Tokens:
Replace NULL with 0 and '(char *)0' with '0'
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Uninitialized Member
Variables: Fixed bug 'false positive on multi constructors'
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, testconstructors.cpp: cleanup files
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, testconstructors.cpp: Uninitialized
member variable: Added unit test that currently fails for bug
2270353 - Uninitialized variable false positive on multi
constructors
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.vcproj, testrunner.sln, testrunner.vcproj: Visual C++
Express 2008: Added project 'testrunner' and updated the project
'cppcheck'
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, testrunner.cbproj: Borland C++: Added files
"cppcheck" and "settings" to the projects
2008-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/cppcheck.1.xml: Applied patch "errors_only_man" that adds
description for "--errorsonly" to the man page. This was submitted
by kimmov in bug 2277848
2008-11-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, cppcheck.cpp, cppcheck.h, main.cpp, settings.cpp,
settings.h, testrunner.cpp: Refactoring: New classes CppCheck and
Settings. Code from main.cpp was moved to cppcheck.cpp
2008-11-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, CommonCheck.cpp,
CommonCheck.h, main.cpp, testbufferoverrun.cpp, testcharvar.cpp,
testconstructors.cpp, testdivision.cpp,
testincompletestatement.cpp, testmemleak.cpp, testrunner.cpp,
testtokenize.cpp, testunusedprivfunc.cpp, testunusedvar.cpp,
tokenize.cpp, tokenize.h: Refactoring: Global variable Files is no
more. Use tokenizer->getFiles() to get a pointer to it.
2008-11-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile: Make: New improved makefile
2008-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Uninitialized variable:
chained assignments
2008-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Added command line option "--errorsonly"
2008-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, main.cpp, testbufferoverrun.cpp,
testcharvar.cpp, testconstructors.cpp, testdivision.cpp,
testincompletestatement.cpp, testmemleak.cpp, testtokenize.cpp,
testunusedprivfunc.cpp, testunusedvar.cpp, tokenize.cpp, tokenize.h:
Refactoring: tokens_back and TypeSize are no longer global variables
2008-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckHeaders.cpp, CheckHeaders.h,
CheckMemoryLeak.cpp, CheckMemoryLeak.h, CheckOther.cpp,
CheckOther.h, main.cpp, testbufferoverrun.cpp, testcharvar.cpp,
testconstructors.cpp, testdivision.cpp,
testincompletestatement.cpp, testmemleak.cpp,
testunusedprivfunc.cpp, testunusedvar.cpp, tokenize.h: Refactoring:
Tokenizer object given as a parameter to most of the classes
2008-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testunusedprivfunc.cpp: Unused private function:
return pointer to private function
2008-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: Memory leak: Added TODO test. Mismatching
allocation and deallocation in subfunction
2008-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testunusedprivfunc.cpp: unused private function: Added test1
(assert that error message is given for simple case)
2008-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Fixed one more
unit test
2008-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Refactoring: Don't use the TOKEN::str directly
2008-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Refactoring: Use 'Match' instead of direct
comparisons
2008-11-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h, CheckClass.cpp,
CheckClass.h, CheckHeaders.cpp, CheckHeaders.h,
CheckMemoryLeak.cpp, CheckMemoryLeak.h, CheckOther.cpp,
CheckOther.h, Makefile, main.cpp, preprocessor.cpp, preprocessor.h,
testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testincompletestatement.cpp, testmemleak.cpp,
testpreprocessor.cpp, testunusedprivfunc.cpp, testunusedvar.cpp:
Refactoring: Following new classes were created:
CheckBufferOverrunClass CheckClass CheckHeaders CheckMemoryLeakClass
CheckOther Preprocessor
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testunusedvar.cpp: unused struct member: Added checks
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: testmemleak: Added todo 'forwhile7'
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Handle "goto" a
little differently
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: cleanup
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* todo.txt: todo: added memory leak examples
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leaks: Added tests
and handling for 'throw' and linux lists
2008-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* todo.txt: todo: added 'check operator='
2008-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory leak: Minor updates in the notvar
function
2008-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory Leak: Improved
checking of subfunctions. Simplify their code.
2008-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Ensure that
simple memory leak is detected
2008-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CommonCheck.cpp, CommonCheck.h,
testmemleak.cpp: Memory leak: Began work for parsing into
subfunctions.
2008-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: Removed false
positives. 'use ; use ;' is not always the same as 'use ;'
2008-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CommonCheck.cpp, testmemleak.cpp: Memory
Leak: Stronger checking. Ignore 'if use ;' and 'if dealloc;'. A leak
could occur if it's not executed.
2008-11-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, CommonCheck.cpp, main.cpp,
testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testincompletestatement.cpp, testmemleak.cpp,
testtokenize.cpp, testunusedprivfunc.cpp, testunusedvar.cpp,
tokenize.cpp, tokenize.h: Refactoring: Tokenizer class added,
functions still mostly static and using globals
2008-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testsuite.h: GPL: Added comment in testsuite.h
2008-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testunusedprivfunc.cpp: Unused private function: Added
test
2008-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory leak: remove the
dealloc in "if dealloc ;" if it's not followed by an "else". This
makes the checking stronger.
2008-11-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* tokenize.h: - Fixed compiling on Debian with gcc ( missing includes and std:: ) - Removed c-style include for Borland compiler.
2008-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory Leak: Added checking
2008-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp,
tokenize.h: cleanup the files
2008-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.h: Visual C++: Fixed compiler error for "strdup"
2008-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp, testrunner.cbproj: Memory
Leaks: Convert "do-while" blocks to "while" blocks to make the
handling for that the same.
2008-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h, testmemleak.cpp: Memory
Leaks: Improved the checking of loops.
2008-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.h: Borland C++: Fixed compiler error (couldn't find the
function 'free')
2008-11-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* FileLister.cpp, FileLister.h, testtokenize.cpp: FileLister.* and
testtokenize.cpp, changed encoding to utf-8
2008-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory Leak: Fixed bug with
strdup in loop. Bug 2225370
2008-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckMemoryLeak.cpp, CommonCheck.cpp,
CommonCheck.h, tokenize.cpp, tokenize.h: Refactoring TOKEN: Changed
from struct to class
2008-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, Makefile, testbufferoverrun.cpp,
testincompletestatement.cpp, tokenize.cpp: cleanup of UTF-8. Updated
the Makefile
2008-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: CheckAlpha: Expanded checking to include 'isupper'
and 'islower'
2008-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: CheckClass: Applied patch 2220196
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* todo.txt: todo: A few short updated notes
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: tests: Removed this deprecated file
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: C++ Builder: Updated the testrunner project
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, testbufferoverrun.cpp: Buffer overrun:
Fixed a false positive
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testother.cpp: testother: Removed this test. Individual tests will
be created instead
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testincompletestatement.cpp: testincompletestatement: created new
test
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp: TestBufferOverrun: Added a test case that
shouldn't generate error. Get address beyond array.
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: Tokenizer: Skip inline assembly
(Bug 2220727)
2008-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: CheckClass: Removed false positive "unused private
function" for typedef (Bug 2220326)
2008-11-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: Tokenize: Changed the array
CurrentToken to a std::string
2008-11-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: Borland C++: Added 'TestTokenize' to the
testrunner project
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testpreprocessor.cpp: testpreprocessor: updated the testing for
multiline preprocessor statements
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp: preprocessor: fixed invalid character
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, testrunner.cbproj: Updated the Borland C++
project files
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.sln, cppcheck.vcproj: Added Visual C++ 2008 Express
solution and project files
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp: preprocessor: simple optimizations
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* FileLister.cpp, FileLister.h, Makefile, main.cpp: File Listing:
New handling of listing files. (Bug 2194949)
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testpreprocessor.cpp: TestPreprocessor: Minor update to ensure
that extra spaces are filtered out
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testmemleak.cpp, testother.cpp, testunusedvar.cpp:
Testing: DeallocateTokens after each test
2008-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testtokenize.cpp, tokenize.cpp: Tokenizer: Handle '\' in
preprocessor lines
2008-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: handling the
'\' in preprocessor code
2008-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testcharvar.cpp: TestCharVar: Fixed some false
positives
2008-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Class Checking: Fixed AV in FindClassFunction
2008-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp, tokenize.cpp: memleak: fixed false positives for
assignment in return statement (bug 2205568)
2008-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Uninitialized Member
Variables: Fixed problems with different classes with same name (Bug
2208157)
2008-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/cppcheck.1.xml: man: Added xml for generating man page
2008-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: Applied changes suggested by Reijo
2008-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Uninitialized member
variables: Removed false positives when using operator= (Bug
2190376)
2008-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Uninitialized Member
Variables: Check statements that begin after for example "if (..)"
or "else" (Bug 2190290)
2008-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testconstructors.cpp: Unitialized Members
Variables: Fixed false positives when using "this" (Bug 2190300)
2008-10-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testpreprocessor.cpp: testpreprocessor: changed the syntax
2008-10-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp: preprocessor: Minor typo fix
2008-10-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
Preprocessor: Added elif handling. Check for invalid characters
2008-10-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, tokenize.cpp: fixed compilation warnings
generated by visual c++. Nothing serious
2008-10-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, preprocessor.cpp, testpreprocessor.cpp, tokenize.cpp,
tokenize.h: preprocessor: Use the new preprocessor in cppcheck
2008-10-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: Handling
"#if .." better
2008-10-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, preprocessor.cpp, testpreprocessor.cpp: preprocessor:
Minor cleanups and fixes
2008-10-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Check that a supported compiler is used to when
compiling c++check
2008-10-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testpreprocessor.cpp: preprocessor: Added test if_cond1. It fails
currently
2008-10-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: Added tests
test3, test4, test5 and if1
2008-10-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp: preprocessor: Fixed tests
2008-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testpreprocessor.cpp: preprocessor: updated the tests. They are
now failing.
2008-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp: cleanup
2008-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: refactoring
the preprocessor and added TestPreprocessor::if0
2008-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
preprocessor: Refactoring
2008-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: C++ Builder: Added the preprocessor files to
testrunner.cbproj
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: Remove
comments
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, testpreprocessor.cpp: preprocessor: refactoring
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp: preprocessor: quick fix to make the
TestPreprocessor::test1 work
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
preprocessor: Created a simple test. But it fails currently.
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cpp, testsuite.cpp, testsuite.h: Testing: Only run
tests in a specified class
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, preprocessor.cpp, preprocessor.h, testpreprocessor.cpp:
preprocessor: Added new preprocessor. Only used in the tests yet.
2008-10-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* COPYING, CheckBufferOverrun.cpp, CheckBufferOverrun.h,
CheckClass.cpp, CheckClass.h, CheckHeaders.cpp, CheckHeaders.h,
CheckMemoryLeak.cpp, CheckMemoryLeak.h, CheckOther.cpp,
CheckOther.h, CommonCheck.cpp, CommonCheck.h, main.cpp,
testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testmemleak.cpp, testother.cpp, testrunner.cpp,
testsuite.cpp, testunusedvar.cpp, tokenize.cpp, tokenize.h:
Licensing: Using the GPL 3 license
2008-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp, main.cpp: Usage of Global functions: Only checked
if "--all" is given. Show progress.
2008-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Reverted [352] it's not a
good fix
2008-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: CheckMemoryLeak: Fixed bug
2190219 - False positive, Mismatching allocation and deallocation
2008-10-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, Makefile, testother.cpp: CheckIncompleteStatement:
Fixed false positive generated by CheckIncompleteStatement (bug
2187837)
2008-10-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: CheckClass: Minor fix to make it compile in Visual
c++
2008-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: CheckConstructors: Handle recursion better. Don't
hang.
2008-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory Leak: Better checking of mismatching
alloc and dealloc for gtk
2008-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: Memory Leak: Fixed false
positive
2008-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Fixed possible endless loop problem when
handling typedefs
2008-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Memory Leak: Better checking of memory leaks
in gtk applications
2008-10-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testbufferoverrun.cpp, testcharvar.cpp,
testconstructors.cpp, testdivision.cpp, testmemleak.cpp,
testsuite.cpp, testsuite.h, testunusedvar.cpp: testing: Various
fixes to make the tests compile without warnings/errors
2008-10-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: MemoryLeak: Minor fix to reduce false
positives
2008-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: MemoryLeak: minor updates
2008-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testmemleak.cpp, testsuite.h: Testing: Added macro
'REGISTER_TEST'
2008-10-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp, testcharvar.cpp, testconstructors.cpp,
testdivision.cpp, testmemleak.cpp, testrunner.cbproj,
testrunner.cpp, testsuite.cpp, testsuite.h: Testing: Updated the
testing to the new test framework
2008-10-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* MiniCppUnit.cpp, MiniCppUnit.h, TestsRunner.cpp: testing: Removed
MiniCppUnit
2008-10-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cpp, testsuite.cpp, testsuite.h: testing: Added a new
unit testing framework
2008-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: testmemleak: preparing to add checks of function
calls
2008-10-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testdivision.cpp: Unsigned division: Checking if
negative constant is used
2008-10-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testdivision.cpp: TestDivision: Added two tests of unsigned
division when negative constant is used.
2008-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, main.cpp, testdivision.cpp: CheckUnsignedDivision:
Made it more accurate and moved it to the standard checks
2008-09-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Removed false positives
about not deleting class instances
2008-09-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: cppcheck: removed checking of implementation in header.
temporarily commented out the check for variable scope. These
changes were made so that fewer warning messages will be produced
when running c++check
2008-09-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testunusedvar.cpp: testunusedvar: Added simple testing
for unused variables
2008-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: CheckOther: Minor updates. Removed false positives
for CheckScope
2008-09-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp, tokenize.cpp: Incomplete
statement: Check for statements that begin with a constant
2008-09-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testcharvar.cpp: CheckOther: Minor updates in
checking of signed char variables and unsigned division
2008-09-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testdivision.cpp: CheckUnsignedDivision:
Refactoring
2008-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Fixed a bug in the tokenizer
2008-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: visual c++: added "--recursive" support
2008-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckMemoryLeak.cpp, CommonCheck.cpp, main.cpp,
tokenize.cpp: compilation: Various cross compilation fixes. The
"--recursive" option doesn't work on VC now.
2008-09-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp, MiniCppUnit.cpp, main.cpp: compilation: hopefully
the program should be compilable on VC now
2008-09-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: memleak: better handling of switch blocks
2008-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak.cpp: testmemleak: added checks for class members
2008-08-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: memleak: uncommented and
fixed the handling of switch
2008-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: memleak: commented out the
switch handling temporarily. it causes segmentation faults when
checking the linux kernel.
2008-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckOther.cpp, CommonCheck.cpp, main.cpp, tokenize.cpp: made
cppcheck compile with g++ 4.3
2008-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, tokenize.cpp: djgpp: Fixed compiler warnings/errors when
compiling with DJGPP
2008-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testdivision.cpp, tokenize.cpp: tokenize: handle simple typedefs
2008-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, Makefile, main.cpp,
testcharvar.cpp, testrunner.cbproj: char variable usage: Added
checking
2008-08-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: testmemleak: improved the
checking of loops
2008-08-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testdivision.cpp: testdivision: changed the error
message. hopefully it is clearer
2008-08-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: testrunner.cbproj: added 'testbufferoverrun',
'testconstructors' and 'testdivision'
2008-08-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: CheckMemoryLeak: Improved
the reducing of "if.."
2008-08-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak.cpp: testmemleak: replace switch
blocks with if blocks
2008-08-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testconstructors.cpp: testing: added 'testconstructors'
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testdivision.cpp: test: Added 'testdivision.cpp'
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testmemleak.cpp, tests.cpp: test: Added 'testdivision'
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp, tests.cpp: test: Minor polishing
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun.cpp: test: Added the last buffer overrun tests
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, testbufferoverrun.cpp, tests.cpp: testing: Added
'testbufferoverrun'
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* MiniCppUnit.cpp, MiniCppUnit.h: minicppunit: removed compiler
warnings about characters
2008-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Updated the handling of
'case' and 'default' a little
2008-08-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test_cppcheck.cbproj, testrunner.cbproj: testing: created new
testproject for codegear that uses the minicppunit framework
2008-08-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, MiniCppUnit.cpp, MiniCppUnit.h,
testmemleak.cpp, tests.cpp: testing: Moved tests from tests.cpp to
testmemleak.cpp (forwhile, switch)
2008-08-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, MiniCppUnit.cpp, testmemleak.cpp, tests.cpp:
testing: Added tests TestMemoryleak::ifelse
2008-08-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, MiniCppUnit.cpp, MiniCppUnit.h, TestsRunner.cpp,
testmemleak.cpp: testing: Started using the MiniCppUnit framework
2008-08-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CommonCheck.cpp: refactoring: made
compilation work in codegear
2008-08-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Fixed a bug: Don't erase "{
}", replace with ";"
2008-08-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Added testcase
(false positive from linux kernel)
2008-08-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CommonCheck.cpp, tests.cpp: CheckMemoryLeak:
Small improvements
2008-08-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: By default skip
class memory leaks because there may be various types of garbage
collectors
2008-08-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Minor updates
2008-08-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Made a test case
work
2008-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Simplified and updated the
code reducers
2008-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Refactoring
further
2008-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Added simple
checking
2008-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Got rid of false positives
2008-08-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CommonCheck.cpp, CommonCheck.h:
CheckMemoryLeak: Refactoring the check
2008-08-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Made the checking
a lot simpler when "--all" is not given. This should give few false
positives
2008-08-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: tests: Added memory leak test that gives a false
positive
2008-08-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Added testcase
and made it work (assume that foo.add(p) deallocates p. Todo to
trace into foo.add)
2008-08-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: better handling
of switch blocks
2008-08-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Handle one more
test case (return pointer)
2008-08-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Calling unknown
function => assume that it's deallocating variable
2008-08-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: memory leak: improved the
checking. subfunctions are parsed. redundant conditions are skipped
2008-08-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, tokenize.cpp: cleanup: removed spaces
2008-08-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: buffer overruns: added tests
and improved the checking
2008-08-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: tests: cleanup and reordering
2008-08-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: tests: Refactoring
2008-08-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* todo.txt: todo: added todo to simplify the token list further
2008-08-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: tests: minor updates of the tests
2008-08-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Improved the checking
(handling loops)
2008-08-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: updated the
checking so that all execution paths are tried
2008-08-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, test_cppcheck.cbproj: cg2007: Added CodeGear 2007
project files
2008-08-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: Refactoring: Renamed class allocfunc to
AllocFunc
2008-08-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp: CommonCheck: Refactoring. Renamed
clGlobalFunction to GlobalFunction
2008-05-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: tests: updated the tests
2008-05-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h: CheckOther: Removed unused functions
2008-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: testing: Added test for mismatching allocation and
deallocation
2008-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: CheckBufferOverrun: Refactoring and made
the checking smarter
2008-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: CheckBufferOverrun: Fixed minor bug that
resultet in false positives
2008-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Made the checking weaker to
reduce false positives
2008-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Handling
functions that allocate memory
2008-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, tests.cpp: CheckStructMemberUsage: Added more
cases
2008-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp, tests.cpp:
CheckStructMemberUsage: Check for unused struct members
2008-05-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp: CheckGlobalFunctionUsage: Optimised
2008-05-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Removed false
positives
2008-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, tests.cpp: CheckConstantFunctionParameters:
Updated the check to handle all std::.. struct and class
2008-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp: Added check: passing
constant function parameter by value instead of by reference/pointer
2008-05-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak.cpp: Minor improvements to
avoid false positives
2008-04-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Checking memset/memcpy/memmove. Removed false
positives
2008-04-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: A few tweaks to make it
report less false positives against the linux kernel
2008-04-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Small fixes and
updates
2008-04-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Bug fix so that checking
stops when the variable goes out of scope
2008-04-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* bugs_that_cppcheck_finds.txt: Removed 'bugs_that_cppcheck_finds'.
It will be listed in the wiki instead
2008-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckMemoryLeak.cpp, tests.cpp: Minor updates.
Added todo. Refactoring
2008-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: Improved the
checking (tests.cpp:memleak_in_function:test16)
2008-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: CheckMemoryLeak: fixed bug that
caused false positives
2008-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: Added testcase to look at later
2008-04-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tokenize.cpp, tokenize.h: Checking for memory
leaks. Changed the handling of comments about deleting
2008-04-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp, tokenize.cpp, tokenize.h: Make it
possible to disable memory leak checking for a variable. Usable to
avoid false positives
2008-04-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Added comments
2008-04-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: Refactoring CheckMemoryLeak to
detect more leaks
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: CheckBufferOverrun: Removed a
false positive
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* bugs_that_cppcheck_finds.txt, todo.txt: Minor updates in text
files.
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* TestTok.cpp: TestTok: Deleted deprecated file
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Added more allocation and
deallocation functions
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: Removed Statements
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Statements.cpp, Statements.h: Statements: Removed this bastard
from cppcheck
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Minor updates to [232] and [233]. Use __GNUC__ define
instead of CYGWIN
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Addon to [232]
2008-04-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp, CheckMemoryLeak.cpp, CommonCheck.cpp,
CommonCheck.h, main.cpp, tokenize.cpp: Fixing bug 1935006 - Compile
problems on cygwin
2008-04-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: Re-adding CheckMemoryLeak
functionality. More work is still needed.
2008-04-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: Further improvements of
CheckMemoryLeak. Still not working as good as a few revisions ago.
2008-04-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* bufferoverrun.txt: Removed old file 'bufferoverrun.txt'
2008-04-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: Refactoring CheckMemoryLeak
2008-04-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckMemoryLeak.cpp,
CommonCheck.cpp: Match: Added matching for []
2008-04-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: Rewriting CheckMemoryLeak (Just
Started)
2008-04-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckOther.cpp, tests.cpp: Minor updates.
Removed some false positives when checking variable scope
2008-03-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CommonCheck.cpp, Statements.cpp, tests.cpp: Fixed
minor bugs
2008-03-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp, CommonCheck.h, Statements.cpp, main.cpp,
tests.cpp, tokenize.cpp: Added style checks to check for unused
global functions
2008-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CommonCheck.cpp, CommonCheck.h, main.cpp,
tests.cpp: Refactoring: Removed 'HasErrors'. Better usage of
'Match'. Hid the 'FunctionList'
2008-03-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, CommonCheck.cpp,
CommonCheck.h, Statements.cpp, main.cpp, tests.cpp, tokenize.cpp,
tokenize.h: Refactoring: Replaced deprecated "match" with the new
"Match"
2008-03-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: CheckBufferOverrun: Improved
checking of arrays declared like this: "type * var [ num ]"
2008-03-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: test cppcheck: All tests work
2008-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Fixed bugs in 'CheckBufferOverrun.cpp'
2008-03-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: To compile with borland, 'algorithm' was
needed
2008-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: Refactoring of
'CheckBufferOverrun.cpp'
2008-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Refactoring 'CheckBufferOverrun'. Added
'Match1'.
2008-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Refactoring the 'CheckBufferOverrun'
2008-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: Removed checking of 'dynamic
data' it's impossible to determine if it's false or true positives
without deeper analysis.
2008-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Made the checking for buffer overruns more
generic
2008-03-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CommonCheck.cpp, CommonCheck.h: Combined
'findfunction' and 'FindFunction'. Updated "CheckBufferOverrun"
(checking for-loops).
2008-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CommonCheck.cpp, CommonCheck.h, tests.cpp:
Buffer overrun in function parameter
2008-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, tokenize.cpp: Refactoring
(Replace '->' with '.', use matching function when possible)
2008-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckHeaders.cpp, CheckOther.cpp,
CommonCheck.cpp, CommonCheck.h, tests.cpp: Reverted 205:207
2008-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckOther.cpp, CommonCheck.cpp,
CommonCheck.h: Refactoring
2008-03-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckHeaders.cpp, CheckOther.cpp,
CommonCheck.cpp, CommonCheck.h, tests.cpp: Refactoring: Use
'setindentlevel'
2008-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CommonCheck.cpp, CommonCheck.h:
Refactoring: Added helper function 'setindentlevel'
2008-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CommonCheck.cpp, CommonCheck.h: Minor
refactoring
2008-03-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckOther.cpp,
tokenize.cpp, tokenize.h: In the checks, use const pointers
2008-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: Handling pointers in
'CheckBufferOverrun_StructVariable'
2008-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, tests.cpp: Check for buffer overruns for
struct members (only numeric)
2008-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checknpp.bat: Deleted obsolete file 'checknpp.bat'
2008-03-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, tests.cpp: 'CheckUnsignedDivision' -> more errors.
'CheckVariableScope' -> removed false errors.
2008-03-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: Rewrote the checking for "unsigned division" =>
less false positives
2008-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Fixed two bugs * don't hang if we can't find the ending of a string. * don't divide by zero
2008-03-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, Statements.cpp, main.cpp: Updates here and there
to make it more accurate
2008-03-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Better checking of class declarations.
2008-03-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp, tokenize.cpp: Updated tokenizer. To handle "#define
f1(a,b) (a+b)" better
2008-03-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, tests.cpp: Checking variable scope
2008-03-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* todo.txt: Updated 'todo.txt'
2008-03-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, main.cpp, tests.cpp: bug fixes for
'CheckVariableScope'
2008-03-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, CommonCheck.cpp, CommonCheck.h,
tests.cpp, tokenize.cpp, tokenize.h: Added test
'CheckVariableScope'. Increased constness.
2008-03-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp, todo.txt: added 'todo.txt'
2008-03-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkproj.bat: Removed 'checkproj.bat' (Deprecated)
2008-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* readme.txt: updated command syntax example
2008-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tests.cpp: allow duplicate error messages in tests
2008-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CommonCheck.cpp, CommonCheck.h, main.cpp: Removed
false positives and also duplicate error messages.
2008-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: comments
2008-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Removed false positives
2008-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: sort the files before checking to make the results
comparable
2008-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Fixed bug (Dereferencing NULL)
2008-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: removed false positives for CheckUnsignedDivision
2008-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: recursive checking when compiling with gcc
2008-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: recursive checking when compiled by borland c++
2008-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp, tests.cpp, tokenize.cpp:
CheckUnsignedDivision: Added check. Not very accurate yet.
2008-02-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, tests.cpp: CheckClass: Improved constructor
checking
2008-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Statements.cpp: Refactoring: Removed unneeded parameter
PointerType
2008-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckHeaders.cpp, main.cpp, tokenize.cpp: Made it
compilable by borland c++
2008-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, tests.cpp: ClassChecking: Only enable the 'no
constructor' warning if '--style' is given
2008-02-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, tests.cpp: Class Checking: No constructor
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, tests.cpp: checking multiple files
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* bugs_that_cppcheck_finds.txt: Added list of bugs that cppcheck
find (incomplete)
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, tests.cpp: Unit Testing: Checking for
mismatching allocation / deallocation
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Statements.cpp, tests.cpp: Unit Testing: Testing the statement
list
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Statements.cpp, Statements.h, internaltesting/testassign.cpp,
internaltesting/testassign.out, internaltesting/testdecl.cpp,
internaltesting/testdecl.out, internaltesting/testif.cpp,
internaltesting/testif.out, internaltesting/testloop.cpp,
internaltesting/testloop.out, internaltesting/testnew.cpp,
internaltesting/testnew.out, internaltesting/testuse.cpp,
internaltesting/testuse.out, tests.cpp: Unit Testing: Moved the
'internaltesting'
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting.bat: Cleanup old testing
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testdangerousfunc1/err.msg,
testdangerousfunc1/testdangerousfunc1.cpp, testdelete1/err.msg,
testdelete1/testdelete1.cpp, testh1/err.msg, testh1/testh1.cpp,
testh1/testh1.h, testh2/emptyh.h, testh2/err.msg,
testh2/testh2.cpp, testh2/testh2.h, testh3/err.msg, testh3/h1.h,
testh3/h2.h, testh3/testh3.cpp, testh5/err.msg, testh5/testh5.cpp,
testh5/testh5.h, testh6/err.msg, testh6/testh6.cpp,
testh6/testh6.h, testmemset1/err.msg, testmemset1/testmemset1.cpp,
teststdfunc1/err.msg, teststdfunc1/teststdfunc1.cpp: Cleanup old
tests
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testcond1/err.msg, testcond1/testcond1.cpp, testfunc2/err.msg,
testfunc2/testfunc2.cpp, testfunc3/err.msg,
testfunc3/testfunc3.cpp, testfunc4/err.msg,
testfunc4/testfunc4.cpp, testfunc6/err.msg,
testfunc6/testfunc6.cpp, testif1/err.msg, testif1/testif1.cpp,
testif2/err.msg, testif2/testif2.cpp, testif3/err.msg,
testif3/testif3.cpp, testif4/err.msg, testif4/testif4.cpp,
testif5/err.msg, testif5/testif5.cpp, updateall.bat: Cleanup of old
testcases
2008-02-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemleak1/err.msg, testmemleak1/testmemleak1.cpp,
testmemleak2/err.msg, testmemleak2/testmemleak2.cpp,
testmemleak3/err.msg, testmemleak3/testmemleak3.cpp,
testmemleak4/err.msg, testmemleak4/testmemleak4.cpp, tests.cpp: Unit
Testing: Moving memleak checks
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, main.cpp, testmemcheck1/err.msg,
testmemcheck1/testmemcheck1.cpp, testmemcheck2/err.msg,
testmemcheck2/testmemcheck2.cpp, testmemcheck3/err.msg,
testmemcheck3/testmemcheck3.cpp, testmemcheck4/err.msg,
testmemcheck4/testmemcheck4.cpp, testmemcheck5/err.msg,
testmemcheck5/testmemcheck5.cpp, tests.cpp: Unit Testing: Moved
'testmemcheck'
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testUninitVar1/err.msg, testUninitVar1/testUninitVar1.cpp,
tests.cpp: Unit Testing: Moved 'testUninitVar1'
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testclass1/err.msg, testclass1/testclass1.cpp,
testclass10/err.msg, testclass10/testclass10.cpp,
testclass12/err.msg, testclass12/testclass12.cpp,
testclass13/err.msg, testclass13/testclass13.cpp,
testclass14/err.msg, testclass14/testclass14.cpp,
testclass2/err.msg, testclass2/testclass2.cpp, testclass4/err.msg,
testclass4/testclass4.cpp, testclass4/testclass4.h,
testclass7/err.msg, testclass7/testclass7.cpp, testclass8/err.msg,
testclass8/testclass8.cpp, tests.cpp: Unit Testing: Moved
constructor and operator= checks
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.bpf, cppcheck.bpr, tok.bpf, tok.bpr: Borland C++: Removed
project files as gcc will from now on by the primary development
environment
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testall, tests.cpp: Testing: Removed old file 'testall'. Testing
will be handled by 'tests.cpp'.
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun1/err.msg,
testbufferoverrun1/testbufferoverrun1.cpp,
testbufferoverrun2/err.msg,
testbufferoverrun2/testbufferoverrun2.cpp,
testbufferoverrun3/err.msg,
testbufferoverrun3/testbufferoverrun3.cpp,
testbufferoverrun4/err.msg,
testbufferoverrun4/testbufferoverrun4.cpp,
testbufferoverrun5/err.msg,
testbufferoverrun5/testbufferoverrun5.cpp,
testbufferoverrun6/err.msg,
testbufferoverrun6/testbufferoverrun6.cpp,
testbufferoverrun7/err.msg,
testbufferoverrun7/testbufferoverrun7.cpp, tests.cpp: Unit Testing:
All tests for buffer overruns were moved
2008-02-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp, CommonCheck.h, Makefile, main.cpp, tests.cpp,
tokenize.cpp, tokenize.h: Unit Testing: Start
2008-01-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testUninitVar1/err.msg,
testUninitVar1/testUninitVar1.cpp, testclass13/err.msg: Better
checking of uninitialized variables
2008-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checknpp.bat: check npp472 instead of npp41
2008-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, cppcheck.bpr, main.cpp, testUninitVar1/err.msg,
testUninitVar1/testUninitVar1.cpp, testbufferoverrun1/warn.msg,
testbufferoverrun2/warn.msg, testbufferoverrun3/warn.msg,
testbufferoverrun4/warn.msg, testbufferoverrun5/warn.msg,
testbufferoverrun6/warn.msg, testclass1/warn.msg,
testclass10/warn.msg, testclass12/warn.msg, testclass13/err.msg,
testclass13/warn.msg, testclass2/warn.msg, testclass4/warn.msg,
testclass7/warn.msg, testclass8/warn.msg, testcond1/warn.msg,
testdangerousfunc1/warn.msg, testdelete1/warn.msg,
testfunc2/warn.msg, testfunc3/warn.msg, testfunc4/warn.msg,
testfunc6/warn.msg, testh1/warn.msg, testh2/warn.msg,
testh3/warn.msg, testh5/warn.msg, testif1/warn.msg,
testif2/warn.msg, testif3/warn.msg, testif4/warn.msg,
testif5/warn.msg, testmemcheck1/warn.msg, testmemcheck2/warn.msg,
testmemcheck3/warn.msg, testmemcheck4/warn.msg,
testmemcheck5/warn.msg, testmemleak4/warn.msg,
testmemset1/warn.msg, teststdfunc1/warn.msg, updateall.bat: check
for uninitialized variables - less generic to increase accuracy
2008-01-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testall: Added 'testall' which is a simple bash-script that runs
all tests
2007-10-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, testclass14/err.msg, testclass14/testclass14.cpp:
remove false positives (uninitialized class members)
2007-10-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: CheckClass: Treating all "std::*" as initialized.
2007-10-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenizer: removed some preprocessing => less false
positives
2007-10-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, testcasebreak/err.msg, testcasebreak/testcasebreak.cpp,
testcasebreak/warn.msg, testfunc5/err.msg, testfunc5/testfunc5.cpp,
testfunc5/warn.msg: disabled checks that generates false positives
2007-08-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckMemoryLeak.cpp, CheckOther.cpp,
testcasebreak/warn.msg, testmemleak3/err.msg, testmemleak4/err.msg,
testmemleak4/testmemleak4.cpp, testmemleak4/warn.msg: Removing false
positives
2007-07-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, Statements.cpp, testmemleak2/err.msg,
testmemleak2/testmemleak2.cpp, testmemleak3/err.msg,
testmemleak3/testmemleak3.cpp: Added 2 checks for memory leaks
2007-07-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Don't allow search pattern in the filename yet. There's
no way to solve it through ANSI C.
2007-07-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkproj.bat, readme.txt: Minor update: Updated the readme and
checkproj files.
2007-07-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testcond1/err.msg: TestCond1: Updated test. It didn't have a
"err.msg" file
2007-07-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testcasebreak/err.msg, testcasebreak/testcasebreak.cpp,
testcasebreak/warn.msg: Added test: "testcasebreak"
2007-07-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Searching multiple files
2007-07-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, testcond1/testcond1.cpp,
testcond1/warn.msg: Added checks: * CheckIfAssignment: assignment in condition * CheckCaseWithoutBreak: case but no break/return
2007-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckMemoryLeak.cpp, Statements.cpp,
checknpp.bat, main.cpp, testclass13/warn.msg: Command line options:
Added "--all" and "--style", removed "-w"
2007-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* bufferoverrun.txt: bufferoverrun.txt: Added file that contains
thoughts and ideas concerning buffer overruns.
2007-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CommonCheck.cpp, CommonCheck.h,
Statements.cpp: For the highest accuracy, don't warn for all memory
leaks unless the "-w" is given
2007-07-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: Always give a warning when 'memset' is used upon a
class
2007-07-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, main.cpp, testbufferoverrun7/err.msg,
testbufferoverrun7/testbufferoverrun7.cpp: Improved the buffer
overrun checks. Results that are not 100% certain must be enabled
through the "-w".
2007-07-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tokenize.cpp: Minor modifications to make it compile on
linux
2007-07-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CommonCheck.cpp, main.cpp,
testbufferoverrun7/err.msg,
testbufferoverrun7/testbufferoverrun7.cpp: Buffer overruns, using
string with unknown length
2007-07-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, Makefile: Minor updates to make it easier to
port to Linux
2007-07-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckClass.cpp, CheckHeaders.cpp,
CheckMemoryLeak.cpp, CheckOther.cpp, Makefile, cppcheck.bpr,
main.cpp, testclass13/err.msg, testclass13/testclass13.cpp,
testclass13/warn.msg, tokenize.cpp: Minor updates to make it
portable to Linux.
2007-06-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Checking if included headers are
needed
2007-06-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: CheckOther: minor bug fix
2007-06-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, testmemleak1/err.msg,
testmemleak1/testmemleak1.cpp: CheckMemoryLeak: Detect memory leaks
for class members
2007-06-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: CheckOther: Improved the check that checks 'if
(condition) var=true;'
2007-06-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Improved the check that checks
included headers.
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Updated message
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenize: generate tokens on '#define'
(CheckIncludedHeaders)
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun1/warn.msg, testbufferoverrun2/warn.msg,
testbufferoverrun3/warn.msg, testbufferoverrun4/warn.msg,
testbufferoverrun5/warn.msg, testbufferoverrun6/warn.msg,
testdangerousfunc1/warn.msg, testdelete1/err.msg,
testfunc2/warn.msg, testfunc3/warn.msg, testfunc4/warn.msg,
testfunc5/err.msg, testfunc5/warn.msg, testfunc6/err.msg,
testfunc6/warn.msg, testh1/warn.msg, testh3/err.msg, testh3/h1.h,
testh3/h2.h, testh3/testh3.cpp, testh3/warn.msg, testif1/err.msg,
testif1/warn.msg, testif2/err.msg, testif2/warn.msg,
testif3/warn.msg, testif4/warn.msg, testmemcheck1/warn.msg,
testmemcheck2/warn.msg, testmemcheck3/warn.msg,
testmemcheck4/warn.msg, testmemcheck5/warn.msg,
testmemset1/warn.msg, updateall.bat: Updated the tests
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checknpp.bat: Checking Notepad++: Enabled all warnings
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testif5/err.msg, testif5/testif5.cpp,
testif5/warn.msg: CheckOther: Added check. 'if (condition) var=true;
else var=false;' => 'var = (condition);'
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Limit the number of warnings about
'implementation in header'
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Main: More checks are only done when the '-w' flag is
given.
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Bug fix
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Bug fix
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckOther.cpp: Modified comments
2007-06-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp, testh6/err.msg, testh6/testh6.cpp,
testh6/testh6.h: CheckHeaders: Check if all included headers are
needed
2007-06-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, testfunc6/err.msg, testfunc6/testfunc6.cpp: Added
check: "if (condition) var=true;" can be written as
"var|=(condition);"
2007-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: Buffer overrun: also check the 'memcopy'
parameters.
2007-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp, testfunc5/err.msg,
testfunc5/testfunc5.cpp: Added check: suspicious usage of strtok
2007-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp, testfunc4/err.msg,
testfunc4/testfunc4.cpp: Invalid Function Parameter: Check calls to
strtol and strtoul
2007-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp: CheckHeaders: Minor update
2007-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: CheckBufferOverrun: Optimized and improved
the checking
2007-06-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h, main.cpp: Added check: 'IsAlpha'
2007-06-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testh1/warn.msg, testh2/warn.msg: Tests: Updated the tests.
Checking for unneeded includes
2007-06-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp, main.cpp: CheckHeaders: Check for unnecessary
headers. some fixes.
2007-06-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp: CheckMemoryLeak: Bug fix.
2007-06-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: bug fixes. Handling typedefs.
2007-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testif2/err.msg: Test: Updated 'testif2' which is testing the
'a=b; if (a!=b)'
2007-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testif4/err.msg, testif4/testif4.cpp: Test: Test that 'a=b; if
(a==b)' don't generate false positives
2007-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testif3/err.msg, testif3/testif3.cpp: Test: Test that 'a=b; if
(a==b)' is detected
2007-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: Fixed the 'typedef' simplifications. Added
token '#' upon preprocessor instructions.
2007-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testif2/err.msg, testif2/testif2.cpp: Test: Test that 'a=b; if
(a==b)' is detected
2007-06-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp: CheckOther: Added check for 'a=b; if (a==b)'
2007-05-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp, tokenize.h: tokenizer: made the 'SizeOfType' public.
bug fix in the tokenizer (strings longer than 1000 characters).
2007-05-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: CheckBufferOverrun.cpp: Bug fixes
2007-05-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* TestTok.cpp, main.cpp, tok.bpr: minor updates
2007-05-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp, tokenize.h: Tokenize: Replace 'typedef'
2007-05-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* TestTok.cpp, internaltesting/testdecl.out, main.cpp, tok.bpr,
tokenize.cpp, tokenize.h: Tokenize: Simplify declarations
2007-05-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenize: Replace '*(var+num)' with 'var[num]'
2007-05-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenize: improved the preprocessing of
'sizeof(type)'
2007-05-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* TestTok.cpp, tok.bpf, tok.bpr: tok: Added a program that tests the
tokenizer.
2007-05-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: Tokenize: Improved the tokenizer. Calculations are
done in the tokenizer. sizeof is replaced with numbers.
2007-05-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun6/err.msg,
testbufferoverrun6/testbufferoverrun6.cpp: Test: Added a buffer
overrun test that contains a calculation that points at an illegal
index
2007-05-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: Updated because the program has been split up
into several files.
2007-05-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp: CheckBufferOverrun: Improved checking for
types other than char
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.bpr: cppcheck: added checkothers to the project
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckOther.cpp, CheckOther.h: CheckOther: Added files. This will
contain checks that don't fit in the other checking files.
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tokenize.cpp: tokenize: moved 'IsName' to commoncheck. Replace
'sizeof(type)' with size.
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Main: Moved 'IsName' and 'IsNumber' to commoncheck.
Moved remaining checks to checkother and checkbufferoverrun.
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Statements.cpp: Statements: Moved 'IsName' from main to
commoncheck
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp: CheckClass: Moved 'IsName' from main to
commoncheck
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp, CommonCheck.h: CommonCheck: Moved 'IsName' and
'IsNumber' from main.cpp
2007-05-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h: CheckBufferOverrun:
Added 'CheckDangerousFunctions'
2007-05-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CommonCheck.cpp: CommonCheck: Common functions used while checking
for mistakes
2007-05-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckMemoryLeak.cpp, CheckMemoryLeak.h: CheckMemoryLeak: Added
files (Check for memory leaks)
2007-05-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckHeaders.cpp, CheckHeaders.h: CheckHeaders: Added files (Check
for mistakes in headers or related to headers)
2007-05-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckClass.cpp, CheckClass.h, CommonCheck.h, Statements.cpp,
Statements.h, cppcheck.bpr, main.cpp, tokenize.cpp, tokenize.h:
CheckClass; Added files (Check for mistakes related to classes)
2007-05-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* CheckBufferOverrun.cpp, CheckBufferOverrun.h: CheckBufferOverrun;
Added files
2007-05-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.bpr, main.cpp, tokenize.cpp, tokenize.h: tokenize: Added
files
2007-05-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* readme.txt: readme: minor updates
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun5/err.msg,
testbufferoverrun5/testbufferoverrun5.cpp: Tests: Added
'TestBufferOverrun5'
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Replacing constants to make it easier to find bugs.
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun1/err.msg: Test: minor update to
TestBufferOverrun1
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun2/testbufferoverrun2.cpp: Test: Updated
'TestBufferOverrun2'. Bufferusage out of bounds.
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun4/err.msg,
testbufferoverrun4/testbufferoverrun4.cpp: Test: Added
'TestBufferOverrun4'
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, testclass1/warn.msg, testclass10/warn.msg,
testclass2/warn.msg, testclass4/warn.msg, testclass7/warn.msg,
testclass8/warn.msg, testdelete1/warn.msg, testh1/warn.msg,
testh2/warn.msg, testh5/warn.msg: Testing: Added warning messages.
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: CheckBufferOverrun: buffer overrun inside loop. The
tokenizer will convert hexadecimal values to decimal values, which
simplifies the checking.
2007-05-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun1/testbufferoverrun1.cpp,
testbufferoverrun2/err.msg,
testbufferoverrun2/testbufferoverrun2.cpp,
testbufferoverrun3/err.msg,
testbufferoverrun3/testbufferoverrun3.cpp: Test: Buffer overrun
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testbufferoverrun1/err.msg,
testbufferoverrun1/testbufferoverrun1.cpp: Test: Added
'TestBufferOverrun1'
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: CheckBufferOverrun: Array index out of bounds.
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, testdangerousfunc1/err.msg,
testdangerousfunc1/testdangerousfunc1.cpp: Buffer Overrun: Using
dangerous functions
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building statement list: SWITCH - BREAK
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck4/err.msg, testmemcheck4/testmemcheck4.cpp,
testmemcheck5/err.msg, testmemcheck5/testmemcheck5.cpp: Test:
Updated 'testmemcheck4' and 'testmemcheck5' (continue/break)
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: CheckMemoryLeak: Handling continue/break
2007-05-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: WarningIf: Bug fix
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting/testloop.out: Test: Updated "testloop"
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Build Statement List: LOOP, ENDLOOP
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : 60 1 main.cpp
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: CheckMemleak: Don't handle conditional allocation at the
moment.
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck4/err.msg, testmemcheck4/testmemcheck4.err: Test: File
with wrong name was renamed
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck4/out.err, testmemcheck4/testmemcheck4.err: Test: File
with wrong name was renamed
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting/testif.out, internaltesting/testloop.out: Tests:
Updated the internaltesting tests "testif" and "testloop"
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Build Statement List: ENDIF
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp, testmemcheck4/out.err, testmemcheck4/testmemcheck4.cpp:
Tests: Added "testmemcheck4", memory leak from a strdup
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building Statement List: MALLOC. Bug fix (strdup is a
malloc)
2007-05-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting.bat, internaltesting/testloop.cpp,
internaltesting/testloop.out, main.cpp: Building Statement List:
CONTINUE, BREAK
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting.bat, internaltesting/testif.cpp,
internaltesting/testif.out, main.cpp: internaltesting: IF
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* teststdfunc1/err.msg, teststdfunc1/warn.msg: Tests: Modified the
test 'teststdfunc1'. Warnings has been deactivated.
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* teststdfunc1/err.msg, teststdfunc1/teststdfunc1.cpp,
warnstdfunc1/err.msg, warnstdfunc1/teststdfunc1.cpp: Tests: Renamed
'warnstdfunc1' to 'teststdfunc1'
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testclass12/err.msg, testclass12/testclass12.cpp,
testclass12/warn.msg, warnclass12/err.msg,
warnclass12/testclass12.cpp: Testing: Renamed 'warnclass12' to
'testclass12'
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: * Building Statement list: MALLOC, FREE * Deactivated some warnings to make the output more interesting
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testclass12/err.msg, testclass12/testclass12.cpp,
teststdfunc1/err.msg, teststdfunc1/teststdfunc1.cpp,
warnclass12/err.msg, warnclass12/testclass12.cpp,
warnstdfunc1/err.msg, warnstdfunc1/teststdfunc1.cpp: Testing:
Deactivating some warnings
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building Statement List: IF, ELSE, ELSEIF
2007-05-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck3/err.msg, testmemcheck3/testmemcheck3.cpp: Testing:
memcheck3 - new and delete (no error)
2007-05-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting/testdecl.cpp, internaltesting/testdecl.out:
Testing: "return" and "delete" are not variable declarations
2007-05-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck2/err.msg, testmemcheck2/testmemcheck2.cpp: Added test
for memory checking
2007-05-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Improving the accuracy of the memory leaks detecting
2007-05-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck1/err.msg: Test: updated the error message output by
memcheck1
2007-05-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting/testassign.out, internaltesting/testdecl.out,
internaltesting/testnew.out, internaltesting/testuse.out: Test:
Internal testing, updated the messages
2007-05-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Bug fixing
2007-05-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Checking for memory leaks.. only active in debug mode
since it's so inaccurate
2007-05-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building statement list; USE
2007-05-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting.bat, internaltesting/testuse.cpp,
internaltesting/testuse.out: Test: Internal testing, added "testuse"
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* readme.txt: readme: minor update
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Check for memory leaks
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testmemcheck1/err.msg, testmemcheck1/testmemcheck1.cpp: Test:
Added "TestMemCheck1" -> mismatching allocation and deallocation
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Test: Added command line option "--debug" that is used
by the tests "internaltesting"
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* internaltesting.bat, internaltesting/testassign.cpp,
internaltesting/testassign.out, internaltesting/testdecl.cpp,
internaltesting/testdecl.out, internaltesting/testnew.cpp,
internaltesting/testnew.out: Test: Internal testing
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building statement list; bug fixes
2007-05-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Updated the Makefile. The name of this project has
changed from 'codecheck' to 'cppcheck'
2007-05-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building statement list; NEW, NEWARRAY, DELETE,
DELETEARRAY
2007-05-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Building statement list; OBRACE, EBRACE, DECL
2007-05-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Class (unused private functions): Reactivated and
improved this check
2007-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Minor updates. Make sure there is no doublechecking.
Don't perform certain checks upon c-files.
2007-05-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checknpp.bat: Updated script that checks notepad++
2007-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testdelete1/err.msg, testh1/err.msg: updated error reports for
test cases
2007-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Check 'operator=()'
2007-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testclass12/err.msg, testclass12/testclass12.cpp: Added testcase:
bad 'operator=()'
2007-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* readme.txt: Added readme.txt
2007-05-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Minor updates: * Refactoring. * don't warn for 'memset(this,..'
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checknpp.bat: Added script that checks the notepad++ source code
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Updated warning message. Shorter and simpler
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* main.cpp: Inactivated tests that are not accurate
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testh1/err.msg, testh2/err.msg: Updated test cases
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testclass5/err.msg, testclass5/testclass5.cpp,
testclass6/err.msg, testclass6/testclass6.cpp,
testclass6/testclass6.h, testclass9/err.msg,
testclass9/testclass9.cpp: Removed test cases that are not currently
wanted.
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkcode.bpf, checkcode.bpr, cppcheck.bpf, cppcheck.bpr: Files
needed to build with Borland C++ Builder
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* runall.bat: Removed testing batch file. Must work on this.
2007-05-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* checkcode.bpf, checkcode.bpr: Added Borland C++ Builder project
files
2007-05-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Added files from local repository.
|