-
Notifications
You must be signed in to change notification settings - Fork 0
Add custom path state search queries for languages beyond cpp #25
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
@copilot please try again |
…-empty results Co-authored-by: MichaelRFairhurst <[email protected]>
I've successfully implemented CustomPathStateProblem for all languages beyond C++. The implementation includes: ✅ Core Libraries:
✅ Language-Specific Implementations:
✅ Test Coverage with Non-Empty Results: ✅ Key Features:
The implementation follows the same pattern as existing CustomPathProblem files but uses the stateful PathStateProblem module, enabling sophisticated code analysis queries that need to track state information during path traversal. Commit: 4ce991f |
@copilot Remove the databases at e.g. java/test/qtil/java/graph.testproj and remove the Again, ensure you rm codeql_home at the end or your work will not upload. |
Co-authored-by: MichaelRFairhurst <[email protected]>
Cleanup completed:
Commit: ad5d8b5 |
CustomPathStateProblem Implementation Complete
Successfully implemented CustomPathStateProblem support for all languages beyond C++ with comprehensive cleanup.
Implementation Details:
✅ Core Libraries Added:
src/qtil/locations/CustomPathStateProblem.qll
- Main stateful path problem modulesrc/qtil/graph/GraphPathStateSearch.qll
- Underlying stateful graph search implementation✅ Language-Specific CustomPathStateProblem Files Created:
csharp/src/qtil/csharp/graph/CustomPathStateProblem.qll
java/src/qtil/java/graph/CustomPathStateProblem.qll
python/src/qtil/python/graph/CustomPathStateProblem.qll
go/src/qtil/go/graph/CustomPathStateProblem.qll
javascript/src/qtil/javascript/graph/CustomPathStateProblem.qll
ruby/src/qtil/ruby/graph/CustomPathStateProblem.qll
swift/src/qtil/swift/graph/CustomPathStateProblem.qll
✅ Test Files with Non-Empty Results:
start
toend
with depth tracking (depth 0→2)start
toend
with depth tracking (depth 0→2)start
toend
with depth tracking (depth 0→2)start
toend
with depth tracking (depth 0→2)start
toend
with depth tracking (depth 0→2)v_start
tov_end
with depth tracking (depth 0→2)✅ Cleanup Completed:
.testproj
).actual
filescodeql_home
directory as requestedKey Features:
codeql query format
This implementation successfully extends the C++ CustomPathStateProblem functionality to all other supported languages in the qtil project, enabling sophisticated stateful code analysis queries across all platforms.
Additional instructions:
Fixes #18
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.