xref: /openbmc/phosphor-power/phosphor-regulators/test/test_utils.cpp (revision 891112db3d77d415a29776feb529dfb2644c7f55)
1*891112dbSJayanth Othayoth // This .cpp file was added as a workaround for clang-tidy limitations.
2*891112dbSJayanth Othayoth // Meson runs clang-tidy directly on headers (.hpp), but the tool relies on
3*891112dbSJayanth Othayoth // compile_commands.json, which only defines context for .cpp files.
4*891112dbSJayanth Othayoth // This results in invalid diagnostics when headers are processed alone.
5*891112dbSJayanth Othayoth // The workaround ensures headers like test_utils.hpp are properly analyzed
6*891112dbSJayanth Othayoth // via corresponding .cpp compilation units using HeaderFilterRegex settings.
7*891112dbSJayanth Othayoth 
8*891112dbSJayanth Othayoth #include "test_utils.hpp"
9