LLVM: include/llvm/XRay/FDRLogBuilder.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8#ifndef LLVM_XRAY_FDRLOGBUILDER_H

9#define LLVM_XRAY_FDRLOGBUILDER_H

10

12

14

15

16

17

18

19

20

21

22

23

25 std::vector<std::unique_ptr> Records;

26

27public:

29 Records.emplace_back(new R(std::forward(A)...));

30 return *this;

31 }

32

33 std::vector<std::unique_ptr> consume() { return std::move(Records); }

34};

35

36}

37

38#endif

static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")

The LogBuilder class allows for creating ad-hoc collections of records through the add<....

Definition FDRLogBuilder.h:24

LogBuilder & add(T &&... A)

Definition FDRLogBuilder.h:28

std::vector< std::unique_ptr< Record > > consume()

Definition FDRLogBuilder.h:33