Lines Matching defs:clang

35 #include "clang/Basic/LangOptions.h"
36 #include "clang/Basic/TargetOptions.h"
37 #include "clang/Frontend/CodeGenOptions.h"
38 #include "clang/Lex/ModuleLoader.h"
51 namespace clang {
67 } // namespace clang
78 class Slang : public clang::ModuleLoader {
93 clang::LangOptions LangOpts;
95 clang::CodeGenOptions CodeGenOpts;
101 clang::DiagnosticsEngine *mDiagEngine;
108 std::shared_ptr<clang::TargetOptions> mTargetOpts;
109 std::unique_ptr<clang::TargetInfo> mTarget;
113 std::unique_ptr<clang::FileManager> mFileMgr;
114 std::unique_ptr<clang::FileSystemOptions> mFileSysOpt;
118 std::unique_ptr<clang::SourceManager> mSourceMgr;
122 std::unique_ptr<clang::Preprocessor> mPP;
126 std::unique_ptr<clang::ASTContext> mASTContext;
130 std::unique_ptr<clang::ASTConsumer> mBackend;
133 llvm::IntrusiveRefCntPtr<clang::HeaderSearchOptions> mHSOpts;
136 llvm::IntrusiveRefCntPtr<clang::PreprocessorOptions> mPPOpts;
140 std::shared_ptr<clang::PCHContainerOperations> mPCHContainerOperations;
195 clang::DiagnosticsEngine &getDiagnostics() { return *mDiagEngine; }
196 clang::TargetInfo const &getTargetInfo() const { return *mTarget; }
197 clang::FileManager &getFileManager() { return *mFileMgr; }
198 clang::SourceManager &getSourceManager() { return *mSourceMgr; }
199 clang::Preprocessor &getPreprocessor() { return *mPP; }
200 clang::ASTContext &getASTContext() { return *mASTContext; }
201 clang::HeaderSearchOptions &getHeaderSearchOpts() { return *mHSOpts; }
202 clang::PreprocessorOptions &getPreprocessorOpts() { return *mPPOpts; }
204 inline clang::TargetOptions const &getTargetOptions() const
210 clang::ASTConsumer *createBackend(const RSCCOptions &Opts,
211 const clang::CodeGenOptions &CodeGenOpts,
224 static bool IsLocInRSHeaderFile(const clang::SourceLocation &Loc,
225 const clang::SourceManager &SourceMgr);
227 Slang(uint32_t BitWidth, clang::DiagnosticsEngine *DiagEngine,
286 clang::DiagnosticOptions &DiagOpts,
289 clang::ModuleLoadResult loadModule(clang::SourceLocation ImportLoc,
290 clang::ModuleIdPath Path,
291 clang::Module::NameVisibilityKind VK,
294 void makeModuleVisible(clang::Module *Mod,
295 clang::Module::NameVisibilityKind Visibility,
296 clang::SourceLocation ImportLoc) override {}
298 clang::GlobalModuleIndex *
299 loadGlobalModuleIndex(clang::SourceLocation TriggerLoc) override {
305 clang::SourceLocation TriggerLoc) override {