Skip to content

Commit 39796b9

Browse files
committed
[llvm] clang-format changes to DebugInfo library
1 parent edf2cb8 commit 39796b9

File tree

157 files changed

+561
-464
lines changed

Some content is hidden

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

157 files changed

+561
-464
lines changed

llvm/include/llvm/DebugInfo/BTF/BTFContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#ifndef LLVM_DEBUGINFO_BTF_BTFCONTEXT_H
1515
#define LLVM_DEBUGINFO_BTF_BTFCONTEXT_H
1616

17-
#include "llvm/Support/Compiler.h"
1817
#include "llvm/DebugInfo/BTF/BTFParser.h"
1918
#include "llvm/DebugInfo/DIContext.h"
19+
#include "llvm/Support/Compiler.h"
2020

2121
namespace llvm {
2222

llvm/include/llvm/DebugInfo/BTF/BTFParser.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#ifndef LLVM_DEBUGINFO_BTF_BTFPARSER_H
2323
#define LLVM_DEBUGINFO_BTF_BTFPARSER_H
2424

25-
#include "llvm/Support/Compiler.h"
2625
#include "llvm/ADT/DenseMap.h"
2726
#include "llvm/DebugInfo/BTF/BTF.h"
2827
#include "llvm/Object/ObjectFile.h"
28+
#include "llvm/Support/Compiler.h"
2929
#include "llvm/Support/DataExtractor.h"
3030

3131
namespace llvm {
@@ -88,13 +88,14 @@ class BTFParser {
8888
// Return nullptr if no information found.
8989
// If information is present, return a pointer to object
9090
// owned by this class.
91-
LLVM_ABI const BTF::BPFFieldReloc *findFieldReloc(SectionedAddress Address) const;
91+
LLVM_ABI const BTF::BPFFieldReloc *
92+
findFieldReloc(SectionedAddress Address) const;
9293

9394
// Return a human readable representation of the CO-RE relocation
9495
// record, this is for display purpose only.
9596
// See implementation for details.
9697
LLVM_ABI void symbolize(const BTF::BPFFieldReloc *Reloc,
97-
SmallVectorImpl<char> &Result) const;
98+
SmallVectorImpl<char> &Result) const;
9899

99100
// Lookup BTF type definition with a specific index.
100101
// Return nullptr if no information found.

llvm/include/llvm/DebugInfo/CodeView/AppendingTypeTableBuilder.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/ADT/SmallVector.h"
1514
#include "llvm/DebugInfo/CodeView/CVRecord.h"
1615
#include "llvm/DebugInfo/CodeView/SimpleTypeSerializer.h"
1716
#include "llvm/DebugInfo/CodeView/TypeCollection.h"
1817
#include "llvm/DebugInfo/CodeView/TypeIndex.h"
1918
#include "llvm/Support/Allocator.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include <cstdint>
2121

2222
namespace llvm {

llvm/include/llvm/DebugInfo/CodeView/CVSymbolVisitor.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/DebugInfo/CodeView/CVRecord.h"
13+
#include "llvm/Support/Compiler.h"
1414
#include "llvm/Support/Error.h"
1515

1616
namespace llvm {
@@ -30,9 +30,10 @@ class CVSymbolVisitor {
3030
LLVM_ABI Error visitSymbolRecord(CVSymbol &Record);
3131
LLVM_ABI Error visitSymbolRecord(CVSymbol &Record, uint32_t Offset);
3232
LLVM_ABI Error visitSymbolStream(const CVSymbolArray &Symbols);
33-
LLVM_ABI Error visitSymbolStream(const CVSymbolArray &Symbols, uint32_t InitialOffset);
33+
LLVM_ABI Error visitSymbolStream(const CVSymbolArray &Symbols,
34+
uint32_t InitialOffset);
3435
LLVM_ABI Error visitSymbolStreamFiltered(const CVSymbolArray &Symbols,
35-
const FilterOptions &Filter);
36+
const FilterOptions &Filter);
3637

3738
private:
3839
SymbolVisitorCallbacks &Callbacks;

llvm/include/llvm/DebugInfo/CodeView/CVTypeVisitor.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/DebugInfo/CodeView/CVRecord.h"
1514
#include "llvm/DebugInfo/CodeView/CodeView.h"
15+
#include "llvm/Support/Compiler.h"
1616
#include "llvm/Support/Error.h"
1717

1818
namespace llvm {
@@ -32,23 +32,27 @@ enum VisitorDataSource {
3232
};
3333

3434
LLVM_ABI Error visitTypeRecord(CVType &Record, TypeIndex Index,
35-
TypeVisitorCallbacks &Callbacks,
36-
VisitorDataSource Source = VDS_BytesPresent);
35+
TypeVisitorCallbacks &Callbacks,
36+
VisitorDataSource Source = VDS_BytesPresent);
3737
LLVM_ABI Error visitTypeRecord(CVType &Record, TypeVisitorCallbacks &Callbacks,
38-
VisitorDataSource Source = VDS_BytesPresent);
38+
VisitorDataSource Source = VDS_BytesPresent);
3939

40-
LLVM_ABI Error visitMemberRecord(CVMemberRecord Record, TypeVisitorCallbacks &Callbacks,
41-
VisitorDataSource Source = VDS_BytesPresent);
40+
LLVM_ABI Error visitMemberRecord(CVMemberRecord Record,
41+
TypeVisitorCallbacks &Callbacks,
42+
VisitorDataSource Source = VDS_BytesPresent);
4243
LLVM_ABI Error visitMemberRecord(TypeLeafKind Kind, ArrayRef<uint8_t> Record,
43-
TypeVisitorCallbacks &Callbacks);
44+
TypeVisitorCallbacks &Callbacks);
4445

4546
LLVM_ABI Error visitMemberRecordStream(ArrayRef<uint8_t> FieldList,
46-
TypeVisitorCallbacks &Callbacks);
47-
48-
LLVM_ABI Error visitTypeStream(const CVTypeArray &Types, TypeVisitorCallbacks &Callbacks,
49-
VisitorDataSource Source = VDS_BytesPresent);
50-
LLVM_ABI Error visitTypeStream(CVTypeRange Types, TypeVisitorCallbacks &Callbacks);
51-
LLVM_ABI Error visitTypeStream(TypeCollection &Types, TypeVisitorCallbacks &Callbacks);
47+
TypeVisitorCallbacks &Callbacks);
48+
49+
LLVM_ABI Error visitTypeStream(const CVTypeArray &Types,
50+
TypeVisitorCallbacks &Callbacks,
51+
VisitorDataSource Source = VDS_BytesPresent);
52+
LLVM_ABI Error visitTypeStream(CVTypeRange Types,
53+
TypeVisitorCallbacks &Callbacks);
54+
LLVM_ABI Error visitTypeStream(TypeCollection &Types,
55+
TypeVisitorCallbacks &Callbacks);
5256

5357
} // end namespace codeview
5458
} // end namespace llvm

