Matcher Cookbook

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

Desired Outcome

Syntax

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