clang-tools 20.0.0git
|
#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/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 "llvm/Support/raw_os_ostream.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. | |
bool AlwaysReturns = false |
Definition at line 525 of file ExtractFunction.cpp.
SourceRange BodyRange |
Definition at line 358 of file ExtractFunction.cpp.
bool BrokenControlFlow = false |
Definition at line 528 of file ExtractFunction.cpp.
bool CallerReturnsValue = false |
Definition at line 366 of file ExtractFunction.cpp.
bool Const = false |
Definition at line 369 of file ExtractFunction.cpp.
ConstexprSpecKind Constexpr = ConstexprSpecKind::Unspecified |
Definition at line 368 of file ExtractFunction.cpp.
ZoneRelative DeclaredIn |
Definition at line 510 of file ExtractFunction.cpp.
unsigned DeclIndex |
Definition at line 512 of file ExtractFunction.cpp.
llvm::DenseMap<const Decl *, DeclInformation> DeclInfoMap |
Definition at line 523 of file ExtractFunction.cpp.
SourceLocation DefinitionPoint |
Definition at line 359 of file ExtractFunction.cpp.
const NestedNameSpecifier* DefinitionQualifier = nullptr |
Definition at line 362 of file ExtractFunction.cpp.
const CXXRecordDecl* EnclosingClass = nullptr |
Definition at line 361 of file ExtractFunction.cpp.
SourceRange EnclosingFuncRange |
Definition at line 162 of file ExtractFunction.cpp.
const FunctionDecl* EnclosingFunction = nullptr |
Definition at line 160 of file ExtractFunction.cpp.
std::optional<SourceLocation> ForwardDeclarationPoint |
Definition at line 360 of file ExtractFunction.cpp.
const DeclContext* ForwardDeclarationSyntacticDC = nullptr |
Definition at line 365 of file ExtractFunction.cpp.
bool HasReturnStmt = false |
Definition at line 524 of file ExtractFunction.cpp.
bool IsReferencedInPostZone = false |
Definition at line 514 of file ExtractFunction.cpp.
bool IsReferencedInZone = false |
Definition at line 513 of file ExtractFunction.cpp.
const LangOptions* LangOpts |
Definition at line 374 of file ExtractFunction.cpp.
std::string Name = "extracted" |
Definition at line 346 of file ExtractFunction.cpp.
unsigned OrderPriority |
Definition at line 349 of file ExtractFunction.cpp.
std::vector<Parameter> Parameters |
Definition at line 357 of file ExtractFunction.cpp.
const Node* Parent = nullptr |
Definition at line 156 of file ExtractFunction.cpp.
Referenced by clang::clangd::DirectoryBasedGlobalCompilationDatabase::BroadcastThread::BroadcastThread(), clang::tidy::bugprone::ParentVirtualCallCheck::check(), clang::tidy::readability::ImplicitBoolConversionCheck::check(), clang::tidy::readability::RedundantDeclarationCheck::check(), clang::doc::serialize::emitInfo(), clang::clangd::FileDistance::FileDistance(), clang::clangd::DirectoryBasedGlobalCompilationDatabase::BroadcastThread::Filter::Filter(), clang::clangd::DirectoryBasedGlobalCompilationDatabase::BroadcastThread::Filter::filter(), clang::tidy::findDeclInBases(), clang::tidy::llvm_libc::getOutermostNamespace(), clang::tidy::readability::FindUsageOfThis::getParentExprIgnoreParens(), clang::clangd::IncludeStructure::includeDepth(), clang::tidy::utils::ExprSequence::inSequence(), clang::tidy::bugprone::isParentOf(), clang::isUsedToDefineABitField(), clang::isUsedToDefineATypeAlias(), clang::isUsedToInitializeAConstant(), clang::clangd::Event< T >::Subscription::operator=(), clang::clangd::SelectionTree::Node::outerImplicit(), clang::clangd::serializeTHIForExtension(), clang::tidy::readability::shouldRemoveParens(), clang::clangd::superTypes(), clang::tidy::readability::FindUsageOfThis::VisitCXXThisExpr(), clang::tidy::readability::FindUsageOfThis::visitUser(), and clang::clangd::Event< T >::Subscription::~Subscription().
bool PassByReference |
Definition at line 348 of file ExtractFunction.cpp.
QualType ReturnType |
Definition at line 356 of file ExtractFunction.cpp.
llvm::DenseSet<const Stmt *> RootStmts |
Definition at line 164 of file ExtractFunction.cpp.
const DeclContext* SemanticDC = nullptr |
Definition at line 363 of file ExtractFunction.cpp.
tooling::ExtractionSemicolonPolicy SemicolonPolicy |
Definition at line 373 of file ExtractFunction.cpp.
bool Static = false |
Definition at line 367 of file ExtractFunction.cpp.
Referenced by clang::clangd::MergedIndex::estimateMemoryUsage(), and clang::clangd::MergedIndex::MergedIndex().
const DeclContext* SyntacticDC = nullptr |
Definition at line 364 of file ExtractFunction.cpp.
const Decl* TheDecl |
Definition at line 509 of file ExtractFunction.cpp.
Referenced by clang::tidy::readability::FunctionCognitiveComplexityCheck::check(), and clang::tidy::modernize::isAliasDecl().
QualType TypeInfo |
Definition at line 347 of file ExtractFunction.cpp.
SourceRange ZoneRange |
Definition at line 158 of file ExtractFunction.cpp.