matcher-cookbook.rst (535B)
1 .. _matcher_cookbook: 2 3 Matcher Cookbook 4 ================= 5 6 This page is designed to be a selection of common ingredients to a more complicated matcher. 7 8 .. list-table:: 9 :widths: 35 65 10 :header-rows: 1 11 :class: matcher-cookbook 12 13 * - Desired Outcome 14 - Syntax 15 * - Ignore header files 16 17 *If you have an #include in your example code, your matcher may match things in the header files.* 18 - Add **isExpansionInMainFile()** to the matcher. e.g. 19 20 ``m functionDecl(isExpansionInMainFile())`` 21 22 23 *More coming*