-
Notifications
You must be signed in to change notification settings - Fork 86
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
[Enhancement] Better 'cqsearch.exe' output results #92
Comments
Hi @pidgeon777 |
@pidgeon777 |
Hi @ruben2020
I think it could be easily solved by adding a further option argument to
By doing so, my proposed "enhanced" output format would be enabled only when specifying that switch, leaving the default
Yes, Anyway, by also displaying the function where the symbol is referenced and applying some further filtering (for example with
For example, one could want to verify that a variable is read or written only in one function, and not in more of them. Or check in which functions, and how many times, a function is called. With my proposed output, it would be much easier to check for that, for example. Finally, with With
My fault. If then, a new column could be added and resulting in this new output:
Where Again, all of this could be enabled by specifying the |
Let consider this command:
We are searching for all the
func_name
function calls in the code.This would be the output:
My proposal, and I hope it will be considered, is to replace the first column of the results (consisting in the name of the searched function), with the function name where the call occurs.
Thus, something as follows would be achieved:
This improved output could be applied by adding a new command line switch to the
cqsearch.exe
executable so that a user could decide if to enable it or not.Moreover, when searching for symbol occurrences with
cqsearch.exe
, the possible values for the n switch are:My proposal is to enhance the output for the types marked with V. With the ? symbol I marked the kinds for which I'm not sure the new output format should be applied. Finally, X marks those types for which, in my opinion, the new output format would not make sense.
What do you think, @ruben2020?
The text was updated successfully, but these errors were encountered: