Matcher CookbookΒΆ

This page is designed to be a selection of common ingredients to a more complicated matcher.

Desired Outcome


Ignore header files

If you have an #include in your example code, your matcher may match things in the header files.

Add isExpansionInMainFile() to the matcher. e.g.

m functionDecl(isExpansionInMainFile())

More coming