Skip to content

[clang] Fix incomplete umbrella warnings when building clang modules (NFC) #96939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

medismailben
Copy link
Member

This patch silences the incomplete-umbrella warnings when building clang modules, by adding the missing textual headers to the clang module map.

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Jun 27, 2024
@llvmbot
Copy link
Member

llvmbot commented Jun 27, 2024

@llvm/pr-subscribers-lldb

@llvm/pr-subscribers-clang

Author: Med Ismail Bennani (medismailben)

Changes

This patch silences the incomplete-umbrella warnings when building clang modules, by adding the missing textual headers to the clang module map.


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

1 Files Affected:

  • (modified) clang/include/module.modulemap (+2)
diff --git a/clang/include/module.modulemap b/clang/include/module.modulemap
index acd960c9c932a..a8ee223126690 100644
--- a/clang/include/module.modulemap
+++ b/clang/include/module.modulemap
@@ -22,6 +22,7 @@ module Clang_AST {
   requires cplusplus
   umbrella "clang/AST"
 
+  textual header "clang/Basic/OpenACCClauses.def"
   textual header "clang/AST/BuiltinTypes.def"
   textual header "clang/AST/CXXRecordDeclDefinitionBits.def"
   textual header "clang/AST/OperationKinds.def"
@@ -37,6 +38,7 @@ module Clang_Basic {
   umbrella "clang/Basic"
 
   textual header "clang/Basic/AArch64SVEACLETypes.def"
+  textual header "clang/Basic/AMDGPUTypes.def"
   textual header "clang/Basic/BuiltinsAArch64.def"
   textual header "clang/Basic/BuiltinsAMDGPU.def"
   textual header "clang/Basic/BuiltinsAArch64NeonSVEBridge.def"

…(NFC)

This patch silences the incomplete-umbrella warnings when building clang
modules, by adding and sorting the missing textual headers to the clang
module map.

Signed-off-by: Med Ismail Bennani <[email protected]>
@medismailben medismailben force-pushed the fix-clang-module-build branch from 8de45df to 5639216 Compare June 27, 2024 18:32
@llvmbot llvmbot added the lldb label Jun 27, 2024
@medismailben medismailben force-pushed the fix-clang-module-build branch from 5639216 to 7d0a3e3 Compare June 27, 2024 18:33
Copy link
Contributor

@jansvoboda11 jansvoboda11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'd prefer to land the re-ordering in a separate commit.

@medismailben medismailben merged commit 868b90d into llvm:main Jun 27, 2024
4 of 6 checks passed
lravenclaw pushed a commit to lravenclaw/llvm-project that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category lldb
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants