clang: include/clang/Lex/CodeCompletionHandler.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_CLANG_LEX_CODECOMPLETIONHANDLER_H

14#define LLVM_CLANG_LEX_CODECOMPLETIONHANDLER_H

15

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

17

19

20class IdentifierInfo;

21class MacroInfo;

22

23

24

26public:

28

29

30

31

32

33

34

35

36

38

39

40

42

43

44

45

46

47

49

50

51

53

54

55

56

57

58

59

62 unsigned ArgumentIndex) { }

63

64

65

66

68

69

70

71

73};

74

75}

76

77#endif

Callback handler that receives notifications when performing code completion within the preprocessor.

virtual void CodeCompleteIncludedFile(llvm::StringRef Dir, bool IsAngled)

Callback invoked when performing code completion inside the filename part of an #include directive.

virtual void CodeCompleteMacroArgument(IdentifierInfo *Macro, MacroInfo *MacroInfo, unsigned ArgumentIndex)

Callback invoked when performing code completion inside a function-like macro argument.

virtual ~CodeCompletionHandler()

virtual void CodeCompleteMacroName(bool IsDefinition)

Callback invoked when performing code completion in a context where the name of a macro is expected.

virtual void CodeCompletePreprocessorExpression()

Callback invoked when performing code completion in a preprocessor expression, such as the condition ...

virtual void CodeCompleteNaturalLanguage()

Callback invoked when performing code completion in a part of the file where we expect natural langua...

virtual void CodeCompleteInConditionalExclusion()

Callback invoked when performing code completion within a block of code that was excluded due to prep...

virtual void CodeCompleteDirective(bool InConditional)

Callback invoked when performing code completion for a preprocessor directive.

One of these records is kept for each identifier that is lexed.

Encapsulates the data about a macro definition (e.g.

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