Skip to content

Commit a92b393

Browse files
committed
clang-format
1 parent 796cfbb commit a92b393

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+822
-683
lines changed

llvm/include/llvm/Support/AMDGPUMetadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#ifndef LLVM_SUPPORT_AMDGPUMETADATA_H
1616
#define LLVM_SUPPORT_AMDGPUMETADATA_H
1717

18-
#include "llvm/Support/Compiler.h"
1918
#include "llvm/ADT/StringRef.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include <cstdint>
2121
#include <string>
2222
#include <system_error>

llvm/include/llvm/Support/ARMAttributeParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#ifndef LLVM_SUPPORT_ARMATTRIBUTEPARSER_H
1010
#define LLVM_SUPPORT_ARMATTRIBUTEPARSER_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "ARMBuildAttributes.h"
1413
#include "llvm/ADT/StringRef.h"
14+
#include "llvm/Support/Compiler.h"
1515
#include "llvm/Support/ELFAttrParserCompact.h"
1616
#include "llvm/Support/Error.h"
1717

llvm/include/llvm/Support/ARMWinEH.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef LLVM_SUPPORT_ARMWINEH_H
1010
#define LLVM_SUPPORT_ARMWINEH_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
13+
#include "llvm/Support/Compiler.h"
1414
#include "llvm/Support/Endian.h"
1515

1616
namespace llvm {
@@ -206,8 +206,8 @@ inline uint16_t StackAdjustment(const RuntimeFunction &RF) {
206206

207207
/// SavedRegisterMask - Utility function to calculate the set of saved general
208208
/// purpose (r0-r15) and VFP (d0-d31) registers.
209-
LLVM_ABI std::pair<uint16_t, uint32_t> SavedRegisterMask(const RuntimeFunction &RF,
210-
bool Prologue = true);
209+
LLVM_ABI std::pair<uint16_t, uint32_t>
210+
SavedRegisterMask(const RuntimeFunction &RF, bool Prologue = true);
211211

212212
/// RuntimeFunctionARM64 - An entry in the table of procedure data (.pdata)
213213
///

llvm/include/llvm/Support/Allocator.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ namespace detail {
3636

3737
// We call out to an external function to actually print the message as the
3838
// printing code uses Allocator.h in its implementation.
39-
LLVM_ABI void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,
40-
size_t TotalMemory);
39+
LLVM_ABI void printBumpPtrAllocatorStats(unsigned NumSlabs,
40+
size_t BytesAllocated,
41+
size_t TotalMemory);
4142

4243
} // end namespace detail
4344

llvm/include/llvm/Support/BalancedPartitioning.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
#ifndef LLVM_SUPPORT_BALANCED_PARTITIONING_H
4040
#define LLVM_SUPPORT_BALANCED_PARTITIONING_H
4141

42-
#include "llvm/Support/Compiler.h"
4342
#include "raw_ostream.h"
4443
#include "llvm/ADT/ArrayRef.h"
44+
#include "llvm/Support/Compiler.h"
4545

4646
#include <atomic>
4747
#include <condition_variable>
@@ -194,7 +194,7 @@ class BalancedPartitioning {
194194
protected:
195195
/// Compute the move gain for uniform log-gap cost
196196
LLVM_ABI static float moveGain(const BPFunctionNode &N, bool FromLeftToRight,
197-
const SignaturesT &Signatures);
197+
const SignaturesT &Signatures);
198198
friend class BalancedPartitioningTest_MoveGain_Test;
199199
};
200200

llvm/include/llvm/Support/Base64.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) {
5555
return Buffer;
5656
}
5757

58-
LLVM_ABI llvm::Error decodeBase64(llvm::StringRef Input, std::vector<char> &Output);
58+
LLVM_ABI llvm::Error decodeBase64(llvm::StringRef Input,
59+
std::vector<char> &Output);
5960

6061
} // end namespace llvm
6162

llvm/include/llvm/Support/BinaryStreamError.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef LLVM_SUPPORT_BINARYSTREAMERROR_H
1010
#define LLVM_SUPPORT_BINARYSTREAMERROR_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/StringRef.h"
13+
#include "llvm/Support/Compiler.h"
1414
#include "llvm/Support/Error.h"
1515

1616
#include <string>

