Home
last modified time | relevance | path

Searched refs:strAt (Results 1 – 25 of 93) sorted by relevance

1234

/dports/devel/cppcheck/cppcheck-2.6.3/lib/
H A Dcheckstring.cpp104 const std::string &str1 = tok->strAt(2); in checkAlwaysTrueOrFalseStringCompare()
105 const std::string &str2 = tok->strAt(4); in checkAlwaysTrueOrFalseStringCompare()
110 const std::string &str1 = tok->strAt(2); in checkAlwaysTrueOrFalseStringCompare()
111 const std::string &str2 = tok->strAt(4); in checkAlwaysTrueOrFalseStringCompare()
116 const std::string &str1 = tok->strAt(2); in checkAlwaysTrueOrFalseStringCompare()
117 const std::string &str2 = tok->strAt(8); in checkAlwaysTrueOrFalseStringCompare()
123 const std::string &str1 = tok->strAt(4); in checkAlwaysTrueOrFalseStringCompare()
124 const std::string &str2 = tok->strAt(6); in checkAlwaysTrueOrFalseStringCompare()
128 const std::string &str1 = tok->strAt(1); in checkAlwaysTrueOrFalseStringCompare()
129 const std::string &str2 = tok->strAt(3); in checkAlwaysTrueOrFalseStringCompare()
[all …]
H A Dtemplatesimplifier.cpp99 if (mToken->strAt(1) == "<") { in TokenAndName()
183 if (start->strAt(-1) == "~") in TokenAndName()
572 if (tok2->strAt(1) == "{") in findTemplateDeclarationEnd()
630 if (tok->strAt(-1) == "<" || tok->strAt(-1) == ",") in getTemplateDeclarations()
633 if (tok->strAt(-1) == ">") in getTemplateDeclarations()
699 if (nameToken->strAt(1) == "(") in getFunctionArguments()
806 if (tok->strAt(1) == "(") { in getTemplateInstantiations()
1355 assert(instance->strAt(1) == "<"); in instantiateMatch()
2862 assert(tok->strAt(-1) == "<"); in getTemplateParametersInDeclaration()
3068 … if (templateDeclaration.nameToken()->strAt(-1) == "~" && instantiation.token()->strAt(-1) != "~") in simplifyTemplateInstantiations()
[all …]
H A Dtokenize.cpp71 return (tok->strAt(-1) == "enum") || (tok->strAt(-2) == "enum"); in isEnumStart()
1203 removed.insert(0, tok2->strAt(-2) + " " + tok2->strAt(-1)); in simplifyTypedef()
1957 if (tok1->strAt(-1) != ")" && tok1->strAt(-1) != "}") in setScopeInfo()
6910 !(tok->strAt(-1) == ":" || tok->strAt(-1) == "," || tok->strAt(-1) == "::")) { in simplifyFunctionParameters()
8335 (*tok2)->strAt(-5) == (*tok2)->strAt(-3)) { in simplifyKnownVariablesSimplify()
10092 syntaxErrorC(tok, tok->str() + tok->strAt(1) + tok->strAt(2)); in validateC()
10094 syntaxErrorC(tok, tok->str() + tok->strAt(1) + tok->strAt(2)); in validateC()
10629 tok->strAt(2) == tok->strAt(6) && tok->strAt(4) == tok->strAt(8)) || in simplifyWhile0()
10631 tok->strAt(3) == tok->strAt(7) && tok->strAt(5) == tok->strAt(9))); in simplifyWhile0()
11436 if (tok->strAt(1) != ";" && tok->strAt(1) != "{") in simplifyAsm()
[all …]
H A Dcheckinternal.cpp45 const std::string& funcname = tok->strAt(2); in checkTokenMatchPatterns()
137 const std::string& funcname = tok->strAt(2); in checkTokenSimpleMatchPatterns()
221 const std::string& funcname = tok->strAt(2); in checkMissingPercentCharacter()
301 const std::string& func2 = tok->linkAt(1)->strAt(2); in checkRedundantNextPrevious()
303 …vious" || func2 == "next" || func2 == "str" || func2 == "link") && tok->linkAt(1)->strAt(4) != ")") in checkRedundantNextPrevious()
309 const std::string& func2 = tok->strAt(8); in checkRedundantNextPrevious()
311 …c2 == "previous" || func2 == "next" || func2 == "str" || func2 == "link") && tok->strAt(10) != ")") in checkRedundantNextPrevious()
328 const std::string& funcname = tok->strAt(2); in checkExtraWhitespace()
H A Dcheckfunctions.cpp377 if (tok->strAt(-1) != "." in checkMathFunctions()
379 const std::string& number = tok->strAt(2); in checkMathFunctions()
384 const std::string& number = tok->strAt(2); in checkMathFunctions()
391 if (MathLib::isNullValue(tok->strAt(2)) && MathLib::isNullValue(tok->strAt(4))) in checkMathFunctions()
402 if (MathLib::isNullValue(tok->strAt(2)) && MathLib::isNegative(tok->strAt(4))) in checkMathFunctions()
410 …ch(tok->linkAt(1), ") - %num%") && Tokenizer::isOneNumber(tok->linkAt(1)->strAt(2)) && tok->linkAt… in checkMathFunctions()
426 …ing, "wrongmathcall", "$symbol:" + tok->str() + "\nPassing value " + tok->strAt(2) + " to $symbol(… in mathfunctionCallWarning()
428 …hcall", "$symbol:" + tok->str() + "\nPassing values " + tok->strAt(2) + " and " + tok->strAt(4) + … in mathfunctionCallWarning()
566 if (tok->linkAt(1)->strAt(1) == "(") in checkLibraryMatchFunctions()
H A Dchecksizeof.cpp127 else if (tok->strAt(1) == ")" && Token::Match(tok->linkAt(1)->tokAt(-2), "%var% =")) in checkSizeofForPointerSize()
133 } else if (Token::simpleMatch(tok, "memset (") && tok->strAt(-1) != ".") { in checkSizeofForPointerSize()
139 …f (Token::Match(tok, "memcpy|memcmp|memmove|strncpy|strncmp|strncat (") && tok->strAt(-1) != ".") { in checkSizeofForPointerSize()
211 if (tokSize->linkAt(1)->strAt(-1) == "*") { in checkSizeofForPointerSize()
377 if (end->strAt(-1) == "*" || (var && var->isPointer() && !var->isArray())) { in suspiciousSizeofCalculation()
378 if (end->strAt(1) == "/") in suspiciousSizeofCalculation()
411 sizeofDereferencedVoidPointerError(tok, tok->strAt(3)); in sizeofVoid()
/dports/devel/cppcheck-gui/cppcheck-2.6.3/lib/
H A Dcheckstring.cpp104 const std::string &str1 = tok->strAt(2); in checkAlwaysTrueOrFalseStringCompare()
105 const std::string &str2 = tok->strAt(4); in checkAlwaysTrueOrFalseStringCompare()
110 const std::string &str1 = tok->strAt(2); in checkAlwaysTrueOrFalseStringCompare()
111 const std::string &str2 = tok->strAt(4); in checkAlwaysTrueOrFalseStringCompare()
116 const std::string &str1 = tok->strAt(2); in checkAlwaysTrueOrFalseStringCompare()
117 const std::string &str2 = tok->strAt(8); in checkAlwaysTrueOrFalseStringCompare()
123 const std::string &str1 = tok->strAt(4); in checkAlwaysTrueOrFalseStringCompare()
124 const std::string &str2 = tok->strAt(6); in checkAlwaysTrueOrFalseStringCompare()
128 const std::string &str1 = tok->strAt(1); in checkAlwaysTrueOrFalseStringCompare()
129 const std::string &str2 = tok->strAt(3); in checkAlwaysTrueOrFalseStringCompare()
[all …]
H A Dtemplatesimplifier.cpp99 if (mToken->strAt(1) == "<") { in TokenAndName()
183 if (start->strAt(-1) == "~") in TokenAndName()
572 if (tok2->strAt(1) == "{") in findTemplateDeclarationEnd()
630 if (tok->strAt(-1) == "<" || tok->strAt(-1) == ",") in getTemplateDeclarations()
633 if (tok->strAt(-1) == ">") in getTemplateDeclarations()
699 if (nameToken->strAt(1) == "(") in getFunctionArguments()
806 if (tok->strAt(1) == "(") { in getTemplateInstantiations()
1355 assert(instance->strAt(1) == "<"); in instantiateMatch()
2862 assert(tok->strAt(-1) == "<"); in getTemplateParametersInDeclaration()
3068 … if (templateDeclaration.nameToken()->strAt(-1) == "~" && instantiation.token()->strAt(-1) != "~") in simplifyTemplateInstantiations()
[all …]
H A Dtokenize.cpp71 return (tok->strAt(-1) == "enum") || (tok->strAt(-2) == "enum"); in isEnumStart()
1203 removed.insert(0, tok2->strAt(-2) + " " + tok2->strAt(-1)); in simplifyTypedef()
1957 if (tok1->strAt(-1) != ")" && tok1->strAt(-1) != "}") in setScopeInfo()
6910 !(tok->strAt(-1) == ":" || tok->strAt(-1) == "," || tok->strAt(-1) == "::")) { in simplifyFunctionParameters()
8335 (*tok2)->strAt(-5) == (*tok2)->strAt(-3)) { in simplifyKnownVariablesSimplify()
10092 syntaxErrorC(tok, tok->str() + tok->strAt(1) + tok->strAt(2)); in validateC()
10094 syntaxErrorC(tok, tok->str() + tok->strAt(1) + tok->strAt(2)); in validateC()
10629 tok->strAt(2) == tok->strAt(6) && tok->strAt(4) == tok->strAt(8)) || in simplifyWhile0()
10631 tok->strAt(3) == tok->strAt(7) && tok->strAt(5) == tok->strAt(9))); in simplifyWhile0()
11436 if (tok->strAt(1) != ";" && tok->strAt(1) != "{") in simplifyAsm()
[all …]
H A Dcheckinternal.cpp45 const std::string& funcname = tok->strAt(2); in checkTokenMatchPatterns()
137 const std::string& funcname = tok->strAt(2); in checkTokenSimpleMatchPatterns()
221 const std::string& funcname = tok->strAt(2); in checkMissingPercentCharacter()
301 const std::string& func2 = tok->linkAt(1)->strAt(2); in checkRedundantNextPrevious()
303 …vious" || func2 == "next" || func2 == "str" || func2 == "link") && tok->linkAt(1)->strAt(4) != ")") in checkRedundantNextPrevious()
309 const std::string& func2 = tok->strAt(8); in checkRedundantNextPrevious()
311 …c2 == "previous" || func2 == "next" || func2 == "str" || func2 == "link") && tok->strAt(10) != ")") in checkRedundantNextPrevious()
328 const std::string& funcname = tok->strAt(2); in checkExtraWhitespace()
H A Dcheckfunctions.cpp377 if (tok->strAt(-1) != "." in checkMathFunctions()
379 const std::string& number = tok->strAt(2); in checkMathFunctions()
384 const std::string& number = tok->strAt(2); in checkMathFunctions()
391 if (MathLib::isNullValue(tok->strAt(2)) && MathLib::isNullValue(tok->strAt(4))) in checkMathFunctions()
402 if (MathLib::isNullValue(tok->strAt(2)) && MathLib::isNegative(tok->strAt(4))) in checkMathFunctions()
410 …ch(tok->linkAt(1), ") - %num%") && Tokenizer::isOneNumber(tok->linkAt(1)->strAt(2)) && tok->linkAt… in checkMathFunctions()
426 …ing, "wrongmathcall", "$symbol:" + tok->str() + "\nPassing value " + tok->strAt(2) + " to $symbol(… in mathfunctionCallWarning()
428 …hcall", "$symbol:" + tok->str() + "\nPassing values " + tok->strAt(2) + " and " + tok->strAt(4) + … in mathfunctionCallWarning()
566 if (tok->linkAt(1)->strAt(1) == "(") in checkLibraryMatchFunctions()
H A Dchecksizeof.cpp127 else if (tok->strAt(1) == ")" && Token::Match(tok->linkAt(1)->tokAt(-2), "%var% =")) in checkSizeofForPointerSize()
133 } else if (Token::simpleMatch(tok, "memset (") && tok->strAt(-1) != ".") { in checkSizeofForPointerSize()
139 …f (Token::Match(tok, "memcpy|memcmp|memmove|strncpy|strncmp|strncat (") && tok->strAt(-1) != ".") { in checkSizeofForPointerSize()
211 if (tokSize->linkAt(1)->strAt(-1) == "*") { in checkSizeofForPointerSize()
377 if (end->strAt(-1) == "*" || (var && var->isPointer() && !var->isArray())) { in suspiciousSizeofCalculation()
378 if (end->strAt(1) == "/") in suspiciousSizeofCalculation()
411 sizeofDereferencedVoidPointerError(tok, tok->strAt(3)); in sizeofVoid()
/dports/lang/purescript/purescript-0.14.5/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Lazy/Search/
H A DKarpRabin.hs173 strAt !i = unsafeIndex str i function
181 let !h' = rehash h (strAt sI) (unsafeIndex nxt 0)
187 else go (rehash h (strAt sI) (strAt (sI + hLen))) (sI + 1)
192 hd = strAt sI
204 else go (rehash h hd (strAt (sI + hLen))) (sI + 1)
223 strAt !i = unsafeIndex str i function
232 h' = rehash h (prevAt p) (strAt s)
237 more = go (rehash h (prevAt p) (strAt s)) (p + 1) (s + 1)
/dports/devel/hs-spago/spago-0.20.3/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Lazy/Search/
H A DKarpRabin.hs173 strAt !i = unsafeIndex str i function
181 let !h' = rehash h (strAt sI) (unsafeIndex nxt 0)
187 else go (rehash h (strAt sI) (strAt (sI + hLen))) (sI + 1)
192 hd = strAt sI
204 else go (rehash h hd (strAt (sI + hLen))) (sI + 1)
223 strAt !i = unsafeIndex str i function
232 h' = rehash h (prevAt p) (strAt s)
237 more = go (rehash h (prevAt p) (strAt s)) (p + 1) (s + 1)
/dports/textproc/cgrep/cgrep-6.6.32/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Lazy/Search/
H A DKarpRabin.hs173 strAt !i = unsafeIndex str i function
181 let !h' = rehash h (strAt sI) (unsafeIndex nxt 0)
187 else go (rehash h (strAt sI) (strAt (sI + hLen))) (sI + 1)
192 hd = strAt sI
204 else go (rehash h hd (strAt (sI + hLen))) (sI + 1)
223 strAt !i = unsafeIndex str i function
232 h' = rehash h (prevAt p) (strAt s)
237 more = go (rehash h (prevAt p) (strAt s)) (p + 1) (s + 1)
/dports/devel/cppcheck-gui/cppcheck-2.6.3/gui/test/data/benchmark/
H A Dsimple.cpp74 if (tok->strAt(1) == "?") { in clarifyCalculation()
2316 if (tok->strAt(-1) == "=") { in lookupVar()
2472 structname = tok->strAt(1); in checkStructMemberUsage()
2513 varname = tok->strAt(2); in checkStructMemberUsage()
2515 varname = tok->strAt(3); in checkStructMemberUsage()
2517 varname = tok->strAt(3); in checkStructMemberUsage()
2519 varname = tok->strAt(4); in checkStructMemberUsage()
3106 tok->strAt(1) == tok->strAt(3)) { in checkDuplicateExpression()
3118 tok->strAt(1) == tok->strAt(5) && tok->strAt(3) == tok->strAt(7)) { in checkDuplicateExpression()
3153 alwaysTrueFalseStringCompare(tok, tok->strAt(2), tok->strAt(4)); in checkAlwaysTrueOrFalseStringCompare()
[all …]
/dports/devel/cppcheck/cppcheck-2.6.3/gui/test/data/benchmark/
H A Dsimple.cpp74 if (tok->strAt(1) == "?") { in clarifyCalculation()
2316 if (tok->strAt(-1) == "=") { in lookupVar()
2472 structname = tok->strAt(1); in checkStructMemberUsage()
2513 varname = tok->strAt(2); in checkStructMemberUsage()
2515 varname = tok->strAt(3); in checkStructMemberUsage()
2517 varname = tok->strAt(3); in checkStructMemberUsage()
2519 varname = tok->strAt(4); in checkStructMemberUsage()
3106 tok->strAt(1) == tok->strAt(3)) { in checkDuplicateExpression()
3118 tok->strAt(1) == tok->strAt(5) && tok->strAt(3) == tok->strAt(7)) { in checkDuplicateExpression()
3153 alwaysTrueFalseStringCompare(tok, tok->strAt(2), tok->strAt(4)); in checkAlwaysTrueOrFalseStringCompare()
[all …]
/dports/lang/purescript/purescript-0.14.5/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Search/
H A DKarpRabin.hs155 strAt !i = unsafeIndex str i function
162 else go (sI + 1) (rehash h (strAt sI) (strAt (sI + hLen)))
166 hd = strAt sI
169 go (sI + 1) (rehash h hd (strAt (sI + hLen)))
/dports/devel/hs-spago/spago-0.20.3/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Search/
H A DKarpRabin.hs155 strAt !i = unsafeIndex str i function
162 else go (sI + 1) (rehash h (strAt sI) (strAt (sI + hLen)))
166 hd = strAt sI
169 go (sI + 1) (rehash h hd (strAt (sI + hLen)))
/dports/textproc/cgrep/cgrep-6.6.32/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Search/
H A DKarpRabin.hs155 strAt !i = unsafeIndex str i function
162 else go (sI + 1) (rehash h (strAt sI) (strAt (sI + hLen)))
166 hd = strAt sI
169 go (sI + 1) (rehash h hd (strAt (sI + hLen)))
/dports/lang/purescript/purescript-0.14.5/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Lazy/Search/Internal/
H A DBoyerMoore.hs476 strAt !i = unsafeIndex str i function
485 case strAt sI of
504 case strAt (diff + patI) of
524 case strAt (diff + patI) of
554 case strAt (diff + patI) of
645 strAt !i = unsafeIndex str i function
655 case strAt sI of
665 case strAt (off + patI) of
677 case strAt (off + patI) of
861 strAt !i = unsafeIndex str i function
[all …]
/dports/devel/hs-spago/spago-0.20.3/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Lazy/Search/Internal/
H A DBoyerMoore.hs476 strAt !i = unsafeIndex str i function
485 case strAt sI of
504 case strAt (diff + patI) of
524 case strAt (diff + patI) of
554 case strAt (diff + patI) of
645 strAt !i = unsafeIndex str i function
655 case strAt sI of
665 case strAt (off + patI) of
677 case strAt (off + patI) of
861 strAt !i = unsafeIndex str i function
[all …]
/dports/textproc/cgrep/cgrep-6.6.32/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Lazy/Search/Internal/
H A DBoyerMoore.hs476 strAt !i = unsafeIndex str i function
485 case strAt sI of
504 case strAt (diff + patI) of
524 case strAt (diff + patI) of
554 case strAt (diff + patI) of
645 strAt !i = unsafeIndex str i function
655 case strAt sI of
665 case strAt (off + patI) of
677 case strAt (off + patI) of
861 strAt !i = unsafeIndex str i function
[all …]
/dports/lang/purescript/purescript-0.14.5/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Search/Internal/
H A DKnuthMorrisPratt.hs209 strAt !i = unsafeIndex str i function
213 | strAt strI == patH = findMatch 1 (strI + 1) function
222 if strAt strI == patAt patI
/dports/devel/hs-spago/spago-0.20.3/_cabal_deps/stringsearch-0.3.6.6/Data/ByteString/Search/Internal/
H A DKnuthMorrisPratt.hs209 strAt !i = unsafeIndex str i function
213 | strAt strI == patH = findMatch 1 (strI + 1) function
222 if strAt strI == patAt patI

1234