[clang] [Modules][ObjC] Objective-C categories aren't visible in local submodule visibility (PR #246933)

via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 28 22:07:43 PST 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- clang/include/clang/AST/ASTContext.h clang/include/clang/AST/DeclObjC.h clang/lib/AST/ASTContext.cpp clang/lib/AST/DeclObjC.cpp clang/lib/Sema/Sema.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h
index c0ceb1ed3..ed251fd28 100644
--- a/clang/include/clang/AST/ASTContext.h
+++ b/clang/include/clang/AST/ASTContext.h
@@ -1500,8 +1500,8 @@ public:
 
   /// Set the callback that isDeclVisible() uses for declarations that are not
   /// unconditionally visible.
-  void setDeclVisibilityCallback(
-      std::function<bool(const NamedDecl *)> Callback) {
+  void
+  setDeclVisibilityCallback(std::function<bool(const NamedDecl *)> Callback) {
     DeclVisibilityCallback = std::move(Callback);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/246933


More information about the cfe-commits mailing list