[clang] [clang] Differentiate between identifier and string EnumArgument (PR #68550)

via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 8 20:16:31 PDT 2023


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 7cc1bfaf371c4a816cf4e62fe31d8515bf8f6fbd eb100a554b6802df794a966c81820873823fa1b3 -- clang/lib/Parse/ParseDecl.cpp clang/test/Sema/attr-function-return.c clang/test/Sema/callingconv-iamcu.c clang/test/Sema/callingconv.c clang/test/Sema/zero_call_used_regs.c clang/test/SemaCXX/warn-consumed-parsing.cpp clang/utils/TableGen/ClangAttrEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp
index afe55450b..e23bbdbb5 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -2369,7 +2369,7 @@ static void emitClangAttrUnevaluatedStringLiteralList(RecordKeeper &Records,
   };
 
   auto AddMaskWithTargetCheck = [](const Record *Attr, uint32_t Mask,
-                                 std::string &MaskStr) {
+                                   std::string &MaskStr) {
     const Record *T = Attr->getValueAsDef("Target");
     std::vector<StringRef> Arches = T->getValueAsListOfStrings("Arches");
     std::string Test;

``````````

</details>


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


More information about the cfe-commits mailing list