Hello,
I tried to use the new feature sonar-resolve, but it semmes it is ignored by SonarCloud.
Here is the code:
DerivedClass* ContourSetPipelineManager::CreateDerivedClass( BaseClass* const parent )
{
// std::make_unique_ptr<> cannot access to the private constructor of DerivedClass, and so cannot be used
std::unique_ptr<BaseClass> object{
new DerivedClass( parent ) }; // sonar-resolve cpp:S984, cpp:S025 "See comment above"
DerivedClass* const result = static_cast<DerivedClass*>( object.get() );
CreateBasedClassPipeline( std::move( object ), parent );
return result;
}
I get an issue cpp:S984 on the line with the new.