Lines Matching refs:Result
51 typedef CodeCompletionResult Result; typedef in __anoncc4d5a8b0111::ResultBuilder
55 std::vector<Result> Results;
167 void AdjustResultPriorityForDecl(Result &R);
169 void MaybeAddConstructorResults(Result R);
216 Result *data() { return Results.empty()? nullptr : &Results.front(); } in data()
282 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
292 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
305 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
309 void AddResult(Result R);
465 NestedNameSpecifier *Result = nullptr; in getRequiredQualification() local
473 Result = NestedNameSpecifier::Create(Context, Result, Namespace); in getRequiredQualification()
476 Result = NestedNameSpecifier::Create(Context, Result, in getRequiredQualification()
480 return Result; in getRequiredQualification()
553 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult()
748 void ResultBuilder::AdjustResultPriorityForDecl(Result &R) { in AdjustResultPriorityForDecl()
774 void ResultBuilder::MaybeAddConstructorResults(Result R) { in MaybeAddConstructorResults()
812 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult()
815 if (R.Kind != Result::RK_Declaration) { in MaybeAddResult()
824 MaybeAddResult(Result(Using->getTargetDecl(), in MaybeAddResult()
930 void ResultBuilder::AddResult(Result R, DeclContext *CurContext, in AddResult()
932 if (R.Kind != Result::RK_Declaration) { in AddResult()
940 AddResult(Result(Using->getTargetDecl(), in AddResult()
1014 void ResultBuilder::AddResult(Result R) { in AddResult()
1015 assert(R.Kind != Result::RK_Declaration && in AddResult()
1264 ResultBuilder::Result Result(ND, Results.getBasePriority(ND), nullptr, in FoundDecl() local
1266 Results.AddResult(Result, CurContext, Hiding, InBaseClass); in FoundDecl()
1274 typedef CodeCompletionResult Result; in AddTypeSpecifierResults() typedef
1275 Results.AddResult(Result("short", CCP_Type)); in AddTypeSpecifierResults()
1276 Results.AddResult(Result("long", CCP_Type)); in AddTypeSpecifierResults()
1277 Results.AddResult(Result("signed", CCP_Type)); in AddTypeSpecifierResults()
1278 Results.AddResult(Result("unsigned", CCP_Type)); in AddTypeSpecifierResults()
1279 Results.AddResult(Result("void", CCP_Type)); in AddTypeSpecifierResults()
1280 Results.AddResult(Result("char", CCP_Type)); in AddTypeSpecifierResults()
1281 Results.AddResult(Result("int", CCP_Type)); in AddTypeSpecifierResults()
1282 Results.AddResult(Result("float", CCP_Type)); in AddTypeSpecifierResults()
1283 Results.AddResult(Result("double", CCP_Type)); in AddTypeSpecifierResults()
1284 Results.AddResult(Result("enum", CCP_Type)); in AddTypeSpecifierResults()
1285 Results.AddResult(Result("struct", CCP_Type)); in AddTypeSpecifierResults()
1286 Results.AddResult(Result("union", CCP_Type)); in AddTypeSpecifierResults()
1287 Results.AddResult(Result("const", CCP_Type)); in AddTypeSpecifierResults()
1288 Results.AddResult(Result("volatile", CCP_Type)); in AddTypeSpecifierResults()
1292 Results.AddResult(Result("_Complex", CCP_Type)); in AddTypeSpecifierResults()
1293 Results.AddResult(Result("_Imaginary", CCP_Type)); in AddTypeSpecifierResults()
1294 Results.AddResult(Result("_Bool", CCP_Type)); in AddTypeSpecifierResults()
1295 Results.AddResult(Result("restrict", CCP_Type)); in AddTypeSpecifierResults()
1302 Results.AddResult(Result("bool", CCP_Type + in AddTypeSpecifierResults()
1304 Results.AddResult(Result("class", CCP_Type)); in AddTypeSpecifierResults()
1305 Results.AddResult(Result("wchar_t", CCP_Type)); in AddTypeSpecifierResults()
1313 Results.AddResult(Result(Builder.TakeString())); in AddTypeSpecifierResults()
1316 Results.AddResult(Result("auto", CCP_Type)); in AddTypeSpecifierResults()
1317 Results.AddResult(Result("char16_t", CCP_Type)); in AddTypeSpecifierResults()
1318 Results.AddResult(Result("char32_t", CCP_Type)); in AddTypeSpecifierResults()
1324 Results.AddResult(Result(Builder.TakeString())); in AddTypeSpecifierResults()
1338 Results.AddResult(Result(Builder.TakeString())); in AddTypeSpecifierResults()
1344 Results.AddResult(Result(Builder.TakeString())); in AddTypeSpecifierResults()
1351 typedef CodeCompletionResult Result; in AddStorageSpecifiers() typedef
1355 Results.AddResult(Result("extern")); in AddStorageSpecifiers()
1356 Results.AddResult(Result("static")); in AddStorageSpecifiers()
1362 typedef CodeCompletionResult Result; in AddFunctionSpecifiers() typedef
1367 Results.AddResult(Result("explicit")); in AddFunctionSpecifiers()
1368 Results.AddResult(Result("friend")); in AddFunctionSpecifiers()
1369 Results.AddResult(Result("mutable")); in AddFunctionSpecifiers()
1370 Results.AddResult(Result("virtual")); in AddFunctionSpecifiers()
1379 Results.AddResult(Result("inline")); in AddFunctionSpecifiers()
1492 std::string Result; in GetCompletionTypeString() local
1493 T.getAsStringInternal(Result, Policy); in GetCompletionTypeString()
1494 return Allocator.CopyString(Result); in GetCompletionTypeString()
1523 typedef CodeCompletionResult Result; in AddOrdinaryNameResults() typedef
1536 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1545 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1553 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1560 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1567 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1585 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1596 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1606 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1612 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1618 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1631 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1673 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1691 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1704 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1714 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1719 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1735 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1747 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1766 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1772 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1778 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1797 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1803 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1811 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1829 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1837 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1845 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1857 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1862 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1873 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1884 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1894 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1904 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1913 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1923 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1935 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1942 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1952 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1960 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1969 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1977 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1985 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
1993 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
2010 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
2027 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
2036 Results.AddResult(Result(Builder.TakeString())); in AddOrdinaryNameResults()
2049 Results.AddResult(Result("operator")); in AddOrdinaryNameResults()
2057 CodeCompletionBuilder &Result) { in AddResultTypeChunk() argument
2084 Result.AddResultTypeChunk(GetCompletionTypeString(T, Context, Policy, in AddResultTypeChunk()
2085 Result.getAllocator())); in AddResultTypeChunk()
2090 CodeCompletionBuilder &Result) { in MaybeAddSentinel() argument
2095 Result.AddTextChunk(", nil"); in MaybeAddSentinel()
2097 Result.AddTextChunk(", NULL"); in MaybeAddSentinel()
2099 Result.AddTextChunk(", (void*)0"); in MaybeAddSentinel()
2104 std::string Result; in formatObjCParamQualifiers() local
2106 Result += "in "; in formatObjCParamQualifiers()
2108 Result += "inout "; in formatObjCParamQualifiers()
2110 Result += "out "; in formatObjCParamQualifiers()
2112 Result += "bycopy "; in formatObjCParamQualifiers()
2114 Result += "byref "; in formatObjCParamQualifiers()
2116 Result += "oneway "; in formatObjCParamQualifiers()
2117 return Result; in formatObjCParamQualifiers()
2130 std::string Result; in FormatFunctionParameter() local
2133 Result = Param->getIdentifier()->getName(); in FormatFunctionParameter()
2135 Param->getType().getAsStringInternal(Result, Policy); in FormatFunctionParameter()
2138 Result = "(" + formatObjCParamQualifiers(Param->getObjCDeclQualifier()) in FormatFunctionParameter()
2139 + Result + ")"; in FormatFunctionParameter()
2141 Result += Param->getIdentifier()->getName(); in FormatFunctionParameter()
2143 return Result; in FormatFunctionParameter()
2185 std::string Result; in FormatFunctionParameter() local
2187 Result = Param->getIdentifier()->getName(); in FormatFunctionParameter()
2189 Param->getType().getUnqualifiedType().getAsStringInternal(Result, Policy); in FormatFunctionParameter()
2192 Result = "(" + formatObjCParamQualifiers(Param->getObjCDeclQualifier()) in FormatFunctionParameter()
2193 + Result + ")"; in FormatFunctionParameter()
2195 Result += Param->getIdentifier()->getName(); in FormatFunctionParameter()
2198 return Result; in FormatFunctionParameter()
2203 std::string Result; in FormatFunctionParameter() local
2206 ResultType.getAsStringInternal(Result, Policy); in FormatFunctionParameter()
2232 Result = Result + " (^"; in FormatFunctionParameter()
2234 Result += Param->getIdentifier()->getName(); in FormatFunctionParameter()
2235 Result += ")"; in FormatFunctionParameter()
2236 Result += Params; in FormatFunctionParameter()
2239 Result = '^' + Result; in FormatFunctionParameter()
2240 Result += Params; in FormatFunctionParameter()
2243 Result += Param->getIdentifier()->getName(); in FormatFunctionParameter()
2246 return Result; in FormatFunctionParameter()
2253 CodeCompletionBuilder &Result, in AddFunctionParameterChunks() argument
2264 CodeCompletionBuilder Opt(Result.getAllocator(), in AddFunctionParameterChunks()
2265 Result.getCodeCompletionTUInfo()); in AddFunctionParameterChunks()
2269 Result.AddOptionalChunk(Opt.TakeString()); in AddFunctionParameterChunks()
2276 Result.AddChunk(CodeCompletionString::CK_Comma); in AddFunctionParameterChunks()
2288 Result.AddPlaceholderChunk( in AddFunctionParameterChunks()
2289 Result.getAllocator().CopyString(PlaceholderStr)); in AddFunctionParameterChunks()
2296 Result.AddPlaceholderChunk("..."); in AddFunctionParameterChunks()
2298 MaybeAddSentinel(Context, Function, Result); in AddFunctionParameterChunks()
2306 CodeCompletionBuilder &Result, in AddTemplateParameterChunks() argument
2360 CodeCompletionBuilder Opt(Result.getAllocator(), in AddTemplateParameterChunks()
2361 Result.getCodeCompletionTUInfo()); in AddTemplateParameterChunks()
2366 Result.AddOptionalChunk(Opt.TakeString()); in AddTemplateParameterChunks()
2375 Result.AddChunk(CodeCompletionString::CK_Comma); in AddTemplateParameterChunks()
2378 Result.AddPlaceholderChunk( in AddTemplateParameterChunks()
2379 Result.getAllocator().CopyString(PlaceholderStr)); in AddTemplateParameterChunks()
2386 AddQualifierToCompletionString(CodeCompletionBuilder &Result, in AddQualifierToCompletionString() argument
2400 Result.AddInformativeChunk(Result.getAllocator().CopyString(PrintedNNS)); in AddQualifierToCompletionString()
2402 Result.AddTextChunk(Result.getAllocator().CopyString(PrintedNNS)); in AddQualifierToCompletionString()
2406 AddFunctionTypeQualsToCompletionString(CodeCompletionBuilder &Result, in AddFunctionTypeQualsToCompletionString() argument
2417 Result.AddInformativeChunk(" const"); in AddFunctionTypeQualsToCompletionString()
2422 Result.AddInformativeChunk(" volatile"); in AddFunctionTypeQualsToCompletionString()
2427 Result.AddInformativeChunk(" restrict"); in AddFunctionTypeQualsToCompletionString()
2439 Result.AddInformativeChunk(Result.getAllocator().CopyString(QualsStr)); in AddFunctionTypeQualsToCompletionString()
2445 CodeCompletionBuilder &Result) { in AddTypedNameChunk() argument
2472 Result.AddTypedTextChunk(OperatorName); in AddTypedNameChunk()
2480 Result.AddTypedTextChunk( in AddTypedNameChunk()
2481 Result.getAllocator().CopyString(ND->getNameAsString())); in AddTypedNameChunk()
2499 Result.AddTypedTextChunk( in AddTypedNameChunk()
2500 Result.getAllocator().CopyString(ND->getNameAsString())); in AddTypedNameChunk()
2504 Result.AddTypedTextChunk( in AddTypedNameChunk()
2505 Result.getAllocator().CopyString(Record->getNameAsString())); in AddTypedNameChunk()
2507 Result.AddChunk(CodeCompletionString::CK_LeftAngle); in AddTypedNameChunk()
2508 AddTemplateParameterChunks(Context, Policy, Template, Result); in AddTypedNameChunk()
2509 Result.AddChunk(CodeCompletionString::CK_RightAngle); in AddTypedNameChunk()
2536 CodeCompletionBuilder Result(Allocator, CCTUInfo, Priority, Availability); in CreateCodeCompletionString() local
2544 Result.addParentContext(Declaration->getDeclContext()); in CreateCodeCompletionString()
2545 Pattern->ParentName = Result.getParentName(); in CreateCodeCompletionString()
2558 Result.addBriefComment(RC->getBriefText(Ctx)); in CreateCodeCompletionString()
2559 Pattern->BriefComment = Result.getBriefComment(); in CreateCodeCompletionString()
2563 Result.addBriefComment(RC->getBriefText(Ctx)); in CreateCodeCompletionString()
2564 Pattern->BriefComment = Result.getBriefComment(); in CreateCodeCompletionString()
2573 Result.AddTypedTextChunk(Keyword); in CreateCodeCompletionString()
2574 return Result.TakeString(); in CreateCodeCompletionString()
2583 Result.AddTypedTextChunk( in CreateCodeCompletionString()
2584 Result.getAllocator().CopyString(Macro->getName())); in CreateCodeCompletionString()
2587 return Result.TakeString(); in CreateCodeCompletionString()
2590 Result.AddChunk(CodeCompletionString::CK_LeftParen); in CreateCodeCompletionString()
2598 Result.AddPlaceholderChunk("..."); in CreateCodeCompletionString()
2604 Result.AddChunk(CodeCompletionString::CK_Comma); in CreateCodeCompletionString()
2612 Result.AddPlaceholderChunk(Result.getAllocator().CopyString(Arg)); in CreateCodeCompletionString()
2617 Result.AddPlaceholderChunk( in CreateCodeCompletionString()
2618 Result.getAllocator().CopyString((*A)->getName())); in CreateCodeCompletionString()
2620 Result.AddChunk(CodeCompletionString::CK_RightParen); in CreateCodeCompletionString()
2621 return Result.TakeString(); in CreateCodeCompletionString()
2626 Result.addParentContext(ND->getDeclContext()); in CreateCodeCompletionString()
2631 Result.addBriefComment(RC->getBriefText(Ctx)); in CreateCodeCompletionString()
2637 Result.addBriefComment(RC->getBriefText(Ctx)); in CreateCodeCompletionString()
2641 Result.AddTypedTextChunk( in CreateCodeCompletionString()
2642 Result.getAllocator().CopyString(ND->getNameAsString())); in CreateCodeCompletionString()
2643 Result.AddTextChunk("::"); in CreateCodeCompletionString()
2644 return Result.TakeString(); in CreateCodeCompletionString()
2648 Result.AddAnnotation(Result.getAllocator().CopyString(I->getAnnotation())); in CreateCodeCompletionString()
2650 AddResultTypeChunk(Ctx, Policy, ND, Result); in CreateCodeCompletionString()
2653 AddQualifierToCompletionString(Result, Qualifier, QualifierIsInformative, in CreateCodeCompletionString()
2655 AddTypedNameChunk(Ctx, Policy, ND, Result); in CreateCodeCompletionString()
2656 Result.AddChunk(CodeCompletionString::CK_LeftParen); in CreateCodeCompletionString()
2657 AddFunctionParameterChunks(Ctx, Policy, Function, Result); in CreateCodeCompletionString()
2658 Result.AddChunk(CodeCompletionString::CK_RightParen); in CreateCodeCompletionString()
2659 AddFunctionTypeQualsToCompletionString(Result, Function); in CreateCodeCompletionString()
2660 return Result.TakeString(); in CreateCodeCompletionString()
2664 AddQualifierToCompletionString(Result, Qualifier, QualifierIsInformative, in CreateCodeCompletionString()
2667 AddTypedNameChunk(Ctx, Policy, Function, Result); in CreateCodeCompletionString()
2703 Result.AddChunk(CodeCompletionString::CK_LeftAngle); in CreateCodeCompletionString()
2704 AddTemplateParameterChunks(Ctx, Policy, FunTmpl, Result, in CreateCodeCompletionString()
2706 Result.AddChunk(CodeCompletionString::CK_RightAngle); in CreateCodeCompletionString()
2710 Result.AddChunk(CodeCompletionString::CK_LeftParen); in CreateCodeCompletionString()
2711 AddFunctionParameterChunks(Ctx, Policy, Function, Result); in CreateCodeCompletionString()
2712 Result.AddChunk(CodeCompletionString::CK_RightParen); in CreateCodeCompletionString()
2713 AddFunctionTypeQualsToCompletionString(Result, Function); in CreateCodeCompletionString()
2714 return Result.TakeString(); in CreateCodeCompletionString()
2718 AddQualifierToCompletionString(Result, Qualifier, QualifierIsInformative, in CreateCodeCompletionString()
2720 Result.AddTypedTextChunk( in CreateCodeCompletionString()
2721 Result.getAllocator().CopyString(Template->getNameAsString())); in CreateCodeCompletionString()
2722 Result.AddChunk(CodeCompletionString::CK_LeftAngle); in CreateCodeCompletionString()
2723 AddTemplateParameterChunks(Ctx, Policy, Template, Result); in CreateCodeCompletionString()
2724 Result.AddChunk(CodeCompletionString::CK_RightAngle); in CreateCodeCompletionString()
2725 return Result.TakeString(); in CreateCodeCompletionString()
2731 Result.AddTypedTextChunk(Result.getAllocator().CopyString( in CreateCodeCompletionString()
2733 return Result.TakeString(); in CreateCodeCompletionString()
2739 Result.AddTypedTextChunk(Result.getAllocator().CopyString(SelName)); in CreateCodeCompletionString()
2741 Result.AddInformativeChunk(Result.getAllocator().CopyString(SelName)); in CreateCodeCompletionString()
2746 Result.AddTypedTextChunk(""); in CreateCodeCompletionString()
2755 Result.AddChunk(CodeCompletionString::CK_HorizontalSpace); in CreateCodeCompletionString()
2760 Result.AddInformativeChunk(Result.getAllocator().CopyString(Keyword)); in CreateCodeCompletionString()
2762 Result.AddTypedTextChunk(Result.getAllocator().CopyString(Keyword)); in CreateCodeCompletionString()
2786 Result.AddTextChunk(Result.getAllocator().CopyString(Arg)); in CreateCodeCompletionString()
2788 Result.AddInformativeChunk(Result.getAllocator().CopyString(Arg)); in CreateCodeCompletionString()
2790 Result.AddPlaceholderChunk(Result.getAllocator().CopyString(Arg)); in CreateCodeCompletionString()
2796 Result.AddTextChunk(", ..."); in CreateCodeCompletionString()
2798 Result.AddInformativeChunk(", ..."); in CreateCodeCompletionString()
2800 Result.AddPlaceholderChunk(", ..."); in CreateCodeCompletionString()
2803 MaybeAddSentinel(Ctx, Method, Result); in CreateCodeCompletionString()
2806 return Result.TakeString(); in CreateCodeCompletionString()
2810 AddQualifierToCompletionString(Result, Qualifier, QualifierIsInformative, in CreateCodeCompletionString()
2813 Result.AddTypedTextChunk( in CreateCodeCompletionString()
2814 Result.getAllocator().CopyString(ND->getNameAsString())); in CreateCodeCompletionString()
2815 return Result.TakeString(); in CreateCodeCompletionString()
2824 CodeCompletionBuilder &Result, in AddOverloadParameterChunks() argument
2836 CodeCompletionBuilder Opt(Result.getAllocator(), in AddOverloadParameterChunks()
2837 Result.getCodeCompletionTUInfo()); in AddOverloadParameterChunks()
2843 Result.AddOptionalChunk(Opt.TakeString()); in AddOverloadParameterChunks()
2850 Result.AddChunk(CodeCompletionString::CK_Comma); in AddOverloadParameterChunks()
2863 Result.AddCurrentParameterChunk( in AddOverloadParameterChunks()
2864 Result.getAllocator().CopyString(Placeholder)); in AddOverloadParameterChunks()
2866 Result.AddPlaceholderChunk(Result.getAllocator().CopyString(Placeholder)); in AddOverloadParameterChunks()
2870 CodeCompletionBuilder Opt(Result.getAllocator(), in AddOverloadParameterChunks()
2871 Result.getCodeCompletionTUInfo()); in AddOverloadParameterChunks()
2880 Result.AddOptionalChunk(Opt.TakeString()); in AddOverloadParameterChunks()
2893 CodeCompletionBuilder Result(Allocator,CCTUInfo, 1, CXAvailability_Available); in CreateSignatureString() local
2901 Result.AddResultTypeChunk(Result.getAllocator().CopyString( in CreateSignatureString()
2903 Result.AddChunk(CodeCompletionString::CK_LeftParen); in CreateSignatureString()
2904 Result.AddChunk(CodeCompletionString::CK_CurrentParameter, "..."); in CreateSignatureString()
2905 Result.AddChunk(CodeCompletionString::CK_RightParen); in CreateSignatureString()
2906 return Result.TakeString(); in CreateSignatureString()
2913 Result.addBriefComment(RC->getBriefText(S.getASTContext())); in CreateSignatureString()
2914 AddResultTypeChunk(S.Context, Policy, FDecl, Result); in CreateSignatureString()
2915 Result.AddTextChunk( in CreateSignatureString()
2916 Result.getAllocator().CopyString(FDecl->getNameAsString())); in CreateSignatureString()
2918 Result.AddResultTypeChunk( in CreateSignatureString()
2919 Result.getAllocator().CopyString( in CreateSignatureString()
2923 Result.AddChunk(CodeCompletionString::CK_LeftParen); in CreateSignatureString()
2924 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, Result, in CreateSignatureString()
2926 Result.AddChunk(CodeCompletionString::CK_RightParen); in CreateSignatureString()
2928 return Result.TakeString(); in CreateSignatureString()
3032 typedef CodeCompletionResult Result; in AddMacroResults() typedef
3044 Results.AddResult(Result(M->first, in AddMacroResults()
3057 typedef CodeCompletionResult Result; in AddPrettyFunctionResults() typedef
3061 Results.AddResult(Result("__PRETTY_FUNCTION__", CCP_Constant)); in AddPrettyFunctionResults()
3062 Results.AddResult(Result("__FUNCTION__", CCP_Constant)); in AddPrettyFunctionResults()
3064 Results.AddResult(Result("__func__", CCP_Constant)); in AddPrettyFunctionResults()
3208 typedef CodeCompletionResult Result; in CodeCompleteModuleImport() typedef
3216 typedef CodeCompletionResult Result; in CodeCompleteModuleImport() typedef
3224 Results.AddResult(Result(Builder.TakeString(), in CodeCompleteModuleImport()
3244 Results.AddResult(Result(Builder.TakeString(), in CodeCompleteModuleImport()
3354 typedef CodeCompletionResult Result; in CodeCompleteDeclSpec() typedef
3363 Results.AddResult(Result("const")); in CodeCompleteDeclSpec()
3364 Results.AddResult(Result("volatile")); in CodeCompleteDeclSpec()
3366 Results.AddResult(Result("restrict")); in CodeCompleteDeclSpec()
3370 Results.AddResult(Result("operator")); in CodeCompleteDeclSpec()
3509 typedef CodeCompletionResult Result; in AddObjCProperties() typedef
3517 Results.MaybeAddResult(Result(P, Results.getBasePriority(P), nullptr), in AddObjCProperties()
3534 Results.MaybeAddResult(Result(Builder.TakeString(), M, in AddObjCProperties()
3585 typedef CodeCompletionResult Result; in CodeCompleteMemberReferenceExpr() typedef
3645 Results.AddResult(Result("template")); in CodeCompleteMemberReferenceExpr()
4320 typedef CodeCompletionResult Result; in CodeCompleteOperatorName() typedef
4330 Results.AddResult(Result(Spelling)); in CodeCompleteOperatorName()
4519 typedef CodeCompletionResult Result; in AddObjCImplementationResults() typedef
4521 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"end"))); in AddObjCImplementationResults()
4530 Results.AddResult(Result(Builder.TakeString())); in AddObjCImplementationResults()
4536 Results.AddResult(Result(Builder.TakeString())); in AddObjCImplementationResults()
4543 typedef CodeCompletionResult Result; in AddObjCInterfaceResults() typedef
4546 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"end"))); in AddObjCInterfaceResults()
4550 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"property"))); in AddObjCInterfaceResults()
4553 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"required"))); in AddObjCInterfaceResults()
4556 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"optional"))); in AddObjCInterfaceResults()
4561 typedef CodeCompletionResult Result; in AddObjCTopLevelResults() typedef
4569 Results.AddResult(Result(Builder.TakeString())); in AddObjCTopLevelResults()
4578 Results.AddResult(Result(Builder.TakeString())); in AddObjCTopLevelResults()
4584 Results.AddResult(Result(Builder.TakeString())); in AddObjCTopLevelResults()
4590 Results.AddResult(Result(Builder.TakeString())); in AddObjCTopLevelResults()
4599 Results.AddResult(Result(Builder.TakeString())); in AddObjCTopLevelResults()
4606 Results.AddResult(Result(Builder.TakeString())); in AddObjCTopLevelResults()
4628 typedef CodeCompletionResult Result; in AddObjCExpressionResults() typedef
4642 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4650 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4658 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4665 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4672 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4682 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4689 Results.AddResult(Result(Builder.TakeString())); in AddObjCExpressionResults()
4693 typedef CodeCompletionResult Result; in AddObjCStatementResults() typedef
4715 Results.AddResult(Result(Builder.TakeString())); in AddObjCStatementResults()
4722 Results.AddResult(Result(Builder.TakeString())); in AddObjCStatementResults()
4734 Results.AddResult(Result(Builder.TakeString())); in AddObjCStatementResults()
4741 typedef CodeCompletionResult Result; in AddObjCVisibilityResults() typedef
4742 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"private"))); in AddObjCVisibilityResults()
4743 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"protected"))); in AddObjCVisibilityResults()
4744 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"public"))); in AddObjCVisibilityResults()
4746 Results.AddResult(Result(OBJC_AT_KEYWORD_NAME(NeedAt,"package"))); in AddObjCVisibilityResults()
4951 typedef CodeCompletionResult Result; in AddObjCMethods() typedef
4968 Result R = Result(M, Results.getBasePriority(M), nullptr); in AddObjCMethods()
5355 typedef CodeCompletionResult Result; in CodeCompleteObjCMessageReceiver() typedef
5373 Results.AddResult(Result("super")); in CodeCompleteObjCMessageReceiver()
5457 typedef CodeCompletionResult Result; in getPreferredArgumentTypeForMessageSend() typedef
5462 Result *ResultsData = Results.data(); in getPreferredArgumentTypeForMessageSend()
5464 Result &R = ResultsData[I]; in getPreferredArgumentTypeForMessageSend()
5465 if (R.Kind == Result::RK_Declaration && in getPreferredArgumentTypeForMessageSend()
5493 typedef CodeCompletionResult Result; in AddClassMessageCompletions() typedef
5553 Result R(MethList->getMethod(), in AddClassMessageCompletions()
5604 typedef CodeCompletionResult Result; in CodeCompleteObjCInstanceMessage() typedef
5729 Result R(MethList->getMethod(), in CodeCompleteObjCInstanceMessage()
5840 typedef CodeCompletionResult Result; in AddProtocolResults() typedef
5846 Results.AddResult(Result(Proto, Results.getBasePriority(Proto),nullptr), in AddProtocolResults()
5906 typedef CodeCompletionResult Result; in AddInterfaceResults() typedef
5913 Results.AddResult(Result(Class, Results.getBasePriority(Class),nullptr), in AddInterfaceResults()
5985 typedef CodeCompletionResult Result; in CodeCompleteObjCInterfaceCategory() typedef
6007 Results.AddResult(Result(Category, Results.getBasePriority(Category), in CodeCompleteObjCInterfaceCategory()
6020 typedef CodeCompletionResult Result; in CodeCompleteObjCImplementationCategory() typedef
6045 Results.AddResult(Result(Cat, Results.getBasePriority(Cat), nullptr), in CodeCompleteObjCImplementationCategory()
6099 typedef CodeCompletionResult Result; in CodeCompleteObjCPropertySynthesizeIvar() typedef
6145 Results.AddResult(Result(Ivar, Results.getBasePriority(Ivar), nullptr), in CodeCompleteObjCPropertySynthesizeIvar()
6170 typedef CodeCompletionResult Result; in CodeCompleteObjCPropertySynthesizeIvar() typedef
6179 Results.AddResult(Result(Builder.TakeString(), Priority, in CodeCompleteObjCPropertySynthesizeIvar()
6327 typedef CodeCompletionResult Result; in AddObjCKeyValueCompletions() typedef
6372 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern, in AddObjCKeyValueCompletions()
6396 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern, in AddObjCKeyValueCompletions()
6419 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern, in AddObjCKeyValueCompletions()
6468 Results.AddResult(Result(Builder.TakeString(), in AddObjCKeyValueCompletions()
6494 Results.AddResult(Result(Builder.TakeString(), IndexedGetterPriority, in AddObjCKeyValueCompletions()
6521 Results.AddResult(Result(Builder.TakeString(), IndexedGetterPriority, in AddObjCKeyValueCompletions()
6553 Results.AddResult(Result(Builder.TakeString(), IndexedGetterPriority, in AddObjCKeyValueCompletions()
6587 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority, in AddObjCKeyValueCompletions()
6618 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority, in AddObjCKeyValueCompletions()
6640 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority, in AddObjCKeyValueCompletions()
6662 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority, in AddObjCKeyValueCompletions()
6694 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority, in AddObjCKeyValueCompletions()
6727 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority, in AddObjCKeyValueCompletions()
6751 Results.AddResult(Result(Builder.TakeString(), UnorderedGetterPriority, in AddObjCKeyValueCompletions()
6781 Results.AddResult(Result(Builder.TakeString(), UnorderedGetterPriority, in AddObjCKeyValueCompletions()
6805 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority, in AddObjCKeyValueCompletions()
6826 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority, in AddObjCKeyValueCompletions()
6849 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority, in AddObjCKeyValueCompletions()
6870 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority, in AddObjCKeyValueCompletions()
6891 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority, in AddObjCKeyValueCompletions()
6916 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern, in AddObjCKeyValueCompletions()
6938 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern, in AddObjCKeyValueCompletions()
6988 typedef CodeCompletionResult Result; in CodeCompleteObjCMethodDecl() typedef
7067 Results.AddResult(Result(Builder.TakeString(), Method, Priority)); in CodeCompleteObjCMethodDecl()
7124 typedef CodeCompletionResult Result; in CodeCompleteObjCMethodDeclSelector() typedef
7162 Result R(MethList->getMethod(), in CodeCompleteObjCMethodDeclSelector()