Skip to content

Commit

Permalink
HOWTO.md: add a note about running the tests from the build dir directly
Browse files Browse the repository at this point in the history
... without installation. I needed to export CLAZYPLUGIN_CXX and
CLAZYSTANDALONE_CXX to point to the build dir.
  • Loading branch information
Ahmad Samir committed Feb 11, 2025
1 parent 2fd72ee commit 1cf962e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ which will generate the files you need to write, and edit others for you.

- Look in `Utils.h`, `StringUtils.h`, `QtUtils.h`, `FixitUtils.h`, etc for helper functions you might need.

- If you try to run the tests from the build dir directly without installation, you may get error
messages about not finding `ClazyPlugin.so` and/or `clazy-standalone` when you call
`run_tests.py`. This can be resolved by exporting the following environment variables:

`export CLAZYPLUGIN_CXX=<path-to-builddir>/lib/ClazyPlugin.so && export CLAZYSTANDALONE_CXX=<path-to-builddir>/bin/clazy-standalone`

## Using ASTMatchers

- See the `qcolor-from-literal` check for how to use ASTMatchers with clazy
Expand Down

0 comments on commit 1cf962e

Please sign in to comment.