[Mlir-commits] [clang] [llvm] [mlir] [NFC][IWYU] Update includes in Support lib with IWYU. (PR #102306)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 7 04:42:02 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 4745bb3e7db6d9cf5588171a433f534e5b488c70 7554c5d6fb2bc442fe3d2e00826ea5a0e34e432b --extensions h,inc,cpp -- clang/lib/Driver/ToolChains/SPIRV.cpp llvm/include/llvm/ADT/APFixedPoint.h llvm/include/llvm/ADT/APFloat.h llvm/include/llvm/ADT/APInt.h llvm/include/llvm/ADT/APSInt.h llvm/include/llvm/ADT/DynamicAPInt.h llvm/include/llvm/ADT/FloatingPointMode.h llvm/include/llvm/ADT/FoldingSet.h llvm/include/llvm/ADT/IntEqClasses.h llvm/include/llvm/ADT/IntervalMap.h llvm/include/llvm/ADT/SlowDynamicAPInt.h llvm/include/llvm/ADT/SmallPtrSet.h llvm/include/llvm/ADT/SmallVector.h llvm/include/llvm/ADT/Statistic.h llvm/include/llvm/ADT/StringExtras.h llvm/include/llvm/ADT/StringMap.h llvm/include/llvm/ADT/StringRef.h llvm/include/llvm/ADT/Twine.h llvm/include/llvm/Support/ARMAttributeParser.h llvm/include/llvm/Support/ARMWinEH.h llvm/include/llvm/Support/Atomic.h llvm/include/llvm/Support/BalancedPartitioning.h llvm/include/llvm/Support/Base64.h llvm/include/llvm/Support/BinaryStreamError.h llvm/include/llvm/Support/BinaryStreamReader.h llvm/include/llvm/Support/BinaryStreamRef.h llvm/include/llvm/Support/BinaryStreamWriter.h llvm/include/llvm/Support/BranchProbability.h llvm/include/llvm/Support/CRC.h llvm/include/llvm/Support/CSKYAttributeParser.h llvm/include/llvm/Support/CachePruning.h llvm/include/llvm/Support/Caching.h llvm/include/llvm/Support/Chrono.h llvm/include/llvm/Support/CodeGenCoverage.h llvm/include/llvm/Support/CommandLine.h llvm/include/llvm/Support/Compression.h llvm/include/llvm/Support/ConvertEBCDIC.h llvm/include/llvm/Support/DJB.h llvm/include/llvm/Support/DataExtractor.h llvm/include/llvm/Support/DebugCounter.h llvm/include/llvm/Support/ELFAttributeParser.h llvm/include/llvm/Support/Error.h llvm/include/llvm/Support/ExponentialBackoff.h llvm/include/llvm/Support/FileCollector.h llvm/include/llvm/Support/FileOutputBuffer.h llvm/include/llvm/Support/FileUtilities.h llvm/include/llvm/Support/FormatVariadic.h llvm/include/llvm/Support/FormatVariadicDetails.h llvm/include/llvm/Support/FormattedStream.h llvm/include/llvm/Support/GlobPattern.h llvm/include/llvm/Support/GraphWriter.h llvm/include/llvm/Support/HexagonAttributeParser.h llvm/include/llvm/Support/InstructionCost.h llvm/include/llvm/Support/JSON.h llvm/include/llvm/Support/KnownBits.h llvm/include/llvm/Support/LEB128.h llvm/include/llvm/Support/LineIterator.h llvm/include/llvm/Support/LockFileManager.h llvm/include/llvm/Support/MD5.h llvm/include/llvm/Support/MSP430AttributeParser.h llvm/include/llvm/Support/MathExtras.h llvm/include/llvm/Support/Memory.h llvm/include/llvm/Support/MemoryBuffer.h llvm/include/llvm/Support/MemoryBufferRef.h llvm/include/llvm/Support/NativeFormatting.h llvm/include/llvm/Support/OptimizedStructLayout.h llvm/include/llvm/Support/PGOOptions.h llvm/include/llvm/Support/Parallel.h llvm/include/llvm/Support/Path.h llvm/include/llvm/Support/PrettyStackTrace.h llvm/include/llvm/Support/Process.h llvm/include/llvm/Support/Program.h llvm/include/llvm/Support/RISCVAttributeParser.h llvm/include/llvm/Support/RandomNumberGenerator.h llvm/include/llvm/Support/ScaledNumber.h llvm/include/llvm/Support/ScopedPrinter.h llvm/include/llvm/Support/SourceMgr.h llvm/include/llvm/Support/SpecialCaseList.h llvm/include/llvm/Support/StringSaver.h llvm/include/llvm/Support/SuffixTree.h llvm/include/llvm/Support/TarWriter.h llvm/include/llvm/Support/ThreadPool.h llvm/include/llvm/Support/Threading.h llvm/include/llvm/Support/TimeProfiler.h llvm/include/llvm/Support/Timer.h llvm/include/llvm/Support/ToolOutputFile.h llvm/include/llvm/Support/TypeSize.h llvm/include/llvm/Support/Unicode.h llvm/include/llvm/Support/VersionTuple.h llvm/include/llvm/Support/VirtualFileSystem.h llvm/include/llvm/Support/Watchdog.h llvm/include/llvm/Support/WithColor.h llvm/include/llvm/Support/YAMLParser.h llvm/include/llvm/Support/YAMLTraits.h llvm/include/llvm/Support/circular_raw_ostream.h llvm/include/llvm/Support/raw_os_ostream.h llvm/include/llvm/Support/raw_ostream.h llvm/include/llvm/Support/raw_socket_stream.h llvm/include/llvm/Support/xxhash.h llvm/lib/DebugInfo/DWARF/DWARFLocationExpression.cpp llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp llvm/lib/FileCheck/FileCheck.cpp llvm/lib/Support/AMDGPUMetadata.cpp llvm/lib/Support/APFixedPoint.cpp llvm/lib/Support/APFloat.cpp llvm/lib/Support/APInt.cpp llvm/lib/Support/APSInt.cpp llvm/lib/Support/ARMAttributeParser.cpp llvm/lib/Support/ARMBuildAttrs.cpp llvm/lib/Support/BalancedPartitioning.cpp llvm/lib/Support/Base64.cpp llvm/lib/Support/BinaryStreamReader.cpp llvm/lib/Support/BinaryStreamRef.cpp llvm/lib/Support/BinaryStreamWriter.cpp llvm/lib/Support/BranchProbability.cpp llvm/lib/Support/BuryPointer.cpp llvm/lib/Support/CRC.cpp llvm/lib/Support/CSKYAttributeParser.cpp llvm/lib/Support/CachePruning.cpp llvm/lib/Support/Caching.cpp llvm/lib/Support/Chrono.cpp llvm/lib/Support/CodeGenCoverage.cpp llvm/lib/Support/CommandLine.cpp llvm/lib/Support/Compression.cpp llvm/lib/Support/ConvertEBCDIC.cpp llvm/lib/Support/ConvertUTFWrapper.cpp llvm/lib/Support/CrashRecoveryContext.cpp llvm/lib/Support/DAGDeltaAlgorithm.cpp llvm/lib/Support/DJB.cpp llvm/lib/Support/DataExtractor.cpp llvm/lib/Support/Debug.cpp llvm/lib/Support/DebugCounter.cpp llvm/lib/Support/DivisionByConstantInfo.cpp llvm/lib/Support/DynamicAPInt.cpp llvm/lib/Support/DynamicLibrary.cpp llvm/lib/Support/ELFAttributeParser.cpp llvm/lib/Support/ELFAttributes.cpp llvm/lib/Support/Errno.cpp llvm/lib/Support/Error.cpp llvm/lib/Support/ErrorHandling.cpp llvm/lib/Support/ExponentialBackoff.cpp llvm/lib/Support/FileCollector.cpp llvm/lib/Support/FileOutputBuffer.cpp llvm/lib/Support/FloatingPointMode.cpp llvm/lib/Support/FoldingSet.cpp llvm/lib/Support/FormatVariadic.cpp llvm/lib/Support/FormattedStream.cpp llvm/lib/Support/GlobPattern.cpp llvm/lib/Support/GraphWriter.cpp llvm/lib/Support/InitLLVM.cpp llvm/lib/Support/JSON.cpp llvm/lib/Support/KnownBits.cpp llvm/lib/Support/LineIterator.cpp llvm/lib/Support/LockFileManager.cpp llvm/lib/Support/MD5.cpp llvm/lib/Support/MSP430AttributeParser.cpp llvm/lib/Support/ManagedStatic.cpp llvm/lib/Support/MemoryBuffer.cpp llvm/lib/Support/NativeFormatting.cpp llvm/lib/Support/OptimizedStructLayout.cpp llvm/lib/Support/PGOOptions.cpp llvm/lib/Support/Parallel.cpp llvm/lib/Support/Path.cpp llvm/lib/Support/PluginLoader.cpp llvm/lib/Support/Process.cpp llvm/lib/Support/Program.cpp llvm/lib/Support/RISCVAttributeParser.cpp llvm/lib/Support/RISCVISAUtils.cpp llvm/lib/Support/RandomNumberGenerator.cpp llvm/lib/Support/SHA1.cpp llvm/lib/Support/SHA256.cpp llvm/lib/Support/ScaledNumber.cpp llvm/lib/Support/ScopedPrinter.cpp llvm/lib/Support/Signals.cpp llvm/lib/Support/SipHash.cpp llvm/lib/Support/SlowDynamicAPInt.cpp llvm/lib/Support/SmallPtrSet.cpp llvm/lib/Support/SmallVector.cpp llvm/lib/Support/SourceMgr.cpp llvm/lib/Support/SpecialCaseList.cpp llvm/lib/Support/Statistic.cpp llvm/lib/Support/StringExtras.cpp llvm/lib/Support/StringMap.cpp llvm/lib/Support/StringRef.cpp llvm/lib/Support/StringSaver.cpp llvm/lib/Support/SuffixTree.cpp llvm/lib/Support/SuffixTreeNode.cpp llvm/lib/Support/TarWriter.cpp llvm/lib/Support/ThreadPool.cpp llvm/lib/Support/Threading.cpp llvm/lib/Support/TimeProfiler.cpp llvm/lib/Support/Timer.cpp llvm/lib/Support/Twine.cpp llvm/lib/Support/TypeSize.cpp llvm/lib/Support/Unicode.cpp llvm/lib/Support/UnicodeNameToCodepoint.cpp llvm/lib/Support/UnicodeNameToCodepointGenerated.cpp llvm/lib/Support/Unix/Process.inc llvm/lib/Support/Unix/Unix.h llvm/lib/Support/VirtualFileSystem.cpp llvm/lib/Support/WithColor.cpp llvm/lib/Support/YAMLParser.cpp llvm/lib/Support/YAMLTraits.cpp llvm/lib/Support/Z3Solver.cpp llvm/lib/Support/circular_raw_ostream.cpp llvm/lib/Support/raw_ostream.cpp llvm/lib/Support/raw_socket_stream.cpp llvm/lib/Support/xxhash.cpp llvm/tools/llvm-objdump/MachODump.cpp llvm/tools/llvm-rc/llvm-rc.cpp llvm/tools/llvm-xray/xray-account.cpp llvm/tools/llvm-xray/xray-graph-diff.cpp llvm/tools/llvm-xray/xray-graph.cpp llvm/unittests/TargetParser/Host.cpp llvm/utils/FileCheck/FileCheck.cpp mlir/include/mlir/Analysis/Presburger/Fraction.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ADT/APFixedPoint.h b/llvm/include/llvm/ADT/APFixedPoint.h
index 525089f590..6c004936ce 100644
--- a/llvm/include/llvm/ADT/APFixedPoint.h
+++ b/llvm/include/llvm/ADT/APFixedPoint.h
@@ -16,8 +16,8 @@
 #ifndef LLVM_ADT_APFIXEDPOINT_H
 #define LLVM_ADT_APFIXEDPOINT_H
 
-#include "llvm/ADT/APSInt.h"
 #include "llvm/ADT/APInt.h"
+#include "llvm/ADT/APSInt.h"
 #include "llvm/ADT/Hashing.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/bit.h"
diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h
index 20cafae612..48e560c7d9 100644
--- a/llvm/include/llvm/ADT/APFloat.h
+++ b/llvm/include/llvm/ADT/APFloat.h
@@ -33,7 +33,7 @@
 
 namespace llvm {
 class FoldingSetNodeID;
-}  // namespace llvm
+} // namespace llvm
 
 #define APFLOAT_DISPATCH_ON_SEMANTICS(METHOD_CALL)                             \
   do {                                                                         \
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index 2d2df33655..5a8f822722 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -15,8 +15,8 @@
 #ifndef LLVM_ADT_APINT_H
 #define LLVM_ADT_APINT_H
 
-#include "llvm/Support/Compiler.h"
 #include "llvm/ADT/bit.h"
+#include "llvm/Support/Compiler.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/float128.h"
 #include <cassert>
diff --git a/llvm/include/llvm/ADT/DynamicAPInt.h b/llvm/include/llvm/ADT/DynamicAPInt.h
index 09d9113364..d233ff760b 100644
--- a/llvm/include/llvm/ADT/DynamicAPInt.h
+++ b/llvm/include/llvm/ADT/DynamicAPInt.h
@@ -16,9 +16,9 @@
 #ifndef LLVM_ADT_DYNAMICAPINT_H
 #define LLVM_ADT_DYNAMICAPINT_H
 
-#include "llvm/ADT/SlowDynamicAPInt.h"
 #include "llvm/ADT/APInt.h"
 #include "llvm/ADT/Hashing.h"
+#include "llvm/ADT/SlowDynamicAPInt.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/MathExtras.h"
 #include <assert.h>
diff --git a/llvm/include/llvm/ADT/FoldingSet.h b/llvm/include/llvm/ADT/FoldingSet.h
index 9a866d6592..7610d06f46 100644
--- a/llvm/include/llvm/ADT/FoldingSet.h
+++ b/llvm/include/llvm/ADT/FoldingSet.h
@@ -16,8 +16,8 @@
 #ifndef LLVM_ADT_FOLDINGSET_H
 #define LLVM_ADT_FOLDINGSET_H
 
-#include "llvm/ADT/Hashing.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/Hashing.h"
 #include "llvm/ADT/STLForwardCompat.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/iterator.h"
diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h
index ebf663eb44..0fcdae42d4 100644
--- a/llvm/include/llvm/ADT/StringExtras.h
+++ b/llvm/include/llvm/ADT/StringExtras.h
@@ -14,8 +14,8 @@
 #ifndef LLVM_ADT_STRINGEXTRAS_H
 #define LLVM_ADT_STRINGEXTRAS_H
 
-#include "llvm/ADT/APSInt.h"
 #include "llvm/ADT/APInt.h"
+#include "llvm/ADT/APSInt.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/SmallVector.h"
diff --git a/llvm/include/llvm/Support/CSKYAttributeParser.h b/llvm/include/llvm/Support/CSKYAttributeParser.h
index c5f5d52bf9..e1023c37ae 100644
--- a/llvm/include/llvm/Support/CSKYAttributeParser.h
+++ b/llvm/include/llvm/Support/CSKYAttributeParser.h
@@ -9,8 +9,8 @@
 #ifndef LLVM_SUPPORT_CSKYATTRIBUTEPARSER_H
 #define LLVM_SUPPORT_CSKYATTRIBUTEPARSER_H
 
-#include "llvm/Support/CSKYAttributes.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/CSKYAttributes.h"
 #include "llvm/Support/ELFAttributeParser.h"
 #include "llvm/Support/Error.h"
 #include <stdint.h>
diff --git a/llvm/include/llvm/Support/Caching.h b/llvm/include/llvm/Support/Caching.h
index cff5709b9d..7876c3ef47 100644
--- a/llvm/include/llvm/Support/Caching.h
+++ b/llvm/include/llvm/Support/Caching.h
@@ -15,9 +15,9 @@
 #ifndef LLVM_SUPPORT_CACHING_H
 #define LLVM_SUPPORT_CACHING_H
 
-#include "llvm/Support/Error.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
+#include "llvm/Support/Error.h"
 #include "llvm/Support/raw_ostream.h"
 #include <functional>
 #include <memory>
diff --git a/llvm/include/llvm/Support/DataExtractor.h b/llvm/include/llvm/Support/DataExtractor.h
index 4507635319..8e2aa21909 100644
--- a/llvm/include/llvm/Support/DataExtractor.h
+++ b/llvm/include/llvm/Support/DataExtractor.h
@@ -9,9 +9,9 @@
 #ifndef LLVM_SUPPORT_DATAEXTRACTOR_H
 #define LLVM_SUPPORT_DATAEXTRACTOR_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Error.h"
 #include <stddef.h>
 #include <stdint.h>
diff --git a/llvm/include/llvm/Support/FileCollector.h b/llvm/include/llvm/Support/FileCollector.h
index e6d87d1c35..8e5bf106e0 100644
--- a/llvm/include/llvm/Support/FileCollector.h
+++ b/llvm/include/llvm/Support/FileCollector.h
@@ -9,9 +9,9 @@
 #ifndef LLVM_SUPPORT_FILECOLLECTOR_H
 #define LLVM_SUPPORT_FILECOLLECTOR_H
 
-#include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/StringSet.h"
 #include "llvm/Support/FileSystem.h"
diff --git a/llvm/include/llvm/Support/FileUtilities.h b/llvm/include/llvm/Support/FileUtilities.h
index 5d33477927..04b761aac1 100644
--- a/llvm/include/llvm/Support/FileUtilities.h
+++ b/llvm/include/llvm/Support/FileUtilities.h
@@ -14,8 +14,8 @@
 #ifndef LLVM_SUPPORT_FILEUTILITIES_H
 #define LLVM_SUPPORT_FILEUTILITIES_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/FileSystem.h"
diff --git a/llvm/include/llvm/Support/HexagonAttributeParser.h b/llvm/include/llvm/Support/HexagonAttributeParser.h
index 0f4b37f21d..ecfc93b827 100644
--- a/llvm/include/llvm/Support/HexagonAttributeParser.h
+++ b/llvm/include/llvm/Support/HexagonAttributeParser.h
@@ -9,8 +9,8 @@
 #ifndef LLVM_SUPPORT_HEXAGONATTRIBUTEPARSER_H
 #define LLVM_SUPPORT_HEXAGONATTRIBUTEPARSER_H
 
-#include "llvm/Support/ELFAttributeParser.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/ELFAttributeParser.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/HexagonAttributes.h"
 #include <stdint.h>
diff --git a/llvm/include/llvm/Support/LEB128.h b/llvm/include/llvm/Support/LEB128.h
index 89d05edbea..63533164f1 100644
--- a/llvm/include/llvm/Support/LEB128.h
+++ b/llvm/include/llvm/Support/LEB128.h
@@ -14,8 +14,8 @@
 #ifndef LLVM_SUPPORT_LEB128_H
 #define LLVM_SUPPORT_LEB128_H
 
-#include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/Compiler.h"
+#include "llvm/Support/raw_ostream.h"
 #include <stdint.h>
 
 namespace llvm {
diff --git a/llvm/include/llvm/Support/OptimizedStructLayout.h b/llvm/include/llvm/Support/OptimizedStructLayout.h
index d84f464cd0..11eaad346f 100644
--- a/llvm/include/llvm/Support/OptimizedStructLayout.h
+++ b/llvm/include/llvm/Support/OptimizedStructLayout.h
@@ -35,8 +35,8 @@
 #ifndef LLVM_SUPPORT_OPTIMIZEDSTRUCTLAYOUT_H
 #define LLVM_SUPPORT_OPTIMIZEDSTRUCTLAYOUT_H
 
-#include "llvm/Support/Alignment.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/Support/Alignment.h"
 #include <assert.h>
 #include <stdint.h>
 #include <utility>
diff --git a/llvm/include/llvm/Support/Parallel.h b/llvm/include/llvm/Support/Parallel.h
index 9d088c7d49..7e3ac48ab6 100644
--- a/llvm/include/llvm/Support/Parallel.h
+++ b/llvm/include/llvm/Support/Parallel.h
@@ -9,9 +9,9 @@
 #ifndef LLVM_SUPPORT_PARALLEL_H
 #define LLVM_SUPPORT_PARALLEL_H
 
-#include "llvm/ADT/STLExtras.h"
 #include "llvm-c/Error.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/STLExtras.h"
 #include "llvm/Config/llvm-config.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/MathExtras.h"
diff --git a/llvm/include/llvm/Support/Path.h b/llvm/include/llvm/Support/Path.h
index 972e474926..f77271256d 100644
--- a/llvm/include/llvm/Support/Path.h
+++ b/llvm/include/llvm/Support/Path.h
@@ -15,8 +15,8 @@
 #ifndef LLVM_SUPPORT_PATH_H
 #define LLVM_SUPPORT_PATH_H
 
-#include "llvm/ADT/Twine.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/Twine.h"
 #include "llvm/ADT/iterator.h"
 #include <iterator>
 #include <stddef.h>
diff --git a/llvm/include/llvm/Support/Program.h b/llvm/include/llvm/Support/Program.h
index 16baa24053..171e18fd5a 100644
--- a/llvm/include/llvm/Support/Program.h
+++ b/llvm/include/llvm/Support/Program.h
@@ -31,7 +31,7 @@ class raw_ostream;
 namespace sys {
 namespace fs {
 enum OpenFlags : unsigned int;
-}  // namespace fs
+} // namespace fs
 
   /// This is the OS-specific separator for PATH like environment variables:
   // a colon on Unix or a semicolon on Windows.
diff --git a/llvm/include/llvm/Support/RISCVAttributeParser.h b/llvm/include/llvm/Support/RISCVAttributeParser.h
index 0ee2f09983..bce236b8c8 100644
--- a/llvm/include/llvm/Support/RISCVAttributeParser.h
+++ b/llvm/include/llvm/Support/RISCVAttributeParser.h
@@ -9,8 +9,8 @@
 #ifndef LLVM_SUPPORT_RISCVATTRIBUTEPARSER_H
 #define LLVM_SUPPORT_RISCVATTRIBUTEPARSER_H
 
-#include "llvm/Support/ELFAttributeParser.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/ELFAttributeParser.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/RISCVAttributes.h"
 #include <stdint.h>
diff --git a/llvm/include/llvm/Support/ScaledNumber.h b/llvm/include/llvm/Support/ScaledNumber.h
index dad3067687..f19863eaf2 100644
--- a/llvm/include/llvm/Support/ScaledNumber.h
+++ b/llvm/include/llvm/Support/ScaledNumber.h
@@ -21,8 +21,8 @@
 #ifndef LLVM_SUPPORT_SCALEDNUMBER_H
 #define LLVM_SUPPORT_SCALEDNUMBER_H
 
-#include "llvm/Support/MathExtras.h"
 #include "llvm/ADT/bit.h"
+#include "llvm/Support/MathExtras.h"
 #include <algorithm>
 #include <assert.h>
 #include <cstdint>
diff --git a/llvm/include/llvm/Support/SourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h
index 6ee271e367..fc6cb21291 100644
--- a/llvm/include/llvm/Support/SourceMgr.h
+++ b/llvm/include/llvm/Support/SourceMgr.h
@@ -15,8 +15,8 @@
 #ifndef LLVM_SUPPORT_SOURCEMGR_H
 #define LLVM_SUPPORT_SOURCEMGR_H
 
-#include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/ErrorOr.h"
diff --git a/llvm/include/llvm/Support/ToolOutputFile.h b/llvm/include/llvm/Support/ToolOutputFile.h
index e3162c7728..d7a2903a36 100644
--- a/llvm/include/llvm/Support/ToolOutputFile.h
+++ b/llvm/include/llvm/Support/ToolOutputFile.h
@@ -13,8 +13,8 @@
 #ifndef LLVM_SUPPORT_TOOLOUTPUTFILE_H
 #define LLVM_SUPPORT_TOOLOUTPUTFILE_H
 
-#include "llvm/Support/raw_ostream.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/raw_ostream.h"
 #include <optional>
 #include <string>
 #include <system_error>
@@ -23,8 +23,8 @@ namespace llvm {
 namespace sys {
 namespace fs {
 enum OpenFlags : unsigned int;
-}  // namespace fs
-}  // namespace sys
+} // namespace fs
+} // namespace sys
 
 class CleanupInstaller {
 public:
diff --git a/llvm/include/llvm/Support/TypeSize.h b/llvm/include/llvm/Support/TypeSize.h
index b84f9e781d..c41173119a 100644
--- a/llvm/include/llvm/Support/TypeSize.h
+++ b/llvm/include/llvm/Support/TypeSize.h
@@ -15,8 +15,8 @@
 #ifndef LLVM_SUPPORT_TYPESIZE_H
 #define LLVM_SUPPORT_TYPESIZE_H
 
-#include "llvm/Support/MathExtras.h"
 #include "llvm/ADT/DenseMapInfo.h"
+#include "llvm/Support/MathExtras.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cassert>
 #include <cstdint>
diff --git a/llvm/include/llvm/Support/VirtualFileSystem.h b/llvm/include/llvm/Support/VirtualFileSystem.h
index f405d87a56..e704fef280 100644
--- a/llvm/include/llvm/Support/VirtualFileSystem.h
+++ b/llvm/include/llvm/Support/VirtualFileSystem.h
@@ -665,7 +665,6 @@ struct YAMLVFSEntry {
   bool IsDirectory = false;
 };
 
-
 /// A virtual file system parsed from a YAML file.
 ///
 /// Currently, this class allows creating virtual files and directories. Virtual
diff --git a/llvm/include/llvm/Support/WithColor.h b/llvm/include/llvm/Support/WithColor.h
index c1a9101824..64f4deedc7 100644
--- a/llvm/include/llvm/Support/WithColor.h
+++ b/llvm/include/llvm/Support/WithColor.h
@@ -9,8 +9,8 @@
 #ifndef LLVM_SUPPORT_WITHCOLOR_H
 #define LLVM_SUPPORT_WITHCOLOR_H
 
-#include "llvm/Support/Compiler.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Compiler.h"
 #include "llvm/Support/raw_ostream.h"
 
 namespace llvm {
diff --git a/llvm/include/llvm/Support/raw_socket_stream.h b/llvm/include/llvm/Support/raw_socket_stream.h
index 1427903d6b..e05857a4ce 100644
--- a/llvm/include/llvm/Support/raw_socket_stream.h
+++ b/llvm/include/llvm/Support/raw_socket_stream.h
@@ -14,9 +14,9 @@
 #ifndef LLVM_SUPPORT_RAW_SOCKET_STREAM_H
 #define LLVM_SUPPORT_RAW_SOCKET_STREAM_H
 
-#include "llvm/Support/Threading.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Error.h"
+#include "llvm/Support/Threading.h"
 #include "llvm/Support/raw_ostream.h"
 #include <atomic>
 #include <chrono>
diff --git a/llvm/lib/Support/AMDGPUMetadata.cpp b/llvm/lib/Support/AMDGPUMetadata.cpp
index 1c9b84de9a..281576ca35 100644
--- a/llvm/lib/Support/AMDGPUMetadata.cpp
+++ b/llvm/lib/Support/AMDGPUMetadata.cpp
@@ -14,7 +14,7 @@
 
 #include "llvm/Support/AMDGPUMetadata.h"
 #include "llvm/Support/YAMLTraits.h"
-  #include "llvm/Support/raw_ostream.h"
+#include "llvm/Support/raw_ostream.h"
 #include <limits>
 #include <optional>
 
diff --git a/llvm/lib/Support/BinaryStreamReader.cpp b/llvm/lib/Support/BinaryStreamReader.cpp
index 6b1d952d8c..c11675c7c2 100644
--- a/llvm/lib/Support/BinaryStreamReader.cpp
+++ b/llvm/lib/Support/BinaryStreamReader.cpp
@@ -18,7 +18,7 @@
 namespace llvm {
 class BinaryStream;
 enum class endianness;
-}  // namespace llvm
+} // namespace llvm
 
 using namespace llvm;
 
diff --git a/llvm/lib/Support/BinaryStreamRef.cpp b/llvm/lib/Support/BinaryStreamRef.cpp
index 7781a6dfc5..8656bdf4ca 100644
--- a/llvm/lib/Support/BinaryStreamRef.cpp
+++ b/llvm/lib/Support/BinaryStreamRef.cpp
@@ -11,7 +11,7 @@
 
 namespace llvm {
 enum class endianness;
-}  // namespace llvm
+} // namespace llvm
 
 using namespace llvm;
 
diff --git a/llvm/lib/Support/BinaryStreamWriter.cpp b/llvm/lib/Support/BinaryStreamWriter.cpp
index f8d63ff979..f83c8e7e0c 100644
--- a/llvm/lib/Support/BinaryStreamWriter.cpp
+++ b/llvm/lib/Support/BinaryStreamWriter.cpp
@@ -18,7 +18,7 @@
 namespace llvm {
 class WritableBinaryStream;
 enum class endianness;
-}  // namespace llvm
+} // namespace llvm
 
 using namespace llvm;
 
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 414113b3a1..82c45bfeae 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -51,8 +51,8 @@
 #include <cstdlib>
 #include <memory>
 #include <optional>
