@@ -63,7 +63,7 @@ class Attr;
6363 private:
6464 // / The contexts we're importing to and from.
6565 ASTContext &ToContext, &FromContext;
66-
66+
6767 // / The file managers we're importing to and from.
6868 FileManager &ToFileManager, &FromFileManager;
6969
@@ -72,11 +72,11 @@ class Attr;
7272
7373 // / Whether the last diagnostic came from the "from" context.
7474 bool LastDiagFromFrom = false ;
75-
75+
7676 // / Mapping from the already-imported types in the "from" context
7777 // / to the corresponding types in the "to" context.
7878 llvm::DenseMap<const Type *, const Type *> ImportedTypes;
79-
79+
8080 // / Mapping from the already-imported declarations in the "from"
8181 // / context to the corresponding declarations in the "to" context.
8282 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
@@ -93,11 +93,11 @@ class Attr;
9393 // / the "from" source manager to the corresponding CXXBasesSpecifier
9494 // / in the "to" source manager.
9595 ImportedCXXBaseSpecifierMap ImportedCXXBaseSpecifiers;
96-
96+
9797 // / Declaration (from, to) pairs that are known not to be equivalent
9898 // / (which we have already complained about).
9999 NonEquivalentDeclSet NonEquivalentDecls;
100-
100+
101101 public:
102102 // / Create a new AST importer.
103103 // /
@@ -115,13 +115,13 @@ class Attr;
115115 ASTImporter (ASTContext &ToContext, FileManager &ToFileManager,
116116 ASTContext &FromContext, FileManager &FromFileManager,
117117 bool MinimalImport);
118-
118+
119119 virtual ~ASTImporter ();
120-
120+
121121 // / Whether the importer will perform a minimal import, creating
122122 // / to-be-completed forward declarations when possible.
123123 bool isMinimalImport () const { return Minimal; }
124-
124+
125125 // / Import the given type from the "from" context into the "to"
126126 // / context.
127127 // /
@@ -142,10 +142,10 @@ class Attr;
142142 // / \returns the equivalent attribute in the "to" context.
143143 Attr *Import (const Attr *FromAttr);
144144
145- // / Import the given declaration from the "from" context into the
145+ // / Import the given declaration from the "from" context into the
146146 // / "to" context.
147147 // /
148- // / \returns the equivalent declaration in the "to" context, or a NULL type
148+ // / \returns the equivalent declaration in the "to" context, or a NULL type
149149 // / if an error occurred.
150150 Decl *Import (Decl *FromD);
151151 Decl *Import (const Decl *FromD) {
@@ -163,7 +163,7 @@ class Attr;
163163 // / \returns the equivalent declaration context in the "to"
164164 // / context, or a NULL type if an error occurred.
165165 DeclContext *ImportContext (DeclContext *FromDC);
166-
166+
167167 // / Import the given expression from the "from" context into the
168168 // / "to" context.
169169 // /
@@ -195,7 +195,7 @@ class Attr;
195195 // / Import the goven template name from the "from" context into the
196196 // / "to" context.
197197 TemplateName Import (TemplateName From);
198-
198+
199199 // / Import the given source location from the "from" context into
200200 // / the "to" context.
201201 // /
@@ -229,7 +229,7 @@ class Attr;
229229 // / \returns the equivalent selector in the "to" context.
230230 Selector Import (Selector FromSel);
231231
232- // / Import the given file ID from the "from" context into the
232+ // / Import the given file ID from the "from" context into the
233233 // / "to" context.
234234 // /
235235 // / \returns the equivalent file ID in the source manager of the "to"
@@ -252,13 +252,13 @@ class Attr;
252252 // / Import the definition of the given declaration, including all of
253253 // / the declarations it contains.
254254 // /
255- // / This routine is intended to be used
255+ // / This routine is intended to be used
256256 void ImportDefinition (Decl *From);
257257
258258 // / Cope with a name conflict when importing a declaration into the
259259 // / given context.
260260 // /
261- // / This routine is invoked whenever there is a name conflict while
261+ // / This routine is invoked whenever there is a name conflict while
262262 // / importing a declaration. The returned name will become the name of the
263263 // / imported declaration. By default, the returned name is the same as the
264264 // / original name, leaving the conflict unresolve such that name lookup
@@ -270,7 +270,7 @@ class Attr;
270270 // / \param Name the name of the declaration being imported, which conflicts
271271 // / with other declarations.
272272 // /
273- // / \param DC the declaration context (in the "to" AST context) in which
273+ // / \param DC the declaration context (in the "to" AST context) in which
274274 // / the name is being imported.
275275 // /
276276 // / \param IDNS the identifier namespace in which the name will be found.
@@ -286,25 +286,25 @@ class Attr;
286286 unsigned IDNS,
287287 NamedDecl **Decls,
288288 unsigned NumDecls);
289-
289+
290290 // / Retrieve the context that AST nodes are being imported into.
291291 ASTContext &getToContext () const { return ToContext; }
292-
292+
293293 // / Retrieve the context that AST nodes are being imported from.
294294 ASTContext &getFromContext () const { return FromContext; }
295-
295+
296296 // / Retrieve the file manager that AST nodes are being imported into.
297297 FileManager &getToFileManager () const { return ToFileManager; }
298298
299299 // / Retrieve the file manager that AST nodes are being imported from.
300300 FileManager &getFromFileManager () const { return FromFileManager; }
301-
301+
302302 // / Report a diagnostic in the "to" context.
303303 DiagnosticBuilder ToDiag (SourceLocation Loc, unsigned DiagID);
304-
304+
305305 // / Report a diagnostic in the "from" context.
306306 DiagnosticBuilder FromDiag (SourceLocation Loc, unsigned DiagID);
307-
307+
308308 // / Return the set of declarations that we know are not equivalent.
309309 NonEquivalentDeclSet &getNonEquivalentDecls () { return NonEquivalentDecls; }
310310
@@ -313,7 +313,7 @@ class Attr;
313313 // /
314314 // / \param D A declaration in the "to" context.
315315 virtual void CompleteDecl (Decl* D);
316-
316+
317317 // / Subclasses can override this function to observe all of the \c From ->
318318 // / \c To declaration mappings as they are imported.
319319 virtual Decl *Imported (Decl *From, Decl *To) { return To; }
@@ -328,7 +328,7 @@ class Attr;
328328 // / RecordDecl can be found, we can complete it without the need for
329329 // / importation, eliminating this loop.
330330 virtual Decl *GetOriginalDecl (Decl *To) { return nullptr ; }
331-
331+
332332 // / Determine whether the given types are structurally
333333 // / equivalent.
334334 bool IsStructurallyEquivalent (QualType From, QualType To,
0 commit comments