llvm/include/llvm/DebugInfo/CodeView/CodeView.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,8 @@ enum class EncodedFramePtrReg : uint8_t {
556556
BasePtr = 3,
557557
};
558558

559-
LLVM_ABI RegisterId decodeFramePtrReg(EncodedFramePtrReg EncodedReg, CPUType CPU);
559+
LLVM_ABI RegisterId decodeFramePtrReg(EncodedFramePtrReg EncodedReg,
560+
CPUType CPU);
560561

561562
LLVM_ABI EncodedFramePtrReg encodeFramePtrReg(RegisterId Reg, CPUType CPU);
562563

llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/SmallVector.h"
1413
#include "llvm/ADT/StringRef.h"
1514
#include "llvm/DebugInfo/CodeView/CodeViewError.h"
1615
#include "llvm/Support/BinaryStreamReader.h"
1716
#include "llvm/Support/BinaryStreamWriter.h"
17+
#include "llvm/Support/Compiler.h"
1818
#include "llvm/Support/Error.h"
1919
#include <cassert>
2020
#include <cstdint>
@@ -138,7 +138,7 @@ class CodeViewRecordIO {
138138
LLVM_ABI Error mapGuid(GUID &Guid, const Twine &Comment = "");
139139

140140
LLVM_ABI Error mapStringZVectorZ(std::vector<StringRef> &Value,
141-
const Twine &Comment = "");
141+
const Twine &Comment = "");
142142

