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
chrchr-github
9ea223b367
Fix #11309 debug: Scope::checkVariable found variable 'v' with varid 0 ( #5006 )
...
* Fix #11309 debug: Scope::checkVariable found variable 'v' with varid 0
* Format
2023-04-24 20:27:10 +02:00
Paul Fultz II
6820b70dd1
Fix 11636: FP nullPointer with uninstantiated template ( #5004 )
...
* Fix 11636: FP nullPointer with uninstantiated template
* Format
2023-04-23 14:40:03 +02:00
Paul Fultz II
1b9369b78b
Fix 11666: FP returnDanglingLifetime with specializations and ptr to member ( #5003 )
...
* Fix 11666: FP returnDanglingLifetime with specializations and ptr to member
* Format
2023-04-23 14:38:28 +02:00
chrchr-github
c5310fe8a2
Fix #8592 SymbolDatabase: better handling of 'using namespace' ( #4974 )
2023-04-22 10:23:12 +02:00
Oliver Stöneberg
db955a13a9
moved test-only `Preprocessor::getcode()` out of `lib` ( #4993 )
2023-04-22 10:22:00 +02:00
chrchr-github
5c7914aaa6
Fix FN constParameterReference with std::array ( #4999 )
2023-04-21 20:33:06 +02:00
chrchr-github
bda9f707cc
Fix typedef in enum class ( #4998 )
2023-04-21 18:58:44 +02:00
chrchr-github
5a4e43760e
Handle auto * const ( #4994 )
...
* Handle auto as first token
* Set varid when initialized by function
* Fix TODO from #11444
* Fix function parsing
* Add parentheses
* Format
* Handle auto * const
* Fix test on different platforms
* simpleMatch
* simpleMatch
2023-04-21 14:19:28 +02:00
Oliver Stöneberg
ad464c4feb
Preprocessor: relaxed dependency on `Suppressions` ( #4983 )
...
* Preprocessor: cleaned up `missingInclude()`
* Preprocessor: relaxed dependency on `Suppressions` / adjusted `TestPreProcessor::inline_suppression_for_missing_include()` which was not testing production behavior
* test/cli/test-other.py: added test for `missingInclude` and `missingIncludeSystem` inline suppressions
* fixed `constParameterReference` selfcheck warning
2023-04-21 10:14:34 +02:00
chrchr-github
a4e224b65c
Handle auto as first token, set varid ( #4991 )
...
* Handle auto as first token
* Set varid when initialized by function
* Fix TODO from #11444
* Fix function parsing
* Add parentheses
* Format
2023-04-21 10:13:25 +02:00
chrchr-github
e17af6d2d8
Report unknown macro ( #4990 )
2023-04-20 17:55:16 +02:00
chrchr-github
bf3be95046
Fix #11453 , #11490 internalAstError with templates ( #4986 )
...
* Fix #11490 internalAstError with unknown template in index expression
* Comment
* Fix #11490
2023-04-19 21:20:57 +02:00
chrchr-github
31e714cded
Fix incorrect function assignment ( #4977 )
2023-04-19 06:53:47 +02:00
chrchr-github
35a46dfd00
Fix FN unusedStructMember with member functions, inheritance ( #4978 )
...
* Fix #551 Detect unused Private member variables
* Fix FN unusedStructMember when there are member functions
* Unused member
* Warn for unused private variables in base class
* Warn for private inheritance, add test
2023-04-18 22:30:08 +02:00
chrchr-github
e70a888833
Fix constPointer FP #11674 , TODOs ( #4976 )
...
* Fix constPointer TODOs
* Fix #11674 FP constParameterPointer when function signature is fixed
* Format
2023-04-18 20:36:14 +02:00
chrchr-github
29e2a7ed34
Fix #11640 internalAstError with typedef matching member function [regression] ( #4981 )
2023-04-18 18:38:16 +02:00
Paul Fultz II
6031bed5a2
Fix 11669: Assert failure in infer.cpp ( #4982 )
...
* Fix 11669: Assert failure in infer.cpp
* Format
2023-04-18 18:35:25 +02:00
tsteven4
4183336dc1
fix skipping of cpp attributes. ( #4971 )
...
* fix skipping of cpp attributes.
* fix simplifyCPPAttribute loop.
When the first token was the start of a c++ attribute on a function,
so that tok->previous() was nullptr at the bottom of the loop,
an extra token would be skipped. This could result in the corresponding
function being omitted from the symbol table.
* fix alignas test failure, enhance cpp attr test.
* uncrustify.
* fix redundantNextPrevious
* delete redundant code.
* add some tokenizer tests for simplifyCPPAttribute.
* enhance noreturn symbol test.
The order of a noreturn attribute and another attribute used to
matter. Test both orders.
2023-04-17 20:36:25 +02:00
chrchr-github
c3002f1230
Fix #551 Detect unused Private member variables ( #4973 )
2023-04-17 20:34:39 +02:00
Daniel Marjamäki
785f32465f
dump: fix xml in TokenAndName element
2023-04-16 18:17:05 +02:00
Oliver Stöneberg
9ad26f51e8
removed `CppCheck` dependency from `CppCheckExecutor::parseFromArgs()` ( #4967 )
...
* made `CppCheck::getErrorMessages()` static
* removed `CppCheck` dependency from `CppCheckExecutor::parseFromArgs()`
2023-04-16 13:54:21 +02:00
chrchr-github
87755e3bae
Fix autoNoType with function returning container, rvalue reference ( #4926 )
2023-04-12 22:10:10 +02:00
Paul Fultz II
1f0376b32d
ValueFlow: Limit the combinations of arguments passed to subfunctions in normal analysis ( #4950 )
2023-04-12 22:09:48 +02:00
Daniel Marjamäki
afb9e43f2a
dump: write container information
2023-04-12 21:57:37 +02:00
Daniel Marjamäki
e59e34c0eb
showtime: separate items properly
2023-04-11 19:52:55 +02:00
chrchr-github
a0b59ff56a
Fix FN constVariableReference ( #4949 )
2023-04-11 14:00:40 +02:00
Paul Fultz II
ac14fd218b
ValueFlow: Infer possible symbolic values ( #4947 )
2023-04-10 19:27:29 +02:00
chrchr-github
63151f3291
Fix crash in constPointer() ( #4945 )
2023-04-09 16:38:09 +02:00