ΒΆinline clang::Linkage minLinkage(
clang::Linkage L1,
clang::Linkage L2)
inline clang::Linkage minLinkage(
clang::Linkage L1,
clang::Linkage L2)
Description
Compute the minimum linkage given two linkages. The linkage can be interpreted as a pair formed by the formal linkage and a boolean for external visibility. This is just what getFormalLinkage and isExternallyVisible return. We want the minimum of both components. The Linkage enum is defined in an order that makes this simple, we just need special cases for when VisibleNoLinkage would lose the visible bit and become NoLinkage.
Declared at: clang/include/clang/Basic/Linkage.h:120
Parameters
- clang::Linkage L1
- clang::Linkage L2