Skip to content

Conversation

JDevlieghere
Copy link
Member

@JDevlieghere JDevlieghere commented Oct 8, 2025

Add a blurb about not including private headers in the API tests.

@JDevlieghere JDevlieghere requested a review from jimingham October 8, 2025 00:11
@llvmbot llvmbot added the lldb label Oct 8, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 8, 2025

@llvm/pr-subscribers-lldb

Author: Jonas Devlieghere (JDevlieghere)

Changes

Add a blurb about not including private headers and be explicit about TestingSupport as it's a bit of a footgun.


Full diff: https://github.com/llvm/llvm-project/pull/162404.diff

1 Files Affected:

  • (modified) lldb/unittests/API/CMakeLists.txt (+2-1)
diff --git a/lldb/unittests/API/CMakeLists.txt b/lldb/unittests/API/CMakeLists.txt
index 06ac49244176c..5748964720458 100644
--- a/lldb/unittests/API/CMakeLists.txt
+++ b/lldb/unittests/API/CMakeLists.txt
@@ -8,7 +8,8 @@ add_lldb_unittest(APITests
   )
 
 # Build with -Wdocumentation. This relies on the tests including all the API
-# headers through API/LLDB.h.
+# headers through API/LLDB.h. It also means that the API tests cannot include
+# private headers, including anything from from TestingSupport.
 check_cxx_compiler_flag("-Wdocumentation"
                         CXX_SUPPORTS_DOCUMENTATION)
 if (CXX_SUPPORTS_DOCUMENTATION)

Add a blurb about not including private headers.
@JDevlieghere JDevlieghere force-pushed the private-headers-in-api-tests branch from f130351 to 18dbd0c Compare October 8, 2025 03:07
@JDevlieghere JDevlieghere merged commit 9527f93 into llvm:main Oct 8, 2025
9 checks passed
@JDevlieghere JDevlieghere deleted the private-headers-in-api-tests branch October 8, 2025 19:55
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Oct 9, 2025
Add a blurb about not including private headers in the API tests.

(cherry picked from commit 9527f93)
svkeerthy pushed a commit that referenced this pull request Oct 9, 2025
Add a blurb about not including private headers in the API tests.
clingfei pushed a commit to clingfei/llvm-project that referenced this pull request Oct 10, 2025
Add a blurb about not including private headers in the API tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants