MCPcopy Create free account

hub / github.com/Tencent/TscanCode / functions

Functions2,904 in github.com/Tencent/TscanCode

↓ 1 callersMethodcheckDereferenceInvalidIterator
Check for iterators being dereferenced before being checked for validity. E.g. if (*i && i != str.end()) { }
trunk/lib/checkstl.cpp:1549
↓ 1 callersMethodcheckDuplInheritedMembers
trunk/lib/checkclass.cpp:2291
↓ 1 callersMethodcheckDuplicateBranch
----------------------------------------------------------------------------- check for duplicate code in if and else branches if (a) { b = true; } el
trunk/lib/checkother.cpp:2106
↓ 1 callersMethodcheckDuplicateBranch1
trunk/lib/checkother.cpp:2163
↓ 1 callersMethodcheckDuplicateExpression
trunk/lib/checkother.cpp:2323
↓ 1 callersMethodcheckDuplicateExpression1
--------------------------------------------------------------------------- check for the same expression on both sides of an operator (x == x), (x &&
trunk/lib/checkother.cpp:4058
↓ 1 callersMethodcheckDuplicateIf
trunk/lib/checkother.cpp:3213
↓ 1 callersFunctioncheckExceptionHandling
trunk/lib/checkother.cpp:638
↓ 1 callersMethodcheckExplicitConstructors
trunk/lib/checkclass.cpp:254
↓ 1 callersMethodcheckExtraWhitespace
trunk/lib/checkinternal.cpp:276
↓ 1 callersMethodcheckFileUsage
trunk/lib/checkio.cpp:101
↓ 1 callersMethodcheckFuncRetLengthUsage
trunk/lib/checktscoverrun.cpp:9
↓ 1 callersMethodcheckFuncRetNull
trunk/lib/checkstatistic.cpp:10
↓ 1 callersMethodcheckFuncReturn
trunk/lib/checktscsuspicious.cpp:1202
↓ 1 callersMethodcheckFunctionVariableUsage
trunk/lib/checkunusedvar.cpp:1076
↓ 1 callersMethodcheckIfCondition
trunk/lib/checktscsuspicious.cpp:1548
↓ 1 callersMethodcheckIgnoredReturnValue
--------------------------------------------------------------------------- Check for ignored return values. -----------------------------------------
trunk/lib/checkother.cpp:2970
↓ 1 callersMethodcheckIncompleteArrayFill
--------------------------------------------------------------------------- Check for incompletely filled buffers. -----------------------------------
trunk/lib/checkother.cpp:2831
↓ 1 callersMethodcheckIncompleteStatement
--------------------------------------------------------------------------- Incomplete statement.. ---------------------------------------------------
trunk/lib/checkother.cpp:1782
↓ 1 callersMethodcheckIncorrectLogicOperator
trunk/lib/checkcondition.cpp:757
↓ 1 callersMethodcheckIncorrectStringCompare
--------------------------------------------------------------------------- Implicit casts of string literals to bool Comparing string literal with st
trunk/lib/checkstring.cpp:260
↓ 1 callersMethodcheckIncrementBoolean
--------------------------------------------------------------------------- --------------------------------------------------------------------------
trunk/lib/checkbool.cpp:40
↓ 1 callersMethodcheckIndexBeforeCheck
trunk/lib/checktscoverrun.cpp:102
↓ 1 callersMethodcheckIndexCheckDefect
trunk/lib/checktscoverrun.cpp:160
↓ 1 callersMethodcheckIndexPlusOneInFor
trunk/lib/checktscoverrun.cpp:91
↓ 1 callersMethodcheckIntegerMultiply
trunk/lib/checktype.cpp:431
↓ 1 callersMethodcheckIntegerOverflow
trunk/lib/checktype.cpp:246
↓ 1 callersMethodcheckInterlockedDecrement
trunk/lib/checkother.cpp:3067
↓ 1 callersMethodcheckInvalidFree
----------------------------------------------------------------------------- Check for a free() of an invalid address char* p = malloc(100); free(p +
trunk/lib/checkother.cpp:2213
↓ 1 callersMethodcheckLibraryMatchFunctions
trunk/lib/checkother.cpp:3043
↓ 1 callersMethodcheckLongCast
trunk/lib/checktype.cpp:376
↓ 1 callersMethodcheckMathFunctions
--------------------------------------------------------------------------- Detect passing wrong values to <cmath> functions like atan(0, x); --------
trunk/lib/checkother.cpp:1977
↓ 1 callersMethodcheckMemcpy
trunk/lib/checktscoverrun.cpp:660
↓ 1 callersMethodcheckMemset
trunk/lib/checkclass.cpp:1025
↓ 1 callersMethodcheckMemsetInvalid2ndParam
trunk/lib/checkother.cpp:1373
↓ 1 callersMethodcheckMemsetZeroBytes
--------------------------------------------------------------------------- memset(p, y, 0 /* bytes to fill */) <- 2nd and 3rd arguments inverted ----
trunk/lib/checkother.cpp:1317
↓ 1 callersMethodcheckMissingDerefOperator
trunk/lib/checktscnullpointer2.cpp:7384
↓ 1 callersMethodcheckMissingPercentCharacter
trunk/lib/checkinternal.cpp:164
↓ 1 callersMethodcheckMisusedScopedObject
--------------------------------------------------------------------------- Creating instance of clases which are destroyed immediately --------------
trunk/lib/checkother.cpp:2069
↓ 1 callersMethodcheckModuloAlwaysTrueFalse
----------------------------------------------------------------------------- Detect "(var % val1) > val2" where val2 is >= val1. --------------------
trunk/lib/checkcondition.cpp:971
↓ 1 callersMethodcheckNanInArithmeticExpression
trunk/lib/checkother.cpp:1955
↓ 1 callersMethodcheckNegativeBitwiseShift
trunk/lib/checkother.cpp:2772
↓ 1 callersMethodcheckNestedLoop
add for nested loop check
trunk/lib/checktscsuspicious.cpp:116
↓ 1 callersMethodcheckNoFirstCase
trunk/lib/checktsclogic.cpp:331
↓ 1 callersFunctioncheckNullpointerFunctionCallPlausibility
trunk/lib/checknullpointer.cpp:34
↓ 1 callersMethodcheckOutOfBounds
trunk/lib/checkstatistic.cpp:345
↓ 1 callersMethodcheckPipeParameterSize
--------------------------------------------------------------------------- This check detects errors on POSIX systems, when a pipe command called wit
trunk/lib/checkother.cpp:572
↓ 1 callersMethodcheckPipeParameterSizeError
trunk/lib/checkother.cpp:597
↓ 1 callersMethodcheckPreciseComparison
trunk/lib/checktsccompute.cpp:31
↓ 1 callersMethodcheckPureVirtualFunctionCall
trunk/lib/checkclass.cpp:2169
↓ 1 callersFunctioncheckReadability
trunk/lib/checkreadability.h:10
↓ 1 callersMethodcheckReallocUsage
trunk/lib/checkmemoryleak.cpp:2227
↓ 1 callersMethodcheckRecursiveFunc
trunk/lib/checktsclogic.cpp:373
↓ 1 callersMethodcheckRedundantAssignment
trunk/lib/checkother.cpp:665
↓ 1 callersMethodcheckRedundantAssignmentInSwitch
trunk/lib/checkother.cpp:865
↓ 1 callersMethodcheckRedundantCopy
--------------------------------------------------------------------------- This check rule works for checking the "const A a = getA()" usage when get
trunk/lib/checkother.cpp:2721
↓ 1 callersMethodcheckRedundantNextPrevious
trunk/lib/checkinternal.cpp:252
↓ 1 callersMethodcheckRedundantPointerOp
trunk/lib/checkother.cpp:3006
↓ 1 callersMethodcheckRenameLocalVariable
trunk/lib/checktscsuspicious.cpp:1627
↓ 1 callersMethodcheckRethrowCopy
--------------------------------------------------------------------------- catch(const exception & err) { throw err; // <- should be just
trunk/lib/checkexceptionsafety.cpp:144
↓ 1 callersMethodcheckSTLFind
trunk/lib/checktsclogic.cpp:928
↓ 1 callersMethodcheckSelfAddedSubscript
trunk/lib/checkbufferoverrun.cpp:2246
↓ 1 callersMethodcheckSelfAssignment
trunk/lib/checkother.cpp:3655
↓ 1 callersMethodcheckSelfInitialization
trunk/lib/checkclass.cpp:2139
↓ 1 callersMethodcheckSignConversion
trunk/lib/checktype.cpp:302
↓ 1 callersMethodcheckSignOfUnsignedVariable
--------------------------------------------------------------------------- Check testing sign of unsigned variables and pointers. -------------------
trunk/lib/checkother.cpp:2594
↓ 1 callersMethodcheckSignedUnsignedMixed
trunk/lib/checktsclogic.cpp:999
↓ 1 callersMethodcheckSizeofForArrayParameter
--------------------------------------------------------------------------- --------------------------------------------------------------------------
trunk/lib/checksizeof.cpp:68
↓ 1 callersMethodcheckSizeofForNumericParameter
--------------------------------------------------------------------------- --------------------------------------------------------------------------
trunk/lib/checksizeof.cpp:35
↓ 1 callersMethodcheckSizeofForPointerSize
trunk/lib/checksizeof.cpp:108
↓ 1 callersMethodcheckSizeofForPointerSize2
trunk/lib/checksizeof.cpp:223
↓ 1 callersMethodcheckStrncat
trunk/lib/checktscoverrun.cpp:705
↓ 1 callersMethodcheckStructMemberUsage
--------------------------------------------------------------------------- Check that all struct members are used -----------------------------------
trunk/lib/checkunusedvar.cpp:1161
↓ 1 callersMethodcheckStructVariable
trunk/lib/checkmemoryleak.cpp:2581
↓ 1 callersMethodcheckSuspiciousCaseInSwitch
--------------------------------------------------------------------------- Check for statements like case A||B: in switch() -------------------------
trunk/lib/checkother.cpp:1043
↓ 1 callersMethodcheckSuspiciousEqualityComparison
--------------------------------------------------------------------------- if (x == 1) x == 0; // <- suspicious equality comparison. ----------
trunk/lib/checkother.cpp:1086
↓ 1 callersMethodcheckSuspiciousPriority
trunk/lib/checktscsuspicious.cpp:475
↓ 1 callersMethodcheckSuspiciousPriority2
trunk/lib/checktscsuspicious.cpp:528
↓ 1 callersMethodcheckSuspiciousSemicolon
--------------------------------------------------------------------------- Check for suspicious occurrences of 'if(); {}'. --------------------------
trunk/lib/checkother.cpp:385
↓ 1 callersMethodcheckSuspiciousStringCompare
----------------------------------------------------------------------------- Detect "str == '\0'" where "*str == '\0'" is correct. Comparing char* wi
trunk/lib/checkstring.cpp:144
↓ 1 callersMethodcheckSwitchCaseFallThrough
--------------------------------------------------------------------------- Detect fall through cases (experimental). --------------------------------
trunk/lib/checkother.cpp:964
↓ 1 callersMethodcheckSwitchNoBreakUP
trunk/lib/checktsclogic.cpp:53
↓ 1 callersMethodcheckSwitchNoDefault
trunk/lib/checktsclogic.cpp:252
↓ 1 callersMethodcheckTokenMatchPatterns
trunk/lib/checkinternal.cpp:34
↓ 1 callersMethodcheckTokenSimpleMatchPatterns
trunk/lib/checkinternal.cpp:82
↓ 1 callersMethodcheckTooBigBitwiseShift
trunk/lib/checktype.cpp:113
↓ 1 callersMethodcheckUnconditionalBreakinLoop
trunk/lib/checktscsuspicious.cpp:410
↓ 1 callersMethodcheckUnknownPattern
trunk/lib/checkinternal.cpp:221
↓ 1 callersMethodcheckUnsignedDivision
trunk/lib/checkother.cpp:3138
↓ 1 callersMethodcheckUnsignedMinus
trunk/lib/checktype.cpp:459
↓ 1 callersMethodcheckUnsignedlessthanzero
trunk/lib/checktsccompute.cpp:101
↓ 1 callersMethodcheckUnusedLabel
trunk/lib/checkother.cpp:3093
↓ 1 callersMethodcheckVarFuncNullUB
trunk/lib/checkother.cpp:2882
↓ 1 callersMethodcheckVariableScope
--------------------------------------------------------------------------- Check scope of variables.. -----------------------------------------------
trunk/lib/checkother.cpp:1433
↓ 1 callersMethodcheckWrongPrintfScanfArguments
trunk/lib/checkio.cpp:482
↓ 1 callersMethodcheckZeroDivision
--------------------------------------------------------------------------- Detect division by zero. -------------------------------------------------
trunk/lib/checkother.cpp:1855
↓ 1 callersMethodcheckboolFuncReturn
trunk/lib/checktscsuspicious.cpp:1473
↓ 1 callersMethodchecksuspiciousStrErrorInLoop
Loop StrStream buf.str();
trunk/lib/checktscsuspicious.cpp:628
↓ 1 callersMethodchecksuspiciousfor
trunk/lib/checktscsuspicious.cpp:686
↓ 1 callersMethodcheckwrongvarinfor
trunk/lib/checktscsuspicious.cpp:872
← previousnext →801–900 of 2,904, ranked by callers