[clang] [C++20] [Modules] Warn if we found #include <filename> in module purview (PR #69555)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 19 01:42:34 PDT 2023
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 b858309ddc977d5e70de54f3fa3888915b5fbc0c 49ead327fec98f5276a9667414668a05fb03c705 -- clang/lib/Lex/PPDirectives.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 93b05c3443e5..85cc7b364205 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -2532,7 +2532,7 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
if (isAngled && isInNamedModule())
Diag(FilenameTok, diag::warn_pp_include_angled_in_module_purview)
- << getNamedModuleName();
+ << getNamedModuleName();
// Look up the file, create a File ID for it.
SourceLocation IncludePos = FilenameTok.getLocation();
``````````
</details>
https://github.com/llvm/llvm-project/pull/69555
More information about the cfe-commits
mailing list