clang: include/clang/Basic/ASTSourceDescriptor.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#ifndef LLVM_CLANG_BASIC_ASTSOURCEDESCRIPTOR_H
16#define LLVM_CLANG_BASIC_ASTSOURCEDESCRIPTOR_H
17
19#include "llvm/ADT/StringRef.h"
20#include
21#include
22
24
25
26
27
29 StringRef PCHModuleName;
30 StringRef Path;
31 StringRef ASTFile;
33 Module *ClangModule = nullptr;
34
35public:
39 : PCHModuleName(std::move(Name)), Path(std::move(Path)),
40 ASTFile(std::move(ASTFile)), Signature(Signature) {}
42
45 StringRef getASTFile() const { return ASTFile; }
48};
49
50}
51
52#endif
Defines the clang::Module class, which describes a module in the source code.
Abstracts clang modules and precompiled header files and holds everything needed to generate debug in...
Module * getModuleOrNull() const
ASTFileSignature getSignature() const
ASTSourceDescriptor(StringRef Name, StringRef Path, StringRef ASTFile, ASTFileSignature Signature)
StringRef getASTFile() const
ASTSourceDescriptor()=default
StringRef getPath() const
std::string getModuleName() const
Describes a module or submodule.
The JSON file list parser is used to communicate input to InstallAPI.
The signature of a module, which is a hash of the AST content.