Lines Matching refs:CodeCompletionContext
141 CodeCompletionContext::Kind CtxKind) { in toCompletionItemKind()
144 if (CtxKind == CodeCompletionContext::CCC_IncludedFile) in toCompletionItemKind()
294 CodeCompletionContext::Kind ContextKind, in CodeCompletionBuilder()
640 getQueryScopes(CodeCompletionContext &CCContext, const Sema &CCSema, in getQueryScopes()
698 bool contextAllowsIndex(enum CodeCompletionContext::Kind K) { in contextAllowsIndex()
700 case CodeCompletionContext::CCC_TopLevel: in contextAllowsIndex()
701 case CodeCompletionContext::CCC_ObjCInterface: in contextAllowsIndex()
702 case CodeCompletionContext::CCC_ObjCImplementation: in contextAllowsIndex()
703 case CodeCompletionContext::CCC_ObjCIvarList: in contextAllowsIndex()
704 case CodeCompletionContext::CCC_ClassStructUnion: in contextAllowsIndex()
705 case CodeCompletionContext::CCC_Statement: in contextAllowsIndex()
706 case CodeCompletionContext::CCC_Expression: in contextAllowsIndex()
707 case CodeCompletionContext::CCC_ObjCMessageReceiver: in contextAllowsIndex()
708 case CodeCompletionContext::CCC_EnumTag: in contextAllowsIndex()
709 case CodeCompletionContext::CCC_UnionTag: in contextAllowsIndex()
710 case CodeCompletionContext::CCC_ClassOrStructTag: in contextAllowsIndex()
711 case CodeCompletionContext::CCC_ObjCProtocolName: in contextAllowsIndex()
712 case CodeCompletionContext::CCC_Namespace: in contextAllowsIndex()
713 case CodeCompletionContext::CCC_Type: in contextAllowsIndex()
714 case CodeCompletionContext::CCC_ParenthesizedExpression: in contextAllowsIndex()
715 case CodeCompletionContext::CCC_ObjCInterfaceName: in contextAllowsIndex()
716 case CodeCompletionContext::CCC_ObjCCategoryName: in contextAllowsIndex()
717 case CodeCompletionContext::CCC_Symbol: in contextAllowsIndex()
718 case CodeCompletionContext::CCC_SymbolOrNewName: in contextAllowsIndex()
720 case CodeCompletionContext::CCC_OtherWithMacros: in contextAllowsIndex()
721 case CodeCompletionContext::CCC_DotMemberAccess: in contextAllowsIndex()
722 case CodeCompletionContext::CCC_ArrowMemberAccess: in contextAllowsIndex()
723 case CodeCompletionContext::CCC_ObjCPropertyAccess: in contextAllowsIndex()
724 case CodeCompletionContext::CCC_MacroName: in contextAllowsIndex()
725 case CodeCompletionContext::CCC_MacroNameUse: in contextAllowsIndex()
726 case CodeCompletionContext::CCC_PreprocessorExpression: in contextAllowsIndex()
727 case CodeCompletionContext::CCC_PreprocessorDirective: in contextAllowsIndex()
728 case CodeCompletionContext::CCC_SelectorName: in contextAllowsIndex()
729 case CodeCompletionContext::CCC_TypeQualifiers: in contextAllowsIndex()
730 case CodeCompletionContext::CCC_ObjCInstanceMessage: in contextAllowsIndex()
731 case CodeCompletionContext::CCC_ObjCClassMessage: in contextAllowsIndex()
732 case CodeCompletionContext::CCC_IncludedFile: in contextAllowsIndex()
733 case CodeCompletionContext::CCC_Attribute: in contextAllowsIndex()
735 case CodeCompletionContext::CCC_Other: // Be conservative. in contextAllowsIndex()
736 case CodeCompletionContext::CCC_NaturalLanguage: in contextAllowsIndex()
737 case CodeCompletionContext::CCC_Recovery: in contextAllowsIndex()
738 case CodeCompletionContext::CCC_NewName: in contextAllowsIndex()
779 CCContext(CodeCompletionContext::CCC_Other), Opts(Opts), in CompletionRecorder()
786 CodeCompletionContext CCContext;
790 void ProcessCodeCompleteResults(class Sema &S, CodeCompletionContext Context, in ProcessCodeCompleteResults()
801 if (Context.getKind() == CodeCompletionContext::CCC_Recovery) { in ProcessCodeCompleteResults()
1320 bool allowIndex(CodeCompletionContext &CC) { in allowIndex()
1403 CodeCompletionContext::Kind CCContextKind = CodeCompletionContext::CCC_Other;
1542 CCContextKind = CodeCompletionContext::CCC_Recovery; in runWithoutSema()
1680 if (CCContextKind == CodeCompletionContext::CCC_ObjCProtocolName) { in includeSymbolFromIndex()
2002 Result.Context = CodeCompletionContext::CCC_NaturalLanguage; in codeCompleteComment()