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
CXCompletionContext_Unexposed0

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

CXCompletionContext_AnyType1 << 0

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

CXCompletionContext_AnyValue1 << 1

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

CXCompletionContext_ObjCObjectValue1 << 2

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

CXCompletionContext_ObjCSelectorValue1 << 3

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

CXCompletionContext_CXXClassTypeValue1 << 4

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

CXCompletionContext_DotMemberAccess1 << 5

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

CXCompletionContext_ArrowMemberAccess1 << 6

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

CXCompletionContext_ObjCPropertyAccess1 << 7

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

CXCompletionContext_EnumTag1 << 8

Completions for enum tags should be included in the results.

CXCompletionContext_UnionTag1 << 9

Completions for union tags should be included in the results.

CXCompletionContext_StructTag1 << 10

Completions for struct tags should be included in the results.

CXCompletionContext_ClassTag1 << 11

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

CXCompletionContext_Namespace1 << 12

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

CXCompletionContext_NestedNameSpecifier1 << 13

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

CXCompletionContext_ObjCInterface1 << 14

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

CXCompletionContext_ObjCProtocol1 << 15

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

CXCompletionContext_ObjCCategory1 << 16

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

CXCompletionContext_ObjCInstanceMessage1 << 17

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

CXCompletionContext_ObjCClassMessage1 << 18

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

CXCompletionContext_ObjCSelectorName1 << 19

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

CXCompletionContext_MacroName1 << 20

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

CXCompletionContext_NaturalLanguage1 << 21

Natural language completions should be included in the results.

CXCompletionContext_IncludedFile1 << 22

#include file completions should be included in the results.

CXCompletionContext_Unknown(1 << 23) - 1

The current context is unknown, so set all contexts.

Meta