Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/TscanCode
/ functions
Functions
2,904 in github.com/Tencent/TscanCode
⨍
Functions
2,904
◇
Types & classes
373
↓ 1 callers
Method
checkDereferenceInvalidIterator
Check for iterators being dereferenced before being checked for validity. E.g. if (*i && i != str.end()) { }
trunk/lib/checkstl.cpp:1549
↓ 1 callers
Method
checkDuplInheritedMembers
trunk/lib/checkclass.cpp:2291
↓ 1 callers
Method
checkDuplicateBranch
----------------------------------------------------------------------------- check for duplicate code in if and else branches if (a) { b = true; } el
trunk/lib/checkother.cpp:2106
↓ 1 callers
Method
checkDuplicateBranch1
trunk/lib/checkother.cpp:2163
↓ 1 callers
Method
checkDuplicateExpression
trunk/lib/checkother.cpp:2323
↓ 1 callers
Method
checkDuplicateExpression1
--------------------------------------------------------------------------- check for the same expression on both sides of an operator (x == x), (x &&
trunk/lib/checkother.cpp:4058
↓ 1 callers
Method
checkDuplicateIf
trunk/lib/checkother.cpp:3213
↓ 1 callers
Function
checkExceptionHandling
trunk/lib/checkother.cpp:638
↓ 1 callers
Method
checkExplicitConstructors
trunk/lib/checkclass.cpp:254
↓ 1 callers
Method
checkExtraWhitespace
trunk/lib/checkinternal.cpp:276
↓ 1 callers
Method
checkFileUsage
trunk/lib/checkio.cpp:101
↓ 1 callers
Method
checkFuncRetLengthUsage
trunk/lib/checktscoverrun.cpp:9
↓ 1 callers
Method
checkFuncRetNull
trunk/lib/checkstatistic.cpp:10
↓ 1 callers
Method
checkFuncReturn
trunk/lib/checktscsuspicious.cpp:1202
↓ 1 callers
Method
checkFunctionVariableUsage
trunk/lib/checkunusedvar.cpp:1076
↓ 1 callers
Method
checkIfCondition
trunk/lib/checktscsuspicious.cpp:1548
↓ 1 callers
Method
checkIgnoredReturnValue
--------------------------------------------------------------------------- Check for ignored return values. -----------------------------------------
trunk/lib/checkother.cpp:2970
↓ 1 callers
Method
checkIncompleteArrayFill
--------------------------------------------------------------------------- Check for incompletely filled buffers. -----------------------------------
trunk/lib/checkother.cpp:2831
↓ 1 callers
Method
checkIncompleteStatement
--------------------------------------------------------------------------- Incomplete statement.. ---------------------------------------------------
trunk/lib/checkother.cpp:1782
↓ 1 callers
Method
checkIncorrectLogicOperator
trunk/lib/checkcondition.cpp:757
↓ 1 callers
Method
checkIncorrectStringCompare
--------------------------------------------------------------------------- Implicit casts of string literals to bool Comparing string literal with st
trunk/lib/checkstring.cpp:260
↓ 1 callers
Method
checkIncrementBoolean
--------------------------------------------------------------------------- --------------------------------------------------------------------------
trunk/lib/checkbool.cpp:40
↓ 1 callers
Method
checkIndexBeforeCheck
trunk/lib/checktscoverrun.cpp:102
↓ 1 callers
Method
checkIndexCheckDefect
trunk/lib/checktscoverrun.cpp:160
↓ 1 callers
Method
checkIndexPlusOneInFor
trunk/lib/checktscoverrun.cpp:91
↓ 1 callers
Method
checkIntegerMultiply
trunk/lib/checktype.cpp:431
↓ 1 callers
Method
checkIntegerOverflow
trunk/lib/checktype.cpp:246
↓ 1 callers
Method
checkInterlockedDecrement
trunk/lib/checkother.cpp:3067
↓ 1 callers
Method
checkInvalidFree
----------------------------------------------------------------------------- Check for a free() of an invalid address char* p = malloc(100); free(p +
trunk/lib/checkother.cpp:2213
↓ 1 callers
Method
checkLibraryMatchFunctions
trunk/lib/checkother.cpp:3043
↓ 1 callers
Method
checkLongCast
trunk/lib/checktype.cpp:376
↓ 1 callers
Method
checkMathFunctions
--------------------------------------------------------------------------- Detect passing wrong values to <cmath> functions like atan(0, x); --------
trunk/lib/checkother.cpp:1977
↓ 1 callers
Method
checkMemcpy
trunk/lib/checktscoverrun.cpp:660
↓ 1 callers
Method
checkMemset
trunk/lib/checkclass.cpp:1025
↓ 1 callers
Method
checkMemsetInvalid2ndParam
trunk/lib/checkother.cpp:1373
↓ 1 callers
Method
checkMemsetZeroBytes
--------------------------------------------------------------------------- memset(p, y, 0 /* bytes to fill */) <- 2nd and 3rd arguments inverted ----
trunk/lib/checkother.cpp:1317
↓ 1 callers
Method
checkMissingDerefOperator
trunk/lib/checktscnullpointer2.cpp:7384
↓ 1 callers
Method
checkMissingPercentCharacter
trunk/lib/checkinternal.cpp:164
↓ 1 callers
Method
checkMisusedScopedObject
--------------------------------------------------------------------------- Creating instance of clases which are destroyed immediately --------------
trunk/lib/checkother.cpp:2069
↓ 1 callers
Method
checkModuloAlwaysTrueFalse
----------------------------------------------------------------------------- Detect "(var % val1) > val2" where val2 is >= val1. --------------------
trunk/lib/checkcondition.cpp:971
↓ 1 callers
Method
checkNanInArithmeticExpression
trunk/lib/checkother.cpp:1955
↓ 1 callers
Method
checkNegativeBitwiseShift
trunk/lib/checkother.cpp:2772
↓ 1 callers
Method
checkNestedLoop
add for nested loop check
trunk/lib/checktscsuspicious.cpp:116
↓ 1 callers
Method
checkNoFirstCase
trunk/lib/checktsclogic.cpp:331
↓ 1 callers
Function
checkNullpointerFunctionCallPlausibility
trunk/lib/checknullpointer.cpp:34
↓ 1 callers
Method
checkOutOfBounds
trunk/lib/checkstatistic.cpp:345
↓ 1 callers
Method
checkPipeParameterSize
--------------------------------------------------------------------------- This check detects errors on POSIX systems, when a pipe command called wit
trunk/lib/checkother.cpp:572
↓ 1 callers
Method
checkPipeParameterSizeError
trunk/lib/checkother.cpp:597
↓ 1 callers
Method
checkPreciseComparison
trunk/lib/checktsccompute.cpp:31
↓ 1 callers
Method
checkPureVirtualFunctionCall
trunk/lib/checkclass.cpp:2169
↓ 1 callers
Function
checkReadability
trunk/lib/checkreadability.h:10
↓ 1 callers
Method
checkReallocUsage
trunk/lib/checkmemoryleak.cpp:2227
↓ 1 callers
Method
checkRecursiveFunc
trunk/lib/checktsclogic.cpp:373
↓ 1 callers
Method
checkRedundantAssignment
trunk/lib/checkother.cpp:665
↓ 1 callers
Method
checkRedundantAssignmentInSwitch
trunk/lib/checkother.cpp:865
↓ 1 callers
Method
checkRedundantCopy
--------------------------------------------------------------------------- This check rule works for checking the "const A a = getA()" usage when get
trunk/lib/checkother.cpp:2721
↓ 1 callers
Method
checkRedundantNextPrevious
trunk/lib/checkinternal.cpp:252
↓ 1 callers
Method
checkRedundantPointerOp
trunk/lib/checkother.cpp:3006
↓ 1 callers
Method
checkRenameLocalVariable
trunk/lib/checktscsuspicious.cpp:1627
↓ 1 callers
Method
checkRethrowCopy
--------------------------------------------------------------------------- catch(const exception & err) { throw err; // <- should be just
trunk/lib/checkexceptionsafety.cpp:144
↓ 1 callers
Method
checkSTLFind
trunk/lib/checktsclogic.cpp:928
↓ 1 callers
Method
checkSelfAddedSubscript
trunk/lib/checkbufferoverrun.cpp:2246
↓ 1 callers
Method
checkSelfAssignment
trunk/lib/checkother.cpp:3655
↓ 1 callers
Method
checkSelfInitialization
trunk/lib/checkclass.cpp:2139
↓ 1 callers
Method
checkSignConversion
trunk/lib/checktype.cpp:302
↓ 1 callers
Method
checkSignOfUnsignedVariable
--------------------------------------------------------------------------- Check testing sign of unsigned variables and pointers. -------------------
trunk/lib/checkother.cpp:2594
↓ 1 callers
Method
checkSignedUnsignedMixed
trunk/lib/checktsclogic.cpp:999
↓ 1 callers
Method
checkSizeofForArrayParameter
--------------------------------------------------------------------------- --------------------------------------------------------------------------
trunk/lib/checksizeof.cpp:68
↓ 1 callers
Method
checkSizeofForNumericParameter
--------------------------------------------------------------------------- --------------------------------------------------------------------------
trunk/lib/checksizeof.cpp:35
↓ 1 callers
Method
checkSizeofForPointerSize
trunk/lib/checksizeof.cpp:108
↓ 1 callers
Method
checkSizeofForPointerSize2
trunk/lib/checksizeof.cpp:223
↓ 1 callers
Method
checkStrncat
trunk/lib/checktscoverrun.cpp:705
↓ 1 callers
Method
checkStructMemberUsage
--------------------------------------------------------------------------- Check that all struct members are used -----------------------------------
trunk/lib/checkunusedvar.cpp:1161
↓ 1 callers
Method
checkStructVariable
trunk/lib/checkmemoryleak.cpp:2581
↓ 1 callers
Method
checkSuspiciousCaseInSwitch
--------------------------------------------------------------------------- Check for statements like case A||B: in switch() -------------------------
trunk/lib/checkother.cpp:1043
↓ 1 callers
Method
checkSuspiciousEqualityComparison
--------------------------------------------------------------------------- if (x == 1) x == 0; // <- suspicious equality comparison. ----------
trunk/lib/checkother.cpp:1086
↓ 1 callers
Method
checkSuspiciousPriority
trunk/lib/checktscsuspicious.cpp:475
↓ 1 callers
Method
checkSuspiciousPriority2
trunk/lib/checktscsuspicious.cpp:528
↓ 1 callers
Method
checkSuspiciousSemicolon
--------------------------------------------------------------------------- Check for suspicious occurrences of 'if(); {}'. --------------------------
trunk/lib/checkother.cpp:385
↓ 1 callers
Method
checkSuspiciousStringCompare
----------------------------------------------------------------------------- Detect "str == '\0'" where "*str == '\0'" is correct. Comparing char* wi
trunk/lib/checkstring.cpp:144
↓ 1 callers
Method
checkSwitchCaseFallThrough
--------------------------------------------------------------------------- Detect fall through cases (experimental). --------------------------------
trunk/lib/checkother.cpp:964
↓ 1 callers
Method
checkSwitchNoBreakUP
trunk/lib/checktsclogic.cpp:53
↓ 1 callers
Method
checkSwitchNoDefault
trunk/lib/checktsclogic.cpp:252
↓ 1 callers
Method
checkTokenMatchPatterns
trunk/lib/checkinternal.cpp:34
↓ 1 callers
Method
checkTokenSimpleMatchPatterns
trunk/lib/checkinternal.cpp:82
↓ 1 callers
Method
checkTooBigBitwiseShift
trunk/lib/checktype.cpp:113
↓ 1 callers
Method
checkUnconditionalBreakinLoop
trunk/lib/checktscsuspicious.cpp:410
↓ 1 callers
Method
checkUnknownPattern
trunk/lib/checkinternal.cpp:221
↓ 1 callers
Method
checkUnsignedDivision
trunk/lib/checkother.cpp:3138
↓ 1 callers
Method
checkUnsignedMinus
trunk/lib/checktype.cpp:459
↓ 1 callers
Method
checkUnsignedlessthanzero
trunk/lib/checktsccompute.cpp:101
↓ 1 callers
Method
checkUnusedLabel
trunk/lib/checkother.cpp:3093
↓ 1 callers
Method
checkVarFuncNullUB
trunk/lib/checkother.cpp:2882
↓ 1 callers
Method
checkVariableScope
--------------------------------------------------------------------------- Check scope of variables.. -----------------------------------------------
trunk/lib/checkother.cpp:1433
↓ 1 callers
Method
checkWrongPrintfScanfArguments
trunk/lib/checkio.cpp:482
↓ 1 callers
Method
checkZeroDivision
--------------------------------------------------------------------------- Detect division by zero. -------------------------------------------------
trunk/lib/checkother.cpp:1855
↓ 1 callers
Method
checkboolFuncReturn
trunk/lib/checktscsuspicious.cpp:1473
↓ 1 callers
Method
checksuspiciousStrErrorInLoop
Loop StrStream buf.str();
trunk/lib/checktscsuspicious.cpp:628
↓ 1 callers
Method
checksuspiciousfor
trunk/lib/checktscsuspicious.cpp:686
↓ 1 callers
Method
checkwrongvarinfor
trunk/lib/checktscsuspicious.cpp:872
← previous
next →
801–900 of 2,904, ranked by callers