diff --git a/src/Magnum/Attribute.cpp b/src/Magnum/Attribute.cpp index c3af6c051..901aa2c53 100644 --- a/src/Magnum/Attribute.cpp +++ b/src/Magnum/Attribute.cpp @@ -141,8 +141,10 @@ UnsignedInt Attribute>::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>::Components value) { switch(value) { + /* LCOV_EXCL_START */ case Attribute>::Components::One: return debug << "Attribute::Components::One"; case Attribute>::Components::Two: @@ -228,6 +243,7 @@ Debug& operator<<(Debug& debug, Attribute>::Components va case Attribute>::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>::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>::DataType value) { switch(value) { + /* LCOV_EXCL_START */ #define _c(value) case Attribute>::DataType::value: return debug << "Attribute::DataType::" #value; _c(UnsignedByte) _c(Byte) @@ -298,6 +321,7 @@ Debug& operator<<(Debug& debug, Attribute>::DataType valu _c(UnsignedInt10f11f11fRev) #endif #undef _c + /* LCOV_EXCL_STOP */ } return debug << "Attribute::DataType::(invalid)"; @@ -305,6 +329,7 @@ Debug& operator<<(Debug& debug, Attribute>::DataType valu Debug& operator<<(Debug& debug, Attribute>::DataType value) { switch(value) { + /* LCOV_EXCL_START */ #define _c(value) case Attribute>::DataType::value: return debug << "Attribute::DataType::" #value; _c(UnsignedByte) _c(Byte) @@ -322,6 +347,7 @@ Debug& operator<<(Debug& debug, Attribute>::DataType valu _c(Int2101010Rev) #endif #undef _c + /* LCOV_EXCL_STOP */ } return debug << "Attribute::DataType::(invalid)"; diff --git a/src/Magnum/Audio/Buffer.cpp b/src/Magnum/Audio/Buffer.cpp index cc1f00cde..8b0990d73 100644 --- a/src/Magnum/Audio/Buffer.cpp +++ b/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)"; diff --git a/src/Magnum/Audio/Context.cpp b/src/Magnum/Audio/Context.cpp index 70a331db2..44855aac5 100644 --- a/src/Magnum/Audio/Context.cpp +++ b/src/Magnum/Audio/Context.cpp @@ -55,6 +55,7 @@ const std::vector& 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)"; diff --git a/src/Magnum/Audio/Renderer.cpp b/src/Magnum/Audio/Renderer.cpp index db5fcee9b..afe320893 100644 --- a/src/Magnum/Audio/Renderer.cpp +++ b/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)"; diff --git a/src/Magnum/Audio/Source.cpp b/src/Magnum/Audio/Source.cpp index 7e47c1f5e..c659d6ab5 100644 --- a/src/Magnum/Audio/Source.cpp +++ b/src/Magnum/Audio/Source.cpp @@ -98,12 +98,14 @@ void Source::rewind(const std::vector>& 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)"; diff --git a/src/Magnum/Buffer.cpp b/src/Magnum/Buffer.cpp index 00a72cd83..b111181af 100644 --- a/src/Magnum/Buffer.cpp +++ b/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)"; diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index ed1c6e892..4d6095d23 100644 --- a/src/Magnum/Context.cpp +++ b/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)"; diff --git a/src/Magnum/DebugOutput.cpp b/src/Magnum/DebugOutput.cpp index f6cfe733e..a9e69bc3b 100644 --- a/src/Magnum/DebugOutput.cpp +++ b/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)"; diff --git a/src/Magnum/DefaultFramebuffer.cpp b/src/Magnum/DefaultFramebuffer.cpp index c8a148676..2f980fe47 100644 --- a/src/Magnum/DefaultFramebuffer.cpp +++ b/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)"; diff --git a/src/Magnum/Framebuffer.cpp b/src/Magnum/Framebuffer.cpp index 096e47620..7bc67dea3 100644 --- a/src/Magnum/Framebuffer.cpp +++ b/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)"; diff --git a/src/Magnum/Mesh.cpp b/src/Magnum/Mesh.cpp index 96631277f..b6799676c 100644 --- a/src/Magnum/Mesh.cpp +++ b/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)"; diff --git a/src/Magnum/PixelFormat.cpp b/src/Magnum/PixelFormat.cpp index 7059b7a38..4fe23e67a 100644 --- a/src/Magnum/PixelFormat.cpp +++ b/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)"; diff --git a/src/Magnum/Renderer.cpp b/src/Magnum/Renderer.cpp index ef9338896..0b1a7de29 100644 --- a/src/Magnum/Renderer.cpp +++ b/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)"; diff --git a/src/Magnum/Resource.cpp b/src/Magnum/Resource.cpp index 8106b18ed..5aac6adab 100644 --- a/src/Magnum/Resource.cpp +++ b/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)"; diff --git a/src/Magnum/Sampler.cpp b/src/Magnum/Sampler.cpp index e2a8fee14..fbf9e4740 100644 --- a/src/Magnum/Sampler.cpp +++ b/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)"; diff --git a/src/Magnum/SceneGraph/Animable.cpp b/src/Magnum/SceneGraph/Animable.cpp index 4ea4ce845..504f3079c 100644 --- a/src/Magnum/SceneGraph/Animable.cpp +++ b/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)"; diff --git a/src/Magnum/Shader.cpp b/src/Magnum/Shader.cpp index eba5bb1ad..e1435b542 100644 --- a/src/Magnum/Shader.cpp +++ b/src/Magnum/Shader.cpp @@ -892,6 +892,7 @@ bool Shader::compile(std::initializer_list> 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)"; diff --git a/src/Magnum/Shapes/shapeImplementation.cpp b/src/Magnum/Shapes/shapeImplementation.cpp index b2fc534df..f48741e4d 100644 --- a/src/Magnum/Shapes/shapeImplementation.cpp +++ b/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)"; diff --git a/src/Magnum/Trade/AbstractMaterialData.cpp b/src/Magnum/Trade/AbstractMaterialData.cpp index c60d10001..1e585630c 100644 --- a/src/Magnum/Trade/AbstractMaterialData.cpp +++ b/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)"; diff --git a/src/Magnum/Trade/ObjectData2D.cpp b/src/Magnum/Trade/ObjectData2D.cpp index 4ea19c029..7505e4528 100644 --- a/src/Magnum/Trade/ObjectData2D.cpp +++ b/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)"; diff --git a/src/Magnum/Trade/ObjectData3D.cpp b/src/Magnum/Trade/ObjectData3D.cpp index c0e0cfc94..c86829bc2 100644 --- a/src/Magnum/Trade/ObjectData3D.cpp +++ b/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)"; diff --git a/src/Magnum/Trade/TextureData.cpp b/src/Magnum/Trade/TextureData.cpp index d0be1a163..b646306b3 100644 --- a/src/Magnum/Trade/TextureData.cpp +++ b/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)"; diff --git a/src/Magnum/Version.cpp b/src/Magnum/Version.cpp index c0853dff7..43c42aa51 100644 --- a/src/Magnum/Version.cpp +++ b/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";