clang: lib/Lex/ModuleMapFile.cpp File Reference (original) (raw)
This file handles parsing of modulemap files into a simple AST. More...
#include "[clang/Lex/ModuleMapFile.h](ModuleMapFile%5F8h%5Fsource.html)"#include "[clang/Basic/Diagnostic.h](Basic%5F2Diagnostic%5F8h%5Fsource.html)"#include "[clang/Basic/LangOptions.h](LangOptions%5F8h%5Fsource.html)"#include "[clang/Basic/Module.h](Module%5F8h%5Fsource.html)"#include "[clang/Basic/SourceManager.h](SourceManager%5F8h%5Fsource.html)"#include "[clang/Lex/LexDiagnostic.h](LexDiagnostic%5F8h%5Fsource.html)"#include "[clang/Lex/Lexer.h](Lexer%5F8h%5Fsource.html)"#include "[clang/Lex/ModuleMap.h](ModuleMap%5F8h%5Fsource.html)"#include "llvm/ADT/STLExtras.h"#include <optional>
Go to the source code of this file.
| Functions | |
|---|---|
| static void | dumpModule (const ModuleDecl &MD, llvm::raw_ostream &out, int depth) |
| static void | dumpExternModule (const ExternModuleDecl &EMD, llvm::raw_ostream &out, int depth) |
| static void | dumpDecls (ArrayRef< Decl > Decls, llvm::raw_ostream &out, int depth) |
Detailed Description
This file handles parsing of modulemap files into a simple AST.
Definition in file ModuleMapFile.cpp.
Function Documentation
◆ dumpDecls()
| void dumpDecls ( ArrayRef< Decl > Decls, llvm::raw_ostream & out, int depth ) | static |
|---|
Definition at line 1159 of file ModuleMapFile.cpp.
References dumpExternModule(), dumpModule(), clang::modulemap::HeaderDecl::Excluded, clang::Macro, clang::modulemap::ExcludeDecl::Module, clang::out, clang::modulemap::HeaderDecl::Path, clang::modulemap::HeaderDecl::Private, clang::modulemap::HeaderDecl::Textual, and clang::modulemap::HeaderDecl::Umbrella.
Referenced by dumpModule().
◆ dumpExternModule()
| void dumpExternModule ( const ExternModuleDecl & EMD, llvm::raw_ostream & out, int depth ) | static |
|---|
Definition at line 1152 of file ModuleMapFile.cpp.
References clang::modulemap::ExternModuleDecl::Id, clang::out, and clang::modulemap::ExternModuleDecl::Path.
Referenced by clang::modulemap::ModuleMapFile::dump(), and dumpDecls().
◆ dumpModule()
| void dumpModule ( const ModuleDecl & MD, llvm::raw_ostream & out, int depth ) | static |
|---|
Definition at line 1225 of file ModuleMapFile.cpp.
References clang::modulemap::ModuleDecl::Decls, dumpDecls(), clang::modulemap::ModuleDecl::Id, and clang::out.
Referenced by clang::modulemap::ModuleMapFile::dump(), and dumpDecls().