<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118182>118182</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang-tidy fails with modules
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
selassje
</td>
</tr>
</table>
<pre>
Ubuntu LLVM version 19.1.5
Optimized build.
https://github.com/selassje/aoc/actions/runs/12098155004/job/33734325670
FAILED: src/CMakeFiles/aoc.dir/aoc24/day1.cpp.o
/opt/hostedtoolcache/cmake/3.28.6/x64/cmake-3.28.6-linux-x86_64/bin/cmake -E __run_co_compile --tidy="/usr/bin/clang-tidy;--extra-arg-before=--driver-mode=g++" --source=/home/runner/work/aoc/aoc/src/aoc24/day1.cpp -- /usr/bin/clang++ -DENABLE_TESTS -I/home/runner/work/aoc/aoc/src/../include -isystem /home/runner/work/aoc/aoc/tests/Catch2/src/catch2/.. -isystem /home/runner/work/aoc/aoc/build/tests/Catch2/generated-includes -O3 -DNDEBUG -std=gnu++23 -Wall -Wextra -Wpedantic -Werror -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wconversion -Wsign-conversion -Wmisleading-indentation -Wnull-dereference -Wdouble-promotion -Wformat=2 -Wimplicit-fallthrough -stdlib=libc++ -MD -MT src/CMakeFiles/aoc.dir/aoc24/day1.cpp.o -MF src/CMakeFiles/aoc.dir/aoc24/day1.cpp.o.d @src/CMakeFiles/aoc.dir/aoc24/day1.cpp.o.modmap -o src/CMakeFiles/aoc.dir/aoc24/day1.cpp.o -c /home/runner/work/aoc/aoc/src/aoc24/day1.cpp
/home/runner/work/aoc/aoc/src/aoc24/day1.cpp:1:8: error: module 'aoc24_day1' not found [clang-diagnostic-error]
1 | module aoc24_day1;
The same file compiles fine without clang-tidy enabled
https://github.com/selassje/aoc/actions/runs/12098155004/job/33734325736
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VU2P2zYQ_TX0hRhBomTLPuhgr1dFgN3kkE19NChyJDGhSIMfm93--oLSupsWQREXKCCIEmfmzeBx5pF7rwaD2JD1gayPKx7DaF3jUXPvv-Kqs_K1Ifn-SxdNiPTh4fdH-ozOK2toscuKbE3yPaWfLkFN6g-UtItKy4zke5LvxxAunpR7wlrC2kGFMXaZsBNh7TUBYS23Ir1FUNZ4wloX56Vg-W5brNd5XhHWfrUdYW1Z1mVVsvWmzpcM7f7Dw_2RlHvqXUK5e-TfsFUa_QKcSeWWL5ZQJH8tMnG5ZJameNbaSyCsHa0PKIO1WnAxpprExL-ltczYNtsQ1r5squs2LJuglYkv8LLdnGdbp8zVg8I9PZ9dNGdhz8JOF6WRAgQlX0l5JIwR1kbv3oM0N8Ob-QCAL8Fx4G6ADnvrkJRHAOnUMzqYrEz_A2GH-WEUwNvoBM7I7WgnXDg0mBJ8t-7bO8fze2Hqn5RQAPqzspZEFI73H_eHh_vz0_3np88UPtySK8sIa5UROkqkoPyrDzjRX0MI6EM6zDsexMj-ghTX3yy7FXHu0J8hD2jQ8YAS3mr1FD6VFI4fj_eHL79R8EEm7k1cSGElhRPXmsJpPjIKpwtKboISacs56yic_Mil_U7hZKyBZ-VC5BpkmG1WS_DhVSMI7gOFU1qAazUYCqdookeZ3J7RacslyitAcrXmOohwSkMMf9uZlNfIpTIDKCPRBB4Wg4lag0SHPTo0AimcpI2dRrg4O9k3r966iQdSHhmFk5ouWgkVoOdah9HZOIwzG1p1pDxq1YlrmzweKTw-3TyN8NjeGpNJSqr81qDJyolfKNjbSxS_2F8_n69Fb_57eLkvSLnfJqmbOyt9TFZGjZSwenY_J2fCampsoL2NRlKyPiziIhUfjPVBCVjC18dZuCktKKnvrlA_4JSHRWKfRqSeT0j7pGJvauZprwxS-l2F0cZA3xWMouGdRvl_yn9dblayKeWu3PEVNkVdst12u9muV2PTb0VfVv2uyPt-UxdVl-ddV5fVZrvBim02K9WwnFVFUeZFXVVVlYld19Wsk3wnCtnVG1LlOHGlM62fp8y6YaW8j9gUxbbYspXmHWo_35eM_aDcjKX70zUpCro4eFLlWvng33GCChqbu3eueq60n0l8OwC_ik43_0Jcwnpb0rx-RZEusLnAmbWlxueG_RkAAP__gYJ_kg">