Daniel Marjamäki
f82207cce6
Merge pull request #2722 from skirridsystems/main
...
Add GitHub styling to the PDF manual too
2020-07-24 07:48:12 +02:00
Georgy Komarov
dc1faa71ed
misra.py: Fix false negatives in string concatenation for rule 20.7
...
This will fix Trac#9633
2020-07-24 07:15:40 +03:00
Daniel Marjamäki
53e11ead8f
Fix Cppcheck warning: unused variable in test
2020-07-23 19:50:41 +02:00
Daniel Marjamäki
a11a0e79e4
Fixed Cppcheck internal warning
2020-07-23 18:54:40 +02:00
Simon Large
9ef216b0c5
Update .gitignore
...
Ignore generated manual files
2020-07-23 15:39:54 +01:00
Simon Large
60362ce8cd
Add styling to PDF manual
...
This uses the xelatex engine and a few style settings to make the PDF manual look more like the HTML manual.
2020-07-23 15:39:23 +01:00
Daniel Marjamäki
1965f2cc9f
help: update warning menu screenshot
2020-07-23 16:30:10 +02:00
Daniel Marjamäki
f11a089141
help/manual: update explanations about severities
2020-07-23 16:09:24 +02:00
Ken-Patrick LEHRMANN
a923115710
Add missing operators <<= and >>=
...
This fixes issues (at least false positives) in code using them.
For instance:
```
unsigned compute(unsigned long long a) {
unsigned num = 0;
while (a > 0xFFFFFFFF) {
a >>= 32;
num += 32;
}
if (a > 0xFFFF) {
a >>= 16;
num += 16;
}
if (a > 0xFF) {
num += 8;
}
return num;
}
```
would give false positive:
```
cppcheck --enable=style sl3.cpp
Checking sl3.cpp ...
sl3.cpp:11:11: style: Condition 'a>0xFF' is always false [knownConditionTrueFalse]
if (a > 0xFF) {
^
sl3.cpp:3:14: note: Assuming that condition 'a>0xFFFFFFFF' is not redundant
while (a > 0xFFFFFFFF) {
^
sl3.cpp:11:11: note: Condition 'a>0xFF' is always false
if (a > 0xFF) {
^
```
2020-07-23 14:36:34 +02:00
Daniel Marjamäki
b20128722d
win_installer: Add Qt5Help.dll
2020-07-23 11:34:22 +02:00
Daniel Marjamäki
682a6d1c02
Fixed #9017 (Simple classes without side effects not reported as unused)
2020-07-23 11:10:08 +02:00
Daniel Marjamäki
25ad22c6af
astyle formatting
...
[ci skip]
2020-07-23 10:09:06 +02:00
Daniel Marjamäki
df99d8aa0a
Merge pull request #2719 from pfultz2/fp-unreachable-alias
...
Fix issue 9807: False positive: ValueFlow in unreachable code, || lhs is true
2020-07-23 09:52:54 +02:00
Daniel Marjamäki
f4a6f8ad07
Merge pull request #2720 from pfultz2/crash-type-scope
...
Fix crash when typeScope is missing
2020-07-23 09:31:59 +02:00
Daniel Marjamäki
5a99b81ed7
GUI: online-help (severities)
2020-07-22 14:31:17 +02:00
Daniel Marjamäki
2fd44fa464
Merge pull request #2710 from pfultz2/fp-invalid-container-pointer
...
Fix issue 9796: False positive: lifetime, pointer item is not deallocated by pop_back
2020-07-22 09:24:54 +02:00
Daniel Marjamäki
a03fcc0f53
win_installer: try to fix build error
2020-07-22 09:16:15 +02:00
Daniel Marjamäki
f39a94660d
Merge pull request #2699 from pfultz2/condition-in-expr
...
Fix issue 9578: false negative: (style) Condition '...' is always false
2020-07-22 09:07:12 +02:00
Daniel Marjamäki
ca3fae9afa
Merge pull request #2718 from jubnzv/misra-fix-20-7-macro-expansion-fp
...
misra.py: Fix false positives for rule 20.7
2020-07-22 09:03:11 +02:00
Paul
0def5d7a9a
Reduce variable scope
2020-07-21 19:09:58 -05:00
Daniel Marjamäki
5455da8fa6
GUI: Updated help (index)
2020-07-21 21:58:51 +02:00
Paul
3480aba35b
Fix crash when typeScope is missing
2020-07-21 14:09:46 -05:00
Paul
abeea7b32b
Merge branch 'main' into fp-invalid-container-pointer
2020-07-21 13:31:13 -05:00
Paul
dbb410cdae
Merge branch 'main' into condition-in-expr
2020-07-21 13:28:59 -05:00
Paul
5bc5c96c8f
Fix cppcheck error
2020-07-21 13:20:39 -05:00
Paul
38e1b57bc9
Use refs
2020-07-21 13:18:45 -05:00
Georgy Komarov
fc504ed6c3
misra.py: Fix false positives on macro expansion
...
This will fix Trac#9634
2020-07-21 20:03:04 +03:00
Daniel Marjamäki
ca1fcfa8bc
GUI: Only suppress warnings by hash during bug hunting
2020-07-21 17:45:56 +02:00
Daniel Marjamäki
aad455e1ea
Fix compile error
2020-07-21 17:43:12 +02:00
Daniel Marjamäki
2b968202bb
win_installer: include online-help in msi
2020-07-21 17:38:50 +02:00
Daniel Marjamäki
453cd93fae
update warning hash calculation
2020-07-21 16:00:09 +02:00
Daniel Marjamäki
83be203d44
Merge pull request #2715 from rikardfalkeborn/refactor-use-visitastnodes-more
...
Refactor use visitastnodes more
2020-07-21 15:26:58 +02:00
Daniel Marjamäki
26c849b732
Merge pull request #2716 from rikardfalkeborn/refactor-use-simple-loop-instead-of-stack-in-checktype
...
Refactor: Simplify checkSignConversion
2020-07-21 15:26:03 +02:00
Daniel Marjamäki
4ab04db53c
Rename 'cppcheckID' to 'hash'
2020-07-21 11:27:03 +02:00
Daniel Marjamäki
ae0ad17152
GUI: quick walk through in online-help
2020-07-21 10:30:50 +02:00
Daniel Marjamäki
a68d9e75ef
GUI: In ProjectFileDialog; updated choice of vs configurations
2020-07-20 22:06:07 +02:00
Daniel Marjamäki
5fca5830c5
astyle formatting
...
[ci skip]
2020-07-20 21:41:46 +02:00
Daniel Marjamäki
d7f9dc25cd
Quick fix for Travis problems. Skip building gui online-help.
2020-07-20 19:19:37 +02:00
Daniel Marjamäki
1c39bed5b0
buildhelp.bat: remove old script
2020-07-20 19:18:06 +02:00
Daniel Marjamäki
bdb7db0fd5
Travis: Try to install qt help
2020-07-20 19:04:47 +02:00
Daniel Marjamäki
65742b9779
gui.pro: build help
2020-07-20 12:43:08 +02:00
Daniel Marjamäki
89ba12d9b3
Remove old build.bat file
2020-07-20 12:04:51 +02:00
Daniel Marjamäki
09241030c3
GUI: Add online help
2020-07-20 11:59:28 +02:00
Rikard Falkeborn
7973fd843c
Refactor: Simplify checkSignConversion
...
The loop only checks astoperand1 and astoperand2. Simplify the condition
to loop over these instead of using a stack. Also, add a testcase for
when astoperand2 is negative.
2020-07-20 11:16:56 +02:00
Rikard Falkeborn
ed36856451
Refactor: Use visitAstNodes in checkuninitvar
2020-07-20 11:03:52 +02:00
Rikard Falkeborn
9ced26a7a1
Refactor: Use visitAstNodes in checkcondition
2020-07-20 11:03:29 +02:00
Rikard Falkeborn
82fe6193fa
Refactor: Use visitAstNodes in checkstring
2020-07-20 10:25:00 +02:00
Rikard Falkeborn
2ace2b006a
Refactor: Use visitAstNodes in checkleakautovar
2020-07-20 10:25:00 +02:00
Daniel Marjamäki
b812d48397
Merge pull request #2713 from whoopsmith/no_duplicate_misra_violtions
...
misra.py: Squelch duplicate violation messages
2020-07-20 08:00:01 +02:00
Paul
e2a81a382f
Track reading aliases during valueflow forward
2020-07-19 23:25:35 -05:00