[all-commits] [llvm/llvm-project] 5e4b41: [libc] Add compile tests for each public header (#...

Roland McGrath via All-commits all-commits at lists.llvm.org
Sat Jan 11 17:25:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e4b41c1d534c90a4591b840a4f1b2f7bf59279f
      https://github.com/llvm/llvm-project/commit/5e4b41c1d534c90a4591b840a4f1b2f7bf59279f
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2025-01-11 (Sat, 11 Jan 2025)

  Changed paths:
    M libc/cmake/modules/LLVMLibCHeaderRules.cmake
    M libc/test/include/CMakeLists.txt
    A libc/test/include/header-test-template.c

  Log Message:
  -----------
  [libc] Add compile tests for each public header (#122527)

This adds a test that consists of compiling `#include <...>`,
pretty much alone, for each public header file in each different
language mode (`-std=...` compiler switch) with -Werror and many
warnings enabled.

There are several headers that have bugs when used alone, and
many more headers that have bugs in certain language modes.  So
for now, compiling the new tests is gated on the cmake switch
-DLLVM_LIBC_BUILD_HEADER_TESTS=ON.  When all the bugs are fixed,
the switch will be removed so future regressions don't land.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list