Daniel Marjamäki
81e6d67d2c
Debug Makefile
2018-12-08 08:23:50 +01:00
Daniel Marjamäki
5b897a7a4a
1.86: Release Makefile
2018-12-08 08:18:21 +01:00
Daniel Marjamäki
5e527bdd08
Update version
2018-12-08 08:17:05 +01:00
Daniel Marjamäki
8be0ab3360
Updated AUTHORS
2018-12-08 08:02:28 +01:00
Daniel Marjamäki
d9db20db96
Update copyright year
2018-12-08 07:53:28 +01:00
Daniel Marjamäki
7ad93fa1a2
lupdate
2018-12-08 07:51:03 +01:00
Daniel Marjamäki
b949f7eb0e
createrelease: when self-checking, skip shadowFunction and useStlAlgorithm
2018-12-08 07:49:57 +01:00
Daniel Marjamäki
2c5a31594c
fix argument name
2018-12-08 07:37:27 +01:00
Paul Fultz II
6953dddfa6
Fix issue 8884: Regression: False positive: Variable 'f' is reassigned a value before the old one has been used ( #1513 )
2018-12-08 07:33:51 +01:00
Igor Zhukov
0ab378b9cf
fix typo ( #1512 )
2018-12-08 07:03:28 +01:00
Sebastian
860b7dc76f
qt.cfg: Add macro Q_DECLARE_PRIVATE ( #1510 )
...
Reference:
https://wiki.qt.io/D-Pointer#Q_DECLARE_PRIVATE_and_Q_DECLARE_PUBLIC
2018-12-07 20:03:50 +01:00
Sebastian
fe6f4193fd
donate-cpu.py: Fix Python3 compatibility problem with f.read().decode() ( #1507 )
...
With Python3 f.read() directly returns a string object that has no
decode() function. As a workaround AttributeError exceptions during
calling the decode() function are ignored and the data read from the file
is left unchanged.
With Python2 calling the decode() function is necessary and still done.
2018-12-07 06:51:07 +01:00
amai2012
a68086c959
Implement hexadecimal float conversion in MathLib::toDoubleNumber ind… ( #1506 )
...
* Implement hexadecimal float conversion in MathLib::toDoubleNumber independent of C99/C++17
* Refactor MathLib::isFloatHex and cure some false results
2018-12-06 22:16:16 +01:00
IOBYTE
a90c56ad76
Fixed #8880 (Regression: syntax error for valid C++ template code) ( #1509 )
2018-12-06 21:47:48 +01:00
Sebastian
a4dd423a18
donate-cpu.py: Align multi line output in diff (trac #8868 ) ( #1508 )
...
This is a very simple/stupid fix that just inserts 5 spaces for every line except the first.
2018-12-06 17:36:22 +01:00
orbitcowboy
7bf5cc1ce7
windows.cfg: Added support for _finite() and _finitef().
2018-12-06 08:54:21 +01:00
Daniel Marjamäki
895a374c9a
donate-cpu: fix exception in hasInclude when file is link
2018-12-05 10:25:35 +01:00
Daniel Marjamäki
01d0199ecf
Fix testrunner
2018-12-04 19:56:22 +01:00
Daniel Marjamäki
bd0a935d8a
Tokenizer: Improved handling of compiler extensions that use @ (see https://sourceforge.net/p/cppcheck/discussion/general/thread/8f618cb0a3 )
2018-12-04 19:33:39 +01:00
Daniel Marjamäki
88c61e8d1e
ValueFlow: Avoid FP when lambda is used
2018-12-04 18:54:26 +01:00
Daniel Marjamäki
452318dfa4
Remove FwdAnalysis::reads: It is not finished
2018-12-04 18:46:23 +01:00
Daniel Marjamäki
f5a94ed300
ValueFlow: Fix FP when lambda is called
2018-12-04 18:46:00 +01:00
Daniel Marjamäki
7c47283e6d
Fix testrunner
2018-12-04 17:17:07 +01:00
Daniel Marjamäki
49413b7d4c
Tokenizer: Add simplifyAt to handle some nonstandard code with @
2018-12-04 16:52:41 +01:00
Daniel Marjamäki
7ef8f60b07
Fixed #8817 (Change wording in performance/functionStatic)
2018-12-03 18:30:54 +01:00
Daniel Marjamäki
0249e408d3
donate-cpu: Try to fix exception in hasInclude
2018-12-03 18:15:07 +01:00
Daniel Marjamäki
768eb79653
donate-cpu: Try to fix UnicodeEncodeError in sendAll
2018-12-03 09:02:05 +01:00
Daniel Marjamäki
c03c262058
Preparing FwdAnalysis for ValueFlow usage where we want to fetch read locations
2018-12-02 18:29:16 +01:00
Daniel Marjamäki
d8fada6702
Refactoring FwdAnalysis
2018-12-02 17:42:18 +01:00
Daniel Marjamäki
6734571f06
Refactoring: Create FwdAnalysis class in astutils
2018-12-02 17:01:52 +01:00
Igor
61878c5e11
Add null pointer check to fix SEGFAULT ( #1499 )
...
* Add null pointer check to fix segfault
* Add first test case to reproduce problem
2018-12-02 14:36:01 +01:00
Paul Fultz II
3e1b34dd8f
Fix FPs and crashes with byDerefCopy ( #1503 )
...
* Fix FP when inserting a range into a container
* Formatting
* Fix crash
2018-12-02 14:31:31 +01:00
Daniel Marjamäki
ba564076db
Fixed #7907 (FN: redundant assignment inside switchcase, overwritten by assignment outside of switch)
2018-12-02 14:04:59 +01:00
Daniel Marjamäki
88785dda02
Refactoring the redundant assignments check
2018-12-02 11:41:27 +01:00
Daniel Marjamäki
8087cfed5d
Fixed #8627 (Tokenizer::setVarIdPass2: constructor parameter)
2018-12-02 09:28:05 +01:00
Daniel Marjamäki
f0826ed9d9
donate-cpu-server: restore handling of crashes. do not recheck.
2018-12-02 07:10:23 +01:00
Daniel Marjamäki
14bcdd1c3a
donate-cpu: fix syntax error
2018-12-01 20:05:50 +01:00
Daniel Marjamäki
e5010da931
Donate CPU: include wxwidgets/qt if we detect that the project uses those headers
2018-12-01 20:02:13 +01:00
Daniel Marjamäki
ccbaad32f9
Fix merge conflicts
2018-12-01 19:14:43 +01:00
Paul Fultz II
b841b818d2
Fix 8872: Crash in LifetimeStore when there is no scope for variable
...
This fixes crash in:
```cpp
struct edit_line_paste_over {
void operator()(agi::Context *c) override {
paste_lines(c, true, [&](AssDialogue *new_line) -> AssDialogue * {
AssDialogue *ret = paste_over(c->parent, pasteOverOptions, new_line, static_cast<AssDialogue*>(&*pos));
return ret;
});
}
};
```
2018-12-01 19:11:26 +01:00
Paul Fultz II
67dd822910
Fix FP in lifetime anlaysis: Dont decay std array
...
This will fix FP with:
```cpp
std::array<char, 1> f() {
std::array<char, 1> x;
return x;
}
```
2018-12-01 19:09:19 +01:00
Paul Fultz II
229c45e7f8
Fix issue 8865: FP with dangling lifetime
...
This fixes:
```cpp
void f(uint32_t event, unsigned long op, const xen_ulong_t *args)
{
struct __packed {
uint32_t op;
uint32_t args[6];
} d;
uint32_t *a = d.args;
}
```
2018-12-01 19:07:46 +01:00
Daniel Marjamäki
2c803a1ead
Revert " #6514 Try to support hexadecimal floating numbers in MathLib::toDoubleNumber"
...
This reverts commit a73decf7e4
.
2018-12-01 19:01:51 +01:00
Daniel Marjamäki
501f99ac5a
Revert "astyle formatting"
...
This reverts commit 9289c9a283
.
2018-12-01 19:01:40 +01:00
Daniel Marjamäki
3fadefe318
Revert "Add missing include"
...
This reverts commit a2b6eaf311
.
2018-12-01 19:00:42 +01:00
Daniel Marjamäki
96929c53c0
Fixed #8873 (Add syntaxError when there is no RHS for +-)
2018-12-01 17:29:41 +01:00
Daniel Marjamäki
ffef44af4c
donate-cpu: better detection of crashes
2018-12-01 13:25:48 +01:00
Daniel Marjamäki
9289c9a283
astyle formatting
2018-12-01 13:17:16 +01:00
Daniel Marjamäki
f42648fe22
Fixed #8114 (false positive: Address of local auto-variable assigned to a function parameter.)
2018-12-01 10:11:02 +01:00
amai2012
a2b6eaf311
Add missing include
2018-12-01 01:36:04 +01:00