Rewrite a correct use of "&" -- conjunction without short-circuiting --
from a recent patch into multiple lines so that clang doesn't warn
about it.
}
bool ExpressionAnalyzer::CheckDataRef(const DataRef &dataRef) {
- // '&' here prevents short-circuiting
- return CheckRanks(dataRef) & CheckPolymorphic(dataRef);
+ // Always check both, don't short-circuit
+ bool ranksOk{CheckRanks(dataRef)};
+ bool polyOk{CheckPolymorphic(dataRef)};
+ return ranksOk && polyOk;
}
// Parse tree correction after a substring S(j:k) was misparsed as an