clang
9.0.0
|
#include "clang/AST/ASTConsumer.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Sema/SemaInternal.h"
Go to the source code of this file.
Enumerations | |
enum | UnnamedDeclKind |
Functions | |
static void | checkModuleImportContext (Sema &S, Module *M, SourceLocation ImportLoc, DeclContext *DC, bool FromInclude=false) |
static const ExportDecl * | getEnclosingExportDecl (const Decl *D) |
Determine whether D is lexically within an export-declaration. More... | |
static bool | checkExportedDeclContext (Sema &S, DeclContext *DC, SourceLocation BlockStart) |
Check that it's valid to export all the declarations in DC . More... | |
static llvm::Optional< UnnamedDeclKind > | getUnnamedDeclKind (Decl *D) |
unsigned | getUnnamedDeclDiag (UnnamedDeclKind UDK, bool InBlock) |
static void | diagExportedUnnamedDecl (Sema &S, UnnamedDeclKind UDK, Decl *D, SourceLocation BlockStart) |
static bool | checkExportedDecl (Sema &S, Decl *D, SourceLocation BlockStart) |
Check that it's valid to export D . More... | |
|
strong |
Definition at line 587 of file SemaModule.cpp.
|
static |
Check that it's valid to export D
.
Definition at line 641 of file SemaModule.cpp.
References checkExportedDeclContext(), clang::Sema::Diag(), diagExportedUnnamedDecl(), clang::NamedDecl::getFormalLinkage(), clang::Decl::getLocation(), clang::DeclContext::getRedeclContext(), getUnnamedDeclKind(), clang::InternalLinkage, clang::DeclContext::isFileContext(), clang::SourceLocation::isValid(), and clang::Target.
Referenced by clang::Sema::ActOnFinishExportDecl(), and checkExportedDeclContext().
|
static |
Check that it's valid to export all the declarations in DC
.
Definition at line 680 of file SemaModule.cpp.
References checkExportedDecl(), and clang::DeclContext::decls().
Referenced by checkExportedDecl().
|
static |
Definition at line 22 of file SemaModule.cpp.
Referenced by clang::Sema::ActOnModuleBegin(), clang::Sema::ActOnModuleImport(), and clang::Sema::ActOnModuleInclude().
|
static |
Definition at line 632 of file SemaModule.cpp.
References clang::Sema::Diag(), clang::Decl::getLocation(), getUnnamedDeclDiag(), and clang::SourceLocation::isValid().
Referenced by clang::Sema::ActOnFinishExportDecl(), and checkExportedDecl().
|
static |
Determine whether D
is lexically within an export-declaration.
Definition at line 334 of file SemaModule.cpp.
References clang::Decl::getLexicalDeclContext(), and clang::DeclContext::getLexicalParent().
unsigned getUnnamedDeclDiag | ( | UnnamedDeclKind | UDK, |
bool | InBlock | ||
) |
Definition at line 609 of file SemaModule.cpp.
Referenced by diagExportedUnnamedDecl().
|
static |
Definition at line 596 of file SemaModule.cpp.
References clang::None.
Referenced by checkExportedDecl().