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/test/CodeGenCXX/attr-ptr-access.cpp
clang/test/SemaCXX/attr-ptr-access.cpp clang/include/clang/AST/TypeBase.h
clang/lib/AST/TypePrinter.cpp clang/lib/CodeGen/CGCall.cpp
clang/lib/Sema/SemaDeclAttr.cpp clang/lib/Sema/SemaType.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/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp
index c61dd696c..846be6dc2 100644
--- a/clang/lib/AST/TypePrinter.cpp
+++ b/clang/lib/AST/TypePrinter.cpp
@@ -1918,15 +1918,15 @@ void TypePrinter::printAttributedAfter(const
AttributedType *T,
}
if (T->getAttrKind() == attr::ReadNone) {
- OS <<" [[clang::readnone]]";
+ OS << " [[clang::readnone]]";
return;
}
if (T->getAttrKind() == attr::ReadOnly) {
- OS <<" [[clang::readonly]]";
+ OS << " [[clang::readonly]]";
return;
}
if (T->getAttrKind() == attr::WriteOnly) {
- OS <<" [[clang::writeonly]]";
+ OS << " [[clang::writeonly]]";
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/178429
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits