Skip to content

Commit a9232bc

Browse files
committed
[llvm] clang-format remaining changes LLVM library
1 parent 36128f4 commit a9232bc

File tree

24 files changed

+131
-100
lines changed

24 files changed

+131
-100
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ static cl::opt<PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr(
117117
clEnumValN(PGOOptions::ColdFuncOpt::OptNone, "optnone",
118118
"Mark cold functions with optnone.")));
119119

120-
LLVM_ABI extern cl::opt<InstrProfCorrelator::ProfCorrelatorKind> ProfileCorrelate;
120+
LLVM_ABI extern cl::opt<InstrProfCorrelator::ProfCorrelatorKind>
121+
ProfileCorrelate;
121122
} // namespace llvm
122123
namespace clang {
123124
extern llvm::cl::opt<bool> ClSanitizeGuardChecks;

llvm/include/llvm/ADT/APFloat.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,8 @@ class IEEEFloat final {
674674
integerPart addSignificand(const IEEEFloat &);
675675
integerPart subtractSignificand(const IEEEFloat &, integerPart);
676676
// Exported for IEEEFloatUnitTestHelper.
677-
LLVM_ABI lostFraction addOrSubtractSignificand(const IEEEFloat &, bool subtract);
677+
LLVM_ABI lostFraction addOrSubtractSignificand(const IEEEFloat &,
678+
bool subtract);
678679
lostFraction multiplySignificand(const IEEEFloat &, IEEEFloat,
679680
bool ignoreAddend = false);
680681
lostFraction multiplySignificand(const IEEEFloat&);

llvm/include/llvm/Analysis/IR2Vec.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
#ifndef LLVM_ANALYSIS_IR2VEC_H
3030
#define LLVM_ANALYSIS_IR2VEC_H
3131

32-
#include "llvm/Support/Compiler.h"
3332
#include "llvm/ADT/DenseMap.h"
3433
#include "llvm/IR/PassManager.h"
3534
#include "llvm/Support/CommandLine.h"
35+
#include "llvm/Support/Compiler.h"
3636
#include "llvm/Support/ErrorOr.h"
3737
#include "llvm/Support/JSON.h"
3838
#include <map>
@@ -116,7 +116,8 @@ struct Embedding {
116116

117117
/// Returns true if the embedding is approximately equal to the RHS embedding
118118
/// within the specified tolerance.
119-
LLVM_ABI bool approximatelyEquals(const Embedding &RHS, double Tolerance = 1e-6) const;
119+
LLVM_ABI bool approximatelyEquals(const Embedding &RHS,
120+
double Tolerance = 1e-6) const;
120121
};
121122

122123
using InstEmbeddingsMap = DenseMap<const Instruction *, Embedding>;
@@ -226,7 +227,7 @@ class IR2VecVocabResult {
226227
LLVM_ABI const ir2vec::Vocab &getVocabulary() const;
227228
LLVM_ABI unsigned getDimension() const;
228229
LLVM_ABI bool invalidate(Module &M, const PreservedAnalyses &PA,
229-
ModuleAnalysisManager::Invalidator &Inv) const;
230+
ModuleAnalysisManager::Invalidator &Inv) const;
230231
};
231232

232233
/// This analysis provides the vocabulary for IR2Vec. The vocabulary provides a

llvm/include/llvm/CodeGenTypes/LowLevelType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#ifndef LLVM_CODEGEN_LOWLEVELTYPE_H
2727
#define LLVM_CODEGEN_LOWLEVELTYPE_H
2828

29-
#include "llvm/Support/Compiler.h"
3029
#include "llvm/ADT/DenseMapInfo.h"
3130
#include "llvm/CodeGenTypes/MachineValueType.h"
31+
#include "llvm/Support/Compiler.h"
3232
#include "llvm/Support/Debug.h"
3333
#include <cassert>
3434

llvm/include/llvm/CodeGenTypes/MachineValueType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef LLVM_CODEGEN_MACHINEVALUETYPE_H
1717
#define LLVM_CODEGEN_MACHINEVALUETYPE_H
1818

19-
#include "llvm/Support/Compiler.h"
2019
#include "llvm/ADT/Sequence.h"
20+
#include "llvm/Support/Compiler.h"
2121
#include "llvm/Support/ErrorHandling.h"
2222
#include "llvm/Support/MathExtras.h"
2323
#include "llvm/Support/TypeSize.h"

llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h

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

12-
#include "llvm/Support/Compiler.h"
1312
#include "llvm/DebugInfo/DWARF/DWARFCFIProgram.h"
13+
#include "llvm/Support/Compiler.h"
1414

1515
namespace llvm {
1616

@@ -19,8 +19,9 @@ struct DIDumpOptions;
1919
namespace dwarf {
2020

2121
LLVM_ABI void printCFIProgram(const CFIProgram &P, raw_ostream &OS,
22-
const DIDumpOptions &DumpOpts, unsigned IndentLevel,
23-
std::optional<uint64_t> Address);
22+
const DIDumpOptions &DumpOpts,
23+
unsigned IndentLevel,
24+
std::optional<uint64_t> Address);
2425

2526
} // end namespace dwarf
2627

llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ class DWARFExpressionPrinter {
187187
/// \param OS to this stream
188188
/// \param GetNameForDWARFReg callback to return dwarf register name
189189
LLVM_ABI static void print(const DWARFExpression *E, raw_ostream &OS,
190-
DIDumpOptions DumpOpts, DWARFUnit *U, bool IsEH = false);
190+
DIDumpOptions DumpOpts, DWARFUnit *U,
191+
bool IsEH = false);
191192

192193
/// Print the expression in a format intended to be compact and useful to a
193194
/// user, but not perfectly unambiguous, or capable of representing every
@@ -199,9 +200,10 @@ class DWARFExpressionPrinter {
199200
/// \param GetNameForDWARFReg callback to return dwarf register name
200201
///
201202
/// \returns true if the expression was successfully printed
202-
LLVM_ABI static bool printCompact(const DWARFExpression *E, raw_ostream &OS,
203-
std::function<StringRef(uint64_t RegNum, bool IsEH)>
204-
GetNameForDWARFReg = nullptr);
203+
LLVM_ABI static bool printCompact(
204+
const DWARFExpression *E, raw_ostream &OS,
205+
std::function<StringRef(uint64_t RegNum, bool IsEH)> GetNameForDWARFReg =
206+
nullptr);
205207

206208
/// Pretty print a register opcode and operands.
207209
/// \param U within the context of this Dwarf unit, if any.
@@ -212,8 +214,9 @@ class DWARFExpressionPrinter {
212214
///
213215
/// returns true if the Op was successfully printed
214216
LLVM_ABI static bool prettyPrintRegisterOp(DWARFUnit *U, raw_ostream &OS,
215-
DIDumpOptions DumpOpts, uint8_t Opcode,
216-
ArrayRef<uint64_t> Operands);
217+
DIDumpOptions DumpOpts,
218+
uint8_t Opcode,
219+
ArrayRef<uint64_t> Operands);
217220

218221
private:
219222
static bool printOp(const DWARFExpression::Operation *Op, raw_ostream &OS,

llvm/include/llvm/DebugInfo/LogicalView/Core/LVSourceLanguage.h

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

17-
#include "llvm/Support/Compiler.h"
1817
#include "llvm/ADT/StringRef.h"
1918
#include "llvm/BinaryFormat/Dwarf.h"
2019
#include "llvm/DebugInfo/CodeView/CodeView.h"
20+
#include "llvm/Support/Compiler.h"
2121

2222
namespace llvm {
2323
namespace logicalview {

llvm/include/llvm/ExecutionEngine/Orc/COFF.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class COFFImportFileScanner {
3232
public:
3333
COFFImportFileScanner(std::set<std::string> &ImportedDynamicLibraries)
3434
: ImportedDynamicLibraries(ImportedDynamicLibraries) {}
35-
LLVM_ABI Expected<bool> operator()(object::Archive &A, MemoryBufferRef MemberBuf,
36-
size_t Index) const;
35+
LLVM_ABI Expected<bool>
36+
operator()(object::Archive &A, MemoryBufferRef MemberBuf, size_t Index) const;
3737

3838
private:
3939
std::set<std::string> &ImportedDynamicLibraries;

llvm/include/llvm/Frontend/Directive/Spelling.h

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

11-
#include "llvm/Support/Compiler.h"
1211
#include "llvm/ADT/StringRef.h"
1312
#include "llvm/ADT/iterator_range.h"
13+
#include "llvm/Support/Compiler.h"
1414

1515
#include <limits>
1616
#include <tuple>
@@ -34,7 +34,8 @@ struct Spelling {
3434
VersionRange Versions;
3535
};
3636

37-
LLVM_ABI StringRef FindName(llvm::iterator_range<const Spelling *>, unsigned Version);
37+
LLVM_ABI StringRef FindName(llvm::iterator_range<const Spelling *>,
38+
unsigned Version);
3839

3940
} // namespace llvm::directive
4041

0 commit comments

Comments
 (0)