History log of /openbmc/phosphor-power/phosphor-regulators/test/test_utils.cpp (Results 1 – 1 of 1)
Revision Date Author Comments
# 891112db 08-Jun-2025 Jayanth Othayoth <ojayanth@gmail.com>

clang-tidy: wrap test_utils.hpp in cpp

Introduced a temporary wrapper `.cpp` file that includes
`test_utils.hpp` to allow clang-tidy to analyze the header
in the correct compilation context.

clang-

clang-tidy: wrap test_utils.hpp in cpp

Introduced a temporary wrapper `.cpp` file that includes
`test_utils.hpp` to allow clang-tidy to analyze the header
in the correct compilation context.

clang-tidy was failing to resolve includes like `actions/action.hpp`
when run directly on `test_utils.hpp`, due to missing include path
context in the compilation database. This is a known limitation when
analyzing header files outside of a translation unit.

By wrapping the header in a `.cpp` file and running clang-tidy on
that instead, we ensure that all include paths and macros are
correctly applied, resolving false-positive errors and improving
static analysis reliability.

Change-Id: I9a72d14ab844c0b53eebea6229e0bc22ff8aa273
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>

show more ...