[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 05:32:41 PST 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 93d3e20bb226507c6eb777cfb15ea13f2cd129e8 700ec6f78c0a24729801bea381bafbcafb06826b --extensions cpp,c,h -- clang/test/Preprocessor/embed_constexpr.c clang/include/clang/AST/Expr.h clang/lib/AST/Expr.cpp clang/lib/Parse/ParseInit.cpp clang/lib/Sema/SemaInit.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 2747480f00..e48b389fbc 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -1344,7 +1344,6 @@ StringLiteral::getLocationOfByte(unsigned ByteNo, const SourceManager &SM,
           getKind() == StringLiteralKind::Unevaluated) &&
          "Only narrow string literals are currently supported");
 
-
   // Loop over all of the tokens in this string until we find the one that
   // contains the byte we're looking for.
   unsigned TokNo = 0;

``````````

</details>


https://github.com/llvm/llvm-project/pull/127629


More information about the cfe-commits mailing list