1 //===-- CompilerInstance.h - Clang Compiler Instance ------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_FRONTEND_COMPILERINSTANCE_H_
11 #define LLVM_CLANG_FRONTEND_COMPILERINSTANCE_H_
13 #include "clang/AST/ASTConsumer.h"
14 #include "clang/Basic/Diagnostic.h"
15 #include "clang/Basic/SourceManager.h"
16 #include "clang/Frontend/CompilerInvocation.h"
17 #include "clang/Frontend/PCHContainerOperations.h"
18 #include "clang/Frontend/Utils.h"
19 #include "clang/Lex/HeaderSearchOptions.h"
20 #include "clang/Lex/ModuleLoader.h"
21 #include "llvm/ADT/ArrayRef.h"
22 #include "llvm/ADT/DenseMap.h"
23 #include "llvm/ADT/IntrusiveRefCntPtr.h"
24 #include "llvm/ADT/StringRef.h"
40 class CodeCompleteConsumer;
41 class DiagnosticsEngine;
42 class DiagnosticConsumer;
43 class ExternalASTSource;
53 /// CompilerInstance - Helper class for managing a single instance of the Clang
56 /// The CompilerInstance serves two purposes:
57 /// (1) It manages the various objects which are necessary to run the compiler,
58 /// for example the preprocessor, the target information, and the AST
60 /// (2) It provides utility routines for constructing and manipulating the
61 /// common Clang objects.
63 /// The compiler instance generally owns the instance of all the objects that it
64 /// manages. However, clients can still share objects by manually setting the
65 /// object and retaking ownership prior to destroying the CompilerInstance.
67 /// The compiler instance is intended to simplify clients, but not to lock them
68 /// in to the compiler instance for everything. When possible, utility functions
69 /// come in two forms; a short form that reuses the CompilerInstance objects,
70 /// and a long form that takes explicit instances of any required objects.
71 class CompilerInstance : public ModuleLoader {
72 /// The options used in this compiler instance.
73 IntrusiveRefCntPtr<CompilerInvocation> Invocation;
75 /// The diagnostics engine instance.
76 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics;
78 /// The target being compiled for.
79 IntrusiveRefCntPtr<TargetInfo> Target;
81 /// Auxiliary Target info.
82 IntrusiveRefCntPtr<TargetInfo> AuxTarget;
84 /// The virtual file system.
85 IntrusiveRefCntPtr<vfs::FileSystem> VirtualFileSystem;
88 IntrusiveRefCntPtr<FileManager> FileMgr;
90 /// The source manager.
91 IntrusiveRefCntPtr<SourceManager> SourceMgr;
94 IntrusiveRefCntPtr<Preprocessor> PP;
97 IntrusiveRefCntPtr<ASTContext> Context;
99 /// An optional sema source that will be attached to sema.
100 IntrusiveRefCntPtr<ExternalSemaSource> ExternalSemaSrc;
102 /// The AST consumer.
103 std::unique_ptr<ASTConsumer> Consumer;
105 /// The code completion consumer.
106 std::unique_ptr<CodeCompleteConsumer> CompletionConsumer;
108 /// \brief The semantic analysis object.
109 std::unique_ptr<Sema> TheSema;
111 /// \brief The frontend timer group.
112 std::unique_ptr<llvm::TimerGroup> FrontendTimerGroup;
114 /// \brief The frontend timer.
115 std::unique_ptr<llvm::Timer> FrontendTimer;
117 /// \brief The ASTReader, if one exists.
118 IntrusiveRefCntPtr<ASTReader> ModuleManager;
120 /// \brief The module dependency collector for crashdumps
121 std::shared_ptr<ModuleDependencyCollector> ModuleDepCollector;
123 /// \brief The module provider.
124 std::shared_ptr<PCHContainerOperations> ThePCHContainerOperations;
126 /// \brief The dependency file generator.
127 std::unique_ptr<DependencyFileGenerator> TheDependencyFileGenerator;
129 std::vector<std::shared_ptr<DependencyCollector>> DependencyCollectors;
131 /// \brief The set of top-level modules that has already been loaded,
132 /// along with the module map
133 llvm::DenseMap<const IdentifierInfo *, Module *> KnownModules;
135 /// \brief The location of the module-import keyword for the last module
137 SourceLocation LastModuleImportLoc;
139 /// \brief The result of the last module import.
141 ModuleLoadResult LastModuleImportResult;
143 /// \brief Whether we should (re)build the global module index once we
144 /// have finished with this translation unit.
145 bool BuildGlobalModuleIndex;
147 /// \brief We have a full global module index, with all modules.
148 bool HaveFullGlobalModuleIndex;
150 /// \brief One or more modules failed to build.
151 bool ModuleBuildFailed;
153 /// \brief Holds information about the output file.
155 /// If TempFilename is not empty we must rename it to Filename at the end.
156 /// TempFilename may be empty and Filename non-empty if creating the temporary
159 std::string Filename;
160 std::string TempFilename;
162 OutputFile(std::string filename, std::string tempFilename)
163 : Filename(std::move(filename)), TempFilename(std::move(tempFilename)) {
167 /// If the output doesn't support seeking (terminal, pipe). we switch
168 /// the stream to a buffer_ostream. These are the buffer and the original
170 std::unique_ptr<llvm::raw_fd_ostream> NonSeekStream;
172 /// The list of active output files.
173 std::list<OutputFile> OutputFiles;
175 CompilerInstance(const CompilerInstance &) = delete;
176 void operator=(const CompilerInstance &) = delete;
178 explicit CompilerInstance(
179 std::shared_ptr<PCHContainerOperations> PCHContainerOps =
180 std::make_shared<PCHContainerOperations>(),
181 bool BuildingModule = false);
182 ~CompilerInstance() override;
184 /// @name High-Level Operations
187 /// ExecuteAction - Execute the provided action against the compiler's
188 /// CompilerInvocation object.
190 /// This function makes the following assumptions:
192 /// - The invocation options should be initialized. This function does not
193 /// handle the '-help' or '-version' options, clients should handle those
196 /// - The diagnostics engine should have already been created by the client.
198 /// - No other CompilerInstance state should have been initialized (this is
199 /// an unchecked error).
201 /// - Clients should have initialized any LLVM target features that may be
204 /// - Clients should eventually call llvm_shutdown() upon the completion of
205 /// this routine to ensure that any managed objects are properly destroyed.
207 /// Note that this routine may write output to 'stderr'.
209 /// \param Act - The action to execute.
210 /// \return - True on success.
212 // FIXME: This function should take the stream to write any debugging /
213 // verbose output to as an argument.
215 // FIXME: Eliminate the llvm_shutdown requirement, that should either be part
216 // of the context or else not CompilerInstance specific.
217 bool ExecuteAction(FrontendAction &Act);
220 /// @name Compiler Invocation and Options
223 bool hasInvocation() const { return Invocation != nullptr; }
225 CompilerInvocation &getInvocation() {
226 assert(Invocation && "Compiler instance has no invocation!");
230 /// setInvocation - Replace the current invocation.
231 void setInvocation(CompilerInvocation *Value);
233 /// \brief Indicates whether we should (re)build the global module index.
234 bool shouldBuildGlobalModuleIndex() const;
236 /// \brief Set the flag indicating whether we should (re)build the global
238 void setBuildGlobalModuleIndex(bool Build) {
239 BuildGlobalModuleIndex = Build;
243 /// @name Forwarding Methods
246 AnalyzerOptionsRef getAnalyzerOpts() {
247 return Invocation->getAnalyzerOpts();
250 CodeGenOptions &getCodeGenOpts() {
251 return Invocation->getCodeGenOpts();
253 const CodeGenOptions &getCodeGenOpts() const {
254 return Invocation->getCodeGenOpts();
257 DependencyOutputOptions &getDependencyOutputOpts() {
258 return Invocation->getDependencyOutputOpts();
260 const DependencyOutputOptions &getDependencyOutputOpts() const {
261 return Invocation->getDependencyOutputOpts();
264 DiagnosticOptions &getDiagnosticOpts() {
265 return Invocation->getDiagnosticOpts();
267 const DiagnosticOptions &getDiagnosticOpts() const {
268 return Invocation->getDiagnosticOpts();
271 FileSystemOptions &getFileSystemOpts() {
272 return Invocation->getFileSystemOpts();
274 const FileSystemOptions &getFileSystemOpts() const {
275 return Invocation->getFileSystemOpts();
278 FrontendOptions &getFrontendOpts() {
279 return Invocation->getFrontendOpts();
281 const FrontendOptions &getFrontendOpts() const {
282 return Invocation->getFrontendOpts();
285 HeaderSearchOptions &getHeaderSearchOpts() {
286 return Invocation->getHeaderSearchOpts();
288 const HeaderSearchOptions &getHeaderSearchOpts() const {
289 return Invocation->getHeaderSearchOpts();
292 LangOptions &getLangOpts() {
293 return *Invocation->getLangOpts();
295 const LangOptions &getLangOpts() const {
296 return *Invocation->getLangOpts();
299 PreprocessorOptions &getPreprocessorOpts() {
300 return Invocation->getPreprocessorOpts();
302 const PreprocessorOptions &getPreprocessorOpts() const {
303 return Invocation->getPreprocessorOpts();
306 PreprocessorOutputOptions &getPreprocessorOutputOpts() {
307 return Invocation->getPreprocessorOutputOpts();
309 const PreprocessorOutputOptions &getPreprocessorOutputOpts() const {
310 return Invocation->getPreprocessorOutputOpts();
313 TargetOptions &getTargetOpts() {
314 return Invocation->getTargetOpts();
316 const TargetOptions &getTargetOpts() const {
317 return Invocation->getTargetOpts();
321 /// @name Diagnostics Engine
324 bool hasDiagnostics() const { return Diagnostics != nullptr; }
326 /// Get the current diagnostics engine.
327 DiagnosticsEngine &getDiagnostics() const {
328 assert(Diagnostics && "Compiler instance has no diagnostics!");
332 /// setDiagnostics - Replace the current diagnostics engine.
333 void setDiagnostics(DiagnosticsEngine *Value);
335 DiagnosticConsumer &getDiagnosticClient() const {
336 assert(Diagnostics && Diagnostics->getClient() &&
337 "Compiler instance has no diagnostic client!");
338 return *Diagnostics->getClient();
342 /// @name Target Info
345 bool hasTarget() const { return Target != nullptr; }
347 TargetInfo &getTarget() const {
348 assert(Target && "Compiler instance has no target!");
352 /// Replace the current Target.
353 void setTarget(TargetInfo *Value);
356 /// @name AuxTarget Info
359 TargetInfo *getAuxTarget() const { return AuxTarget.get(); }
361 /// Replace the current AuxTarget.
362 void setAuxTarget(TargetInfo *Value);
365 /// @name Virtual File System
368 bool hasVirtualFileSystem() const { return VirtualFileSystem != nullptr; }
370 vfs::FileSystem &getVirtualFileSystem() const {
371 assert(hasVirtualFileSystem() &&
372 "Compiler instance has no virtual file system");
373 return *VirtualFileSystem;
376 /// \brief Replace the current virtual file system.
378 /// \note Most clients should use setFileManager, which will implicitly reset
379 /// the virtual file system to the one contained in the file manager.
380 void setVirtualFileSystem(IntrusiveRefCntPtr<vfs::FileSystem> FS) {
381 VirtualFileSystem = std::move(FS);
385 /// @name File Manager
388 bool hasFileManager() const { return FileMgr != nullptr; }
390 /// Return the current file manager to the caller.
391 FileManager &getFileManager() const {
392 assert(FileMgr && "Compiler instance has no file manager!");
396 void resetAndLeakFileManager() {
397 BuryPointer(FileMgr.get());
398 FileMgr.resetWithoutRelease();
401 /// \brief Replace the current file manager and virtual file system.
402 void setFileManager(FileManager *Value);
405 /// @name Source Manager
408 bool hasSourceManager() const { return SourceMgr != nullptr; }
410 /// Return the current source manager.
411 SourceManager &getSourceManager() const {
412 assert(SourceMgr && "Compiler instance has no source manager!");
416 void resetAndLeakSourceManager() {
417 BuryPointer(SourceMgr.get());
418 SourceMgr.resetWithoutRelease();
421 /// setSourceManager - Replace the current source manager.
422 void setSourceManager(SourceManager *Value);
425 /// @name Preprocessor
428 bool hasPreprocessor() const { return PP != nullptr; }
430 /// Return the current preprocessor.
431 Preprocessor &getPreprocessor() const {
432 assert(PP && "Compiler instance has no preprocessor!");
436 void resetAndLeakPreprocessor() {
437 BuryPointer(PP.get());
438 PP.resetWithoutRelease();
441 /// Replace the current preprocessor.
442 void setPreprocessor(Preprocessor *Value);
448 bool hasASTContext() const { return Context != nullptr; }
450 ASTContext &getASTContext() const {
451 assert(Context && "Compiler instance has no AST context!");
455 void resetAndLeakASTContext() {
456 BuryPointer(Context.get());
457 Context.resetWithoutRelease();
460 /// setASTContext - Replace the current AST context.
461 void setASTContext(ASTContext *Value);
463 /// \brief Replace the current Sema; the compiler instance takes ownership
465 void setSema(Sema *S);
468 /// @name ASTConsumer
471 bool hasASTConsumer() const { return (bool)Consumer; }
473 ASTConsumer &getASTConsumer() const {
474 assert(Consumer && "Compiler instance has no AST consumer!");
478 /// takeASTConsumer - Remove the current AST consumer and give ownership to
480 std::unique_ptr<ASTConsumer> takeASTConsumer() { return std::move(Consumer); }
482 /// setASTConsumer - Replace the current AST consumer; the compiler instance
483 /// takes ownership of \p Value.
484 void setASTConsumer(std::unique_ptr<ASTConsumer> Value);
487 /// @name Semantic analysis
489 bool hasSema() const { return (bool)TheSema; }
491 Sema &getSema() const {
492 assert(TheSema && "Compiler instance has no Sema object!");
496 std::unique_ptr<Sema> takeSema();
497 void resetAndLeakSema();
500 /// @name Module Management
503 IntrusiveRefCntPtr<ASTReader> getModuleManager() const;
504 void setModuleManager(IntrusiveRefCntPtr<ASTReader> Reader);
506 std::shared_ptr<ModuleDependencyCollector> getModuleDepCollector() const;
507 void setModuleDepCollector(
508 std::shared_ptr<ModuleDependencyCollector> Collector);
510 std::shared_ptr<PCHContainerOperations> getPCHContainerOperations() const {
511 return ThePCHContainerOperations;
514 /// Return the appropriate PCHContainerWriter depending on the
515 /// current CodeGenOptions.
516 const PCHContainerWriter &getPCHContainerWriter() const {
517 assert(Invocation && "cannot determine module format without invocation");
518 StringRef Format = getHeaderSearchOpts().ModuleFormat;
519 auto *Writer = ThePCHContainerOperations->getWriterOrNull(Format);
522 Diagnostics->Report(diag::err_module_format_unhandled) << Format;
523 llvm::report_fatal_error("unknown module format");
528 /// Return the appropriate PCHContainerReader depending on the
529 /// current CodeGenOptions.
530 const PCHContainerReader &getPCHContainerReader() const {
531 assert(Invocation && "cannot determine module format without invocation");
532 StringRef Format = getHeaderSearchOpts().ModuleFormat;
533 auto *Reader = ThePCHContainerOperations->getReaderOrNull(Format);
536 Diagnostics->Report(diag::err_module_format_unhandled) << Format;
537 llvm::report_fatal_error("unknown module format");
543 /// @name Code Completion
546 bool hasCodeCompletionConsumer() const { return (bool)CompletionConsumer; }
548 CodeCompleteConsumer &getCodeCompletionConsumer() const {
549 assert(CompletionConsumer &&
550 "Compiler instance has no code completion consumer!");
551 return *CompletionConsumer;
554 /// setCodeCompletionConsumer - Replace the current code completion consumer;
555 /// the compiler instance takes ownership of \p Value.
556 void setCodeCompletionConsumer(CodeCompleteConsumer *Value);
559 /// @name Frontend timer
562 bool hasFrontendTimer() const { return (bool)FrontendTimer; }
564 llvm::Timer &getFrontendTimer() const {
565 assert(FrontendTimer && "Compiler instance has no frontend timer!");
566 return *FrontendTimer;
570 /// @name Output Files
573 /// addOutputFile - Add an output file onto the list of tracked output files.
575 /// \param OutFile - The output file info.
576 void addOutputFile(OutputFile &&OutFile);
578 /// clearOutputFiles - Clear the output file list. The underlying output
579 /// streams must have been closed beforehand.
581 /// \param EraseFiles - If true, attempt to erase the files from disk.
582 void clearOutputFiles(bool EraseFiles);
585 /// @name Construction Utility Methods
588 /// Create the diagnostics engine using the invocation's diagnostic options
589 /// and replace any existing one with it.
591 /// Note that this routine also replaces the diagnostic client,
592 /// allocating one if one is not provided.
594 /// \param Client If non-NULL, a diagnostic client that will be
595 /// attached to (and, then, owned by) the DiagnosticsEngine inside this AST
598 /// \param ShouldOwnClient If Client is non-NULL, specifies whether
599 /// the diagnostic object should take ownership of the client.
600 void createDiagnostics(DiagnosticConsumer *Client = nullptr,
601 bool ShouldOwnClient = true);
603 /// Create a DiagnosticsEngine object with a the TextDiagnosticPrinter.
605 /// If no diagnostic client is provided, this creates a
606 /// DiagnosticConsumer that is owned by the returned diagnostic
607 /// object, if using directly the caller is responsible for
608 /// releasing the returned DiagnosticsEngine's client eventually.
610 /// \param Opts - The diagnostic options; note that the created text
611 /// diagnostic object contains a reference to these options.
613 /// \param Client If non-NULL, a diagnostic client that will be
614 /// attached to (and, then, owned by) the returned DiagnosticsEngine
617 /// \param CodeGenOpts If non-NULL, the code gen options in use, which may be
618 /// used by some diagnostics printers (for logging purposes only).
620 /// \return The new object on success, or null on failure.
621 static IntrusiveRefCntPtr<DiagnosticsEngine>
622 createDiagnostics(DiagnosticOptions *Opts,
623 DiagnosticConsumer *Client = nullptr,
624 bool ShouldOwnClient = true,
625 const CodeGenOptions *CodeGenOpts = nullptr);
627 /// Create the file manager and replace any existing one with it.
628 void createFileManager();
630 /// Create the source manager and replace any existing one with it.
631 void createSourceManager(FileManager &FileMgr);
633 /// Create the preprocessor, using the invocation, file, and source managers,
634 /// and replace any existing one with it.
635 void createPreprocessor(TranslationUnitKind TUKind);
637 std::string getSpecificModuleCachePath();
639 /// Create the AST context.
640 void createASTContext();
642 /// Create an external AST source to read a PCH file and attach it to the AST
644 void createPCHExternalASTSource(StringRef Path, bool DisablePCHValidation,
645 bool AllowPCHWithCompilerErrors,
646 void *DeserializationListener,
647 bool OwnDeserializationListener);
649 /// Create an external AST source to read a PCH file.
651 /// \return - The new object on success, or null on failure.
652 static IntrusiveRefCntPtr<ASTReader> createPCHExternalASTSource(
653 StringRef Path, StringRef Sysroot, bool DisablePCHValidation,
654 bool AllowPCHWithCompilerErrors, Preprocessor &PP, ASTContext &Context,
655 const PCHContainerReader &PCHContainerRdr,
656 ArrayRef<IntrusiveRefCntPtr<ModuleFileExtension>> Extensions,
657 void *DeserializationListener, bool OwnDeserializationListener,
658 bool Preamble, bool UseGlobalModuleIndex);
660 /// Create a code completion consumer using the invocation; note that this
661 /// will cause the source manager to truncate the input source file at the
662 /// completion point.
663 void createCodeCompletionConsumer();
665 /// Create a code completion consumer to print code completion results, at
666 /// \p Filename, \p Line, and \p Column, to the given output stream \p OS.
667 static CodeCompleteConsumer *createCodeCompletionConsumer(
668 Preprocessor &PP, StringRef Filename, unsigned Line, unsigned Column,
669 const CodeCompleteOptions &Opts, raw_ostream &OS);
671 /// \brief Create the Sema object to be used for parsing.
672 void createSema(TranslationUnitKind TUKind,
673 CodeCompleteConsumer *CompletionConsumer);
675 /// Create the frontend timer and replace any existing one with it.
676 void createFrontendTimer();
678 /// Create the default output file (from the invocation's options) and add it
679 /// to the list of tracked output files.
681 /// The files created by this function always use temporary files to write to
682 /// their result (that is, the data is written to a temporary file which will
683 /// atomically replace the target output on success).
685 /// \return - Null on error.
686 std::unique_ptr<raw_pwrite_stream>
687 createDefaultOutputFile(bool Binary = true, StringRef BaseInput = "",
688 StringRef Extension = "");
690 /// Create a new output file and add it to the list of tracked output files,
691 /// optionally deriving the output path name.
693 /// \return - Null on error.
694 std::unique_ptr<raw_pwrite_stream>
695 createOutputFile(StringRef OutputPath, bool Binary, bool RemoveFileOnSignal,
696 StringRef BaseInput, StringRef Extension, bool UseTemporary,
697 bool CreateMissingDirectories = false);
699 /// Create a new output file, optionally deriving the output path name.
701 /// If \p OutputPath is empty, then createOutputFile will derive an output
702 /// path location as \p BaseInput, with any suffix removed, and \p Extension
703 /// appended. If \p OutputPath is not stdout and \p UseTemporary
704 /// is true, createOutputFile will create a new temporary file that must be
705 /// renamed to \p OutputPath in the end.
707 /// \param OutputPath - If given, the path to the output file.
708 /// \param Error [out] - On failure, the error.
709 /// \param BaseInput - If \p OutputPath is empty, the input path name to use
710 /// for deriving the output path.
711 /// \param Extension - The extension to use for derived output names.
712 /// \param Binary - The mode to open the file in.
713 /// \param RemoveFileOnSignal - Whether the file should be registered with
714 /// llvm::sys::RemoveFileOnSignal. Note that this is not safe for
715 /// multithreaded use, as the underlying signal mechanism is not reentrant
716 /// \param UseTemporary - Create a new temporary file that must be renamed to
717 /// OutputPath in the end.
718 /// \param CreateMissingDirectories - When \p UseTemporary is true, create
719 /// missing directories in the output path.
720 /// \param ResultPathName [out] - If given, the result path name will be
721 /// stored here on success.
722 /// \param TempPathName [out] - If given, the temporary file path name
723 /// will be stored here on success.
724 std::unique_ptr<raw_pwrite_stream>
725 createOutputFile(StringRef OutputPath, std::error_code &Error, bool Binary,
726 bool RemoveFileOnSignal, StringRef BaseInput,
727 StringRef Extension, bool UseTemporary,
728 bool CreateMissingDirectories, std::string *ResultPathName,
729 std::string *TempPathName);
731 std::unique_ptr<raw_pwrite_stream> createNullOutputFile();
734 /// @name Initialization Utility Methods
737 /// InitializeSourceManager - Initialize the source manager to set InputFile
738 /// as the main file.
740 /// \return True on success.
741 bool InitializeSourceManager(const FrontendInputFile &Input);
743 /// InitializeSourceManager - Initialize the source manager to set InputFile
744 /// as the main file.
746 /// \return True on success.
747 static bool InitializeSourceManager(const FrontendInputFile &Input,
748 DiagnosticsEngine &Diags,
749 FileManager &FileMgr,
750 SourceManager &SourceMgr,
752 DependencyOutputOptions &DepOpts,
753 const FrontendOptions &Opts);
757 // Create module manager.
758 void createModuleManager();
760 bool loadModuleFile(StringRef FileName);
762 ModuleLoadResult loadModule(SourceLocation ImportLoc, ModuleIdPath Path,
763 Module::NameVisibilityKind Visibility,
764 bool IsInclusionDirective) override;
766 void makeModuleVisible(Module *Mod, Module::NameVisibilityKind Visibility,
767 SourceLocation ImportLoc) override;
769 bool hadModuleLoaderFatalFailure() const {
770 return ModuleLoader::HadFatalFailure;
773 GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) override;
775 bool lookupMissingImports(StringRef Name, SourceLocation TriggerLoc) override;
777 void addDependencyCollector(std::shared_ptr<DependencyCollector> Listener) {
778 DependencyCollectors.push_back(std::move(Listener));
781 void setExternalSemaSource(IntrusiveRefCntPtr<ExternalSemaSource> ESS);
784 } // end namespace clang