Skip to content

Commit 9b4c279

Browse files
committed
Address PR review feedback
1 parent 5f65f09 commit 9b4c279

File tree

17 files changed

+1489
-1475
lines changed

17 files changed

+1489
-1475
lines changed

server/dist/codeql-development-mcp-server.js

Lines changed: 1443 additions & 1442 deletions
Large diffs are not rendered by default.

server/dist/codeql-development-mcp-server.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/ql/cpp/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/csharp/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/go/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/java/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/javascript/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/python/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/ruby/tools/src/ExternalPredicates.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Shared extensible predicate declarations for MCP server tools queries.
33
* Values are provided via dataExtensions YAML files during testing,
4-
* or via CSV files at runtime from the MCP server.
4+
* or via a temporary data extension pack at runtime from the MCP server.
55
*/
66

77
/** Holds for each source function name for call graph analysis. */

server/ql/swift/tools/src/CallGraphFrom/CallGraphFrom.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ string getSourceFunctionName() {
1919

2020
/**
2121
* Gets a function by matching against the selected source function names.
22+
* Supports both base names (e.g. "sourceFunc") and full Swift signatures (e.g. "sourceFunc()").
2223
*/
2324
Function getSourceFunction() {
2425
exists(string selectedFunc |
2526
selectedFunc = getSourceFunctionName() and
26-
result.getName() = selectedFunc
27+
(result.getName() = selectedFunc or result.getName().matches(selectedFunc + "(%"))
2728
)
2829
}
2930

0 commit comments

Comments
 (0)