1

how should I use clang-query to match specified string souece code:

int main()
{
__asm__ __volatile__("pause");
}

I want to substituted "yield" for "pause"

what I have tried in clang-query, I can only match the stringLiteral and I cant match "pause"

match asmStmt(hasDescendant(stringLiteral()))

how should I match "pause" in clang-query

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.