chrchr-github
e6576dd949
Fix #11708 internal error: converting '1f' to integer failed ( #5066 )
...
* Fix #11708 "internal error: converting '1f' to integer failed - not an integer" with width in printf format string
* Format
2023-05-18 23:26:56 +02:00
chrchr-github
518b6a27ab
Fix #11719 Handle lambdas in global scope ( #5065 )
...
* Fix #11719 Handle lambdas in global scope
* Capture list
2023-05-17 14:37:56 +02:00
chrchr-github
1999bc68bf
Set values when assigning init list ( #5057 )
...
* Assign values to pointers with C++11 init
* Handle assigning empty init list
* Fix #10596 FN uninitdata with value initialization
* Fix test
* Set values when assigning init list
2023-05-14 17:01:07 +02:00
Daniel Marjamäki
d475591665
Tokenizer: simplification of typedefs in _Generic arguments ( #5059 )
2023-05-14 15:14:52 +02:00
Daniel Marjamäki
793d6aef01
Tokenizer: do not report unknownMacro for alignas ( #5058 )
2023-05-14 15:14:41 +02:00
chrchr-github
cf4d59a835
Partial fix for #9602 False positives with function pointers ( #5042 )
...
* Partial fix for #9602 False positives with function pointers
* Add test for #9222
2023-05-14 12:16:17 +02:00
chrchr-github
096d3a78b0
Fix #10596 FN uninitdata with value initialization ( #5056 )
...
* Assign values to pointers with C++11 init
* Handle assigning empty init list
* Fix #10596 FN uninitdata with value initialization
* Fix test
2023-05-13 22:07:09 +02:00
chrchr-github
6a8c70c1b9
Fix #10976 false negative: autoVariables [inconclusive] (regression) ( #5044 )
...
* Fix #10976 false negative: autoVariables [inconclusive] (regression)
* Use link()
* Use linkAt()
* Skip over [][]
2023-05-13 14:11:01 +02:00
chrchr-github
dc7550ed9f
Assign values to pointers with C++11 init ( #5055 )
...
* Assign values to pointers with C++11 init
* Handle assigning empty init list
2023-05-13 14:09:47 +02:00
Daniel Marjamäki
2b74a2084e
Fixed #11716 (simplifyTypedef: function with const should be handled better) ( #5054 )
2023-05-12 20:39:08 +02:00
Stefan Hagen
2abd9dcf79
nit: removed stray semicolon in checkother.cpp ( #5053 )
...
This fixed nit removes a compiler warning.
2023-05-12 11:27:21 +02:00
chrchr-github
2a0143c8e1
Fix #10358 Bad ValueFlow depending on initialization ( #5052 )
2023-05-12 07:19:44 +02:00
chrchr-github
f5b1537ed1
Fix internalASTError with decltype() ( #5047 )
2023-05-11 14:35:23 +02:00
Daniel Marjamäki
e1d5d9988d
Fixed #11715 (Add --showtime=file-total option to show checking time of each file) ( #5049 )
2023-05-11 14:04:22 +02:00
Daniel Marjamäki
d5951fa2b9
Tokenizer: Add attribute for exported symbols ( #5043 )
2023-05-09 20:15:00 +02:00
Daniel Marjamäki
d24a1342a6
Fixed #11711 (Tokenizer: varId not set properly in function call) ( #5041 )
2023-05-08 12:11:30 +02:00
Daniel Marjamäki
527b6fbb45
Revert "ValueFlow: Set max iterations to 2 in normal analysis ( #4951 )"
...
This reverts commit 02a3d03a05
.
2023-05-07 18:28:01 +02:00
Paul Fultz II
02a3d03a05
ValueFlow: Set max iterations to 2 in normal analysis ( #4951 )
2023-05-07 11:03:27 +02:00
chrchr-github
580eb8eb83
Remove dead URL ( #5039 )
2023-05-06 08:14:43 +02:00
Paul Fultz II
543b4adc8a
Fix 11682: False positive: constParameterReference with overloaded method ( #5038 )
...
* Fix 11682: False positive: constParameterReference with overloaded method
* Format
2023-05-05 11:27:15 +02:00
Oliver Stöneberg
a77ab9759c
Suppressions: some cleanups ( #4980 )
...
* Suppressions: merged `isSuppressedLocal()` into `isSuppressed()`
* avoid some unnecessary copies when adding suppressions
* TestSuppressions: improved readability of multiple line string literals
* supressions.h: got rid of unnecessary copy and assignment operators for `Suppressions::Suppression` - fixes `performance-move-const-arg` clang-tidy warning
* TestSuppressions: cleaned up a variable construction
2023-05-04 18:15:18 +02:00
chrchr-github
d3bdb84650
Fix #11701 performance regression (hang) in 2.11dev ( #5032 )
2023-05-04 11:59:03 +02:00
chrchr-github
100d17df4f
Fix #11681 FN constParameterPointer with std::vector ( #5000 )
2023-05-04 11:10:58 +02:00
Oliver Stöneberg
e6ae312a0b
moved more code into `HAVE_RULES` ( #4956 )
...
* moved more code into `HAVE_RULES`
* properly enable all internal and rules code in selfcheck
* updated TODOs in selfcheck
* testrunner.vcxproj.filters: updated
* added missing `Debug-PCRE` and `Release-PCRE` configurations for `testrunner` Visual Studio project
* cppcheck.cpp: fixed `useStlAlgorithm` selfcheck warning
2023-05-04 10:54:19 +02:00
Paul Fultz II
9770dd7e0b
Fix 11673: FP uninitvar when capturing by reference ( #4984 )
...
* Fix 11673: FP uninitvar when capturing by reference
* Format
* Fix tests
2023-05-04 06:03:47 +02:00
Oliver Stöneberg
b5ce2c708b
SingleExecutor: process markup files after code when scanning projects ( #4972 )
...
* SingleExecutor: added TODOs
* test `SingleExecutor` with files and project
* SingleExecutor: process markup files after code when scanning project
* TestSingleExecutor: generate scoped files before calling executor
* CI-unixish.yml: added `--output-on-failure` to CTest call
* helpers.cpp: improved error reporting in `~ScopedFile()`
* use unique filenames in executor tests to avoid collisions
* fixed `functionStatic` selfcheck warnings
2023-05-03 17:32:28 +02:00
chrchr-github
f04d47ac61
Fix remaining example from #11131 ( #5029 )
2023-05-03 16:24:56 +02:00
Daniel Marjamäki
46b9d4ec61
Fixed #11700 (Markup support is broken, unused function false positives) ( #5025 )
2023-05-03 11:19:13 +02:00
chrchr-github
ec2a2ad41f
Partial fix for #11131 FN variableScope with const member functions ( #5027 )
2023-05-03 10:02:16 +02:00
chrchr-github
7e0ddd3669
Set function pointer for ::f ( #5028 )
2023-05-02 22:53:21 +02:00
Oliver Stöneberg
05d72b806d
Token: added non-cost overload for `templateSimplifierPointers()` ( #4760 )
2023-05-02 15:44:16 +02:00
Paul Fultz II
9d21379c7d
Add non-const overloads for next(), previous(), and link() ( #5002 )
...
* Add non-const overloads for next(), previous(), and link()
* Format
* Add CPPCHECKLIB
2023-05-02 06:55:31 +02:00
Paul Fultz II
86757de4d5
ValueFlow: Add pass runner to check timeout and report time ( #4952 )
2023-04-30 20:39:05 +02:00
chrchr-github
269850a62d
Fix autoNoType with multiple auto variables ( #5012 )
2023-04-30 20:36:27 +02:00
Oliver Stöneberg
2bc4ee925e
parse files with `simplecpp` without providing a stream ( #4955 )
2023-04-30 20:16:51 +02:00
Oliver Stöneberg
8cf6a22ea3
cleaned up includes based on `include-what-you-use` ( #5021 )
2023-04-30 07:33:19 +02:00
chrchr-github
51cba8162b
Fix #11489 Crash in TemplateSimplifier ( #5020 )
...
* Add test for #11489
* Fix #11489 Crash in TemplateSimplifier
2023-04-30 07:33:04 +02:00
chrchr-github
043f4fa621
Fix #11693 performance regression (hang) in 2.11dev ( #5022 )
2023-04-29 15:17:55 +02:00
Oliver Stöneberg
b3016f01a1
fixed some CLion inspection warnings ( #4688 )
...
* fixed some CLion "Unused global declaration" warnings
* fixed some CLion "Not implemented function" warnings
* fixed some CLion "Unused struct" warnings
* added TODO
* removed unused parameter reported by CLion
* fixed some CLion "Unused macro" warnings
* fixed some CLion "Condition is always true" warnings and a CLion "The value is never used" warning
2023-04-28 16:02:41 +02:00
Oliver Stöneberg
c249cc9098
avoid redundant `simplecpp::Output::type` switch blocks ( #5005 )
...
* avoid redundant `simplecpp::Output::type` switch blocks
* fixed `useStlAlgorithm` warnings
2023-04-28 15:37:59 +02:00
Oliver Stöneberg
1cd1cbabe9
avoid some unnecessary code execution ( #4962 )
2023-04-28 12:42:51 +02:00
Oliver Stöneberg
5658319976
CppCheck: removed changing of `debugwarnings` for non-accepted files ( #4965 )
2023-04-28 12:30:01 +02:00
Oliver Stöneberg
0924e6616e
made some member functions static ( #4966 )
2023-04-28 12:29:40 +02:00
chrchr-github
2b92351b49
Fix #11679 FP knownArgument with known return value ( #5007 )
...
* Fix #11679 FP knownArgument with known return value
* Add test for #11051
2023-04-28 08:27:48 +02:00
chrchr-github
5b4c95f229
Fix varid assigned to function ( #4991 ) ( #5013 )
2023-04-28 08:27:07 +02:00
chrchr-github
9c184462ad
Fix #10720 Hang/Crash with big variadic template ( #5018 )
...
* Fix #10720 Hang/Crash with big variadic template
* Fix CI
2023-04-28 08:26:35 +02:00
chrchr-github
77717f73fd
Fix #11418 Crash in TemplateSimplifier::expandTemplate() ( #5019 )
2023-04-28 08:25:52 +02:00
chrchr-github
96cf2b34fd
Optimize createSymbolDatabaseExprIds() ( #5017 )
2023-04-27 22:06:06 +02:00
chrchr-github
4fdcb0c784
Fix #11649 Hang in setTokenValue() on huge array ( #5010 )
...
* Fix #11649 Hang in setTokenValue() on huge array
* Fix function call
2023-04-25 21:02:49 +02:00
chrchr-github
023e79b6c2
Fix #11459 uninitvar false positive ( #5011 )
...
* Fix #11459 uninitvar false positive
* Format
2023-04-25 21:01:44 +02:00