clang-tools 19.0.0git
Namespaces | Functions
SemanticSelection.h File Reference
#include "ParsedAST.h"
#include "Protocol.h"
#include "llvm/Support/Error.h"
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 

Functions

llvm::Expected< SelectionRange > clang::clangd::getSemanticRanges (ParsedAST &AST, Position Pos)
 Returns the list of all interesting ranges around the Position Pos.
 
llvm::Expected< std::vector< FoldingRange > > clang::clangd::getFoldingRanges (ParsedAST &AST)
 Returns a list of ranges whose contents might be collapsible in an editor.
 
llvm::Expected< std::vector< FoldingRange > > clang::clangd::getFoldingRanges (const std::string &Code, bool LineFoldingOnly)
 Returns a list of ranges whose contents might be collapsible in an editor.