[clang] [clang] Unique the QualType-keyed type pools in a UniquingSet. NFC (PR #221850)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 7 16:50:37 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 cpp,h -- clang/include/clang/AST/ASTContext.h clang/include/clang/AST/TypeBase.h clang/lib/AST/ASTContext.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/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index a8b256167..c5bb08b89 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -6168,8 +6168,7 @@ QualType ASTContext::getTemplateSpecializationType(
return QualType(Spec, 0);
}
-QualType
-ASTContext::getParenType(QualType InnerType) const {
+QualType ASTContext::getParenType(QualType InnerType) const {
llvm::FoldingSetInsertToken Token;
ParenType *T = ParenTypes.lookup(InnerType, Token);
if (T)
``````````
</details>
https://github.com/llvm/llvm-project/pull/221850
More information about the cfe-commits
mailing list