Commit Graph

615 Commits

Author SHA1 Message Date
chrchr-github d608bec414
Fix FP with std::array ()
* Fix  wrong usage of std::string in memcpy

* Fix memsetClass FP

* Fix  FN memset on container containing structs with containers

* Token::Match

* Use AST

* simpleMatch

* Fix FP with std::array

* simpleMatch
2022-09-23 20:18:49 +02:00
chrchr-github 0bb82b70d9
Fix FN functionStatic, functionConst with this ()
* Fix  FN functionStatic, functionConst with this

* Fix FP
2022-09-23 08:46:31 +02:00
chrchr-github 2aca275e0c
Fix FN memset on container containing structs with containers ()
* Fix  wrong usage of std::string in memcpy

* Fix memsetClass FP

* Fix  FN memset on container containing structs with containers

* Token::Match

* Use AST

* simpleMatch
2022-09-21 17:33:48 +02:00
Oliver Stöneberg b3ec225480
iwyu.yml: use `debian:unstable` to always get latest include-what-you-use / cleaned up includes ()
* iwyu.yml: use debian:unstable to always get latest include-what-you-use

* cleaned up includes based on include-what-you-use

* mitigated include-what-you-use false positives
2022-09-16 07:15:49 +02:00
chrchr-github c9ade33298
Fix memsetClass FP () 2022-09-15 20:20:49 +02:00
chrchr-github 07caf17eb3
Fix wrong usage of std::string in memcpy () 2022-09-13 15:14:25 +02:00
chrchr-github b815153b0c
Add test for () 2022-08-26 11:36:47 +02:00
chrchr-github 80a486dda0
Fix FP virtual call in destructor even though class is final / Delete 'final' from specializations ()
* Add 'final' keyword

* Delete 'final' from specializations

* Fix  FP virtual call in destructor even though class is final

* Fix test
2022-08-19 18:26:00 +02:00
Oliver Stöneberg 1b4141cbe5
added more missing `sstream` includes () 2022-08-19 18:23:15 +02:00
chrchr-github 0978cc2d46
Add tests for , () 2022-08-17 10:01:49 +02:00
chrchr-github 58d7185d64
Fix FP functionConst when overloaded operator ++ is used () 2022-07-26 08:30:59 +02:00
chrchr-github 1aceded300
Fix FP noExplicitConstructor with variadic template () 2022-07-24 10:18:19 +02:00
chrchr-github 1d677c57a8
Fix FN: noExplicitConstructor with single default parameter () 2022-06-07 21:15:13 +02:00
chrchr-github e7e8b1baf9
Fix FN: "static" not suggested for non-const method ()
* Fix  FN: "static" not suggested for non-const method

* Format

* Make functions static

* static
2022-05-11 20:01:22 +02:00
chrchr-github 8ce0faf723
Fix Regression: selfInitialization () 2022-05-02 16:49:13 +02:00
chrchr-github f323e8a6c6
Fix FP functionConst ()
* Fix  FP functionConst

* Format

* Format
2022-04-13 12:25:36 +02:00
chrchr-github 00badff622
Fix FP functionConst ()
* Fix  FP functionConst

* Update releasenotes.txt
2022-04-11 22:55:16 +02:00
chrchr-github f5313dc519
Fix crash with defaulted destructor () 2022-04-05 23:18:08 +02:00
chrchr-github a9f29fbc09
Fix FP functionStatic with class template and east-const / FP constParameter with std::array and east-const () 2022-04-01 23:26:44 +02:00
chrchr-github 81bcbfa7fe
Fix FP missingOverride with friend () 2022-03-28 22:44:04 +02:00
orbitcowboy 8d7fe702e0 Ticket - Adde a regression test 2022-03-25 17:01:57 +01:00
chrchr-github 2baf8f6cd4
Fix FP virtualCallInConstructor with function pointer () 2022-03-19 20:00:06 +01:00
chrchr-github fb1170b10b
Fix FP constStatement with variable called std () 2022-03-16 15:29:34 +01:00
chrchr-github ffd9f9a93f
Fix FP missingOverride with unnamed parameters () 2022-03-11 21:44:13 +01:00
chrchr-github 6a8bd981b5
Fix CheckClass::isMemberVar found used member variable with varid 0 ()
* Fix  CheckClass::isMemberVar found used member variable with varid 0

