![]() The Release Candidate branches are the release branches. You can get the source files from the release page or a release branch usually named rcx. So please keep in mind that I will have to draw the line somewhere. If everything gets implemented, that is, cgrep implements every possible switch(well, a subset of "all"), we end up with an inferior version of clang-query that would be too slow to be of any use to anyone. If it makes sense sure, but I want to be careful with what cgrep implements. Will cgrep support a new switch that matches X? That being said, I might have missd something so you can always make suggestions in the form of a new issue. Most of grep's switches don't apply to the usecase or provide almost no benefits at all. The main distinction is that cgrep is only meant to work on C-family source files not text files. Will cgrep try to implement all of the grep switches? Can output matches in a script-friendly format which could be used in turn by a secondary script.Can output whether to print the declaration of a match even if the match itself is not a declaration along with the matched result.You have all the context you can ever need. It's basically Clang regexing it's way through your C-family source-code.Cgrep -regex * -func -A 1 -B 1 myawesomecode.cppĪnd it will match your regex against all function declarations, and will output the result, plus one line before and after the context.Ĭgrep is implemented using Clang's libtooling libraries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |