Skip to content
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

Interactive mode for multiple files #1351

Open
MihaiUdrea opened this issue Apr 4, 2024 · 0 comments
Open

Interactive mode for multiple files #1351

MihaiUdrea opened this issue Apr 4, 2024 · 0 comments

Comments

@MihaiUdrea
Copy link

MihaiUdrea commented Apr 4, 2024

We could extend the interactive mode support to multiple files/solution/project.

Limitations/Chanlanges:

  • clang-query requests the searched files in command line its length limit is easily reached
  • multiple processes must be orchestrated
  • file change refresh

Proposal:

  • Leverage CurentDir, Relative Paths and ShortFileNames to maximize the no of files a clang-query instance searches in
  • start each clang-query proc in its optimum working dir (we could start them in batches to balance the system load, and that will also give us a progress indicator)
  • send the query to all the processes
  • gater all the results
  • at the next query, verify which files are newer than the process that handles it, and with all these files start a new clang-query process. Also ignore subsequent results for those files from previous query instance, but leave the old query process alive to handle the other files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant