[clang] [clang] Ignore inline namespace for `hasName` (PR #109147)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 10 03:28:00 PDT 2024
Alejandro =?utf-8?q?Álvarez_Ayllón?=,
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/109147 at github.com>
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 b9754e9d285e6c056f04e00cc792c572d012ec02 1898d4aee2530170fa73464368f1b533ef048e46 --extensions cpp,h -- clang/include/clang/AST/PrettyPrinter.h clang/lib/AST/Decl.cpp clang/lib/AST/TypePrinter.cpp clang/lib/ASTMatchers/ASTMatchersInternal.cpp clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CodeGenTypes.cpp clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp
index 97b5597635..ed5386fe17 100644
--- a/clang/lib/CodeGen/CodeGenTypes.cpp
+++ b/clang/lib/CodeGen/CodeGenTypes.cpp
@@ -60,7 +60,8 @@ void CodeGenTypes::addRecordTypeName(const RecordDecl *RD,
// example, we should probably enable PrintCanonicalTypes and
// FullyQualifiedNames.
PrintingPolicy Policy = RD->getASTContext().getPrintingPolicy();
- Policy.SuppressInlineNamespace = PrintingPolicy::SupressInlineNamespaceMode::None;
+ Policy.SuppressInlineNamespace =
+ PrintingPolicy::SupressInlineNamespaceMode::None;
// Name the codegen type after the typedef name
// if there is no tag type name available
``````````
</details>
https://github.com/llvm/llvm-project/pull/109147
More information about the cfe-commits
mailing list