1414#ifndef LLVM_TEXTAPI_RECORDSLICE_H
1515#define LLVM_TEXTAPI_RECORDSLICE_H
1616
17- #include " llvm/Support/Compiler.h"
1817#include " llvm/Support/Allocator.h"
18+ #include " llvm/Support/Compiler.h"
1919#include " llvm/TextAPI/FileTypes.h"
2020#include " llvm/TextAPI/PackedVersion.h"
2121#include " llvm/TextAPI/Record.h"
@@ -44,9 +44,10 @@ class RecordsSlice {
4444 // / symbol.
4545 // / \param Linkage The linkage of symbol.
4646 // / \return The non-owning pointer to added record in slice.
47- LLVM_ABI Record *addRecord (StringRef Name, SymbolFlags Flags,
48- GlobalRecord::Kind GV = GlobalRecord::Kind::Unknown,
49- RecordLinkage Linkage = RecordLinkage::Unknown);
47+ LLVM_ABI Record *
48+ addRecord (StringRef Name, SymbolFlags Flags,
49+ GlobalRecord::Kind GV = GlobalRecord::Kind::Unknown,
50+ RecordLinkage Linkage = RecordLinkage::Unknown);
5051
5152 // / Add non-ObjC global record.
5253 // /
@@ -58,27 +59,28 @@ class RecordsSlice {
5859 // / functions.
5960 // / \return The non-owning pointer to added record in slice.
6061 LLVM_ABI GlobalRecord *addGlobal (StringRef Name, RecordLinkage Linkage,
61- GlobalRecord::Kind GV,
62- SymbolFlags Flags = SymbolFlags::None,
63- bool Inlined = false );
62+ GlobalRecord::Kind GV,
63+ SymbolFlags Flags = SymbolFlags::None,
64+ bool Inlined = false );
6465
6566 // / Add ObjC Class record.
6667 // /
6768 // / \param Name The name of class, not symbol.
6869 // / \param Linkage The linkage of symbol.
6970 // / \param SymType The symbols this class represents.
7071 // / \return The non-owning pointer to added record in slice.
71- LLVM_ABI ObjCInterfaceRecord *addObjCInterface (StringRef Name, RecordLinkage Linkage,
72- ObjCIFSymbolKind SymType);
72+ LLVM_ABI ObjCInterfaceRecord *addObjCInterface (StringRef Name,
73+ RecordLinkage Linkage,
74+ ObjCIFSymbolKind SymType);
7375
7476 // / Add ObjC IVar record.
7577 // /
7678 // / \param Container Owning pointer for instance variable.
7779 // / \param Name The name of ivar, not symbol.
7880 // / \param Linkage The linkage of symbol.
7981 // / \return The non-owning pointer to added record in slice.
80- LLVM_ABI ObjCIVarRecord *addObjCIVar (ObjCContainerRecord *Container, StringRef Name,
81- RecordLinkage Linkage);
82+ LLVM_ABI ObjCIVarRecord *addObjCIVar (ObjCContainerRecord *Container,
83+ StringRef Name, RecordLinkage Linkage);
8284
8385 // / Add ObjC Category record.
8486 // /
@@ -87,7 +89,7 @@ class RecordsSlice {
8789 // / \param Category The name of category.
8890 // / \return The non-owning pointer to added record in slice.
8991 LLVM_ABI ObjCCategoryRecord *addObjCCategory (StringRef ClassToExtend,
90- StringRef Category);
92+ StringRef Category);
9193
9294 // / Find ObjC Class.
9395 // /
@@ -101,7 +103,7 @@ class RecordsSlice {
101103 // / \param Category The name of category.
102104 // / \return The non-owning pointer to record in slice.
103105 LLVM_ABI ObjCCategoryRecord *findObjCCategory (StringRef ClassToExtend,
104- StringRef Category) const ;
106+ StringRef Category) const ;
105107
106108 // / Find ObjC Container. This is commonly used for assigning for looking up
107109 // / instance variables that are assigned to either a category or class.
@@ -111,14 +113,16 @@ class RecordsSlice {
111113 // / \param Name Either the name of ivar or name of container.
112114 // / \return The non-owning pointer to record in
113115 // / slice.
114- LLVM_ABI ObjCContainerRecord *findContainer (bool IsIVar, StringRef Name) const ;
116+ LLVM_ABI ObjCContainerRecord *findContainer (bool IsIVar,
117+ StringRef Name) const ;
115118
116119 // / Find ObjC instance variable.
117120 // /
118121 // / \param IsScopedName This is used to determine how to parse the name.
119122 // / \param Name Either the full name of the symbol or just the ivar.
120123 // / \return The non-owning pointer to record in slice.
121- LLVM_ABI ObjCIVarRecord *findObjCIVar (bool IsScopedName, StringRef Name) const ;
124+ LLVM_ABI ObjCIVarRecord *findObjCIVar (bool IsScopedName,
125+ StringRef Name) const ;
122126
123127 // / Find non-objc global.
124128 // /
@@ -197,7 +201,8 @@ class RecordsSlice {
197201
198202using Records = llvm::SmallVector<std::shared_ptr<RecordsSlice>, 4 >;
199203class InterfaceFile ;
200- LLVM_ABI std::unique_ptr<InterfaceFile> convertToInterfaceFile (const Records &Slices);
204+ LLVM_ABI std::unique_ptr<InterfaceFile>
205+ convertToInterfaceFile (const Records &Slices);
201206
202207} // namespace MachO
203208} // namespace llvm
0 commit comments