|
@@ -27,7 +27,7 @@
|
|
|
namespace clang {
|
|
|
|
|
|
class DiagnosticsEngine;
|
|
|
-class ExternalIdentifierLookup;
|
|
|
+class ExternalPreprocessorSource;
|
|
|
class FileEntry;
|
|
|
class FileManager;
|
|
|
class HeaderSearchOptions;
|
|
@@ -111,8 +111,9 @@ struct HeaderFileInfo {
|
|
|
|
|
|
/// \brief Retrieve the controlling macro for this header file, if
|
|
|
/// any.
|
|
|
- const IdentifierInfo *getControllingMacro(ExternalIdentifierLookup *External);
|
|
|
-
|
|
|
+ const IdentifierInfo *
|
|
|
+ getControllingMacro(ExternalPreprocessorSource *External);
|
|
|
+
|
|
|
/// \brief Determine whether this is a non-default header file info, e.g.,
|
|
|
/// it corresponds to an actual header we've included or tried to include.
|
|
|
bool isNonDefault() const {
|
|
@@ -242,8 +243,9 @@ class HeaderSearch {
|
|
|
llvm::StringSet<llvm::BumpPtrAllocator> FrameworkNames;
|
|
|
|
|
|
/// \brief Entity used to resolve the identifier IDs of controlling
|
|
|
- /// macros into IdentifierInfo pointers, as needed.
|
|
|
- ExternalIdentifierLookup *ExternalLookup;
|
|
|
+ /// macros into IdentifierInfo pointers, and keep the identifire up to date,
|
|
|
+ /// as needed.
|
|
|
+ ExternalPreprocessorSource *ExternalLookup;
|
|
|
|
|
|
/// \brief Entity used to look up stored header file information.
|
|
|
ExternalHeaderFileInfoSource *ExternalSource;
|
|
@@ -345,11 +347,11 @@ public:
|
|
|
FileInfo.clear();
|
|
|
}
|
|
|
|
|
|
- void SetExternalLookup(ExternalIdentifierLookup *EIL) {
|
|
|
- ExternalLookup = EIL;
|
|
|
+ void SetExternalLookup(ExternalPreprocessorSource *EPS) {
|
|
|
+ ExternalLookup = EPS;
|
|
|
}
|
|
|
|
|
|
- ExternalIdentifierLookup *getExternalLookup() const {
|
|
|
+ ExternalPreprocessorSource *getExternalLookup() const {
|
|
|
return ExternalLookup;
|
|
|
}
|
|
|
|