Commit Graph

18584 Commits

Author SHA1 Message Date
Paul Fultz II fc135e1087 Check if member function modifies the variable (#1350)
* Check if member function modifies the variable

* Check for const pointer

* Add test for const condition

* Add more null checking

* Add todo assert for FN
2018-08-27 11:09:09 +02:00
Simon Martin acb0b9f07e Ticket #8679: Add support for C++11 thread_local and GCC's (among others) __thread extension. (#1351) 2018-08-26 19:46:36 +02:00
Daniel Marjamäki bbebdf0ab4 Donate CPU: Updated the 'latest.html' report 2018-08-26 16:57:09 +02:00
Daniel Marjamäki 629639f6ae Donate CPU: Updated scripts 2018-08-26 16:47:20 +02:00
Daniel Marjamäki 6ec6f70f2d Donate CPU: Concentrate on the diff 2018-08-26 16:23:42 +02:00
Daniel Marjamäki b2f0bd315d Donate CPU: Diff results in the client 2018-08-26 13:42:01 +02:00
Daniel Marjamäki 08837b2232 Donate CPU: Use CRLF in HTTP responses 2018-08-26 11:17:18 +02:00
Daniel Marjamäki ad0ebd8f1a astyle formatting
[ci skip]
2018-08-25 21:32:52 +02:00
Daniel Marjamäki c65d79c0ec Donate CPU: Speedup server. Keep packageIndex in package-index.txt 2018-08-25 20:58:31 +02:00
Daniel Marjamäki 829a373416 Python cleanup 2018-08-25 20:43:20 +02:00
Daniel Marjamäki c7880e2c8d Donate CPU: Made client python3 compatible 2018-08-25 20:34:43 +02:00
Daniel Marjamäki 5da38e33c0 Donate CPU: Make server more robust 2018-08-25 20:00:04 +02:00
Daniel Marjamäki 7049249460 Donate CPU: Tried to make scripts more robust 2018-08-25 18:38:51 +02:00
Paul Fultz II a5f4c5d0eb Improve message for same expressions (#1349)
* Improve message for same expressions

* Update message
2018-08-25 14:25:31 +02:00
Daniel Marjamäki 18343d1122 Donate CPU: get package 2018-08-25 11:08:41 +02:00
Daniel Marjamäki 4ece582bed Donate CPU: looking at packages 2018-08-25 10:59:49 +02:00
Daniel Marjamäki 33b93cdd3a Donate CPU: send data in chunks 2018-08-25 10:25:05 +02:00
Daniel Marjamäki 48f5792ca1 Donate CPU: Speedup the latest report 2018-08-25 09:06:15 +02:00
Daniel Marjamäki efe40950c9 Donate CPU: Added report http://cppcheck.osuosl.org:8000/latest.html 2018-08-25 08:49:40 +02:00
Daniel Marjamäki 045ef9a715 Donate CPU: More updates. Run both 1.84 and head. 2018-08-24 21:07:50 +02:00
Daniel Marjamäki 28d1682a54 Donate CPU: Some fixes in donate-cpu.py 2018-08-24 18:49:11 +02:00
Daniel Marjamäki 921a1a0396 Donate CPU: add a short sleep after git clone/pull 2018-08-24 18:21:16 +02:00
Sebastian dce3281766
addons/cert.py: Add MSC30-C: Do not use rand() (#1348)
Add function isStandardFunction() that checks if the given function is a standard function.
Only when this function returns true for the currently checked rand() tokens it is reported as a violation.
Tests added for C and C++.
2018-08-24 15:05:50 +02:00
Daniel Marjamäki a460ba422f Donate CPU: Fix unresolved reference 2018-08-24 14:46:59 +02:00
Daniel Marjamäki 138e53aeb9 Donate CPU: Updated client script. Try to catch compile errors better. 2018-08-24 13:20:38 +02:00
Daniel Marjamäki 8c88f65fb2 Donate CPU: minor updates in server 2018-08-24 13:04:25 +02:00
Daniel Marjamäki b049203be7 Donate CPU: updated server 2018-08-23 22:13:53 +02:00
Daniel Marjamäki 1e919e696b Donate CPU: show info on server 2018-08-23 21:54:46 +02:00
Daniel Marjamäki 40364561e3 Donate CPU: minor tweaks in client 2018-08-23 21:47:43 +02:00
Daniel Marjamäki 8459380a79 Donate CPU: Added simple client/server scripts 2018-08-23 21:31:02 +02:00
Daniel Marjamäki 4d0262fd0a astyle formatting
[ci skip]
2018-08-23 06:06:58 +02:00
Sebastian 799601c02e
.codacy.yml: Ignore *.cpp files in addons/test too 2018-08-22 08:46:21 +02:00
Kamil Dudka 0ca6ab1a71 ErrorLogger: add {cwe} (#1341) 2018-08-21 13:58:19 +02:00
Paul Fultz II f79849f6ba Diagnose mismatching iterators used together in operators (#1343)
* Diagnose mismatching iterators used together in operators

* Fix fp getting iterator expression in function call
2018-08-21 06:34:30 +02:00
Daniel Marjamäki 866d198756 Fixed #8697 (noreturn output stream) 2018-08-21 06:32:33 +02:00
Daniel Marjamäki a30941d885 Refactoring; Use range for loops 2018-08-19 17:27:41 +02:00
Daniel Marjamäki 4d78a2e178 Fixed #7790 (Wrong order of <location> XML-elements for error duplInheritedMember) 2018-08-19 14:13:58 +02:00
Daniel Marjamäki 19af19b15e doxygen: Updated documentation shown on main page 2018-08-18 17:36:40 +02:00
Daniel Marjamäki 67e9a9cb25 naming convention conformance 2018-08-18 15:52:18 +02:00
Daniel Marjamäki 212af76367 astyle formatting
[ci skip]
2018-08-18 15:45:50 +02:00
Daniel Marjamäki 5ebfa035aa Updated variable names according to naming convention 2018-08-18 15:45:42 +02:00
Paul Fultz II fd49112196 Avoid duplicates in the error path (#1346) 2018-08-18 07:32:30 +02:00
Daniel Marjamäki 43233e72b2 Fixed #8691 (False negative for uselessAssignmentArg) 2018-08-17 19:56:36 +02:00
Daniel Marjamäki e442bc47b1 astyle formatting
[ci skip]
2018-08-17 19:55:21 +02:00
Kevin Kendzia c5ebf26f9f cppcheck.cpp: fix suppression of syntaxError (#1333)
* cppcheck.cpp: fix suppression of syntaxError

* test: add supression test for syntaxError while file read
2018-08-17 10:05:25 +02:00
Paul Fultz II bbf876256c Add error path to more diagnostics that rely on isSameExpression (#1342) 2018-08-17 09:25:07 +02:00
Sylvain Joubert 13617375df missingOverride: False positive with cv-ref mismatch (#1340) 2018-08-17 08:42:22 +02:00
Konrad Grochowski 0e70c8a916 Added '-' and '.' to allowed chars in error ids for suppressions. (#1338)
Those chars are used for example in misra.py
2018-08-17 08:20:39 +02:00
Sebastian 78715d3eff
bsd.cfg: Add arc4random* functions with tests. (#1344)
Reference: https://www.freebsd.org/cgi/man.cgi?query=arc4random
2018-08-16 21:37:40 +02:00
tam do thanh f33c09f1a7 Allow syntax "typedef 'typename' unsigned 'typename' (functon_name)()" (#1334)
* Allow syntax "typedef 'typename' unsigned 'typename' (functon_name)()" for some old libraries
https://trac.cppcheck.net/ticket/7792

* Unnecessary check of "tokOffset", match-function already checks if it is null

* add testcase ticket #7792: simplifyTypedef124
2018-08-16 14:30:28 +02:00