Symbol visibility tests

This commit is contained in:
2024-05-10 13:47:37 -07:00
parent f5920ba6c7
commit ba2b76cb13
11 changed files with 185 additions and 13 deletions

View File

@@ -460,7 +460,7 @@ private:
int searchPathSize_;
};
struct VersionedMap::Impl {
struct __attribute__((__visibility__("hidden"))) VersionedMap::Impl {
// The last node is allowed to be 0, in which case this is the search path of
// where an entry would exist
@@ -1174,13 +1174,13 @@ int64_t VersionedMap::getBytes() const { return impl->getBytes(); }
// GCOVR_EXCL_START
void VersionedMap::Impl::printInOrder(int64_t version) {
inline void VersionedMap::Impl::printInOrder(int64_t version) {
printInOrderHelper(version,
roots.getThreadSafeHandle().rootForVersion(version), 0);
}
void VersionedMap::Impl::printInOrderHelper(int64_t version, uint32_t node,
int depth) {
inline void VersionedMap::Impl::printInOrderHelper(int64_t version,
uint32_t node, int depth) {
if (node == 0) {
return;
}