Commit Graph

12730 Commits

Author SHA1 Message Date
chrchr-github 831aec5c03
Fix FN constVariablePointer with stream () 2023-11-16 17:43:20 +01:00
Daniel Marjamäki e01e090f1c
Fix (no preprocessorErrorDirective and code generated in case of unconditional #error) () 2023-11-16 17:25:49 +01:00
Oliver Stöneberg e47300016b
moved some classes/structs into anonymous namespace () 2023-11-16 15:49:41 +01:00
chrchr-github 63a5a71c20
Fix FN memleak with outparam allocation () 2023-11-16 15:23:40 +01:00
chrchr-github 85172fe770
Don't report checkLibraryUseIgnore for known functions (refs ) () 2023-11-16 14:23:08 +01:00
Oliver Stöneberg 682901ac2a
fixed - added file name to ValueFlow `--debug` output () 2023-11-16 13:44:50 +01:00
chrchr-github 3bd5a034bd
Fix false positive: unassignedVariable () 2023-11-14 12:26:12 +01:00
chrchr-github 6ac804d209
Fix extern "C++" scope generates valueflow () 2023-11-14 10:02:41 +01:00
Oliver Stöneberg 9228b9e424
iwyu.yml: fixed `include-what-you-use` job / cleaned up includes ()
As usual when the base clang version of a distro changes iwyu ends up
broken and needs additional packages and/or options applied to work
again.
2023-11-13 23:24:06 +01:00
orbitcowboy b201ef26cb
windows.cfg: Improved configuration of OpenThread() () 2023-11-12 11:37:29 +01:00
chrchr-github a6b7a8c1cc
Fix FP knownPointerToBool with function pointer () 2023-11-12 10:20:18 +01:00
chrchr-github 212d2141d3
Fix FP danglingTempReference with loop over init list () 2023-11-12 10:19:45 +01:00
orbitcowboy f4df28d5ec
windows.cfg: Improved configuration for OpenProcess(). () 2023-11-11 14:08:21 +01:00
chrchr-github 2d232dcaac
Fix varid0 with rvalue reference typedef () 2023-11-11 10:09:08 +01:00
chrchr-github 328daeceb4
Fix debug: varid0 with anonymous union () 2023-11-11 10:01:03 +01:00
Oliver Stöneberg b0cde34d1a
refs - moved ordering of markup files into shared code / removed related test cases from executor tests ()
This is not completely fixing the issue yet. `test-qml.py` still fails
when using multiple threads.
2023-11-09 10:17:30 +01:00
chrchr-github d24074f7b1
Fix debug: varid0 with reference typedef ()
Why do we even split any declarations in the first place?
2023-11-09 10:11:34 +01:00
Daniel Marjamäki 780b742568
Fix (simplifyTypedef: the "enum" token is not inserted) () 2023-11-09 07:48:33 +01:00
chrchr-github 30bf5cac0a
Partial fix for false negative: functionConst () 2023-11-08 22:37:45 +01:00
Daniel Marjamäki 8f432880fa
Fix (False positive: operator precedence warning even though there are parentheses) () 2023-11-08 18:54:40 +01:00
chrchr-github 1fa785d81d
Fix FP CastAddressToIntegerAtReturn with std::future () 2023-11-08 13:12:50 +01:00
Oliver Stöneberg 2a15428096
fixed - added `--fsigned-char` and `--funsigned-char` command-line options () 2023-11-08 09:28:33 +01:00
chrchr-github cf64ccea22
Fix false negative: passedByValue () 2023-11-07 22:50:31 +01:00
Oliver Stöneberg bc174c502a
fixed - provided order of source files is not preserved () 2023-11-07 21:21:24 +01:00
Daniel Marjamäki 8c63c8ced1
Fix (AST: do not create AST for variable declaration 'bool& var') () 2023-11-07 20:48:56 +01:00
Oliver Stöneberg 87886576fc
TokenList: actually consider configured standard in `isKeyword()` () 2023-11-07 20:39:44 +01:00
chrchr-github d3d70dcc4e
Fix SymbolDatabase: Token::type() is not set properly when inn… ()
…er enum has same name as outer class
2023-11-07 19:57:45 +01:00
Daniel Marjamäki c1aed9681d
Fix (Tokenizer::arraySize: enum constant used as index in array initialization) () 2023-11-07 19:19:19 +01:00
chrchr-github d26022ac9a
Fix debug: SymbolDatabase::isFunction found C function 'main' without a return type. () 2023-11-06 21:03:11 +01:00
chrchr-github a57fc9ace6
Partial fix for FN returnReference () 2023-11-06 20:29:13 +01:00
Oliver Stöneberg 704b862a2d
cleaned up the file filtering code and improved testing of it () 2023-11-06 19:06:22 +01:00
chrchr-github de2cfb05b0
Fix FP uninitialized member array, initialized in range for loop () 2023-11-06 16:15:47 +01:00
chrchr-github 83ac6bfa0f
Fix crash when calling estimateSize() (f'up to ) () 2023-11-06 15:22:59 +01:00
Daniel Marjamäki 0dc53ac7fe
Fix (Error messages from addons has the wrong file0) () 2023-11-04 17:07:30 +01:00
chrchr-github 72a36172aa
Fix FP uninitStructMember, unreadVariable with pointer to member () 2023-11-04 13:40:06 +01:00
chrchr-github fa7891e37b
Fix FP redundantCopyLocalConst for small type () 2023-11-04 13:38:02 +01:00
chrchr-github 789c032e42
Fix FP passedByValue with anonymous union () 2023-11-04 13:34:08 +01:00
Oliver Stöneberg ca6d1aafdb
moved `fileSettings` out of `Settings` ()
Moved the `FileSettings` out of the `Settings` and pass them around
explicitly. They can never be specified at the same time and are used
exclusively. The code hasn't been fully adjusted to reflect this as this
is only the refactoring without any functional changes.
2023-11-03 23:24:04 +01:00
chrchr-github 099d96ffa1
Fix syntaxError with attribute in typedef () 2023-11-03 09:56:41 +01:00
Oliver Stöneberg 63e00ea918
fixed some "Variable can be made constexpr" Rider warnings () 2023-11-03 09:55:44 +01:00
Oliver Stöneberg e6d15b17ff
extracted `FileSettings` from `ImportProject` to `filesettings.h` () 2023-11-02 17:42:41 +01:00
Oliver Stöneberg dd627a2b1d
moved `ImportProject` out of `Settings` and only store `fileSettings` ()
`ImportProject` is not needed outside of the command-line parsing so we
do not need it inside the `Settings` at all. We only use the
`fileSettings` in the executors.
2023-11-01 21:08:30 +01:00
chrchr-github 10654386db
Fix FP uninitDerivedMemberVar with brace init () 2023-11-01 09:49:32 +01:00
chrchr-github 29001b651b
Fix FN (regression): constParameterPointer () 2023-11-01 09:49:19 +01:00
chrchr-github 67b61a0ab7
Fix false negative: passedByValue () 2023-10-31 19:08:08 +01:00
chrchr-github c2d5aef435
Fix FN passedByValue with usage in ternary () 2023-10-31 16:12:38 +01:00
chrchr-github bbaa7be901
Fix FP passedByValue for callbacks () 2023-10-31 12:06:31 +01:00
Swasti Shrivastava 7618e100b4
Do not add AST for pointer in variable declaration () 2023-10-31 10:26:03 +01:00
Paul Fultz II 18373bc64b
Fix 12116: FP negativeContainerIndex with redundant assignment (regression) () 2023-10-29 00:11:03 +02:00
chrchr-github 77bfec4317
Fix FN constVariablePointer with reassigned pointer () 2023-10-28 16:48:39 +02:00