llvm/include/llvm/Support/BinaryStreamReader.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#ifndef LLVM_SUPPORT_BINARYSTREAMREADER_H
1010
#define LLVM_SUPPORT_BINARYSTREAMREADER_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/ADT/StringRef.h"
1514
#include "llvm/Support/Alignment.h"
1615
#include "llvm/Support/BinaryStreamArray.h"
1716
#include "llvm/Support/BinaryStreamRef.h"
17+
#include "llvm/Support/Compiler.h"
1818
#include "llvm/Support/ConvertUTF.h"
1919
#include "llvm/Support/Endian.h"
2020
#include "llvm/Support/Error.h"
@@ -32,7 +32,8 @@ class BinaryStreamReader {
3232
BinaryStreamReader() = default;
3333
LLVM_ABI explicit BinaryStreamReader(BinaryStreamRef Ref);
3434
LLVM_ABI explicit BinaryStreamReader(BinaryStream &Stream);
35-
LLVM_ABI explicit BinaryStreamReader(ArrayRef<uint8_t> Data, llvm::endianness Endian);
35+
LLVM_ABI explicit BinaryStreamReader(ArrayRef<uint8_t> Data,
36+
llvm::endianness Endian);
3637
LLVM_ABI explicit BinaryStreamReader(StringRef Data, llvm::endianness Endian);
3738

3839
BinaryStreamReader(const BinaryStreamReader &Other) = default;

llvm/include/llvm/Support/BinaryStreamRef.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#ifndef LLVM_SUPPORT_BINARYSTREAMREF_H
1010
#define LLVM_SUPPORT_BINARYSTREAMREF_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/Support/BinaryStream.h"
1514
#include "llvm/Support/BinaryStreamError.h"
15+
#include "llvm/Support/Compiler.h"
1616
#include "llvm/Support/Error.h"
1717
#include <cstdint>
1818
#include <memory>
@@ -163,8 +163,9 @@ class BinaryStreamRef
163163
BinaryStreamRef() = default;
164164
LLVM_ABI BinaryStreamRef(BinaryStream &Stream);
165165
LLVM_ABI BinaryStreamRef(BinaryStream &Stream, uint64_t Offset,
166-
std::optional<uint64_t> Length);
167-
LLVM_ABI explicit BinaryStreamRef(ArrayRef<uint8_t> Data, llvm::endianness Endian);
166+
std::optional<uint64_t> Length);
167+
LLVM_ABI explicit BinaryStreamRef(ArrayRef<uint8_t> Data,
168+
llvm::endianness Endian);
168169
LLVM_ABI explicit BinaryStreamRef(StringRef Data, llvm::endianness Endian);
169170

170171
BinaryStreamRef(const BinaryStreamRef &Other) = default;
@@ -183,15 +184,15 @@ class BinaryStreamRef
183184
/// bounds of this BinaryStreamRef's view and the implementation could read
184185
/// the data, and an appropriate error code otherwise.
185186
LLVM_ABI Error readBytes(uint64_t Offset, uint64_t Size,
186-
ArrayRef<uint8_t> &Buffer) const;
187+
ArrayRef<uint8_t> &Buffer) const;
187188

188189
/// Given an Offset into this BinaryStreamRef, return a reference to the
189190
/// largest buffer the stream could support without necessitating a copy.
190191
///
191192
/// \returns a success error code if implementation could read the data,
192193
/// and an appropriate error code otherwise.
193194
LLVM_ABI Error readLongestContiguousChunk(uint64_t Offset,
194-
ArrayRef<uint8_t> &Buffer) const;
195+
ArrayRef<uint8_t> &Buffer) const;
195196
};
196197

197198
struct BinarySubstreamRef {
@@ -235,10 +236,11 @@ class WritableBinaryStreamRef
235236
public:
236237
WritableBinaryStreamRef() = default;
237238
LLVM_ABI WritableBinaryStreamRef(WritableBinaryStream &Stream);
238-
LLVM_ABI WritableBinaryStreamRef(WritableBinaryStream &Stream, uint64_t Offset,
239-
std::optional<uint64_t> Length);
239+
LLVM_ABI WritableBinaryStreamRef(WritableBinaryStream &Stream,
240+
uint64_t Offset,
241+
std::optional<uint64_t> Length);
240242
LLVM_ABI explicit WritableBinaryStreamRef(MutableArrayRef<uint8_t> Data,
241-
llvm::endianness Endian);
243+
llvm::endianness Endian);
242244
WritableBinaryStreamRef(const WritableBinaryStreamRef &Other) = default;
243245
WritableBinaryStreamRef &
244246
operator=(const WritableBinaryStreamRef &Other) = default;

llvm/include/llvm/Support/BinaryStreamWriter.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#ifndef LLVM_SUPPORT_BINARYSTREAMWRITER_H
1010
#define LLVM_SUPPORT_BINARYSTREAMWRITER_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/ADT/StringRef.h"
1514
#include "llvm/Support/BinaryStreamArray.h"
1615
#include "llvm/Support/BinaryStreamError.h"
1716
#include "llvm/Support/BinaryStreamRef.h"
17+
#include "llvm/Support/Compiler.h"
1818
#include "llvm/Support/Endian.h"
1919
#include "llvm/Support/Error.h"
2020
#include <cstdint>
@@ -34,7 +34,7 @@ class BinaryStreamWriter {
3434
LLVM_ABI explicit BinaryStreamWriter(WritableBinaryStreamRef Ref);
3535
LLVM_ABI explicit BinaryStreamWriter(WritableBinaryStream &Stream);
3636
LLVM_ABI explicit BinaryStreamWriter(MutableArrayRef<uint8_t> Data,
37-
llvm::endianness Endian);
37+
llvm::endianness Endian);
3838

3939
BinaryStreamWriter(const BinaryStreamWriter &Other) = default;
4040

@@ -172,7 +172,8 @@ class BinaryStreamWriter {
172172
}
173173

174174
/// Splits the Writer into two Writers at a given offset.
175-
LLVM_ABI std::pair<BinaryStreamWriter, BinaryStreamWriter> split(uint64_t Off) const;
175+
LLVM_ABI std::pair<BinaryStreamWriter, BinaryStreamWriter>
176+
split(uint64_t Off) const;
176177

177178
void setOffset(uint64_t Off) { Offset = Off; }
178179
uint64_t getOffset() const { return Offset; }

0 commit comments

Comments
 (0)