Commit Graph

27204 Commits

Author SHA1 Message Date
Oliver Stöneberg cb915085ea
use C++17 when building with Visual Studio in CMake - fixes GUI CI builds ()
* use C++17 when building with Visual Studio in CMake

* printInfo.cmake: print more variables

* CMakeLists.txt: set C++ standard earlier
2023-03-31 10:37:53 +02:00
chrchr-github 89ec148199
Partial fix for Library::getFunctionName: SIGSEGV ()
* Partial fix for  Library::getFunctionName: SIGSEGV

* Fix test

* simpleMatch()
2023-03-30 07:25:26 +02:00
Oliver Stöneberg 28ed9d30e0
readme.md: rewrote `Packages` section [skip ci] () 2023-03-30 07:24:58 +02:00
chrchr-github 4d72e0f5b5
Fix FP constVariable when returning by reference () 2023-03-30 07:24:36 +02:00
chrchr-github 3836367d95
Fix FN passedByValue with array access, range-based for ()
* Fix FN passedByValue with array access, range-based for

* Format

* Fix/suppress new warnings
2023-03-30 07:24:23 +02:00
chrchr-github fc24f760cc
Fix Infinite loop in ReverseTraversal () 2023-03-30 07:22:41 +02:00
chrchr-github 13e12da08f
Fix findGarbageCode(): SIGSEGV () 2023-03-28 11:24:52 +02:00
chrchr-github 7bf6b359b1
Fix false negative: functionConst () 2023-03-27 17:54:19 +02:00
chrchr-github 5791561a45
Partial fix for checkLibraryFunction warning for smartpointer in container () 2023-03-27 17:50:33 +02:00
Daniel Marjamäki c79d859f8b Tokenizer::simplifyTypedef: new faster simplification.
It performs a more "lightweight" simplification of global typedefs that are not shadowed.

If a "heavy" simplification is needed that will be executed afterwards.
2023-03-26 17:16:45 +02:00
Oliver Stöneberg 03214c6c08
testnullpointer.cpp: restored TODO assert in `nullpointerStdStream` () 2023-03-26 16:18:44 +02:00
Oliver Stöneberg f002429a6b
testrunner: fail if `TODO_ASSERT_*` succeeds ()
* testrunner: fail if TODO succeeds

* testnullpointer.cpp: removed TODO from assert in `nullpointerStdStream`
2023-03-26 15:13:07 +02:00
Paul Fultz II 7231d1cece
Update the isVariableChanged to correctly check the const bit () 2023-03-26 15:12:49 +02:00
orbitcowboy 38f9c81dd2 Added regression test to : FN nullptr 2023-03-24 20:29:33 +01:00
Paul Fultz II fd8a7b9537
ValueFlow: Evaluate if statement for function returns () 2023-03-24 13:31:26 +01:00
Paul Fultz II cd21f55cdf
Fix 11630 and 11620 lifetime issues () 2023-03-24 13:29:43 +01:00
Paul Fultz II e1a4a18528
Fix 11609: False positive: Returning iterator to local container 'k' that will be invalid when returning where 'k' is an iterator. () 2023-03-21 23:18:01 +01:00
Paul Fultz II d4b030694b
Move some checks for variable changed from constVariable check to isVariableChanged () 2023-03-21 18:16:40 +01:00
chrchr-github 0d02c0a1a7
Fix FP uninitvar with array passed to function () 2023-03-20 19:54:31 +01:00
chrchr-github 6316479782
Fix FP unusedStructMember with std::map () 2023-03-20 19:40:57 +01:00
chrchr-github 3d965b5b81
Fix FP functionConst with call to static function () 2023-03-20 19:29:49 +01:00
chrchr-github 19eef2c584
Partial fix for false negative: constParameter () 2023-03-19 17:43:23 +01:00
chrchr-github 3b61ecd973
Fix FP missingOverride () 2023-03-18 16:39:45 +01:00
chrchr-github 716fcc5e96
Fix crash in valueFlowForwardLifetime() () 2023-03-18 14:53:49 +01:00
chrchr-github 319baf8d0f
No WRONG_DATA for function pointer with unknown return type () 2023-03-18 14:52:29 +01:00
orbitcowboy b2263d9475 Added regression test: (style) Condition 'i==0||i==1' is always true (for loop index) 2023-03-17 19:06:17 +01:00
chrchr-github 3ccd0505cd
Enable and mitigate readability-simplify-boolean-expr () 2023-03-17 13:51:55 +01:00
Oliver Stöneberg 173c84375c
disabled codecov comments and actions for now () 2023-03-16 19:24:33 +01:00
Paul Fultz II 8324caf8b9
Fix 11557: FP derefInvalidIteratorRedundantCheck in and/or condition () 2023-03-16 15:00:27 +01:00
Daniel Marjamäki a4d2178f3c Fix ctuuninitvar false positive for struct that is partly initialized 2023-03-13 20:55:11 +01:00
chrchr-github 322a1a5e8c
Partial fix for internalAstError regressions (iscpp11init) () 2023-03-13 16:30:27 +01:00
Daniel Marjamäki 5721dca019 bump simplecpp 2023-03-13 16:11:46 +01:00
chrchr-github a6c5bb28c1
Fix crash in LoopAnalyzer () 2023-03-13 15:44:34 +01:00
Oliver Stöneberg 0b8af4fff7
some minor `QtCharts` usage cleanups () 2023-03-13 15:44:00 +01:00
Paul Fultz II 61e8b84578
Fix 11610: false negative: knownConditionTrueFalse with address of variable () 2023-03-12 19:57:11 +01:00
chrchr-github a75392307f
Partial fix for : no DacaWrongData for function pointer () 2023-03-12 15:49:37 +01:00
chrchr-github e2b2fc2684
Fix Debug warning: autoNoType with lambda () 2023-03-12 15:48:20 +01:00
chrchr-github 980c92d19d
Partial fix for internalAstError regressions (iscpp11init) () 2023-03-12 15:39:02 +01:00
Oliver Stöneberg e2f38fdaf3
removed `experimental` and `safe` from `Certainty` () 2023-03-12 14:15:29 +01:00
chrchr-github 9ed21fb917
Fix FN functionConst with comparison as argument () 2023-03-12 11:39:18 +01:00
chrchr-github 809430631f
Partial fix for FP constStatement with typedef and unknown macro () 2023-03-12 11:13:58 +01:00
chrchr-github 7881b99547
Fix debug: SymbolDatabase couldn't resolve all user defined types () 2023-03-10 19:04:46 +01:00
Oliver Stöneberg 8148095fe5
cmdlineparser.cpp: fixed compilation () 2023-03-10 00:39:29 +01:00
Daniel Marjamäki f4b32d74c7 dump: update <TemplateSimplifier> info in dump file 2023-03-09 21:58:33 +01:00
Oliver Stöneberg 901b2ab838
Preprocessor: provide suppressions separately from settings () 2023-03-09 20:15:53 +01:00
Oliver Stöneberg 2c05281a31
ThreadExecutor: refactoring in preparation of sharing code () 2023-03-09 20:08:39 +01:00
chrchr-github a5b0fd38fd
Fix FP functionConst with ternary () 2023-03-09 20:07:44 +01:00
chrchr-github 3db05cf3a4
Pass settings to isVariableChanged() () 2023-03-09 20:05:44 +01:00
chrchr-github 49c5a5aabd
Fix "debug: Executable scope 'x' with unknown function" () 2023-03-09 20:04:55 +01:00
Oliver Stöneberg 30131837b5
refs - deprecated `--enable=information` implicitly enabling `missingInclude` () 2023-03-09 20:04:20 +01:00