clang: include/clang/Tooling/FixIt.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19#ifndef LLVM_CLANG_TOOLING_FIXIT_H

20#define LLVM_CLANG_TOOLING_FIXIT_H

21

23

25namespace tooling {

26namespace fixit {

27

28namespace internal {

30

31

34}

35

36

39}

40

41

42

45}

46}

47

48

49template

52}

53

54

55

58}

59

60

61template <typename D, typename S>

65 getText(Source, Context));

66}

67

68

69template

72 Source);

73}

74

75}

76}

77}

78

79#endif

Defines the clang::ASTContext interface.

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

Represents a character-granular source range.

static CharSourceRange getTokenRange(SourceRange R)

Annotates a diagnostic with some code that should be inserted, removed, or replaced to fix the proble...

static FixItHint CreateReplacement(CharSourceRange RemoveRange, StringRef Code)

Create a code modification hint that replaces the given source range with the given code string.

static FixItHint CreateRemoval(CharSourceRange RemoveRange)

Create a code modification hint that removes the given source range.

Encodes a location in the source.

A trivial tuple used to represent a source range.

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

const FunctionProtoType * T