[clang] [clang][Modules] Complete the implementation of P2615: Meaningful exports (PR #194201)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 26 01:33:39 PDT 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 cppm,cpp,h -- clang/include/clang/Parse/Parser.h clang/lib/Parse/ParseDeclCXX.cpp clang/test/Modules/explicit-specializations.cppm clang/test/Modules/merge-var-template-spec-cxx-modules.cppm clang/test/Modules/pr59780.cppm clang/test/Modules/pr60890.cppm clang/test/Modules/pr97313.cppm clang/test/Modules/template-function-specialization.cpp clang/test/SemaCXX/P2615.cpp clang/unittests/Serialization/LoadSpecLazilyTest.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/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index ded616d78..e4d91451d 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -3217,8 +3217,9 @@ private:
///
Decl *ParseExportDeclaration();
- /// Ensure the declaration in an unbraced linkage-specification or export-declaration
- /// is not an explicit-instantiation, explicit-specialization, or export-declaration:
+ /// Ensure the declaration in an unbraced linkage-specification or
+ /// export-declaration is not an explicit-instantiation,
+ /// explicit-specialization, or export-declaration:
///
/// \verbatim
/// export-declaration: [C++: module.interface]
``````````
</details>
https://github.com/llvm/llvm-project/pull/194201
More information about the cfe-commits
mailing list