diff options
| author | 2020-08-03 15:06:44 +0000 | |
|---|---|---|
| committer | 2020-08-03 15:06:44 +0000 | |
| commit | b64793999546ed8adebaeebd9d8345d18db8927d (patch) | |
| tree | 4357c27b561d73b0e089727c6ed659f2ceff5f47 /gnu/llvm/tools/clang/lib/AST/ExternalASTSource.cpp | |
| parent | Add support for UTF-8 DISPLAY-HINTs with octet length. For now only (diff) | |
| download | wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.tar.xz wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.zip | |
Remove LLVM 8.0.1 files.
Diffstat (limited to 'gnu/llvm/tools/clang/lib/AST/ExternalASTSource.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/AST/ExternalASTSource.cpp | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/gnu/llvm/tools/clang/lib/AST/ExternalASTSource.cpp b/gnu/llvm/tools/clang/lib/AST/ExternalASTSource.cpp deleted file mode 100644 index 40829c2e249..00000000000 --- a/gnu/llvm/tools/clang/lib/AST/ExternalASTSource.cpp +++ /dev/null @@ -1,139 +0,0 @@ -//===- ExternalASTSource.cpp - Abstract External AST Interface ------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file provides the default implementation of the ExternalASTSource -// interface, which enables construction of AST nodes from some external -// source. -// -//===----------------------------------------------------------------------===// - -#include "clang/AST/ExternalASTSource.h" -#include "clang/AST/ASTContext.h" -#include "clang/AST/DeclarationName.h" -#include "clang/Basic/IdentifierTable.h" -#include "clang/Basic/LLVM.h" -#include "clang/Basic/Module.h" -#include "llvm/ADT/None.h" -#include "llvm/Support/ErrorHandling.h" -#include <cstdint> - -using namespace clang; - -ExternalASTSource::~ExternalASTSource() = default; - -llvm::Optional<ExternalASTSource::ASTSourceDescriptor> -ExternalASTSource::getSourceDescriptor(unsigned ID) { - return None; -} - -ExternalASTSource::ExtKind -ExternalASTSource::hasExternalDefinitions(const Decl *D) { - return EK_ReplyHazy; -} - -ExternalASTSource::ASTSourceDescriptor::ASTSourceDescriptor(const Module &M) - : Signature(M.Signature), ClangModule(&M) { - if (M.Directory) - Path = M.Directory->getName(); - if (auto *File = M.getASTFile()) - ASTFile = File->getName(); -} - -std::string ExternalASTSource::ASTSourceDescriptor::getModuleName() const { - if (ClangModule) - return ClangModule->Name; - else - return PCHModuleName; -} - -void ExternalASTSource::FindFileRegionDecls(FileID File, unsigned Offset, - unsigned Length, - SmallVectorImpl<Decl *> &Decls) {} - -void ExternalASTSource::CompleteRedeclChain(const Decl *D) {} - -void ExternalASTSource::CompleteType(TagDecl *Tag) {} - -void ExternalASTSource::CompleteType(ObjCInterfaceDecl *Class) {} - -void ExternalASTSource::ReadComments() {} - -void ExternalASTSource::StartedDeserializing() {} - -void ExternalASTSource::FinishedDeserializing() {} - -void ExternalASTSource::StartTranslationUnit(ASTConsumer *Consumer) {} - -void ExternalASTSource::PrintStats() {} - -bool ExternalASTSource::layoutRecordType( - const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, - llvm::DenseMap<const FieldDecl *, uint64_t> &FieldOffsets, - llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets, - llvm::DenseMap<const CXXRecordDecl *, CharUnits> &VirtualBaseOffsets) { - return false; -} - -Decl *ExternalASTSource::GetExternalDecl(uint32_t ID) { - return nullptr; -} - -Selector ExternalASTSource::GetExternalSelector(uint32_t ID) { - return Selector(); -} - -uint32_t ExternalASTSource::GetNumExternalSelectors() { - return 0; -} - -Stmt *ExternalASTSource::GetExternalDeclStmt(uint64_t Offset) { - return nullptr; -} - -CXXCtorInitializer ** -ExternalASTSource::GetExternalCXXCtorInitializers(uint64_t Offset) { - return nullptr; -} - -CXXBaseSpecifier * -ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) { - return nullptr; -} - -bool -ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, - DeclarationName Name) { - return false; -} - -void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {} - -void ExternalASTSource::FindExternalLexicalDecls( - const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant, - SmallVectorImpl<Decl *> &Result) {} - -void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const {} - -uint32_t ExternalASTSource::incrementGeneration(ASTContext &C) { - uint32_t OldGeneration = CurrentGeneration; - - // Make sure the generation of the topmost external source for the context is - // incremented. That might not be us. - auto *P = C.getExternalSource(); - if (P && P != this) - CurrentGeneration = P->incrementGeneration(C); - else { - // FIXME: Only bump the generation counter if the current generation number - // has been observed? - if (!++CurrentGeneration) - llvm::report_fatal_error("generation counter overflowed", false); - } - - return OldGeneration; -} |