* Restore call to simpleMatch()
2022-02-28 18:28:23 +01:00
chrchr-github 05a6d09c5f
Fix FP uninitMemberVar from copy constructor [inconclusive] () 2022-02-27 19:15:19 +01:00
chrchr-github 5574e41b86
Fix CheckClass::isMemberVar found used member variable with varid 0 () 2022-02-20 18:17:47 +01:00
chrchr-github 907218254e
Fix previous commit ()
* Fix  unsafeClassCanLeak missing for array of pointers

*  Fix previous commit

* Format

* Format
2022-02-15 20:03:02 +01:00
chrchr-github edc5106237
Fix FN missingOverride - subclass in namespace () 2022-02-12 08:19:07 +01:00
Rikard Falkeborn d4cd249c21
10671 fix const iterator function const take two ()
* Revert "Revert "Fix : functionConst FN with begin/end and const_iterator ()""

This reverts commit 9f6a36c1a8.

* Fix crash by adding missing null check
2022-02-11 21:23:23 +01:00
Oliver Stöneberg f32583e097
removed OVERRIDE and FINAL defines and use the keywords directly () 2022-02-10 23:02:24 +01:00
Daniel Marjamäki 3989408738 Update copyright year 2022-02-05 11:45:17 +01:00
Daniel Marjamäki 9f6a36c1a8 Revert "Fix : functionConst FN with begin/end and const_iterator ()"
This reverts commit 2cacb13f85.
2022-02-03 11:04:02 +01:00
chrchr-github 511520d623
Fix FP constParameter with const/nonconst overload () 2022-02-02 19:38:32 +01:00
Rikard Falkeborn 2cacb13f85
Fix : functionConst FN with begin/end and const_iterator ()
Check if the iterator is assigned to a const_iterator or
const_revese_iterator, in which case it is possible the function can be
const. Unfortunately, it is not possible to remove the hard coding of
cbegin, cend, crbegin and crend due to the need to handle auto, as in
the following code snippet:

    void cbegin_auto(void)
    {
        for (auto it = m_str.cbegin(); it != m_str.cend(); ++it) {;}
    }
2022-02-02 19:37:06 +01:00
Oliver Stöneberg 171da2e6f9
avoid dependency on transitive includes - based on include-what-you-use () 2022-01-27 19:03:20 +01:00
chrchr-github d64dadcd31
Fix Crash in CheckClass::checkConstFunc() () 2022-01-24 21:50:01 +01:00
chrchr-github b23ca879ed
Fix FP functionConst with overloaded operator[] [inconclusive] () 2022-01-21 20:40:10 +01:00
chrchr-github 1e2863cd33
Fix FP functionConst with aggregate initialization [inconclusive] () 2022-01-18 20:49:35 +01:00
chrchr-github ca2e0ca287
Fix FP functionConst with extra parentheses () 2022-01-18 20:21:25 +01:00
chrchr-github c2fc4973ad
Fix False positive for explicit one-argument constructor if co… () 2022-01-17 20:51:23 +01:00
chrchr-github 605fd7cf98
Fix FP functionConst (inconclusive) with nested members () 2022-01-17 20:33:32 +01:00
chrchr-github 781a145680
Fix regression: functionStatic related to overload resolution () 2022-01-14 17:55:50 +01:00
chrchr-github ca311ebcdf
ASSERT() on calls to Tokenizer::tokenize() in test code () 2021-11-29 07:34:39 +01:00
nomick 5865b05703
fix false positive of virtual function call () 2021-11-11 07:53:30 +01:00
Paul Fultz II 7f358b2bed
Format with uncrustify () 2021-08-07 20:51:18 +02:00
Daniel Marjamäki f361106770 fix string literals in test code 2021-08-07 15:51:04 +02:00
Daniel Marjamäki d9dacc97e4 virtual call in constructor; warn when function is explicitly virtual 2021-07-11 11:03:31 +02:00
orbitcowboy 260eb4acac Running astyle [ci skip] 2021-04-09 08:46:47 +02:00
ericmalenfant 1e9687aa8b
Fix noCopyConstructor with multiple inheritance () 2021-04-09 07:41:59 +02:00