You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clang-tidy (check misc-include-cleaner) inserts C++ headers into plain C code. For example #include <cinttypes> instead of the expected #include <inttypes.h>.
Steps to reproduce:
# Extract the attached archive
tar xvf test-includes.tar.gz
cd test-includes
# Build the example program (compilation database is also created in the process)
mkdir build &&cd build
cmake ..
cmake --build .
run-clang-tidy-18.py -header-filter='-*' -checks='-*,misc-include-cleaner' -fix
# Observe that main.c now contains "#include <cinttypes>" as opposed to "#include <inttypes.h>".