-#include <string>
 #include <string.h>
+#include <string>
 #include <system_error>
 
 using namespace llvm;
diff --git a/llvm/lib/Support/ConvertUTFWrapper.cpp b/llvm/lib/Support/ConvertUTFWrapper.cpp
index 1bb5ba6804..40ba57043c 100644
--- a/llvm/lib/Support/ConvertUTFWrapper.cpp
+++ b/llvm/lib/Support/ConvertUTFWrapper.cpp
@@ -14,8 +14,8 @@
 #include "llvm/Support/ErrorHandling.h"
 #include <assert.h>
 #include <stdint.h>
-#include <string>
 #include <string.h>
+#include <string>
 #include <vector>
 
 namespace llvm {
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index 29cf0b71e9..3ca9732493 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -24,8 +24,8 @@
 #include <cstdlib>
 #include <mutex>
 #include <new>
-#include <string>
 #include <string.h>
+#include <string>
 #include <sys/types.h>
 
 #if defined(HAVE_UNISTD_H)
diff --git a/llvm/lib/Support/MD5.cpp b/llvm/lib/Support/MD5.cpp
index 9f025a1d35..8e773a7507 100644
--- a/llvm/lib/Support/MD5.cpp
+++ b/llvm/lib/Support/MD5.cpp
@@ -49,7 +49,7 @@
 
 namespace llvm {
 template <typename T> class SmallVectorImpl;
-}  // namespace llvm
+} // namespace llvm
 
 // The basic MD5 functions.
 
