comparison clang-tools-extra/clangd/SemanticSelection.h @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 0572611fdcc8
children c4bab56944e8
comparison
equal deleted inserted replaced
220:42394fc6a535 221:79ff65ed7e25
23 /// The interesting ranges corresponds to the AST nodes in the SelectionTree 23 /// The interesting ranges corresponds to the AST nodes in the SelectionTree
24 /// containing \p Pos. 24 /// containing \p Pos.
25 /// If pos is not in any interesting range, return [Pos, Pos). 25 /// If pos is not in any interesting range, return [Pos, Pos).
26 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos); 26 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos);
27 27
28 /// Returns a list of ranges whose contents might be collapsible in an editor.
29 /// This should include large scopes, preprocessor blocks etc.
30 llvm::Expected<std::vector<FoldingRange>> getFoldingRanges(ParsedAST &AST);
31
28 } // namespace clangd 32 } // namespace clangd
29 } // namespace clang 33 } // namespace clang
30 34
31 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICSELECTION_H 35 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICSELECTION_H