clang: include/clang/AST/DataCollection.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26#ifndef LLVM_CLANG_AST_DATACOLLECTION_H

27#define LLVM_CLANG_AST_DATACOLLECTION_H

28

30

32namespace data_collection {

33

34

35

36

37

38

40

41

42

43template

45 DataConsumer.update(Str);

46}

47

50}

51

52template <class T, class Type>

53std::enable_if_t<std::is_integral::value || std::is_enum::value ||

54 std::is_convertible<Type, size_t>::value

55 >

57 DataConsumer.update(StringRef(reinterpret_cast<char *>(&Data), sizeof(Data)));

58}

59

60}

61}

62

63#endif

Defines the clang::ASTContext interface.

Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...

A (possibly-)qualified type.

static std::string getAsString(SplitQualType split, const PrintingPolicy &Policy)

Encodes a location in the source.

The base class of the type hierarchy.

void addDataToConsumer(T &DataConsumer, llvm::StringRef Str)

Utility functions for implementing addData() for a consumer that has a method update(StringRef)

std::string getMacroStack(SourceLocation Loc, ASTContext &Context)

Returns a string that represents all macro expansions that expanded into the given SourceLocation.

The JSON file list parser is used to communicate input to InstallAPI.

const FunctionProtoType * T