@@ -453,7 +453,7 @@ getNormalInvocationArguments(std::vector<std::string> &invocationArgStrs,
453
453
invocationArgStrs.push_back (" -fmodules-cache-path=" );
454
454
invocationArgStrs.back ().append (moduleCachePath);
455
455
}
456
-
456
+
457
457
if (importerOpts.DetailedPreprocessingRecord ) {
458
458
invocationArgStrs.insert (invocationArgStrs.end (), {
459
459
" -Xclang" , " -detailed-preprocessing-record" ,
@@ -831,7 +831,7 @@ void ClangImporter::Implementation::addMacrosToLookupTable(
831
831
// Check whether we have a macro defined in this module.
832
832
auto info = pp.getMacroInfo (macro.first );
833
833
if (!info || info->isFromASTFile () || info->isBuiltinMacro ()) continue ;
834
-
834
+
835
835
// Only interested in macro definitions.
836
836
auto *defMD = dyn_cast<clang::DefMacroDirective>(MD);
837
837
if (!defMD) continue ;
@@ -909,7 +909,7 @@ bool ClangImporter::Implementation::importHeader(
909
909
// Force the import to occur.
910
910
pp.LookAhead (0 );
911
911
912
- SmallVector<clang::DeclGroupRef, 16 > allParsedDecls;
912
+ SmallVector<clang::DeclGroupRef, 16 > allParsedDecls;
913
913
auto handleParsed = [&](clang::DeclGroupRef parsed) {
914
914
if (trackParsedSymbols) {
915
915
for (auto *D : parsed) {
@@ -3144,7 +3144,7 @@ isAccessibilityConformingContext(const clang::DeclContext *ctx) {
3144
3144
return true ;
3145
3145
}
3146
3146
return false ;
3147
-
3147
+
3148
3148
}
3149
3149
3150
3150
// / Determine whether the given method potentially conflicts with the
@@ -3907,7 +3907,7 @@ static bool isVisibleClangEntry(clang::ASTContext &ctx,
3907
3907
// Check whether the macro is defined.
3908
3908
auto clangMacro = entry.get <clang::MacroInfo *>();
3909
3909
if (auto moduleID = clangMacro->getOwningModuleID ()) {
3910
- if (auto module = ctx.getExternalSource ()->getModule (moduleID))
3910
+ if (auto module = ctx.getExternalSource ()->getModule (moduleID))
3911
3911
return module ->NameVisibility == clang::Module::AllVisible;
3912
3912
}
3913
3913
@@ -3976,7 +3976,8 @@ void ClangImporter::loadObjCMethods(
3976
3976
SmallVector<clang::ObjCMethodDecl *, 4 > objcMethods;
3977
3977
auto &sema = Impl.Instance ->getSema ();
3978
3978
sema.CollectMultipleMethodsInGlobalPool (clangSelector, objcMethods,
3979
- isInstanceMethod);
3979
+ isInstanceMethod,
3980
+ /* CheckTheOther=*/ false );
3980
3981
3981
3982
// Check whether this method is in the class we care about.
3982
3983
SmallVector<AbstractFunctionDecl *, 4 > foundMethods;
@@ -4054,10 +4055,12 @@ void ClangModuleUnit::lookupObjCMethods(
4054
4055
auto &clangSema = owner.Impl .getClangSema ();
4055
4056
clangSema.CollectMultipleMethodsInGlobalPool (clangSelector,
4056
4057
objcMethods,
4057
- /* instance=*/ true );
4058
+ /* instance=*/ true ,
4059
+ /* CheckTheOther=*/ false );
4058
4060
clangSema.CollectMultipleMethodsInGlobalPool (clangSelector,
4059
4061
objcMethods,
4060
- /* instance=*/ false );
4062
+ /* instance=*/ false ,
4063
+ /* CheckTheOther=*/ false );
4061
4064
4062
4065
// Import the methods.
4063
4066
auto &clangCtx = clangSema.getASTContext ();
@@ -4102,7 +4105,7 @@ void ClangModuleUnit::collectLinkLibraries(
4102
4105
kind = LibraryKind::Framework;
4103
4106
else
4104
4107
kind = LibraryKind::Library;
4105
-
4108
+
4106
4109
callback (LinkLibrary (clangLinkLib.Library , kind));
4107
4110
}
4108
4111
}
@@ -4694,7 +4697,7 @@ EffectiveClangContext ClangImporter::Implementation::getEffectiveClangContext(
4694
4697
4695
4698
// / FIXME: Other type declarations should also be okay?
4696
4699
}
4697
- }
4700
+ }
4698
4701
}
4699
4702
4700
4703
return EffectiveClangContext ();
0 commit comments