diff --git a/llvm/lib/Support/SpecialCaseList.cpp b/llvm/lib/Support/SpecialCaseList.cpp
index 8000ad074d..1bdf2b0bde 100644
--- a/llvm/lib/Support/SpecialCaseList.cpp
+++ b/llvm/lib/Support/SpecialCaseList.cpp
@@ -25,8 +25,8 @@
 #include "llvm/Support/VirtualFileSystem.h"
 #include <optional>
 #include <stdio.h>
-#include <string>
 #include <string.h>
+#include <string>
 #include <system_error>
 #include <utility>
 
diff --git a/llvm/lib/Support/Unix/Unix.h b/llvm/lib/Support/Unix/Unix.h
index 1e5e6e1ae4..40d8814e07 100644
--- a/llvm/lib/Support/Unix/Unix.h
+++ b/llvm/lib/Support/Unix/Unix.h
@@ -18,8 +18,8 @@
 //===          is guaranteed to work on all UNIX variants.
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Config/config.h"
 #include "llvm/ADT/Twine.h"
+#include "llvm/Config/config.h"
 #include "llvm/Support/Chrono.h"
 #include "llvm/Support/Errno.h"
 #include "llvm/Support/ErrorHandling.h"
diff --git a/llvm/lib/Support/Z3Solver.cpp b/llvm/lib/Support/Z3Solver.cpp
index 2429d38e9d..f1984de9ff 100644
--- a/llvm/lib/Support/Z3Solver.cpp
+++ b/llvm/lib/Support/Z3Solver.cpp
@@ -16,10 +16,10 @@ using namespace llvm;
 
 #if LLVM_WITH_Z3
 
-#include <z3.h>
-#include <set>
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/Twine.h"
+#include <set>
+#include <z3.h>
 
 #include <set>
 

``````````

</details>


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


More information about the Mlir-commits mailing list