Skip to content

Minor Import Guard issue #857

Open
Open
@waveman68

Description

Description

In some format checkers, the code below creates a warning, since it doesn’t adhere to general import guard guidelines.

Steps to reproduce

#define DOCTEST_PLATFORM_LINUX
#endif // DOCTEST_PLATFORM

Simple fix (since it is a chain of ifdef-elif-else:

#define DOCTEST_PLATFORM_LINUX
#endif // __MAC_OS_X_VERSION_MIN_REQUIRED

Extra information

  • doctest version: v2.4.11
  • Operating System: macOS Sonoma 14.5
  • Compiler+version: clang++, Apple clang version 15.0.0 (clang-1500.3.9.4)

Metadata

Assignees

No one assigned

    Labels

    incomplete/needs-MREThe issue is missing a minimal reproducible example illustrating what the issue is

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions