Skip to content

Commit a47ede4

Browse files
committed
[llvm] clang-format changes to XRay library
1 parent 1917101 commit a47ede4

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

llvm/include/llvm-c/Error.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define LLVM_C_ERROR_H
1616

1717
#include "llvm-c/ExternC.h"
18+
#include "llvm/Support/Compiler.h"
1819

1920
LLVM_C_EXTERN_C_BEGIN
2021

llvm/include/llvm/XRay/BlockIndexer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#ifndef LLVM_XRAY_BLOCKINDEXER_H
1414
#define LLVM_XRAY_BLOCKINDEXER_H
1515

16-
#include "llvm/Support/Compiler.h"
1716
#include "llvm/ADT/DenseMap.h"
17+
#include "llvm/Support/Compiler.h"
1818
#include "llvm/XRay/FDRRecords.h"
1919
#include <cstdint>
2020
#include <vector>

llvm/include/llvm/XRay/FDRTraceWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#define LLVM_XRAY_FDRTRACEWRITER_H
1414

1515
#include "llvm/Support/Compiler.h"
16-
#include "llvm/Support/raw_ostream.h"
1716
#include "llvm/Support/EndianStream.h"
17+
#include "llvm/Support/raw_ostream.h"
1818
#include "llvm/XRay/FDRRecords.h"
1919
#include "llvm/XRay/XRayRecord.h"
2020

llvm/include/llvm/XRay/FileHeaderReader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ namespace xray {
2424

2525
/// Convenience function for loading the file header given a data extractor at a
2626
/// specified offset.
27-
LLVM_ABI Expected<XRayFileHeader> readBinaryFormatHeader(DataExtractor &HeaderExtractor,
28-
uint64_t &OffsetPtr);
27+
LLVM_ABI Expected<XRayFileHeader>
28+
readBinaryFormatHeader(DataExtractor &HeaderExtractor, uint64_t &OffsetPtr);
2929

3030
} // namespace xray
3131
} // namespace llvm

llvm/include/llvm/XRay/InstrumentationMap.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#ifndef LLVM_XRAY_INSTRUMENTATIONMAP_H
1515
#define LLVM_XRAY_INSTRUMENTATIONMAP_H
1616

17-
#include "llvm/Support/Compiler.h"
1817
#include "llvm/ADT/StringRef.h"
18+
#include "llvm/Support/Compiler.h"
1919
#include "llvm/Support/Error.h"
2020
#include "llvm/Support/YAMLTraits.h"
2121
#include <cstdint>
@@ -32,7 +32,8 @@ class InstrumentationMap;
3232

3333
/// Loads the instrumentation map from |Filename|. This auto-deduces the type of
3434
/// the instrumentation map.
35-
LLVM_ABI Expected<InstrumentationMap> loadInstrumentationMap(StringRef Filename);
35+
LLVM_ABI Expected<InstrumentationMap>
36+
loadInstrumentationMap(StringRef Filename);
3637

3738
/// Represents an XRay instrumentation sled entry from an object file.
3839
struct SledEntry {
@@ -84,7 +85,8 @@ class InstrumentationMap {
8485
FunctionAddressMap FunctionAddresses;
8586
FunctionAddressReverseMap FunctionIds;
8687

87-
LLVM_ABI_FRIEND friend Expected<InstrumentationMap> loadInstrumentationMap(StringRef);
88+
LLVM_ABI_FRIEND friend Expected<InstrumentationMap>
89+
loadInstrumentationMap(StringRef);
8890

8991
public:
9092
/// Provides a raw accessor to the unordered map of function addresses.

llvm/include/llvm/XRay/Profile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
#ifndef LLVM_XRAY_PROFILE_H
1414
#define LLVM_XRAY_PROFILE_H
1515

16-
#include "llvm/Support/Compiler.h"
1716
#include "llvm/ADT/DenseMap.h"
1817
#include "llvm/ADT/SmallVector.h"
1918
#include "llvm/ADT/StringRef.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include "llvm/Support/Error.h"
2121
#include <list>
2222
#include <utility>

llvm/include/llvm/XRay/Trace.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ LLVM_ABI Expected<Trace> loadTraceFile(StringRef Filename, bool Sort = false);
7373

7474
/// This function will attempt to load XRay trace records from the provided
7575
/// DataExtractor.
76-
LLVM_ABI Expected<Trace> loadTrace(const DataExtractor &Extractor, bool Sort = false);
76+
LLVM_ABI Expected<Trace> loadTrace(const DataExtractor &Extractor,
77+
bool Sort = false);
7778

7879
} // namespace xray
7980
} // namespace llvm

0 commit comments

Comments
 (0)