Skip to content

Commit 51bb830

Browse files
committed
#include should be on the next line after #define
1 parent d8c5238 commit 51bb830

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

stdlib/public/runtime/RuntimeInvocationsTracking.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ namespace swift {
2929
struct RuntimeFunctionCountersState {
3030
#define FUNCTION_TO_TRACK(RT_FUNCTION) \
3131
uint32_t SWIFT_RT_FUNCTION_INVOCATION_COUNTER_NAME(RT_FUNCTION) = 0;
32-
3332
// Provide one counter per runtime function being tracked.
3433
#include "RuntimeInvocationsTracking.def"
3534
};
@@ -54,7 +53,6 @@ static llvm::DenseMap<HeapObject *, RuntimeFunctionCountersState> RuntimeObjectS
5453
static const char *RuntimeFunctionNames[] {
5554
/// Define names of runtime functions.
5655
#define FUNCTION_TO_TRACK(RT_FUNCTION) #RT_FUNCTION,
57-
5856
#include "RuntimeInvocationsTracking.def"
5957
nullptr
6058
};
@@ -67,7 +65,6 @@ static const char *RuntimeFunctionNames[] {
6765
enum RuntimeFunctionNamesIDs : uint32_t {
6866
/// Defines names of enum cases for each function being tracked.
6967
#define FUNCTION_TO_TRACK(RT_FUNCTION) RT_FUNCTION_ID(RT_FUNCTION),
70-
7168
#include "RuntimeInvocationsTracking.def"
7269
ID_LastRuntimeFunctionName,
7370
};
@@ -83,7 +80,6 @@ static uint16_t RuntimeFunctionCountersOffsets[] = {
8380
/// Define offset for each function being tracked.
8481
#define FUNCTION_TO_TRACK(RT_FUNCTION) \
8582
(sizeof(uint16_t) * (unsigned)RT_FUNCTION_ID(RT_FUNCTION)),
86-
8783
#include "RuntimeInvocationsTracking.def"
8884
};
8985

@@ -112,7 +108,6 @@ static uint16_t RuntimeFunctionCountersOffsets[] = {
112108
/* TODO: Remember the order/history of operations? */ \
113109
} \
114110
}
115-
116111
#include "RuntimeInvocationsTracking.def"
117112

118113
/// Public APIs
@@ -175,7 +170,6 @@ static void dumpRuntimeCounters(RuntimeFunctionCountersState *State) {
175170
if (tmp != 0) \
176171
printf("%s = %d\n", \
177172
RuntimeFunctionNames[(int)RT_FUNCTION_ID(RT_FUNCTION)], tmp);
178-
179173
#include "RuntimeInvocationsTracking.def"
180174
}
181175

stdlib/public/runtime/RuntimeInvocationsTracking.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ struct RuntimeFunctionCountersState;
4949

5050
#define FUNCTION_TO_TRACK(RT_FUNCTION) \
5151
extern void SWIFT_RT_TRACK_INVOCATION_NAME(RT_FUNCTION)(HeapObject * OBJ);
52-
5352
/// Declarations of external functions for invocations tracking.
5453
#include "RuntimeInvocationsTracking.def"
5554

0 commit comments

Comments
 (0)