Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Import Guard issue #857

Open
waveman68 opened this issue May 28, 2024 · 0 comments
Open

Minor Import Guard issue #857

waveman68 opened this issue May 28, 2024 · 0 comments

Comments

@waveman68
Copy link

waveman68 commented May 28, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant