Browse Source

Exclude debug operators from code coverage.

pull/165/merge
Vladimír Vondruš 10 years ago
parent
commit
771b4d517a
  1. 26
      src/Magnum/Attribute.cpp
  2. 2
      src/Magnum/Audio/Buffer.cpp
  3. 2
      src/Magnum/Audio/Context.cpp
  4. 4
      src/Magnum/Audio/Renderer.cpp
  5. 2
      src/Magnum/Audio/Source.cpp
  6. 2
      src/Magnum/Buffer.cpp
  7. 2
      src/Magnum/Context.cpp
  8. 8
      src/Magnum/DebugOutput.cpp
  9. 2
      src/Magnum/DefaultFramebuffer.cpp
  10. 2
      src/Magnum/Framebuffer.cpp
  11. 4
      src/Magnum/Mesh.cpp
  12. 6
      src/Magnum/PixelFormat.cpp
  13. 6
      src/Magnum/Renderer.cpp
  14. 2
      src/Magnum/Resource.cpp
  15. 12
      src/Magnum/Sampler.cpp
  16. 2
      src/Magnum/SceneGraph/Animable.cpp
  17. 2
      src/Magnum/Shader.cpp
  18. 4
      src/Magnum/Shapes/shapeImplementation.cpp
  19. 2
      src/Magnum/Trade/AbstractMaterialData.cpp
  20. 2
      src/Magnum/Trade/ObjectData2D.cpp
  21. 2
      src/Magnum/Trade/ObjectData3D.cpp
  22. 2
      src/Magnum/Trade/TextureData.cpp
  23. 2
      src/Magnum/Version.cpp

26
src/Magnum/Attribute.cpp

