mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
QL: run the redundat inline cast patch
This commit is contained in:
@@ -673,7 +673,7 @@ class Module extends TModule, ModuleDeclaration {
|
||||
|
||||
override string getAPrimaryQlClass() { result = "Module" }
|
||||
|
||||
override string getName() { result = mod.getName().(QL::ModuleName).getChild().getValue() }
|
||||
override string getName() { result = mod.getName().getChild().getValue() }
|
||||
|
||||
/**
|
||||
* Gets a member of the module.
|
||||
|
||||
@@ -16,7 +16,7 @@ where
|
||||
pred.getParent().getName() = className and
|
||||
pred.getName() = "getAPrimaryQlClass" and
|
||||
constant = pred.getBody().(ComparisonFormula).getRightOperand() and
|
||||
constant.(String).getValue() = constantName and
|
||||
constant.getValue() = constantName and
|
||||
// might be "Foo::classname", detect by matching with a regexp
|
||||
not constantName.regexpMatch(".*\\b" + className + "$") and
|
||||
// ignore constants with "?" in them
|
||||
|
||||
Reference in New Issue
Block a user