clang-tools 10.0.0

Namespaces | Enumerations
ExtractFunction.cpp File Reference
`#include "AST.h"`
`#include "Logger.h"`
`#include "ParsedAST.h"`
`#include "Selection.h"`
`#include "SourceCode.h"`
`#include "refactor/Tweak.h"`
`#include "clang/AST/ASTContext.h"`
`#include "clang/AST/Decl.h"`
`#include "clang/AST/DeclTemplate.h"`
`#include "clang/AST/RecursiveASTVisitor.h"`
`#include "clang/AST/Stmt.h"`
`#include "clang/Basic/LangOptions.h"`
`#include "clang/Basic/SourceLocation.h"`
`#include "clang/Basic/SourceManager.h"`
`#include "clang/Lex/Lexer.h"`
`#include "clang/Tooling/Core/Replacement.h"`
`#include "clang/Tooling/Refactoring/Extract/SourceExtraction.h"`
`#include "llvm/ADT/None.h"`
`#include "llvm/ADT/Optional.h"`
`#include "llvm/ADT/SmallVector.h"`
`#include "llvm/ADT/StringRef.h"`
`#include "llvm/ADT/iterator_range.h"`
`#include "llvm/Support/Casting.h"`
`#include "llvm/Support/Error.h"`
Include dependency graph for ExtractFunction.cpp:

Go to the source code of this file.

## Namespaces
| clang
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
| clang::clangd

## Enumerations
enum | clang::clangd::@755::ZoneRelative { clang::clangd::@755::ZoneRelative::Before, clang::clangd::@755::ZoneRelative::Inside, clang::clangd::@755::ZoneRelative::After, clang::clangd::@755::ZoneRelative::OutsideFunc }

## Enumeration Type Documentation

## ◆ ZoneRelative

enum clang::clangd::@755::ZoneRelative
| strong

Definition at line 83 of file ExtractFunction.cpp.

## Variable Documentation

## ◆ AlwaysReturns

bool AlwaysReturns = false

Definition at line 394 of file ExtractFunction.cpp.

## ◆ BodyRange

SourceRange BodyRange

Definition at line 304 of file ExtractFunction.cpp.

## ◆ BrokenControlFlow

bool BrokenControlFlow = false

Definition at line 397 of file ExtractFunction.cpp.

## ◆ CallerReturnsValue

bool CallerReturnsValue = false

Definition at line 307 of file ExtractFunction.cpp.

## ◆ DeclaredIn

ZoneRelative DeclaredIn

Definition at line 379 of file ExtractFunction.cpp.

## ◆ DeclIndex

unsigned DeclIndex

Definition at line 381 of file ExtractFunction.cpp.

## ◆ DeclInfoMap

llvm::DenseMap<const Decl *, DeclInformation> DeclInfoMap

Definition at line 392 of file ExtractFunction.cpp.

## ◆ EnclosingFuncContext

const DeclContext* EnclosingFuncContext

Definition at line 306 of file ExtractFunction.cpp.

## ◆ EnclosingFuncRange

SourceRange EnclosingFuncRange

Definition at line 154 of file ExtractFunction.cpp.

## ◆ EnclosingFunction

const FunctionDecl* EnclosingFunction = nullptr

Definition at line 152 of file ExtractFunction.cpp.

## ◆ HasReturnStmt

bool HasReturnStmt = false

Definition at line 393 of file ExtractFunction.cpp.

## ◆ InsertionPoint

SourceLocation InsertionPoint

Definition at line 305 of file ExtractFunction.cpp.

## ◆ IsReferencedInPostZone

bool IsReferencedInPostZone = false

Definition at line 383 of file ExtractFunction.cpp.

## ◆ IsReferencedInZone

bool IsReferencedInZone = false

Definition at line 382 of file ExtractFunction.cpp.

## ◆ Name

std::string Name = "extracted"

Definition at line 292 of file ExtractFunction.cpp.

## ◆ OrderPriority

unsigned OrderPriority

Definition at line 295 of file ExtractFunction.cpp.

## ◆ Parameters

std::vector<Parameter> Parameters

Definition at line 303 of file ExtractFunction.cpp.

Referenced by clang::tidy::readability::NonConstParameterCheck::onEndOfTranslationUnit().

## ◆ Parent

const Node* Parent = nullptr

Definition at line 148 of file ExtractFunction.cpp.

Referenced by clang::clangd::Context::derive(), clang::doc::serialize::emitInfo(), clang::tidy::utils::ExprSequence::inSequence(), clang::doc::FunctionInfo::merge(), clang::clangd::SelectionTree::Node::outerImplicit(), clang::tidy::utils::ExprSequence::potentiallyAfter(), clang::tidy::readability::FindUsageOfThis::VisitCXXThisExpr(), and clang::tidy::readability::FindUsageOfThis::VisitUser().

## ◆ PassByReference

bool PassByReference

Definition at line 294 of file ExtractFunction.cpp.

## ◆ ReturnType

QualType ReturnType

Definition at line 302 of file ExtractFunction.cpp.

## ◆ SemicolonPolicy

tooling::ExtractionSemicolonPolicy SemicolonPolicy

Definition at line 310 of file ExtractFunction.cpp.

## ◆ TheDecl

const Decl* TheDecl

Definition at line 378 of file ExtractFunction.cpp.

## ◆ TypeInfo

QualType TypeInfo

Definition at line 293 of file ExtractFunction.cpp.

Referenced by clang::doc::serialize::populateFunctionInfo().

## ◆ ZoneRange

SourceRange ZoneRange

Definition at line 150 of file ExtractFunction.cpp.