clang-tools 20.0.0git
Namespaces
ExtractFunction.cpp File Reference
#include "AST.h"
#include "FindTarget.h"
#include "ParsedAST.h"
#include "Selection.h"
#include "SourceCode.h"
#include "refactor/Tweak.h"
#include "support/Logger.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/NestedNameSpecifier.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/Tooling/Core/Replacement.h"
#include "clang/Tooling/Refactoring/Extract/SourceExtraction.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Error.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Variable Documentation

◆ AlwaysReturns

bool AlwaysReturns = false

Definition at line 528 of file ExtractFunction.cpp.

◆ BodyRange

SourceRange BodyRange

Definition at line 361 of file ExtractFunction.cpp.

◆ BrokenControlFlow

bool BrokenControlFlow = false

Definition at line 531 of file ExtractFunction.cpp.

◆ CallerReturnsValue

bool CallerReturnsValue = false

Definition at line 369 of file ExtractFunction.cpp.

◆ Const

bool Const = false

Definition at line 372 of file ExtractFunction.cpp.

◆ Constexpr

ConstexprSpecKind Constexpr = ConstexprSpecKind::Unspecified

Definition at line 371 of file ExtractFunction.cpp.

◆ DeclaredIn

ZoneRelative DeclaredIn

Definition at line 513 of file ExtractFunction.cpp.

◆ DeclIndex

unsigned DeclIndex

Definition at line 515 of file ExtractFunction.cpp.

◆ DeclInfoMap

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

Definition at line 526 of file ExtractFunction.cpp.

◆ DefinitionPoint

SourceLocation DefinitionPoint

Definition at line 362 of file ExtractFunction.cpp.

◆ DefinitionQualifier

const NestedNameSpecifier* DefinitionQualifier = nullptr

Definition at line 365 of file ExtractFunction.cpp.

◆ EnclosingClass

const CXXRecordDecl* EnclosingClass = nullptr

Definition at line 364 of file ExtractFunction.cpp.

◆ EnclosingFuncRange

SourceRange EnclosingFuncRange

Definition at line 165 of file ExtractFunction.cpp.

◆ EnclosingFunction

const FunctionDecl* EnclosingFunction = nullptr

Definition at line 163 of file ExtractFunction.cpp.

◆ ForwardDeclarationPoint

std::optional<SourceLocation> ForwardDeclarationPoint

Definition at line 363 of file ExtractFunction.cpp.

◆ ForwardDeclarationSyntacticDC

const DeclContext* ForwardDeclarationSyntacticDC = nullptr

Definition at line 368 of file ExtractFunction.cpp.

◆ HasReturnStmt

bool HasReturnStmt = false

Definition at line 527 of file ExtractFunction.cpp.

◆ IsReferencedInPostZone

bool IsReferencedInPostZone = false

Definition at line 517 of file ExtractFunction.cpp.

◆ IsReferencedInZone

bool IsReferencedInZone = false

Definition at line 516 of file ExtractFunction.cpp.

◆ LangOpts

const LangOptions* LangOpts

Definition at line 377 of file ExtractFunction.cpp.

◆ Name

std::string Name = "extracted"

Definition at line 349 of file ExtractFunction.cpp.

◆ OrderPriority

unsigned OrderPriority

Definition at line 352 of file ExtractFunction.cpp.

◆ Parameters

std::vector<Parameter> Parameters

Definition at line 360 of file ExtractFunction.cpp.

◆ Parent

const Node* Parent = nullptr

◆ PassByReference

bool PassByReference

Definition at line 351 of file ExtractFunction.cpp.

◆ ReturnType

QualType ReturnType

Definition at line 359 of file ExtractFunction.cpp.

◆ RootStmts

llvm::DenseSet<const Stmt *> RootStmts

Definition at line 167 of file ExtractFunction.cpp.

◆ SemanticDC

const DeclContext* SemanticDC = nullptr

Definition at line 366 of file ExtractFunction.cpp.

◆ SemicolonPolicy

tooling::ExtractionSemicolonPolicy SemicolonPolicy

Definition at line 376 of file ExtractFunction.cpp.

◆ Static

bool Static = false

◆ SyntacticDC

const DeclContext* SyntacticDC = nullptr

Definition at line 367 of file ExtractFunction.cpp.

◆ TheDecl

const Decl* TheDecl

◆ TypeInfo

QualType TypeInfo

Definition at line 350 of file ExtractFunction.cpp.

◆ ZoneRange

SourceRange ZoneRange

Definition at line 161 of file ExtractFunction.cpp.