143143
template <typename SizeType, typename T, typename ElementMapper>
144144
Error mapVectorN(T &Items, const ElementMapper &Mapper,
@@ -198,9 +198,10 @@ class CodeViewRecordIO {
198198
return Error::success();
199199
}
200200

201-
LLVM_ABI Error mapByteVectorTail(ArrayRef<uint8_t> &Bytes, const Twine &Comment = "");
201+
LLVM_ABI Error mapByteVectorTail(ArrayRef<uint8_t> &Bytes,
202+
const Twine &Comment = "");
202203
LLVM_ABI Error mapByteVectorTail(std::vector<uint8_t> &Bytes,
203-
const Twine &Comment = "");
204+
const Twine &Comment = "");
204205

205206
LLVM_ABI Error padToAlignment(uint32_t Align);
206207
LLVM_ABI Error skipPadding();

llvm/include/llvm/DebugInfo/CodeView/ContinuationRecordBuilder.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#ifndef LLVM_DEBUGINFO_CODEVIEW_CONTINUATIONRECORDBUILDER_H
1010
#define LLVM_DEBUGINFO_CODEVIEW_CONTINUATIONRECORDBUILDER_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/ADT/SmallVector.h"
1514
#include "llvm/DebugInfo/CodeView/CVRecord.h"
16-
#include "llvm/DebugInfo/CodeView/TypeRecordMapping.h"
1715
#include "llvm/DebugInfo/CodeView/TypeRecord.h"
16+
#include "llvm/DebugInfo/CodeView/TypeRecordMapping.h"
1817
#include "llvm/Support/BinaryByteStream.h"
1918
#include "llvm/Support/BinaryStreamWriter.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include <cstdint>
2121
#include <vector>
2222

