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 h,cpp -- 
cross-project-tests/dtlto/config-serialization-sync.cpp 
cross-project-tests/dtlto/target-options-serialization-sync.cpp 
llvm/include/llvm/LTO/LTOConfigBitcode.h 
llvm/include/llvm/LTO/TargetOptionsBitcode.h 
llvm/lib/LTO/BitcodeMetadataUtils.h llvm/lib/LTO/LTOConfigBitcode.cpp 
llvm/lib/LTO/TargetOptionsBitcode.cpp 
llvm/unittests/LTO/LTOConfigBitcodeTest.cpp clang/lib/CodeGen/BackendUtil.cpp 
llvm/include/llvm/Bitcode/BitcodeWriter.h llvm/include/llvm/LTO/Config.h 
llvm/include/llvm/MC/MCTargetOptions.h llvm/include/llvm/Target/TargetOptions.h 
llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp 
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/LTO/LTO.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/cross-project-tests/dtlto/config-serialization-sync.cpp 
b/cross-project-tests/dtlto/config-serialization-sync.cpp
index 5e7323e19..120f5e3b8 100644
--- a/cross-project-tests/dtlto/config-serialization-sync.cpp
+++ b/cross-project-tests/dtlto/config-serialization-sync.cpp
@@ -9,8 +9,8 @@
 // Inject an extra field at the final Config field declaration. Undefine the
 // macro before including the implementation so its structured binding still
 // contains the production field list.
-#define GetCacheKeyOutputString                                               \
-  GetCacheKeyOutputString;                                                    \
+#define GetCacheKeyOutputString                                                
\
+  GetCacheKeyOutputString;                                                     
\
   bool SerializationTestExtraField
 #include "llvm/LTO/LTOConfigBitcode.h"
 #undef GetCacheKeyOutputString
diff --git a/cross-project-tests/dtlto/target-options-serialization-sync.cpp 
b/cross-project-tests/dtlto/target-options-serialization-sync.cpp
index 6e2a79866..980a4ce06 100644
--- a/cross-project-tests/dtlto/target-options-serialization-sync.cpp
+++ b/cross-project-tests/dtlto/target-options-serialization-sync.cpp
@@ -9,8 +9,8 @@
 // Inject an extra field at the final TargetOptions field declaration. Undefine
 // the macro before including the implementation so its structured binding
 // still contains the production field list.
-#define ObjectFilenameForDebug                                                \
-  ObjectFilenameForDebug;                                                     \
+#define ObjectFilenameForDebug                                                 
\
+  ObjectFilenameForDebug;                                                      
\
   bool SerializationTestExtraField
 #include "llvm/LTO/TargetOptionsBitcode.h"
 #undef ObjectFilenameForDebug
diff --git a/llvm/lib/LTO/TargetOptionsBitcode.cpp 
b/llvm/lib/LTO/TargetOptionsBitcode.cpp
index 359ed125b..c7fa77a0b 100644
--- a/llvm/lib/LTO/TargetOptionsBitcode.cpp
+++ b/llvm/lib/LTO/TargetOptionsBitcode.cpp
@@ -150,15 +150,14 @@ void encodeTargetOptionsFields(MetadataWriter &Writer,
         EmitStackSizeSection, EnableMachineOutliner,
         EnableMachineFunctionSplitter, EnableStaticDataPartitioning,
         SupportsDefaultOutlining, EnableDefaultMachineVerifier, EmitAddrsig,
-        BBAddrMap, BBSections, BBSectionsFuncListBuf,
-        EmitCallGraphSection, EmitCallSiteInfo, SupportsDebugEntryValues,
-        EnableDebugEntryValues, ValueTrackingVariableLocations,
-        ForceDwarfFrameSection, XRayFunctionIndex, DebugStrictDwarf, Hotpatch,
-        PPCGenScalarMASSEntries, JMCInstrument, EnableCFIFixup, MisExpect,
-        XCOFFReadOnlyPointers, VerifyArgABICompliance, StackUsageFile,
-        LoopAlignment, AllowFPOpFusion, ThreadModel, EABIVersion,
-        DebuggerTuning, VecLib, ExceptionModel, MCOptions,
-        ObjectFilenameForDebug] = Opt;
+        BBAddrMap, BBSections, BBSectionsFuncListBuf, EmitCallGraphSection,
+        EmitCallSiteInfo, SupportsDebugEntryValues, EnableDebugEntryValues,
+        ValueTrackingVariableLocations, ForceDwarfFrameSection,
+        XRayFunctionIndex, DebugStrictDwarf, Hotpatch, PPCGenScalarMASSEntries,
+        JMCInstrument, EnableCFIFixup, MisExpect, XCOFFReadOnlyPointers,
+        VerifyArgABICompliance, StackUsageFile, LoopAlignment, AllowFPOpFusion,
+        ThreadModel, EABIVersion, DebuggerTuning, VecLib, ExceptionModel,
+        MCOptions, ObjectFilenameForDebug] = Opt;
 
   Writer.putI32("BinutilsVersionMajor", Opt.BinutilsVersion.first);
   Writer.putI32("BinutilsVersionMinor", Opt.BinutilsVersion.second);

``````````

</details>


https://github.com/llvm/llvm-project/pull/219894
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to