@ -141,8 +141,10 @@ UnsignedInt Attribute<Math::Vector<4, Float>>::size(GLint components, DataType d
Debug& operator<<(Debug& debug, SizedAttribute<1, 1>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedAttribute<1, 1>::Components::One:
return debug << "Attribute::Components::One";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -150,10 +152,12 @@ Debug& operator<<(Debug& debug, SizedAttribute<1, 1>::Components value) {
Debug& operator<<(Debug& debug, SizedAttribute<1, 2>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedAttribute<1, 2>::Components::One:
return debug << "Attribute::Components::One";
case SizedAttribute<1, 2>::Components::Two:
return debug << "Attribute::Components::Two";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -161,12 +165,14 @@ Debug& operator<<(Debug& debug, SizedAttribute<1, 2>::Components value) {
Debug& operator<<(Debug& debug, SizedAttribute<1, 3>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedAttribute<1, 3>::Components::One:
return debug << "Attribute::Components::One";
case SizedAttribute<1, 3>::Components::Two:
return debug << "Attribute::Components::Two";
case SizedAttribute<1, 3>::Components::Three:
return debug << "Attribute::Components::Three";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -174,6 +180,7 @@ Debug& operator<<(Debug& debug, SizedAttribute<1, 3>::Components value) {
Debug& operator<<(Debug& debug, SizedAttribute<1, 4>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedAttribute<1, 4>::Components::One:
return debug << "Attribute::Components::One";
case SizedAttribute<1, 4>::Components::Two:
@ -182,6 +189,7 @@ Debug& operator<<(Debug& debug, SizedAttribute<1, 4>::Components value) {
return debug << "Attribute::Components::Three";
case SizedAttribute<1, 4>::Components::Four:
return debug << "Attribute::Components::Four";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -189,8 +197,10 @@ Debug& operator<<(Debug& debug, SizedAttribute<1, 4>::Components value) {
Debug& operator<<(Debug& debug, SizedMatrixAttribute<2>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedMatrixAttribute<2>::Components::Two:
return debug << "Attribute::Components::Two";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -198,8 +208,10 @@ Debug& operator<<(Debug& debug, SizedMatrixAttribute<2>::Components value) {
Debug& operator<<(Debug& debug, SizedMatrixAttribute<3>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedMatrixAttribute<3>::Components::Three:
return debug << "Attribute::Components::Three";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -207,8 +219,10 @@ Debug& operator<<(Debug& debug, SizedMatrixAttribute<3>::Components value) {
Debug& operator<<(Debug& debug, SizedMatrixAttribute<4>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case SizedMatrixAttribute<4>::Components::Four:
return debug << "Attribute::Components::Four";
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -216,6 +230,7 @@ Debug& operator<<(Debug& debug, SizedMatrixAttribute<4>::Components value) {
Debug& operator<<(Debug& debug, Attribute<Math::Vector<4, Float>>::Components value) {
switch(value) {
/* LCOV_EXCL_START */
case Attribute<Math::Vector<4, Float>>::Components::One:
return debug << "Attribute::Components::One";
case Attribute<Math::Vector<4, Float>>::Components::Two:
@ -228,6 +243,7 @@ Debug& operator<<(Debug& debug, Attribute<Math::Vector<4, Float>>::Components va
case Attribute<Math::Vector<4, Float>>::Components::BGRA:
return debug << "Attribute::Components::BGRA";
#endif
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::Components::(invalid)";
@ -235,6 +251,7 @@ Debug& operator<<(Debug& debug, Attribute<Math::Vector<4, Float>>::Components va
Debug& operator<<(Debug& debug, FloatAttribute::DataType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case FloatAttribute::DataType::value: return debug << "Attribute::DataType::" #value;
_c(UnsignedByte)
_c(Byte)
@ -248,6 +265,7 @@ Debug& operator<<(Debug& debug, FloatAttribute::DataType value) {
_c(Double)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::DataType::(invalid)";
@ -256,6 +274,7 @@ Debug& operator<<(Debug& debug, FloatAttribute::DataType value) {
#ifndef MAGNUM_TARGET_GLES2
Debug& operator<<(Debug& debug, IntAttribute::DataType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case IntAttribute::DataType::value: return debug << "Attribute::DataType::" #value;
_c(UnsignedByte)
_c(Byte)
@ -264,6 +283,7 @@ Debug& operator<<(Debug& debug, IntAttribute::DataType value) {
_c(UnsignedInt)
_c(Int)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::DataType::(invalid)";
@ -273,9 +293,11 @@ Debug& operator<<(Debug& debug, IntAttribute::DataType value) {
#ifndef MAGNUM_TARGET_GLES
Debug& operator<<(Debug& debug, DoubleAttribute::DataType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case DoubleAttribute::DataType::value: return debug << "Attribute::DataType::" #value;
_c(Double)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::DataType::(invalid)";
@ -284,6 +306,7 @@ Debug& operator<<(Debug& debug, DoubleAttribute::DataType value) {
Debug& operator<<(Debug& debug, Attribute<Math::Vector<3, Float>>::DataType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Attribute<Math::Vector<3, Float>>::DataType::value: return debug << "Attribute::DataType::" #value;
_c(UnsignedByte)
_c(Byte)
@ -298,6 +321,7 @@ Debug& operator<<(Debug& debug, Attribute<Math::Vector<3, Float>>::DataType valu
_c(UnsignedInt10f11f11fRev)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::DataType::(invalid)";
@ -305,6 +329,7 @@ Debug& operator<<(Debug& debug, Attribute<Math::Vector<3, Float>>::DataType valu
Debug& operator<<(Debug& debug, Attribute<Math::Vector<4, Float>>::DataType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Attribute<Math::Vector<4, Float>>::DataType::value: return debug << "Attribute::DataType::" #value;
_c(UnsignedByte)
_c(Byte)
@ -322,6 +347,7 @@ Debug& operator<<(Debug& debug, Attribute<Math::Vector<4, Float>>::DataType valu
_c(Int2101010Rev)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Attribute::DataType::(invalid)";

2
src/Magnum/Audio/Buffer.cpp

@ -31,6 +31,7 @@ namespace Magnum { namespace Audio {
Debug& operator<<(Debug& debug, const Buffer::Format value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Buffer::Format::value: return debug << "Audio::Buffer::Format::" #value;
_c(Mono8)
_c(Mono16)
@ -42,6 +43,7 @@ Debug& operator<<(Debug& debug, const Buffer::Format value) {
_c(MonoDouble)
_c(StereoDouble)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Audio::Buffer::Format::(invalid)";

2
src/Magnum/Audio/Context.cpp

@ -55,6 +55,7 @@ const std::vector<Extension>& Extension::extensions() {
Debug& operator<<(Debug& debug, const Context::HrtfStatus value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Context::HrtfStatus::value: return debug << "Audio::Context::HrtfStatus::" #value;
_c(Disabled)
_c(Enabled)
@ -63,6 +64,7 @@ Debug& operator<<(Debug& debug, const Context::HrtfStatus value) {
_c(Detected)
_c(UnsupportedFormat)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Audio::Context::HrtfStatus::(invalid)";

4
src/Magnum/Audio/Renderer.cpp

@ -31,6 +31,7 @@ namespace Magnum { namespace Audio {
Debug& operator<<(Debug& debug, const Renderer::Error value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Renderer::Error::value: return debug << "Audio::Renderer::Error::" #value;
_c(NoError)
_c(InvalidName)
@ -39,6 +40,7 @@ Debug& operator<<(Debug& debug, const Renderer::Error value) {
_c(InvalidOperation)
_c(OutOfMemory)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Audio::Renderer::Error::(invalid)";
@ -46,6 +48,7 @@ Debug& operator<<(Debug& debug, const Renderer::Error value) {
Debug& operator<<(Debug& debug, const Renderer::DistanceModel value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Renderer::DistanceModel::value: return debug << "Audio::Renderer::DistanceModel::" #value;
_c(None)
_c(Inverse)
@ -55,6 +58,7 @@ Debug& operator<<(Debug& debug, const Renderer::DistanceModel value) {
_c(Exponent)
_c(ExponentClamped)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Audio::Renderer::DistanceModel::(invalid)";

2
src/Magnum/Audio/Source.cpp

@ -98,12 +98,14 @@ void Source::rewind(const std::vector<std::reference_wrapper<Source>>& sources)
Debug& operator<<(Debug& debug, const Source::State value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Source::State::value: return debug << "Audio::Source::State::" #value;
_c(Initial)
_c(Playing)
_c(Paused)
_c(Stopped)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Audio::Source::State::(invalid)";

2
src/Magnum/Buffer.cpp

@ -624,6 +624,7 @@ bool Buffer::unmapImplementationDSAEXT() {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, Buffer::TargetHint value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Buffer::TargetHint::value: return debug << "Buffer::TargetHint::" #value;
_c(Array)
#ifndef MAGNUM_TARGET_GLES2
@ -653,6 +654,7 @@ Debug& operator<<(Debug& debug, Buffer::TargetHint value) {
_c(Uniform)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Buffer::TargetHint::(invalid)";

2
src/Magnum/Context.cpp

@ -830,6 +830,7 @@ void Context::resetState(const States states) {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const Context::Flag value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Context::Flag::value: return debug << "Context::Flag::" #value;
_c(Debug)
_c(NoError)
@ -837,6 +838,7 @@ Debug& operator<<(Debug& debug, const Context::Flag value) {
_c(RobustAccess)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Context::Flag::(invalid)";

8
src/Magnum/DebugOutput.cpp

@ -227,6 +227,7 @@ void DebugOutput::callbackImplementationKhr(const Callback callback, const void*
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const DebugOutput::Source value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case DebugOutput::Source::value: return debug << "DebugOutput::Source::" #value;
_c(Api)
_c(WindowSystem)
@ -235,6 +236,7 @@ Debug& operator<<(Debug& debug, const DebugOutput::Source value) {
_c(Application)
_c(Other)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "DebugOutput::Source::(invalid)";
@ -242,6 +244,7 @@ Debug& operator<<(Debug& debug, const DebugOutput::Source value) {
Debug& operator<<(Debug& debug, const DebugOutput::Type value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case DebugOutput::Type::value: return debug << "DebugOutput::Type::" #value;
_c(Error)
_c(DeprecatedBehavior)
@ -253,6 +256,7 @@ Debug& operator<<(Debug& debug, const DebugOutput::Type value) {
_c(PopGroup)
_c(Other)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "DebugOutput::Type::(invalid)";
@ -314,6 +318,7 @@ void DebugMessage::insertImplementationGremedy(Source, Type, UnsignedInt, DebugO
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const DebugMessage::Source value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case DebugMessage::Source::value: return debug << "DebugMessage::Source::" #value;
_c(ThirdParty)
_c(Application)
@ -325,6 +330,7 @@ Debug& operator<<(Debug& debug, const DebugMessage::Source value) {
case DebugMessage::Source::Other:
return debug << DebugOutput::Source(value);
#endif
/* LCOV_EXCL_STOP */
}
return debug << "DebugMessage::Source::(invalid)";
@ -426,10 +432,12 @@ void DebugGroup::popImplementationExt() {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const DebugGroup::Source value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case DebugGroup::Source::value: return debug << "DebugGroup::Source::" #value;
_c(ThirdParty)
_c(Application)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "DebugGroup::Source::(invalid)";

2
src/Magnum/DefaultFramebuffer.cpp

@ -117,12 +117,14 @@ void DefaultFramebuffer::initializeContextBasedFunctionality(Context& context) {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const DefaultFramebuffer::Status value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case DefaultFramebuffer::Status::value: return debug << "DefaultFramebuffer::Status::" #value;
_c(Complete)
#ifndef MAGNUM_TARGET_WEBGL
_c(Undefined)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "DefaultFramebuffer::Status::(invalid)";

2
src/Magnum/Framebuffer.cpp

@ -408,6 +408,7 @@ void Framebuffer::textureLayerImplementationDSAEXT(BufferAttachment attachment,
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const Framebuffer::Status value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Framebuffer::Status::value: return debug << "Framebuffer::Status::" #value;
_c(Complete)
_c(IncompleteAttachment)
@ -424,6 +425,7 @@ Debug& operator<<(Debug& debug, const Framebuffer::Status value) {
_c(IncompleteLayerTargets)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Framebuffer::Status::(invalid)";

4
src/Magnum/Mesh.cpp

@ -637,6 +637,7 @@ void Mesh::drawElementsInstancedImplementationNV(const GLsizei count, const GLin
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, MeshPrimitive value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case MeshPrimitive::value: return debug << "MeshPrimitive::" #value;
_c(Points)
_c(LineStrip)
@ -655,6 +656,7 @@ Debug& operator<<(Debug& debug, MeshPrimitive value) {
_c(Patches)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "MeshPrimitive::(invalid)";
@ -662,11 +664,13 @@ Debug& operator<<(Debug& debug, MeshPrimitive value) {
Debug& operator<<(Debug& debug, Mesh::IndexType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Mesh::IndexType::value: return debug << "Mesh::IndexType::" #value;
_c(UnsignedByte)
_c(UnsignedShort)
_c(UnsignedInt)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Mesh::IndexType::(invalid)";

6
src/Magnum/PixelFormat.cpp

@ -32,6 +32,7 @@ namespace Magnum {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const PixelFormat value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case PixelFormat::value: return debug << "PixelFormat::" #value;
#if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2))
_c(Red)
@ -77,6 +78,7 @@ Debug& operator<<(Debug& debug, const PixelFormat value) {
#endif
_c(DepthStencil)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "PixelFormat::(invalid)";
@ -84,6 +86,7 @@ Debug& operator<<(Debug& debug, const PixelFormat value) {
Debug& operator<<(Debug& debug, const PixelType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case PixelType::value: return debug << "PixelType::" #value;
_c(UnsignedByte)
#ifndef MAGNUM_TARGET_GLES2
@ -132,6 +135,7 @@ Debug& operator<<(Debug& debug, const PixelType value) {
_c(Float32UnsignedInt248Rev)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "PixelType::(invalid)";
@ -139,6 +143,7 @@ Debug& operator<<(Debug& debug, const PixelType value) {
Debug& operator<<(Debug& debug, const CompressedPixelFormat value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case CompressedPixelFormat::value: return debug << "CompressedPixelFormat::" #value;
#ifndef MAGNUM_TARGET_GLES
_c(Red)
@ -201,6 +206,7 @@ Debug& operator<<(Debug& debug, const CompressedPixelFormat value) {
_c(SRGB8Alpha8Astc12x12)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "CompressedPixelFormat::(invalid)";

6
src/Magnum/Renderer.cpp

@ -241,6 +241,7 @@ Renderer::GraphicsResetStatus Renderer::graphicsResetStatusImplementationRobustn
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const Renderer::Error value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Renderer::Error::value: return debug << "Renderer::Error::" #value;
_c(NoError)
_c(InvalidEnum)
@ -253,6 +254,7 @@ Debug& operator<<(Debug& debug, const Renderer::Error value) {
_c(StackOverflow)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Renderer::Error::(invalid)";
@ -261,10 +263,12 @@ Debug& operator<<(Debug& debug, const Renderer::Error value) {
#ifndef MAGNUM_TARGET_WEBGL
Debug& operator<<(Debug& debug, const Renderer::ResetNotificationStrategy value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Renderer::ResetNotificationStrategy::value: return debug << "Renderer::ResetNotificationStrategy::" #value;
_c(NoResetNotification)
_c(LoseContextOnReset)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Renderer::ResetNotificationStrategy::(invalid)";
@ -272,12 +276,14 @@ Debug& operator<<(Debug& debug, const Renderer::ResetNotificationStrategy value)
Debug& operator<<(Debug& debug, const Renderer::GraphicsResetStatus value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Renderer::GraphicsResetStatus::value: return debug << "Renderer::GraphicsResetStatus::" #value;
_c(NoError)
_c(GuiltyContextReset)
_c(InnocentContextReset)
_c(UnknownContextReset)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Renderer::ResetNotificationStrategy::(invalid)";

2
src/Magnum/Resource.cpp

@ -30,6 +30,7 @@ namespace Magnum {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const ResourceState value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case ResourceState::value: return debug << "ResourceState::" #value;
_c(NotLoaded)
_c(NotLoadedFallback)
@ -40,6 +41,7 @@ Debug& operator<<(Debug& debug, const ResourceState value) {
_c(Mutable)
_c(Final)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "ResourceState::(invalid)";

12
src/Magnum/Sampler.cpp

@ -63,10 +63,12 @@ Float Sampler::maxMaxAnisotropy() {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const Sampler::Filter value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Sampler::Filter::value: return debug << "Sampler::Filter::" #value;
_c(Nearest)
_c(Linear)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Sampler::Filter::(invalid)";
@ -74,11 +76,13 @@ Debug& operator<<(Debug& debug, const Sampler::Filter value) {
Debug& operator<<(Debug& debug, const Sampler::Mipmap value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Sampler::Mipmap::value: return debug << "Sampler::Mipmap::" #value;
_c(Base)
_c(Nearest)
_c(Linear)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Sampler::Mipmap::(invalid)";
@ -86,6 +90,7 @@ Debug& operator<<(Debug& debug, const Sampler::Mipmap value) {
Debug& operator<<(Debug& debug, const Sampler::Wrapping value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Sampler::Wrapping::value: return debug << "Sampler::Wrapping::" #value;
_c(Repeat)
_c(MirroredRepeat)
@ -97,6 +102,7 @@ Debug& operator<<(Debug& debug, const Sampler::Wrapping value) {
_c(MirrorClampToEdge)
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Sampler::Wrapping::(invalid)";
@ -105,10 +111,12 @@ Debug& operator<<(Debug& debug, const Sampler::Wrapping value) {
#if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2))
Debug& operator<<(Debug& debug, const Sampler::CompareMode value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Sampler::CompareMode::value: return debug << "Sampler::CompareMode::" #value;
_c(None)
_c(CompareRefToTexture)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Sampler::CompareFunction::(invalid)";
@ -116,6 +124,7 @@ Debug& operator<<(Debug& debug, const Sampler::CompareMode value) {
Debug& operator<<(Debug& debug, const Sampler::CompareFunction value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Sampler::CompareFunction::value: return debug << "Sampler::CompareFunction::" #value;
_c(Never)
_c(Always)
@ -126,6 +135,7 @@ Debug& operator<<(Debug& debug, const Sampler::CompareFunction value) {
_c(GreaterOrEqual)
_c(Greater)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Sampler::CompareFunction::(invalid)";
@ -135,10 +145,12 @@ Debug& operator<<(Debug& debug, const Sampler::CompareFunction value) {
#ifndef MAGNUM_TARGET_GLES
Debug& operator<<(Debug& debug, const Sampler::DepthStencilMode value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Sampler::DepthStencilMode::value: return debug << "Sampler::DepthStencilMode::" #value;
_c(DepthComponent)
_c(StencilIndex)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Sampler::DepthStencilMode::(invalid)";

2
src/Magnum/SceneGraph/Animable.cpp

@ -31,11 +31,13 @@ namespace Magnum { namespace SceneGraph {
Debug& operator<<(Debug& debug, AnimationState value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case AnimationState::value: return debug << "SceneGraph::AnimationState::" #value;
_c(Stopped)
_c(Paused)
_c(Running)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "SceneGraph::AnimationState::(invalid)";

2
src/Magnum/Shader.cpp

@ -892,6 +892,7 @@ bool Shader::compile(std::initializer_list<std::reference_wrapper<Shader>> shade
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const Shader::Type value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case Shader::Type::value: return debug << "Shader::Type::" #value;
_c(Vertex)
#if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL)
@ -902,6 +903,7 @@ Debug& operator<<(Debug& debug, const Shader::Type value) {
#endif
_c(Fragment)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Shader::Type::(invalid)";

4
src/Magnum/Shapes/shapeImplementation.cpp

@ -31,6 +31,7 @@ namespace Magnum { namespace Shapes { namespace Implementation {
Debug& operator<<(Debug& debug, ShapeDimensionTraits<2>::Type value) {
switch(value) {
/* LCOV_EXCL_START */
#define _val(value) case ShapeDimensionTraits<2>::Type::value: return debug << "Shapes::Shape2D::Type::" #value;
_val(Point)
_val(Line)
@ -43,6 +44,7 @@ Debug& operator<<(Debug& debug, ShapeDimensionTraits<2>::Type value) {
_val(Box)
_val(Composition)
#undef _val
/* LCOV_EXCL_STOP */
}
return debug << "Shapes::Shape2D::Type::(unknown)";
@ -50,6 +52,7 @@ Debug& operator<<(Debug& debug, ShapeDimensionTraits<2>::Type value) {
Debug& operator<<(Debug& debug, ShapeDimensionTraits<3>::Type value) {
switch(value) {
/* LCOV_EXCL_START */
#define _val(value) case ShapeDimensionTraits<3>::Type::value: return debug << "Shapes::Shape3D::Type::" #value;
_val(Point)
_val(Line)
@ -63,6 +66,7 @@ Debug& operator<<(Debug& debug, ShapeDimensionTraits<3>::Type value) {
_val(Plane)
_val(Composition)
#undef _val
/* LCOV_EXCL_STOP */
}
return debug << "Shapes::Shape3D::Type::(unknown)";

2
src/Magnum/Trade/AbstractMaterialData.cpp

@ -35,9 +35,11 @@ AbstractMaterialData::~AbstractMaterialData() {}
Debug& operator<<(Debug& debug, const MaterialType value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case MaterialType::value: return debug << "Trade::MaterialType::" #value;
_c(Phong)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Trade::MaterialType::(unknown)";

2
src/Magnum/Trade/ObjectData2D.cpp

@ -40,11 +40,13 @@ ObjectData2D& ObjectData2D::operator=(ObjectData2D&&) = default;
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, ObjectInstanceType2D value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case ObjectInstanceType2D::value: return debug << "Trade::ObjectInstanceType2D::" #value;
_c(Camera)
_c(Mesh)
_c(Empty)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Trade::ObjectInstanceType2D::(invalid)";

2
src/Magnum/Trade/ObjectData3D.cpp

@ -40,12 +40,14 @@ ObjectData3D& ObjectData3D::operator=(ObjectData3D&&) = default;
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, ObjectInstanceType3D value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case ObjectInstanceType3D::value: return debug << "Trade::ObjectInstanceType3D::" #value;
_c(Camera)
_c(Light)
_c(Mesh)
_c(Empty)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Trade::ObjectInstanceType3D::(invalid)";

2
src/Magnum/Trade/TextureData.cpp

@ -30,12 +30,14 @@ namespace Magnum { namespace Trade {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, const TextureData::Type value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value) case TextureData::Type::value: return debug << "Trade::TextureData::Type::" #value;
_c(Texture1D)
_c(Texture2D)
_c(Texture3D)
_c(Cube)
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Trade::TextureData::Type::(unknown)";

2
src/Magnum/Version.cpp

@ -32,6 +32,7 @@ namespace Magnum {
#ifndef DOXYGEN_GENERATING_OUTPUT
Debug& operator<<(Debug& debug, Version value) {
switch(value) {
/* LCOV_EXCL_START */
#define _c(value, string) case Version::value: return debug << string;
_c(None, "None")
#ifndef MAGNUM_TARGET_GLES
@ -56,6 +57,7 @@ Debug& operator<<(Debug& debug, Version value) {
_c(GLES310, "OpenGL ES 3.1")
#endif
#undef _c
/* LCOV_EXCL_STOP */
}
return debug << "Invalid";

Loading…
Cancel
Save