clang  19.0.0git
Classes | Namespaces | Enumerations | Functions
ASTSelection.h File Reference
#include "clang/AST/ASTTypeTraits.h"
#include "clang/AST/Stmt.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
#include <vector>

Go to the source code of this file.

Classes

struct  clang::tooling::SelectedASTNode
 Represents a selected AST node. More...
 
class  clang::tooling::CodeRangeASTSelection
 An AST selection value that corresponds to a selection of a set of statements that belong to one body of code (like one function). More...
 

Namespaces

 clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
 clang::tooling
 

Enumerations

enum class  clang::tooling::SourceSelectionKind {
  clang::tooling::None , clang::tooling::ContainsSelection , clang::tooling::ContainsSelectionStart , clang::tooling::ContainsSelectionEnd ,
  clang::tooling::InsideSelection
}
 

Functions

std::optional< SelectedASTNodeclang::tooling::findSelectedASTNodes (const ASTContext &Context, SourceRange SelectionRange)
 Traverses the given ASTContext and creates a tree of selected AST nodes. More...