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

How to define two statements within a block? #80

Open
wcy1997 opened this issue Apr 23, 2023 · 1 comment
Open

How to define two statements within a block? #80

wcy1997 opened this issue Apr 23, 2023 · 1 comment

Comments

@wcy1997
Copy link

wcy1997 commented Apr 23, 2023

I want to search for vulnerability code for unique_ptr moved twice. Therefore, I need to search for code snippets in the same block for double move statements. For example,
{ std::move(a); std::move(a) }
How can I search such code snippets?

p.s. I find that tree-sitter supports such feature.
image

@wcy1997
Copy link
Author

wcy1997 commented Apr 23, 2023

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