Open
Description
Discussion from #83199 and #83374.
Our public headers in libc/include/llvm-libc-*
folders might be included directly in our codes and tests, but since they are copied to the ${install dir}/include
folders, we might have a mixture of both #include "include/llvm-libc-*"
and #include "llvm-libc-*"
. #83199 was trying to uniform this inclusion, by adding libc/include
to our include dirs, but that broke our downstream users that are not using our cmake build system.
Since many downstream users do not use our cmake build system, and they might only have libc/
in their include dirs, we need to officially document this assumption and add clang-tidy checks to make sure that libc/include
folder is not accidentally added to our include dirs.