mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
Merge pull request #5962 from erik-krogh/getAPrimaryQlClass
CPP/Java: Fix getAPrimaryQlClass implementations
This commit is contained in:
@@ -37,7 +37,7 @@ class FunctionSpecifier extends Specifier {
|
|||||||
this.hasName("explicit")
|
this.hasName("explicit")
|
||||||
}
|
}
|
||||||
|
|
||||||
override string getAPrimaryQlClass() { result = "FunctionSpecifier)" }
|
override string getAPrimaryQlClass() { result = "FunctionSpecifier" }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -739,7 +739,7 @@ class LabeledStmt extends Stmt, @labeledstmt {
|
|||||||
/** This statement's Halstead ID (used to compute Halstead metrics). */
|
/** This statement's Halstead ID (used to compute Halstead metrics). */
|
||||||
override string getHalsteadID() { result = this.getLabel() + ":" }
|
override string getHalsteadID() { result = this.getLabel() + ":" }
|
||||||
|
|
||||||
override string getAPrimaryQlClass() { result = "LabelStmt" }
|
override string getAPrimaryQlClass() { result = "LabeledStmt" }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** An `assert` statement. */
|
/** An `assert` statement. */
|
||||||
|
|||||||
Reference in New Issue
Block a user