[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 11:40:43 PDT 2024
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 81ce796095c8e2ededa5d9df1c963cf08a75a6f1 f0983226b5eff012c334b8a0b2989966a60101cd --extensions cpp,h,c -- clang/test/CodeGen/ptrauth-debuginfo.c clang/test/CodeGen/ptrauth-qualifier-function.c clang/test/CodeGen/ptrauth-qualifier-loadstore.c clang/test/CodeGen/ptrauth-qualifier.c clang/test/CodeGenCXX/ptrauth-qualifier-struct.cpp clang/test/Sema/ptrauth-atomic-ops.c clang/test/Sema/ptrauth-qualifier.c clang/test/SemaCXX/ptrauth-qualifier.cpp clang/test/SemaCXX/ptrauth-template-parameters.cpp clang/include/clang/AST/Type.h clang/include/clang/Parse/Parser.h clang/include/clang/Sema/Sema.h clang/lib/AST/ASTContext.cpp clang/lib/AST/DeclCXX.cpp clang/lib/AST/ItaniumMangle.cpp clang/lib/AST/TypePrinter.cpp clang/lib/CodeGen/CGClass.cpp clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDecl.cpp clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CGExprConstant.cpp clang/lib/CodeGen/CGExprScalar.cpp clang/lib/CodeGen/CGPointerAuth.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/Parse/ParseDecl.cpp clang/lib/Sema/SemaCast.cpp clang/lib/Sema/SemaChecking.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaDeclCXX.cpp clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaExprCXX.cpp clang/lib/Sema/SemaObjCProperty.cpp clang/lib/Sema/SemaOverload.cpp clang/lib/Sema/SemaType.cpp clang/lib/Sema/TreeTransform.h clang/test/AST/ast-dump-ptrauth-json.cpp clang/test/Preprocessor/ptrauth_feature.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 583da32f76..4a3eab4924 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1752,7 +1752,7 @@ CodeGenFunction::tryEmitAsConstant(DeclRefExpr *refExpr) {
resultIsReference = false;
resultType = refExpr->getType().getUnqualifiedType();
- // Otherwise, try to evaluate as an l-value.
+ // Otherwise, try to evaluate as an l-value.
} else if (CEK != CEK_AsValueOnly &&
refExpr->EvaluateAsLValue(result, getContext())) {
resultIsReference = true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/100830
More information about the cfe-commits
mailing list