[clang] [clang][NFC] Remove ASTContext::Types (PR #246322)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 03:53:28 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/lib/AST/ASTContext.cpp clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp clang/lib/Sema/SemaLookup.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/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 827c7f8ae..c4097cb4e 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -5810,10 +5810,10 @@ QualType ASTContext::getAttributedType(attr::Kind attrKind,
type = new (*this, alignof(AttributedType))
AttributedType(canon, attrKind, attr, modifiedType, equivalentType);
- addType(type);
- AttributedTypes.insert(type, Token);
+ addType(type);
+ AttributedTypes.insert(type, Token);
- return QualType(type, 0);
+ return QualType(type, 0);
}
QualType ASTContext::getAttributedType(const Attr *attr, QualType modifiedType,
``````````
</details>
https://github.com/llvm/llvm-project/pull/246322
More information about the cfe-commits
mailing list