We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feaf651 commit e847c47Copy full SHA for e847c47
clang/lib/Sema/SemaOverload.cpp
@@ -6941,9 +6941,9 @@ void Sema::AddOverloadCandidate(
6941
/// Inline functions with internal linkage are a common pattern in headers
6942
/// to avoid ODR issues.
6943
const bool IsInlineFunctionInGMF =
6944
- Function->getOwningModule() &&
6945
- Function->getOwningModule()->isGlobalModule() &&
6946
- (IsImplicitlyInstantiated || Function->isInlined());
+ Function->getOwningModule() &&
+ Function->getOwningModule()->isGlobalModule() &&
+ (IsImplicitlyInstantiated || Function->isInlined());
6947
6948
if (ND->getFormalLinkage() == Linkage::Internal && !IsInlineFunctionInGMF) {
6949
Candidate.Viable = false;
0 commit comments