@@ -90,10 +90,11 @@ class PlatformManager
9090 template <class > friend class Internal ::GenericThreadStackManagerImpl_OpenThread;
9191 template <class > friend class Internal ::GenericThreadStackManagerImpl_OpenThread_LwIP;
9292 template <class > friend class Internal ::GenericConfigurationManagerImpl;
93- friend ::nl::Weave::System::Error ::nl::Weave::System::Platform::Layer::PostEvent (::nl::Weave::System::Layer & aLayer, void * aContext, ::nl::Weave::System::Object & aTarget, ::nl::Weave::System::EventType aType, uintptr_t aArgument);
94- friend ::nl::Weave::System::Error ::nl::Weave::System::Platform::Layer::DispatchEvents (::nl::Weave::System::Layer & aLayer, void * aContext);
95- friend ::nl::Weave::System::Error ::nl::Weave::System::Platform::Layer::DispatchEvent (::nl::Weave::System::Layer & aLayer, void * aContext, ::nl::Weave::System::Event aEvent);
96- friend ::nl::Weave::System::Error ::nl::Weave::System::Platform::Layer::StartTimer (::nl::Weave::System::Layer & aLayer, void * aContext, uint32_t aMilliseconds);
93+ // Parentheses used to fix clang parsing issue with these declarations
94+ friend ::nl::Weave::System::Error (::nl::Weave::System::Platform::Layer::PostEvent(::nl::Weave::System::Layer & aLayer, void * aContext, ::nl::Weave::System::Object & aTarget, ::nl::Weave::System::EventType aType, uintptr_t aArgument));
95+ friend ::nl::Weave::System::Error (::nl::Weave::System::Platform::Layer::DispatchEvents(::nl::Weave::System::Layer & aLayer, void * aContext));
96+ friend ::nl::Weave::System::Error (::nl::Weave::System::Platform::Layer::DispatchEvent(::nl::Weave::System::Layer & aLayer, void * aContext, ::nl::Weave::System::Event aEvent));
97+ friend ::nl::Weave::System::Error (::nl::Weave::System::Platform::Layer::StartTimer(::nl::Weave::System::Layer & aLayer, void * aContext, uint32_t aMilliseconds));
9798
9899 void PostEvent (const WeaveDeviceEvent * event);
99100 void DispatchEvent (const WeaveDeviceEvent * event);
0 commit comments