clang: include/clang/Tooling/Syntax/TokenManager.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#ifndef LLVM_CLANG_TOOLING_SYNTAX_TOKEN_MANAGER_H

20#define LLVM_CLANG_TOOLING_SYNTAX_TOKEN_MANAGER_H

21

22#include "llvm/ADT/StringRef.h"

23#include

24

26namespace syntax {

27

28

30public:

32

33

34 virtual llvm::StringLiteral kind() const = 0;

35

36

37

38

39

41 virtual llvm::StringRef getText(Key K) const = 0;

42};

43

44}

45}

46

47#endif

Defines interfaces for operating "Token" in the clang syntax-tree.

uintptr_t Key

A key to identify a specific token.

virtual llvm::StringRef getText(Key K) const =0

virtual ~TokenManager()=default

virtual llvm::StringLiteral kind() const =0

Describes what the exact class kind of the TokenManager is.

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

__UINTPTR_TYPE__ uintptr_t

An unsigned integer type with the property that any valid pointer to void can be converted to this ty...