@@ -55,9 +55,9 @@ class ContinuationRecordBuilder {
5555

5656
#define TYPE_RECORD(EnumName, EnumVal, Name)
5757
#define TYPE_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
58-
#define MEMBER_RECORD(EnumName, EnumVal, Name) \
59-
extern template LLVM_TEMPLATE_ABI void ContinuationRecordBuilder::writeMemberType( \
60-
Name##Record &Record);
58+
#define MEMBER_RECORD(EnumName, EnumVal, Name) \
59+
extern template LLVM_TEMPLATE_ABI void \
60+
ContinuationRecordBuilder::writeMemberType(Name##Record &Record);
6161
#define MEMBER_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
6262
#include "llvm/DebugInfo/CodeView/CodeViewTypes.def"
6363

llvm/include/llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#ifndef LLVM_DEBUGINFO_CODEVIEW_DEBUGCHECKSUMSSUBSECTION_H
1010
#define LLVM_DEBUGINFO_CODEVIEW_DEBUGCHECKSUMSSUBSECTION_H
1111

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/ArrayRef.h"
1413
#include "llvm/ADT/DenseMap.h"
1514
#include "llvm/ADT/StringRef.h"
@@ -18,6 +17,7 @@
1817
#include "llvm/Support/Allocator.h"
1918
#include "llvm/Support/BinaryStreamArray.h"
2019
#include "llvm/Support/BinaryStreamRef.h"
20+
#include "llvm/Support/Compiler.h"
2121
#include "llvm/Support/Error.h"
2222
#include <cstdint>
2323
#include <vector>
@@ -44,7 +44,7 @@ template <> struct VarStreamArrayExtractor<codeview::FileChecksumEntry> {
4444
using ContextType = void;
4545

4646
LLVM_ABI Error operator()(BinaryStreamRef Stream, uint32_t &Len,
47-
codeview::FileChecksumEntry &Item);
47+
codeview::FileChecksumEntry &Item);
4848
};
4949

5050
namespace codeview {

llvm/include/llvm/DebugInfo/CodeView/DebugCrossExSubsection.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/DebugInfo/CodeView/CodeView.h"
1413
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
1514
#include "llvm/Support/BinaryStreamArray.h"
1615
#include "llvm/Support/BinaryStreamRef.h"
16+
#include "llvm/Support/Compiler.h"
1717
#include "llvm/Support/Error.h"
1818
#include <cstdint>
1919
#include <map>
@@ -45,7 +45,8 @@ class DebugCrossModuleExportsSubsectionRef final : public DebugSubsectionRef {
4545
FixedStreamArray<CrossModuleExport> References;
4646
};
4747

48-
class LLVM_ABI DebugCrossModuleExportsSubsection final : public DebugSubsection {
48+
class LLVM_ABI DebugCrossModuleExportsSubsection final
49+
: public DebugSubsection {
4950
public:
5051
DebugCrossModuleExportsSubsection()
5152
: DebugSubsection(DebugSubsectionKind::CrossScopeExports) {}

llvm/include/llvm/DebugInfo/CodeView/DebugCrossImpSubsection.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/StringMap.h"
1413
#include "llvm/ADT/StringRef.h"
1514
#include "llvm/DebugInfo/CodeView/CodeView.h"
1615
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
1716
#include "llvm/Support/BinaryStreamArray.h"
1817
#include "llvm/Support/BinaryStreamRef.h"
18+
#include "llvm/Support/Compiler.h"
1919
#include "llvm/Support/Endian.h"
2020
#include "llvm/Support/Error.h"
2121
#include <cstdint>
@@ -39,7 +39,7 @@ template <> struct VarStreamArrayExtractor<codeview::CrossModuleImportItem> {
3939
using ContextType = void;
4040

4141
LLVM_ABI Error operator()(BinaryStreamRef Stream, uint32_t &Len,
42-
codeview::CrossModuleImportItem &Item);
42+
codeview::CrossModuleImportItem &Item);
4343
};
4444

4545
namespace codeview {
@@ -68,7 +68,8 @@ class DebugCrossModuleImportsSubsectionRef final : public DebugSubsectionRef {
6868
ReferenceArray References;
6969
};
7070

71-
class LLVM_ABI DebugCrossModuleImportsSubsection final : public DebugSubsection {
71+
class LLVM_ABI DebugCrossModuleImportsSubsection final
72+
: public DebugSubsection {
7273
public:
7374
explicit DebugCrossModuleImportsSubsection(
7475
DebugStringTableSubsection &Strings)

llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/DebugInfo/CodeView/CodeView.h"
1413
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
1514
#include "llvm/Support/BinaryStreamArray.h"
1615
#include "llvm/Support/BinaryStreamRef.h"
16+
#include "llvm/Support/Compiler.h"
1717
#include "llvm/Support/Endian.h"
1818
#include "llvm/Support/Error.h"
1919

llvm/include/llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/StringRef.h"
1413
#include "llvm/DebugInfo/CodeView/CodeView.h"
1514
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
1615
#include "llvm/DebugInfo/CodeView/TypeIndex.h"
1716
#include "llvm/Support/BinaryStreamArray.h"
1817
#include "llvm/Support/BinaryStreamReader.h"
1918
#include "llvm/Support/BinaryStreamRef.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include "llvm/Support/Endian.h"
2121
#include "llvm/Support/Error.h"
2222
#include <cstdint>
@@ -51,7 +51,7 @@ struct InlineeSourceLine {
5151

5252
template <> struct VarStreamArrayExtractor<codeview::InlineeSourceLine> {
5353
LLVM_ABI Error operator()(BinaryStreamRef Stream, uint32_t &Len,
54-
codeview::InlineeSourceLine &Item);
54+
codeview::InlineeSourceLine &Item);
5555

5656
bool HasExtraFiles = false;
5757
};

llvm/include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/StringRef.h"
1413
#include "llvm/DebugInfo/CodeView/CodeView.h"
1514
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
1615
#include "llvm/DebugInfo/CodeView/Line.h"
1716
#include "llvm/Support/BinaryStreamArray.h"
1817
#include "llvm/Support/BinaryStreamRef.h"
18+
#include "llvm/Support/Compiler.h"
1919
#include "llvm/Support/Endian.h"
2020
#include "llvm/Support/Error.h"
2121
#include <cstdint>
@@ -72,7 +72,7 @@ struct LineColumnEntry {
7272
class LineColumnExtractor {
7373
public:
7474
LLVM_ABI Error operator()(BinaryStreamRef Stream, uint32_t &Len,
75-
LineColumnEntry &Item);
75+
LineColumnEntry &Item);
7676

7777
const LineFragmentHeader *Header = nullptr;
7878
};

llvm/include/llvm/DebugInfo/CodeView/DebugStringTableSubsection.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/ADT/DenseMap.h"
1413
#include "llvm/ADT/StringMap.h"
1514
#include "llvm/ADT/StringRef.h"
1615
#include "llvm/DebugInfo/CodeView/CodeView.h"
1716
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
1817
#include "llvm/Support/BinaryStreamRef.h"
18+
#include "llvm/Support/Compiler.h"
1919
#include "llvm/Support/Error.h"
2020
#include <cstdint>
2121

llvm/include/llvm/DebugInfo/CodeView/DebugSubsection.h

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

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

1616
#include <cstdint>

0 commit comments

Comments
 (0)