cppcheck/lib
Chris Lalancette df1d6cf026
Fix the ability to recognize return types when simplifying attributes. (#3637)
* Fix the ability to recognize return types when simplifying attributes.

When parsing attributes to remove them, we have to allow for
the case where the return type of the function that follows
the attribute has a namespaced C++ type, like foo::bar .
That means that :: has to be recognized as a valid token.
Fix this in simplifyAttribute, and add tests for this as well.
2021-12-22 19:02:38 +01:00
..
CMakeLists.txt use target-specific configuration instead of global ones in CMake (#3534) 2021-10-30 09:08:07 +02:00
analyzer.h Propagate partially uninit variables in ValueFlow (#3533) 2021-10-30 07:43:37 +02:00
analyzerinfo.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
analyzerinfo.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
astutils.cpp Improve fix for #9570: check if ternary operator is used in assignment to reference (#3614) 2021-12-16 22:32:15 +01:00
astutils.h astutils.cpp: optimized isSameExpression() a bit - reduces average Ir from 294 to 213 when analyzing test folder (#3528) 2021-12-11 15:10:15 +01:00
bughuntingchecks.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
bughuntingchecks.h Add 'bughuntingchecks' 2020-06-19 13:16:48 +02:00
calculate.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
check.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
check.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
check64bit.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
check64bit.h Update copyright year 2021-09-26 11:34:56 +02:00
checkassert.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
checkassert.h Update copyright year 2021-09-26 11:34:56 +02:00
checkautovariables.cpp Fix #10600: FP invalid dealloc of function array argument (#3613) 2021-12-09 07:16:40 +01:00
checkautovariables.h Fix 10033: false negative: danglingTemporaryLifetime with usage of reference from nested object not detected (#3542) 2021-11-01 19:23:15 +01:00
checkbool.cpp Fix FPs in bitwiseOnBoolean (#3455) 2021-09-19 15:20:57 +02:00
checkbool.h Update copyright year 2021-09-26 11:34:56 +02:00
checkboost.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkboost.h Update copyright year 2021-09-26 11:34:56 +02:00
checkbufferoverrun.cpp Fix FN buffer overrun with array of pointers (#3582) 2021-11-27 12:15:36 +01:00
checkbufferoverrun.h argumentSize: Clarify error message 2021-08-29 15:38:58 +02:00
checkclass.cpp cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
checkclass.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkcondition.cpp Fix #8266 identicalConditionAfterEarlyExit variable modified in if-clause (#3610) 2021-12-18 22:52:54 +01:00
checkcondition.h Fixed #10448 (FN compareValueOutOfTypeRangeError with int32_t) 2021-09-12 15:08:14 +02:00
checkexceptionsafety.cpp Typos found by running "codespell" (#3324) 2021-07-02 17:41:51 +02:00
checkexceptionsafety.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
checkfunctions.cpp Fixed #10523 (FP: missingReturn with nested switch statements) 2021-10-31 14:48:29 +01:00
checkfunctions.h Update copyright year 2021-09-26 11:34:56 +02:00
checkinternal.cpp Update copyright year 2021-09-26 11:34:56 +02:00
checkinternal.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkio.cpp Fix #7038 false negative for string argument in the CheckIO (#3649) 2021-12-20 17:22:39 +01:00
checkio.h Fix #10632 (FN charset in format string) (#3590) 2021-12-01 09:51:48 +01:00
checkleakautovar.cpp Fix and tests for #7622, #10381, #10382 (#3588) 2021-11-29 22:51:35 +01:00
checkleakautovar.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkmemoryleak.cpp Fix 10631: FP, Regression: error: Return value of allocation function 'makeThing' is not stored. (#3585) 2021-11-29 07:06:43 +01:00
checkmemoryleak.h Update copyright year 2021-09-26 11:34:56 +02:00
checknullpointer.cpp Fix 10640: FN nullPointerRedundantCheck (#3607) 2021-12-06 20:06:48 +01:00
checknullpointer.h Update copyright year 2021-09-26 11:34:56 +02:00
checkother.cpp Improve fix for #9570: check if ternary operator is used in assignment to reference (#3614) 2021-12-16 22:32:15 +01:00
checkother.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkpostfixoperator.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkpostfixoperator.h Update copyright year 2021-09-26 11:34:56 +02:00
checksizeof.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checksizeof.h Update copyright year 2021-09-26 11:34:56 +02:00
checkstl.cpp small CheckStl optimization (#3645) 2021-12-20 07:29:45 +01:00
checkstl.h small CheckStl optimization (#3645) 2021-12-20 07:29:45 +01:00
checkstring.cpp Minor: add endsWith() template, empy() check (#3472) 2021-09-28 20:34:21 +02:00
checkstring.h Update copyright year 2021-09-26 11:34:56 +02:00
checktype.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checktype.h Update copyright year 2021-09-26 11:34:56 +02:00
checkuninitvar.cpp Propagate partially uninit variables in ValueFlow (#3533) 2021-10-30 07:43:37 +02:00
checkuninitvar.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
checkunusedfunctions.cpp Fixed #9220 (False positive: Unused function check for template parameter) 2021-09-12 20:27:49 +02:00
checkunusedfunctions.h Update copyright year 2021-09-26 11:34:56 +02:00
checkunusedvar.cpp cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
checkunusedvar.h Update copyright year 2021-09-26 11:34:56 +02:00
checkvaarg.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkvaarg.h Update copyright year 2021-09-26 11:34:56 +02:00
clangimport.cpp clang import: fixed problem with nameless struct 2021-11-29 07:00:18 +01:00
clangimport.h Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
color.cpp Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
color.h Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
config.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
cppcheck.cpp Fix execution of executable addons from GUI 2021-12-15 19:27:02 +01:00
cppcheck.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
cppcheck.natvis Fixed Visual Studio Natvis file after recent refactoring (#1299) 2018-07-09 08:27:26 +02:00
cppcheck.vcxproj MSVC: add missing files to project (#3500) 2021-10-11 19:01:49 +02:00
cppcheck.vcxproj.filters Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
ctu.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
ctu.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
errorlogger.cpp klocwork; fix uninitialized struct member. FN ticket: #10573 2021-10-28 17:09:33 +02:00
errorlogger.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
errortypes.cpp use -Weverything for clang in CMake / fixed some warnings (#3519) 2021-10-24 11:06:48 +02:00
errortypes.h Update Copyright year 2021-03-21 20:58:32 +01:00
exprengine.cpp fix klocwork warning; pointer is checked and then dereferenced. FN ticket: #10570 2021-10-29 19:23:01 +02:00
exprengine.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
forwardanalyzer.cpp Fix 9772: FP uninitvar: in cppcheck 2.1 (#3638) 2021-12-17 21:51:47 +01:00
forwardanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
importproject.cpp Fix #9162 (Invalid --project files do not give any error) (#3177) 2021-12-19 12:36:11 +01:00
importproject.h Fix #9162 (Invalid --project files do not give any error) (#3177) 2021-12-19 12:36:11 +01:00
infer.cpp Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
infer.h Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
lib.pri Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
library.cpp SymbolDatabase: Do not set wrong type for std::map etc items in range for loop 2021-12-11 15:16:54 +01:00
library.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
matchcompiler.h Update copyright year 2021-09-26 11:34:56 +02:00
mathlib.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
mathlib.h Refactoring; Reuse simplecpp::characterLiteralToLL 2021-05-02 13:44:37 +02:00
path.cpp feat: add support for .ipp and .ixx extensions (#3383) 2021-08-09 10:46:56 +02:00
path.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
pathanalysis.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
pathanalysis.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
pathmatch.cpp Update Copyright year 2020-10-03 09:15:56 +02:00
pathmatch.h Updated copyright year 2018-10-13 18:20:31 +02:00
pcrerules.pri
platform.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
platform.h Update copyright year 2021-09-26 11:34:56 +02:00
precompiled.h Visual Studio: Use new files precompiled.h with several common includes for core and testrunner. 2020-05-29 12:16:04 +02:00
preprocessor.cpp Shadow variables, const, rename function (#3456) 2021-09-15 20:28:58 +02:00
preprocessor.h Update copyright year 2021-09-26 11:34:56 +02:00
programmemory.cpp Fix 10437: FP knownConditionTrueFalse after pointer check (#3646) 2021-12-20 07:28:40 +01:00
programmemory.h Fix 10437: FP knownConditionTrueFalse after pointer check (#3646) 2021-12-20 07:28:40 +01:00
reverseanalyzer.cpp Fix 10640: FN nullPointerRedundantCheck (#3607) 2021-12-06 20:06:48 +01:00
reverseanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
settings.cpp Fix member shadowing (#3563) 2021-11-15 20:37:08 +01:00
settings.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
standards.h Update Copyright year 2020-10-03 09:15:56 +02:00
summaries.cpp Summaries: Moved to its own files 2020-12-20 19:53:58 +01:00
summaries.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
suppressions.cpp cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
suppressions.h Refactor: fix member shadowing, return by const ref (#3407) 2021-08-21 22:00:45 +02:00
symboldatabase.cpp SymbolDatabase: Do not set wrong type for std::map etc items in range for loop 2021-12-11 15:16:54 +01:00
symboldatabase.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
templatesimplifier.cpp Fix 10651: Crash on static template method (#3633) 2021-12-16 22:32:44 +01:00
templatesimplifier.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.h Update copyright year 2021-09-26 11:34:56 +02:00
token.cpp Fix 10552: Internal error with unusedFunction (#3600) 2021-12-05 15:46:17 +01:00
token.h Fix 10552: Internal error with unusedFunction (#3600) 2021-12-05 15:46:17 +01:00
tokenize.cpp Fix the ability to recognize return types when simplifying attributes. (#3637) 2021-12-22 19:02:38 +01:00
tokenize.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
tokenlist.cpp Fix 9740: FP accessMoved related to designated initialization (#3644) 2021-12-19 12:36:48 +01:00
tokenlist.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
tokenrange.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
utils.cpp Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
utils.h Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
valueflow.cpp Fix 10437: FP knownConditionTrueFalse after pointer check (#3646) 2021-12-20 07:28:40 +01:00
valueflow.h Fix 10437: FP knownConditionTrueFalse after pointer check (#3646) 2021-12-20 07:28:40 +01:00
valueptr.h Update copyright year 2021-09-26 11:34:56 +02:00
version.h 2.6 dev: set version 2021-10-02 13:15:12 +02:00
version.rc