<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Missing implicit include paths with clang-tidy in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Missing-implicit-include-paths-with-clang-tidy/m-p/1749159#M4760</link>
    <description>&lt;P&gt;Hello, I believe there is an issue in the way clang-tidy, as provided by oneAPI, handles implicit include paths.&lt;/P&gt;&lt;P&gt;Given this file:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// test.cpp
#include &amp;lt;omp.h&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;A run of `icpx -c test.cpp` passes without issues, but a run of `/opt/intel/oneapi/compiler/latest/bin/compiler/clang-tidy --checks=* test.cpp` fails with the following error:&lt;/P&gt;&lt;PRE&gt;Error while processing test.cpp.&lt;BR /&gt;test.cpp:1:10: error: 'omp.h' file not found [clang-diagnostic-error]&lt;BR /&gt;1 | #include &amp;lt;omp.h&amp;gt;&lt;BR /&gt;| ^~~~~~~&lt;BR /&gt;Found compiler error(s).&lt;/PRE&gt;&lt;P&gt;I tried with various combinations of -fiopenmp and -fopenmp for the same result.&lt;/P&gt;&lt;P&gt;If we check default include paths with `icpx -x c++ -v -c /dev/null`:&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;...&amp;gt; search starts here:&lt;BR /&gt;/opt/intel/oneapi/dev-utilities/2026.0/include&lt;BR /&gt;/opt/intel/oneapi/umf/1.1/include&lt;BR /&gt;/opt/intel/oneapi/tbb/2023.0/env/../include&lt;BR /&gt;/opt/intel/oneapi/dpl/2022.12/include&lt;BR /&gt;/opt/intel/oneapi/compiler/2026.0/bin/compiler/../../opt/compiler/include&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/x86_64-linux-gnu/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/backward&lt;BR /&gt;/opt/intel/oneapi/compiler/2026.0/lib/clang/22/include&lt;BR /&gt;/usr/local/include&lt;BR /&gt;/usr/include/x86_64-linux-gnu&lt;BR /&gt;/usr/include&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And compare with those of clang-tidy with `clang-tidy /dev/null -- -x c++ -v -c /dev/null`:&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;...&amp;gt; search starts here:&lt;BR /&gt;/opt/intel/oneapi/dev-utilities/2026.0/include&lt;BR /&gt;/opt/intel/oneapi/umf/1.1/include&lt;BR /&gt;/opt/intel/oneapi/tbb/2023.0/env/../include&lt;BR /&gt;/opt/intel/oneapi/dpl/2022.12/include&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/x86_64-linux-gnu/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/backward&lt;BR /&gt;/usr/lib/llvm-20/lib/clang/20/include&lt;BR /&gt;/usr/local/include&lt;BR /&gt;/usr/include/x86_64-linux-gnu&lt;BR /&gt;/usr/include&lt;/PRE&gt;&lt;P&gt;We can see that the path `/opt/intel/oneapi/compiler/2026.0/bin/compiler/../../opt/compiler/include`, which contains omp.h, is missing from the latter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 06:34:18 GMT</pubDate>
    <dc:creator>julien-j</dc:creator>
    <dc:date>2026-05-27T06:34:18Z</dc:date>
    <item>
      <title>Missing implicit include paths with clang-tidy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Missing-implicit-include-paths-with-clang-tidy/m-p/1749159#M4760</link>
      <description>&lt;P&gt;Hello, I believe there is an issue in the way clang-tidy, as provided by oneAPI, handles implicit include paths.&lt;/P&gt;&lt;P&gt;Given this file:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// test.cpp
#include &amp;lt;omp.h&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;A run of `icpx -c test.cpp` passes without issues, but a run of `/opt/intel/oneapi/compiler/latest/bin/compiler/clang-tidy --checks=* test.cpp` fails with the following error:&lt;/P&gt;&lt;PRE&gt;Error while processing test.cpp.&lt;BR /&gt;test.cpp:1:10: error: 'omp.h' file not found [clang-diagnostic-error]&lt;BR /&gt;1 | #include &amp;lt;omp.h&amp;gt;&lt;BR /&gt;| ^~~~~~~&lt;BR /&gt;Found compiler error(s).&lt;/PRE&gt;&lt;P&gt;I tried with various combinations of -fiopenmp and -fopenmp for the same result.&lt;/P&gt;&lt;P&gt;If we check default include paths with `icpx -x c++ -v -c /dev/null`:&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;...&amp;gt; search starts here:&lt;BR /&gt;/opt/intel/oneapi/dev-utilities/2026.0/include&lt;BR /&gt;/opt/intel/oneapi/umf/1.1/include&lt;BR /&gt;/opt/intel/oneapi/tbb/2023.0/env/../include&lt;BR /&gt;/opt/intel/oneapi/dpl/2022.12/include&lt;BR /&gt;/opt/intel/oneapi/compiler/2026.0/bin/compiler/../../opt/compiler/include&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/x86_64-linux-gnu/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/backward&lt;BR /&gt;/opt/intel/oneapi/compiler/2026.0/lib/clang/22/include&lt;BR /&gt;/usr/local/include&lt;BR /&gt;/usr/include/x86_64-linux-gnu&lt;BR /&gt;/usr/include&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And compare with those of clang-tidy with `clang-tidy /dev/null -- -x c++ -v -c /dev/null`:&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;...&amp;gt; search starts here:&lt;BR /&gt;/opt/intel/oneapi/dev-utilities/2026.0/include&lt;BR /&gt;/opt/intel/oneapi/umf/1.1/include&lt;BR /&gt;/opt/intel/oneapi/tbb/2023.0/env/../include&lt;BR /&gt;/opt/intel/oneapi/dpl/2022.12/include&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/x86_64-linux-gnu/c++/15&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/backward&lt;BR /&gt;/usr/lib/llvm-20/lib/clang/20/include&lt;BR /&gt;/usr/local/include&lt;BR /&gt;/usr/include/x86_64-linux-gnu&lt;BR /&gt;/usr/include&lt;/PRE&gt;&lt;P&gt;We can see that the path `/opt/intel/oneapi/compiler/2026.0/bin/compiler/../../opt/compiler/include`, which contains omp.h, is missing from the latter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 06:34:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Missing-implicit-include-paths-with-clang-tidy/m-p/1749159#M4760</guid>
      <dc:creator>julien-j</dc:creator>
      <dc:date>2026-05-27T06:34:18Z</dc:date>
    </item>
  </channel>
</rss>

