CXCompletionContext

Bits that represent the context under which completion is occurring.

The enumerators in this enumeration may be bitwise-OR'd together if multiple contexts are occurring simultaneously.

Values

ValueMeaning
unexposed0

The context for completions is unexposed, as only Clang results should be included. (This is equivalent to having no context bits set.)

anyType1 << 0

Completions for any possible type should be included in the results.

anyValue1 << 1

Completions for any possible value (variables, function calls, etc.) should be included in the results.

objCObjectValue1 << 2

Completions for values that resolve to an Objective-C object should be included in the results.

objCSelectorValue1 << 3

Completions for values that resolve to an Objective-C selector should be included in the results.

cxxClassTypeValue1 << 4

Completions for values that resolve to a C++ class type should be included in the results.

dotMemberAccess1 << 5

Completions for fields of the member being accessed using the dot operator should be included in the results.

arrowMemberAccess1 << 6

Completions for fields of the member being accessed using the arrow operator should be included in the results.

objCPropertyAccess1 << 7

Completions for properties of the Objective-C object being accessed using the dot operator should be included in the results.

enumTag1 << 8

Completions for enum tags should be included in the results.

unionTag1 << 9

Completions for union tags should be included in the results.

structTag1 << 10

Completions for struct tags should be included in the results.

classTag1 << 11

Completions for C++ class names should be included in the results.

namespace1 << 12

Completions for C++ namespaces and namespace aliases should be included in the results.

nestedNameSpecifier1 << 13

Completions for C++ nested name specifiers should be included in the results.

objCInterface1 << 14

Completions for Objective-C interfaces (classes) should be included in the results.

objCProtocol1 << 15

Completions for Objective-C protocols should be included in the results.

objCCategory1 << 16

Completions for Objective-C categories should be included in the results.

objCInstanceMessage1 << 17

Completions for Objective-C instance messages should be included in the results.

objCClassMessage1 << 18

Completions for Objective-C class messages should be included in the results.

objCSelectorName1 << 19

Completions for Objective-C selector names should be included in the results.

macroName1 << 20

Completions for preprocessor macro names should be included in the results.

naturalLanguage1 << 21

Natural language completions should be included in the results.

includedFile1 << 22

#include file completions should be included in the results.

unknown(1 << 23) - 1

The current context is unknown, so set all contexts.

Meta