| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | CodeCompletionStringsTests.cpp | 95 auto *CCS = Builder.TakeString(); in TEST_F() local 96 computeSignature(*CCS); in TEST_F() 120 auto *CCS = Builder.TakeString(); in TEST_F() local 121 computeSignature(*CCS); in TEST_F() 169 auto *CCS = Builder.TakeString(); in TEST_F() local 170 computeSignature(*CCS); in TEST_F() 180 auto *CCS = Builder.TakeString(); in TEST_F() local 181 computeSignature(*CCS); in TEST_F() 194 auto *CCS = Builder.TakeString(); in TEST_F() local 195 computeSignature(*CCS); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | CodeCompletionStrings.cpp | 35 void appendOptionalChunk(const CodeCompletionString &CCS, std::string *Out) { in appendOptionalChunk() argument 36 for (const CodeCompletionString::Chunk &C : CCS) { in appendOptionalChunk() 97 void getSignature(const CodeCompletionString &CCS, std::string *Signature, in getSignature() argument 110 llvm::count_if(CCS, [](const CodeCompletionString::Chunk &C) { in getSignature() 117 for (const auto &Chunk : CCS) { in getSignature() 245 std::string formatDocumentation(const CodeCompletionString &CCS, in formatDocumentation() argument 250 const unsigned AnnotationCount = CCS.getAnnotationCount(); in formatDocumentation() 259 Result += CCS.getAnnotation(I); in formatDocumentation() 275 std::string getReturnType(const CodeCompletionString &CCS) { in getReturnType() argument 276 for (const auto &Chunk : CCS) in getReturnType()
|
| H A D | CodeCompletionStrings.h | 47 void getSignature(const CodeCompletionString &CCS, std::string *Signature, 57 std::string formatDocumentation(const CodeCompletionString &CCS, 62 std::string getReturnType(const CodeCompletionString &CCS);
|
| H A D | CodeComplete.cpp | 867 auto *CCS = codeCompletionString(Result); in getName() local 869 for (auto &C : *CCS) { in getName() 873 return CCAllocator->CopyString(CCS->getAllTypedText()); in getName() 974 const auto *CCS = Candidate.CreateSignatureString( in ProcessOverloadCandidates() local 977 assert(CCS && "Expected the CodeCompletionString to be non-null"); in ProcessOverloadCandidates() 979 Candidate, *CCS, in ProcessOverloadCandidates() 1080 void processOptionalChunk(const CodeCompletionString &CCS, in processOptionalChunk() argument 1083 for (const auto &Chunk : CCS) { in processOptionalChunk() 1107 const CodeCompletionString &CCS, in processOverloadCandidate() argument 1114 parseDocumentation(formatDocumentation(CCS, DocComment), OverloadComment); in processOverloadCandidate() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | CodeCompleteConsumer.cpp | 669 if (CodeCompletionString *CCS = Results[I].CreateCodeCompletionString( in ProcessCodeCompleteResults() local 672 OS << " : " << CCS->getAsString(); in ProcessCodeCompleteResults() 673 if (const char *BriefComment = CCS->getBriefComment()) in ProcessCodeCompleteResults() 684 if (CodeCompletionString *CCS = Results[I].CreateCodeCompletionString( in ProcessCodeCompleteResults() local 687 OS << " : " << CCS->getAsString(); in ProcessCodeCompleteResults() 721 static std::string getOverloadAsString(const CodeCompletionString &CCS) { in getOverloadAsString() argument 725 for (auto &C : CCS) { in getOverloadAsString() 756 if (CodeCompletionString *CCS = Candidates[I].CreateSignatureString( in ProcessOverloadCandidates() local 759 OS << "OVERLOAD: " << getOverloadAsString(*CCS) << "\n"; in ProcessOverloadCandidates()
|
| H A D | SemaCodeComplete.cpp | 2027 auto *CCS = CCR.createCodeCompletionStringForOverride( in AddOverrideResults() local 2030 Results.AddResult(CodeCompletionResult(CCS, Method, CCP_CodePattern)); in AddOverrideResults() 3382 static void printOverrideString(const CodeCompletionString &CCS, in printOverrideString() argument 3386 for (auto &Chunk : CCS) { in printOverrideString() 3406 auto *CCS = createCodeCompletionStringForDecl(PP, Ctx, Result, in createCodeCompletionStringForOverride() local 3412 printOverrideString(*CCS, BeforeName, NameAndSignature); in createCodeCompletionStringForOverride()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 763 const auto *CCS = SymbolCompletion.CreateCodeCompletionStringForMacro( in handleMacroOccurrence() local 767 getSignature(*CCS, &Signature, &SnippetSuffix); in handleMacroOccurrence() 911 const auto *CCS = SymbolCompletion.CreateCodeCompletionString( in addDeclaration() local 916 formatDocumentation(*CCS, getDocComment(Ctx, SymbolCompletion, in addDeclaration() 927 getSignature(*CCS, &Signature, &SnippetSuffix); in addDeclaration() 930 std::string ReturnType = getReturnType(*CCS); in addDeclaration()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 1807 CachedShadow &CCS = CachedShadows[Key]; in combineShadows() local 1808 if (CCS.Block && DT.dominates(CCS.Block, Pos->getParent())) in combineShadows() 1809 return CCS.Shadow; in combineShadows() 1816 CCS.Block = Pos->getParent(); in combineShadows() 1817 CCS.Shadow = IRB.CreateOr(PV1, PV2); in combineShadows() 1830 ShadowElements[CCS.Shadow] = std::move(UnionElems); in combineShadows() 1832 return CCS.Shadow; in combineShadows()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | WholeProgramDevirt.cpp | 2270 for (auto &CCS : S.second.ConstCSInfo) in run() local 2271 for (auto FS : CCS.second.SummaryTypeCheckedLoadUsers) in run()
|