Home
last modified time | relevance | path

Searched refs:SnippetSuffix (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp766 std::string SnippetSuffix; in handleMacroOccurrence() local
767 getSignature(*CCS, &Signature, &SnippetSuffix); in handleMacroOccurrence()
769 S.CompletionSnippetSuffix = SnippetSuffix; in handleMacroOccurrence()
926 std::string SnippetSuffix; in addDeclaration() local
927 getSignature(*CCS, &Signature, &SnippetSuffix); in addDeclaration()
929 S.CompletionSnippetSuffix = SnippetSuffix; in addDeclaration()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DCodeComplete.h170 std::string SnippetSuffix; member
H A DCodeComplete.cpp407 getSignature(*SemaCCS, &S.Signature, &S.SnippetSuffix, in add()
412 S.SnippetSuffix = std::string(C.IndexResult->CompletionSnippetSuffix); in add()
443 Completion.SnippetSuffix = summarizeSnippet(); in build()
450 std::string SnippetSuffix; member
482 auto *Snippet = onlyValue<&BundledEntry::SnippetSuffix>(); in summarizeSnippet()
2166 LSP.textEdit->newText += SnippetSuffix; in render()
2174 LSP.insertTextFormat = (Opts.EnableSnippets && !SnippetSuffix.empty()) in render()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DCodeCompleteTests.cpp83 MATCHER_P(snippetSuffix, Text, "") { return arg.SnippetSuffix == Text; }
1823 EXPECT_EQ(A.SnippetSuffix, "($0)"); in TEST()
1975 C.SnippetSuffix = "(${0:bool})"; in TEST()
2016 C.SnippetSuffix = ""; in TEST()
3013 EXPECT_EQ(A.SnippetSuffix, "(${1:int a}, ${2:const double &b})"); in TEST()