Skip to content

[libc] Document and have clang-tidy checks for inclusion of our own public headers in sources and tests. #83463

Open
@lntue

Description

@lntue

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions