mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +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")
|
||||
}
|
||||
|
||||
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). */
|
||||
override string getHalsteadID() { result = this.getLabel() + ":" }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "LabelStmt" }
|
||||
override string getAPrimaryQlClass() { result = "LabeledStmt" }
|
||||
}
|
||||
|
||||
/** An `assert` statement. */
|
||||
|
||||
Reference in New Issue
Block a user