@@ -180,8 +180,9 @@ namespace clang {
180180
181181 // / Collect the first declaration from each module file that provides a
182182 // / declaration of D.
183- void CollectFirstDeclFromEachModule (const Decl *D, bool IncludeLocal,
184- llvm::MapVector<ModuleFile*, const Decl*> &Firsts) {
183+ void CollectFirstDeclFromEachModule (
184+ const Decl *D, bool IncludeLocal,
185+ llvm::MapVector<ModuleFile *, const Decl *> &Firsts) {
185186
186187 // FIXME: We can skip entries that we know are implied by others.
187188 for (const Decl *R = D->getMostRecentDecl (); R; R = R->getPreviousDecl ()) {
@@ -196,7 +197,7 @@ namespace clang {
196197 // / provides a declaration of D. The intent is to provide a sufficient
197198 // / set such that reloading this set will load all current redeclarations.
198199 void AddFirstDeclFromEachModule (const Decl *D, bool IncludeLocal) {
199- llvm::MapVector<ModuleFile*, const Decl*> Firsts;
200+ llvm::MapVector<ModuleFile *, const Decl *> Firsts;
200201 CollectFirstDeclFromEachModule (D, IncludeLocal, Firsts);
201202
202203 for (const auto &F : Firsts)
@@ -210,9 +211,9 @@ namespace clang {
210211 void AddFirstSpecializationDeclFromEachModule (const Decl *D,
211212 bool IncludeLocal) {
212213 assert (isa<ClassTemplateSpecializationDecl>(D) ||
213- isa<VarTemplateSpecializationDecl>(D) || isa<FunctionDecl>(D) &&
214- " Must not be called with other decls" );
215- llvm::MapVector<ModuleFile*, const Decl*> Firsts;
214+ isa<VarTemplateSpecializationDecl>(D) ||
215+ isa<FunctionDecl>(D) && " Must not be called with other decls" );
216+ llvm::MapVector<ModuleFile *, const Decl *> Firsts;
216217 CollectFirstDeclFromEachModule (D, IncludeLocal, Firsts);
217218
218219 for (const auto &F : Firsts) {
@@ -226,9 +227,9 @@ namespace clang {
226227 Args = FD->getTemplateSpecializationArgs ()->asArray ();
227228 assert (Args.size ());
228229 Record.push_back (TemplateArgumentList::ComputeODRHash (Args));
229- bool IsPartialSpecialization
230- = isa<ClassTemplatePartialSpecializationDecl>(D) ||
231- isa<VarTemplatePartialSpecializationDecl>(D);
230+ bool IsPartialSpecialization =
231+ isa<ClassTemplatePartialSpecializationDecl>(D) ||
232+ isa<VarTemplatePartialSpecializationDecl>(D);
232233 Record.push_back (IsPartialSpecialization);
233234 }
234235 }
@@ -263,8 +264,8 @@ namespace clang {
263264 assert (!Common->LazySpecializations );
264265 }
265266
266- using LazySpecializationInfo
267- = RedeclarableTemplateDecl::LazySpecializationInfo;
267+ using LazySpecializationInfo =
268+ RedeclarableTemplateDecl::LazySpecializationInfo;
268269 ArrayRef<LazySpecializationInfo> LazySpecializations;
269270 if (auto *LS = Common->LazySpecializations )
270271 LazySpecializations = llvm::ArrayRef (LS + 1 , LS[0 ].DeclID .getRawValue ());
@@ -283,7 +284,7 @@ namespace clang {
283284
284285 for (auto *D : Specs) {
285286 assert (D->isCanonicalDecl () && " non-canonical decl in set" );
286- AddFirstSpecializationDeclFromEachModule (D, /* IncludeLocal*/ true );
287+ AddFirstSpecializationDeclFromEachModule (D, /* IncludeLocal*/ true );
287288 }
288289 for (auto &SpecInfo : LazySpecializations) {
289290 Record.push_back (SpecInfo.DeclID .getRawValue ());
@@ -294,8 +295,8 @@ namespace clang {
294295 // Update the size entry we added earlier. We linerized the
295296 // LazySpecializationInfo members and we need to adjust the size as we
296297 // will read them always together.
297- assert ((Record.size () - I - 1 ) % 3 == 0
298- && " Must be divisible by LazySpecializationInfo count!" );
298+ assert ((Record.size () - I - 1 ) % 3 == 0 &&
299+ " Must be divisible by LazySpecializationInfo count!" );
299300 Record[I] = (Record.size () - I - 1 ) / 3 ;
300301 }
301302
0 commit comments