1
0
Fork 0
firefox/docs/code-quality/static-analysis/writing-new/matcher-cookbook.rst
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
535 B
ReStructuredText

.. _matcher_cookbook:
Matcher Cookbook
=================
This page is designed to be a selection of common ingredients to a more complicated matcher.
.. list-table::
:widths: 35 65
:header-rows: 1
:class: matcher-cookbook
* - 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*