Home
last modified time | relevance | path

Searched refs:ParsedAST (Results 1 – 25 of 43) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/
DXRefs.h35 class ParsedAST; variable
54 std::vector<LocatedSymbol> locateSymbolAt(ParsedAST &AST, Position Pos,
64 locateSymbolTextually(const SpelledWord &Word, ParsedAST &AST,
75 std::vector<DocumentLink> getDocumentLinks(ParsedAST &AST);
78 std::vector<DocumentHighlight> findDocumentHighlights(ParsedAST &AST,
87 std::vector<LocatedSymbol> findImplementations(ParsedAST &AST, Position Pos,
92 ReferencesResult findReferences(ParsedAST &AST, Position Pos, uint32_t Limit,
96 std::vector<SymbolDetails> getSymbolInfo(ParsedAST &AST, Position Pos);
99 const CXXRecordDecl *findRecordTypeAt(ParsedAST &AST, Position Pos);
106 ParsedAST &AST, Position Pos, int Resolve, TypeHierarchyDirection Direction,
[all …]
DParsedAST.h48 class ParsedAST {
53 static llvm::Optional<ParsedAST>
59 ParsedAST(ParsedAST &&Other);
60 ParsedAST &operator=(ParsedAST &&Other);
62 ~ParsedAST();
113 ParsedAST(llvm::StringRef Version,
DParsedAST.cpp240 llvm::Optional<ParsedAST>
241 ParsedAST::build(llvm::StringRef Filename, const ParseInputs &Inputs, in build()
447 return ParsedAST(Inputs.Version, std::move(Preamble), std::move(Clang), in build()
453 ParsedAST::ParsedAST(ParsedAST &&Other) = default;
455 ParsedAST &ParsedAST::operator=(ParsedAST &&Other) = default;
457 ParsedAST::~ParsedAST() { in ~ParsedAST()
468 ASTContext &ParsedAST::getASTContext() { return Clang->getASTContext(); } in getASTContext()
470 const ASTContext &ParsedAST::getASTContext() const { in getASTContext()
474 Preprocessor &ParsedAST::getPreprocessor() { return Clang->getPreprocessor(); } in getPreprocessor()
476 std::shared_ptr<Preprocessor> ParsedAST::getPreprocessorPtr() { in getPreprocessorPtr()
[all …]
DSemanticSelection.h26 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos);
30 llvm::Expected<std::vector<FoldingRange>> getFoldingRanges(ParsedAST &AST);
DHeaderSourceSwitch.h27 ParsedAST &AST,
32 std::vector<const Decl *> getIndexableLocalDecls(ParsedAST &AST);
DFindSymbols.h21 class ParsedAST; variable
48 llvm::Expected<std::vector<DocumentSymbol>> getDocumentSymbols(ParsedAST &AST);
DTUScheduler.h28 class ParsedAST; variable
38 ParsedAST &AST;
160 virtual void onMainAST(PathRef Path, ParsedAST &AST, PublishFn Publish) {} in onMainAST()
DSemanticHighlighting.h38 class ParsedAST; variable
89 std::vector<HighlightingToken> getSemanticHighlightings(ParsedAST &AST);
DXRefs.cpp176 getDeclAtPositionWithRelations(ParsedAST &AST, SourceLocation Pos, in getDeclAtPositionWithRelations()
196 getDeclAtPosition(ParsedAST &AST, SourceLocation Pos, DeclRelationSet Relations, in getDeclAtPosition()
230 ParsedAST &AST, in locateFileReferent()
249 locateMacroReferent(const syntax::Token &TouchedIdentifier, ParsedAST &AST, in locateMacroReferent()
301 ParsedAST &AST, llvm::StringRef MainFilePath, in locateASTReferent()
452 locateSymbolTextually(const SpelledWord &Word, ParsedAST &AST, in locateSymbolTextually()
650 std::vector<LocatedSymbol> locateSymbolAt(ParsedAST &AST, Position Pos, in locateSymbolAt()
720 std::vector<DocumentLink> getDocumentLinks(ParsedAST &AST) { in getDocumentLinks()
767 ReferenceFinder(const ParsedAST &AST, in ReferenceFinder()
811 const ParsedAST &AST;
[all …]
DTUScheduler.cpp129 void put(Key K, std::unique_ptr<ParsedAST> V) { in put()
137 std::unique_ptr<ParsedAST> ForCleanup = std::move(LRU.back().second); in put()
148 llvm::Optional<std::unique_ptr<ParsedAST>>
160 std::unique_ptr<ParsedAST> V = std::move(Existing->second); in take()
165 return llvm::Optional<std::unique_ptr<ParsedAST>>(std::move(V)); in take()
169 using KVPair = std::pair<Key, std::unique_ptr<ParsedAST>>;
695 llvm::Optional<std::unique_ptr<ParsedAST>> AST = in runWithAST()
707 llvm::Optional<ParsedAST> NewAST; in runWithAST()
709 NewAST = ParsedAST::build(FileName, FileInputs, std::move(Invocation), in runWithAST()
714 AST = NewAST ? std::make_unique<ParsedAST>(std::move(*NewAST)) : nullptr; in runWithAST()
[all …]
DFindSymbols.cpp236 DocumentOutline(ParsedAST &AST) : AST(AST) {} in DocumentOutline()
331 ParsedAST &AST;
334 std::vector<DocumentSymbol> collectDocSymbols(ParsedAST &AST) { in collectDocSymbols()
339 llvm::Expected<std::vector<DocumentSymbol>> getDocumentSymbols(ParsedAST &AST) { in getDocumentSymbols()
DHeaderSourceSwitch.cpp73 ParsedAST &AST, in getCorrespondingHeaderOrSource()
127 std::vector<const Decl *> getIndexableLocalDecls(ParsedAST &AST) { in getIndexableLocalDecls()
DSemanticSelection.cpp103 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos) { in getSemanticRanges()
161 llvm::Expected<std::vector<FoldingRange>> getFoldingRanges(ParsedAST &AST) { in getFoldingRanges()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTestTU.h81 ParsedAST build() const;
93 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName);
95 const NamedDecl &findDecl(ParsedAST &AST,
98 const NamedDecl &findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name);
DDumpASTTests.cpp142 ParsedAST AST = TestTU::withCode(Case.first).build(); in TEST()
152 ParsedAST AST = TestTU::withCode(Case.code()).build(); in TEST()
161 ParsedAST AST = TestTU::withCode("int x;").build(); in TEST()
DTestTU.cpp98 ParsedAST TestTU::build() const { in build()
112 auto AST = ParsedAST::build(testPath(Filename), Inputs, std::move(CI), in build()
189 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName) { in findDecl()
210 const NamedDecl &findDecl(ParsedAST &AST, in findDecl()
230 const NamedDecl &findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name) { in findUnqualifiedDecl()
DTestWorkspace.cpp26 ParsedAST MainAST = TU.build(); in index()
32 Optional<ParsedAST> TestWorkspace::openFile(llvm::StringRef Filename) { in openFile()
DASTTests.cpp121 ParsedAST AST = TU.build(); in TEST()
187 ParsedAST AST = TU.build(); in TEST()
DParsedASTTests.cpp340 ParsedAST AST = TU.build(); in TEST()
514 auto PatchedAST = ParsedAST::build(testPath(TU.Filename), TU.inputs(FS), in TEST()
529 auto PatchedAST = ParsedAST::build(testPath(TU.Filename), TU.inputs(FS), in TEST()
572 auto PatchedAST = ParsedAST::build(testPath("foo.cpp"), Inputs, std::move(CI), in TEST()
617 auto PatchedAST = ParsedAST::build(testPath("foo.cpp"), Inputs, std::move(CI), in TEST()
DTestWorkspace.h43 Optional<ParsedAST> openFile(llvm::StringRef Filename);
/external/llvm-project/clang-tools-extra/clangd/index/
DFileIndex.h41 class ParsedAST; variable
120 void updateMain(PathRef Path, ParsedAST &AST);
161 SlabTuple indexMainDecls(ParsedAST &AST, bool CollectMainFileRefs = false);
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.h21 class ParsedAST; variable
45 ParsedAST &AST;
DTweak.h50 Selection(const SymbolIndex *Index, ParsedAST &AST, unsigned RangeBegin,
57 ParsedAST *AST;
/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
DTweakTesting.cpp70 applyTweak(ParsedAST &AST, const Annotations &Input, StringRef TweakID, in applyTweak()
100 ParsedAST AST = TU.build();
120 ParsedAST AST = TU.build(); in apply()
/external/llvm-project/clang-tools-extra/clangd/tool/
DCheck.cpp82 llvm::Optional<ParsedAST> AST;
174 AST = ParsedAST::build(File, Inputs, std::move(Invocation), in buildAST()

12