Home
last modified time | relevance | path

Searched refs:CodeCompletionResult (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/unittests/
DQualityTests.cpp77 Quality.merge(CodeCompletionResult(&findDecl(AST, "_f"), /*Priority=*/42)); in TEST()
84 Quality.merge(CodeCompletionResult("if")); in TEST()
120 Relevance.merge(CodeCompletionResult(&findDecl(AST, "deprecated"), in TEST()
128 Relevance.merge(CodeCompletionResult(&findDecl(AST, "main"), 42)); in TEST()
132 Relevance.merge(CodeCompletionResult(&findDecl(AST, "header"), 42)); in TEST()
135 Relevance.merge(CodeCompletionResult(&findDecl(AST, "header_main"), 42)); in TEST()
148 CodeCompletionResult Result(Shadow->getTargetDecl(), 42); in TEST()
162 Relevance.merge(CodeCompletionResult(&findUnqualifiedDecl(AST, "X"), 42)); in TEST()
165 Relevance.merge(CodeCompletionResult(&findUnqualifiedDecl(AST, "y"), 42)); in TEST()
168 Relevance.merge(CodeCompletionResult(&findUnqualifiedDecl(AST, "z"), 42)); in TEST()
[all …]
DExpectedTypeTest.cpp44 ASTCtx(), CodeCompletionResult(D, CCP_Declaration)); in fromCompletionResult()
/external/clang/include/clang/Sema/
DCodeCompleteConsumer.h457 friend class CodeCompletionResult; variable
624 class CodeCompletionResult {
691 CodeCompletionResult(const NamedDecl *Declaration,
706 CodeCompletionResult(const char *Keyword, unsigned Priority = CCP_Keyword)
715 CodeCompletionResult(const IdentifierInfo *Macro,
725 CodeCompletionResult(CodeCompletionString *Pattern,
740 CodeCompletionResult(CodeCompletionString *Pattern, NamedDecl *D,
785 bool operator<(const CodeCompletionResult &X, const CodeCompletionResult &Y);
787 inline bool operator>(const CodeCompletionResult &X,
788 const CodeCompletionResult &Y) {
[all …]
/external/llvm-project/clang/include/clang/Sema/
DCodeCompleteConsumer.h562 friend class CodeCompletionResult; variable
746 class CodeCompletionResult {
864 CodeCompletionResult(const NamedDecl *Declaration, unsigned Priority,
879 CodeCompletionResult(const char *Keyword, unsigned Priority = CCP_Keyword)
886 CodeCompletionResult(const IdentifierInfo *Macro,
896 CodeCompletionResult(
909 CodeCompletionResult(CodeCompletionString *Pattern, const NamedDecl *D, in CodeCompletionResult() function
978 bool operator<(const CodeCompletionResult &X, const CodeCompletionResult &Y);
980 inline bool operator>(const CodeCompletionResult &X,
981 const CodeCompletionResult &Y) {
[all …]
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp434 CodeCompletionResult *Results, in ProcessCodeCompleteResults()
442 case CodeCompletionResult::RK_Declaration: in ProcessCodeCompleteResults()
459 case CodeCompletionResult::RK_Keyword: in ProcessCodeCompleteResults()
463 case CodeCompletionResult::RK_Macro: { in ProcessCodeCompleteResults()
476 case CodeCompletionResult::RK_Pattern: { in ProcessCodeCompleteResults()
533 void CodeCompletionResult::computeCursorKindAndAvailability(bool Accessible) { in computeCursorKindAndAvailability()
591 static StringRef getOrderedName(const CodeCompletionResult &R, in getOrderedName()
594 case CodeCompletionResult::RK_Keyword: in getOrderedName()
597 case CodeCompletionResult::RK_Pattern: in getOrderedName()
600 case CodeCompletionResult::RK_Macro: in getOrderedName()
[all …]
DSemaCodeComplete.cpp50 typedef CodeCompletionResult Result;
1285 typedef CodeCompletionResult Result; in AddTypeSpecifierResults()
1367 typedef CodeCompletionResult Result; in AddStorageSpecifiers()
1378 typedef CodeCompletionResult Result; in AddFunctionSpecifiers()
1432 Results.AddResult(CodeCompletionResult(Builder.TakeString())); in AddTypedefResult()
1527 Results.AddResult(CodeCompletionResult(Builder.TakeString())); in addThisCompletion()
1538 typedef CodeCompletionResult Result; in AddOrdinaryNameResults()
2578 CodeCompletionString *CodeCompletionResult::CreateCodeCompletionString(Sema &S, in CreateCodeCompletionString()
2594 CodeCompletionResult::CreateCodeCompletionString(ASTContext &Ctx, in CreateCodeCompletionString()
3104 typedef CodeCompletionResult Result; in AddMacroResults()
[all …]
/external/llvm-project/clang/lib/Sema/
DCodeCompleteConsumer.cpp519 StringRef Filter, CodeCompletionResult Result) { in isResultFilteredOut()
521 case CodeCompletionResult::RK_Declaration: in isResultFilteredOut()
524 case CodeCompletionResult::RK_Keyword: in isResultFilteredOut()
526 case CodeCompletionResult::RK_Macro: in isResultFilteredOut()
528 case CodeCompletionResult::RK_Pattern: in isResultFilteredOut()
536 Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results, in ProcessCodeCompleteResults()
551 case CodeCompletionResult::RK_Declaration: in ProcessCodeCompleteResults()
574 case CodeCompletionResult::RK_Keyword: in ProcessCodeCompleteResults()
578 case CodeCompletionResult::RK_Macro: in ProcessCodeCompleteResults()
587 case CodeCompletionResult::RK_Pattern: in ProcessCodeCompleteResults()
[all …]
DSemaCodeComplete.cpp71 typedef CodeCompletionResult Result;
1067 CodeCompletionResult Result(Using->getTargetDecl(), in MaybeAddResult()
1240 CodeCompletionResult Result(Using->getTargetDecl(), in AddResult()
1659 typedef CodeCompletionResult Result; in AddTypeSpecifierResults()
1740 typedef CodeCompletionResult Result; in AddStorageSpecifiers()
1766 typedef CodeCompletionResult Result; in AddFunctionSpecifiers()
1818 Results.AddResult(CodeCompletionResult(Builder.TakeString())); in AddTypedefResult()
1830 Results.AddResult(CodeCompletionResult(Builder.TakeString())); in AddUsingAliasResult()
1928 Results.AddResult(CodeCompletionResult(Builder.TakeString())); in addThisCompletion()
1944 Results.AddResult(CodeCompletionResult(Builder.TakeString())); in AddStaticAssertResult()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DExpectedTypes.h25 class CodeCompletionResult; variable
38 fromCompletionResult(ASTContext &Ctx, const CodeCompletionResult &R);
DCodeComplete.cpp137 toCompletionItemKind(CodeCompletionResult::ResultKind ResKind, in toCompletionItemKind()
145 case CodeCompletionResult::RK_Declaration: in toCompletionItemKind()
147 case CodeCompletionResult::RK_Keyword: in toCompletionItemKind()
149 case CodeCompletionResult::RK_Macro: in toCompletionItemKind()
152 case CodeCompletionResult::RK_Pattern: in toCompletionItemKind()
169 const CodeCompletionResult *SemaResult = nullptr;
283 if ((C.SemaResult->Kind == CodeCompletionResult::RK_Declaration) || in CodeCompletionBuilder()
284 (C.SemaResult->Kind == CodeCompletionResult::RK_Pattern)) in CodeCompletionBuilder()
381 bool IsPattern = C.SemaResult->Kind == CodeCompletionResult::RK_Pattern; in add()
518 SymbolID getSymbolID(const CodeCompletionResult &R, const SourceManager &SM) { in getSymbolID()
[all …]
DQuality.h45 class CodeCompletionResult; variable
77 void merge(const CodeCompletionResult &SemaCCResult);
156 void merge(const CodeCompletionResult &SemaResult);
DExpectedTypes.cpp45 typeOfCompletion(const CodeCompletionResult &R) { in typeOfCompletion()
88 const CodeCompletionResult &R) { in fromCompletionResult()
DQuality.cpp53 static bool hasUsingDeclInMainFile(const CodeCompletionResult &R) { in hasUsingDeclInMainFile()
93 categorize(const CodeCompletionResult &R) { in categorize()
96 if (R.Kind == CodeCompletionResult::RK_Macro) in categorize()
184 void SymbolQualitySignals::merge(const CodeCompletionResult &SemaCCResult) { in merge()
192 } else if (SemaCCResult.Kind == CodeCompletionResult::RK_Macro) in merge()
299 void SymbolRelevanceSignals::merge(const CodeCompletionResult &SemaCCResult) { in merge()
DCodeCompletionStrings.cpp63 const CodeCompletionResult &Result, in getDocComment()
68 if (Result.Kind != CodeCompletionResult::RK_Declaration) in getDocComment()
DCodeCompletionStrings.h32 const CodeCompletionResult &Result,
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangExpressionParser.cpp847 CodeCompletionResult Result) override { in isResultFilteredOut()
850 case CodeCompletionResult::RK_Declaration: in isResultFilteredOut()
854 case CodeCompletionResult::RK_Keyword: in isResultFilteredOut()
856 case CodeCompletionResult::RK_Macro: in isResultFilteredOut()
858 case CodeCompletionResult::RK_Pattern: in isResultFilteredOut()
880 getCompletionForResult(const CodeCompletionResult &R) const { in getCompletionForResult()
885 case CodeCompletionResult::RK_Declaration: { in getCompletionForResult()
911 case CodeCompletionResult::RK_Keyword: in getCompletionForResult()
914 case CodeCompletionResult::RK_Macro: in getCompletionForResult()
917 case CodeCompletionResult::RK_Pattern: in getCompletionForResult()
[all …]
/external/llvm-project/clang/unittests/Sema/
DCodeCompleteTest.cpp46 CodeCompletionResult *Results, in ProcessCodeCompleteResults()
/external/llvm-project/clang/lib/Frontend/
DASTUnit.cpp375 using Result = CodeCompletionResult; in CacheCodeCompletionResults()
1939 CodeCompletionResult *Results,
1964 CodeCompletionResult *Results, in CalculateHiddenNames()
2016 using Result = CodeCompletionResult; in CalculateHiddenNames()
2049 CodeCompletionResult *Results, in ProcessCodeCompleteResults()
2058 using Result = CodeCompletionResult; in ProcessCodeCompleteResults()
/external/clang/lib/Frontend/
DASTUnit.cpp348 typedef CodeCompletionResult Result; in CacheCodeCompletionResults()
2124 CodeCompletionResult *Results,
2146 CodeCompletionResult *Results, in CalculateHiddenNames()
2196 typedef CodeCompletionResult Result; in CalculateHiddenNames()
2229 CodeCompletionResult *Results, in ProcessCodeCompleteResults()
2238 typedef CodeCompletionResult Result; in ProcessCodeCompleteResults()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp475 CodeCompletionResult SymbolCompletion(Name); in handleMacroOccurrence()
682 CodeCompletionResult SymbolCompletion(&getTemplateOrThis(ND), 0); in addDeclaration()
/external/clang/tools/libclang/
DCXCursor.cpp1349 CodeCompletionResult Result(namedDecl, CCP_Declaration); in clang_getCursorCompletionString()
1363 CodeCompletionResult Result(MacroInfo); in clang_getCursorCompletionString()
DCIndexCodeCompletion.cpp540 CodeCompletionResult *Results, in ProcessCodeCompleteResults()
/external/llvm-project/clang/tools/libclang/
DCXCursor.cpp1505 CodeCompletionResult Result(namedDecl, CCP_Declaration); in clang_getCursorCompletionString()
1517 CodeCompletionResult Result( in clang_getCursorCompletionString()
DCIndexCodeCompletion.cpp576 CodeCompletionResult *Results, in ProcessCodeCompleteResults()
/external/clang/bindings/python/clang/
Dcindex.py2200 class CodeCompletionResult(Structure): class
2215 _fields_ = [('results', POINTER(CodeCompletionResult)),

12