clang
7.0.0
|
#include "clang/Tooling/ASTDiff/ASTDiff.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/PriorityQueue.h"
#include <limits>
#include <memory>
#include <unordered_set>
Go to the source code of this file.
Classes | |
class | clang::diff::ASTDiff::Impl |
class | clang::diff::SyntaxTree::Impl |
Represents the AST of a TranslationUnit. More... | |
struct | clang::diff::SNodeId |
Identifies a node in a subtree by its postorder offset, starting at 1. More... | |
class | clang::diff::Subtree |
class | clang::diff::ZhangShashaMatcher |
Implementation of Zhang and Shasha's Algorithm for tree edit distance. More... | |
Namespaces | |
clang | |
Dataflow Directional Tag Classes. | |
clang::diff | |
Functions | |
static bool | clang::diff::isSpecializedNodeExcluded (const Decl *D) |
static bool | clang::diff::isSpecializedNodeExcluded (const Stmt *S) |
static bool | clang::diff::isSpecializedNodeExcluded (CXXCtorInitializer *I) |
template<class T > | |
static bool | clang::diff::isNodeExcluded (const SourceManager &SrcMgr, T *N) |
static std::vector< NodeId > | clang::diff::getSubtreePostorder (const SyntaxTree::Impl &Tree, NodeId Root) |
static std::vector< NodeId > | clang::diff::getSubtreeBfs (const SyntaxTree::Impl &Tree, NodeId Root) |
static const DeclContext * | clang::diff::getEnclosingDeclContext (ASTContext &AST, const Stmt *S) |
static std::string | clang::diff::getInitializerValue (const CXXCtorInitializer *Init, const PrintingPolicy &TypePP) |
int Depth = 0 |
Definition at line 191 of file ASTDiff.cpp.
Referenced by clang::InitializedEntity::allowsNRVO(), clang::Sema::CheckParameterPacksForExpansion(), clang::Sema::CheckTemplateArgument(), clang::Sema::DeduceAutoType(), clang::Sema::Diag(), clang::Scope::getDepth(), clang::TemplateParmPosition::getDepth(), clang::comments::TParamCommandComment::getIndex(), clang::ASTContext::getTypeDeclType(), isSameAsPrimaryTemplate(), clang::Sema::isSFINAEContext(), isTargetEnvironment(), MarkUsedTemplateParameters(), and clang::Sema::RecordParsingTemplateParameterDepth().
int Id = 0 |
Definition at line 191 of file ASTDiff.cpp.
Referenced by clang::diff::SyntaxTree::Impl::addNode(), checkConfigMacro(), clang::Sema::CorrectDelayedTyposInExpr(), clang::ObjCInterfaceDecl::CreateDeserialized(), clang::HeaderMapImpl::dump(), clang::PreprocessingRecord::findMacroDefinition(), clang::ObjCImplDecl::FindPropertyImplDecl(), clang::ast_type_traits::ASTNodeKind::getFromNodeKind(), getIDNS(), clang::getLastArgIntValue(), clang::getLastArgUInt64Value(), clang::ModuleMapParser::getLocation(), clang::diff::SyntaxTree::Impl::getMutableNode(), clang::diff::SyntaxTree::Impl::getNode(), clang::UsingDirectiveDecl::getNominatedNamespace(), clang::getParameterABISpelling(), clang::diff::getSubtreeBfs(), clang::diff::getSubtreePostorder(), clang::CodeGen::CodeGenTBAA::getTBAAStructInfo(), HandleVectorSizeAttr(), clang::CXXRecordDecl::hasDefinition(), clang::ModuleDependencyCollector::hasErrors(), clang::ast_type_traits::ASTNodeKind::hasPointerIdentity(), clang::Sema::Initialize(), clang::NSAPI::isNSNumberLiteralSelector(), clang::TemplateTypeParmDecl::isParameterPack(), clang::driver::types::lookupCXXTypeForCType(), clang::driver::types::lookupHeaderTypeForSourceType(), clang::MacroPPCallbacks::MacroDefined(), clang::MacroPPCallbacks::MacroUndefined(), clang::diff::SNodeId::operator int(), clang::diff::SNodeId::operator++(), clang::diff::SNodeId::operator--(), clang::Parser::ParseMSAsmIdentifier(), clang::Parser::ParseTopLevelDecl(), clang::Parser::ParseUnqualifiedId(), PrintFloatingLiteral(), clang::TreeTransform< Derived >::RebuildDependentNameType(), clang::UnqualifiedId::setIdentifier(), clang::UnqualifiedId::setLiteralOperatorId(), clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributesForDefinition(), shouldIgnoreDueToReservedName(), and shouldIgnoreMacro().
NodeId Parent |
Definition at line 192 of file ASTDiff.cpp.
Referenced by clang::Sema::ActOnStartNamespaceDef(), clang::vfs::YAMLVFSWriter::addFileMapping(), adjustParent(), clang::DependencyCollector::attachToASTReader(), DiagnoseBaseOrMemInitializerOrder(), clang::Scope::dumpImpl(), clang::CodeGen::ConstantAggregateBuilderTemplateBase< ConstantInitBuilderTraits ::ArrayBuilder, ConstantInitBuilderTraits >::finishAndAddTo(), clang::CodeGen::ConstantAggregateBuilderTemplateBase< ConstantInitBuilderTraits ::ArrayBuilder, ConstantInitBuilderTraits >::finishAndCreateFuture(), clang::CodeGen::ConstantAggregateBuilderTemplateBase< ConstantInitBuilderTraits ::ArrayBuilder, ConstantInitBuilderTraits >::finishAndCreateGlobal(), clang::CodeGen::ConstantAggregateBuilderTemplateBase< ConstantInitBuilderTraits ::ArrayBuilder, ConstantInitBuilderTraits >::finishAndSetAsInitializer(), clang::HeaderSearch::getCachedModuleFileName(), clang::ASTContext::getDeclAlign(), clang::tooling::CodeRangeASTSelection::getFunctionLikeNearestParent(), clang::ast_type_traits::ASTNodeKind::getMostDerivedCommonAncestor(), clang::ConstructionContextLayer::getParent(), clang::LocationContext::getParent(), clang::sema::DelayedDiagnosticPool::getParent(), clang::InitializedEntity::getParent(), clang::CFGBlock::getParent(), clang::CodeGen::CodeGenTBAA::getTBAAStructInfo(), getTypeInfoVTable(), clang::index::IndexingContext::indexNestedNameSpecifierLoc(), clang::index::IndexingContext::indexTypeSourceInfo(), clang::ModuleMap::inferFrameworkModule(), clang::InitializedEntity::InitializeBase(), clang::InitializedEntity::InitializeMember(), isDesignatorAtObjectEnd(), clang::tooling::CodeRangeASTSelection::isInFunctionLikeBodyOfCode(), clang::AnalysisDeclContext::isInStdNamespace(), clang::ConstructionContextLayer::isLast(), clang::LocationContext::isParentOf(), clang::CFGBlock::AdjacentBlock::isReachable(), clang::index::IndexingContext::isTemplateImplicitInstantiation(), clang::ODRHash::isWhitelistedDecl(), clang::Decl::operator new(), seenBeforeRec(), clang::FunctionDecl::setPure(), shouldReportOccurrenceForSystemDeclOnlyMode(), clang::index::IndexingContext::shouldSuppressRefs(), clang::CoverageSourceInfo::SourceRangeSkipped(), clang::ASTDeclWriter::VisitNamespaceDecl(), and clang::TemplateDeclInstantiator::VisitVarDecl().
const SyntaxTree::Impl& Tree |
Definition at line 193 of file ASTDiff.cpp.
Referenced by clang::diff::Node::getIdentifier().