[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 16 06:06:40 PDT 2025
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 HEAD~1 HEAD --extensions h,cpp -- clang/include/clang/AST/Expr.h clang/include/clang/Lex/Preprocessor.h clang/include/clang/Sema/Sema.h clang/lib/AST/StmtPrinter.cpp clang/lib/Lex/PPDirectives.cpp clang/lib/Parse/ParseInit.cpp clang/lib/Sema/SemaExpr.cpp clang/test/Preprocessor/embed_weird.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index ae7b3fedd..01117e778 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -16903,8 +16903,7 @@ ExprResult Sema::BuildSourceLocExpr(SourceLocIdentKind Kind, QualType ResultTy,
}
ExprResult Sema::ActOnEmbedExpr(SourceLocation EmbedKeywordLoc,
- StringLiteral *BinaryData,
- StringRef FileName) {
+ StringLiteral *BinaryData, StringRef FileName) {
EmbedDataStorage *Data = new (Context) EmbedDataStorage;
Data->BinaryData = BinaryData;
Data->FileName = FileName;
``````````
</details>
https://github.com/llvm/llvm-project/pull/135957
More information about the cfe-commits
mailing list