-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust: Refactor Call class implementation
#20863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
27fdd29 to
d068588
Compare
b044b33 to
f829afd
Compare
e2f85cf to
e98f41f
Compare
| private import internal.MethodCallExprImpl | ||
| import codeql.rust.elements.CallExprBase | ||
| import codeql.rust.elements.ArgList | ||
| import codeql.rust.elements.Attr |
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.CallExprBase
3938385 to
3346914
Compare
ff7dd62 to
2559678
Compare
2559678 to
9971a0c
Compare
| private import internal.ParenArgsExprImpl | ||
| import codeql.rust.elements.ArgList | ||
| import codeql.rust.elements.Attr | ||
| import codeql.rust.elements.Expr |
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.ArgList
| private import codeql.rust.elements.internal.generated.Raw | ||
| import codeql.rust.elements.ArgList | ||
| import codeql.rust.elements.Attr | ||
| import codeql.rust.elements.Expr |
Check warning
Code scanning / CodeQL
Redundant import Warning generated
codeql.rust.elements.ArgList
| ce.getStaticTarget().(Function).getName().getText() = | ||
| exists(CallExpr call, string rawAlgorithmName | | ||
| call = this.asExpr() and | ||
| call.getStaticTarget().(Function).getName().getText() = |
Check warning
Code scanning / CodeQL
Redundant cast Warning
Function
|
|
||
| query predicate instances(ParenArgsExpr x) { toBeTested(x) and not x.isUnknown() } | ||
|
|
||
| query predicate getArgList(ParenArgsExpr x, ArgList getArgList) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
| toBeTested(x) and not x.isUnknown() and getArgList = x.getArgList() | ||
| } | ||
|
|
||
| query predicate getAttr(ParenArgsExpr x, int index, Attr getAttr) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
| toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index) | ||
| } | ||
|
|
||
| query predicate getBase(ParenArgsExpr x, Expr getBase) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
9971a0c to
2241f81
Compare
2241f81 to
044a32e
Compare
No description provided.