Skip to content

Clang-tidy warning: Variable 'autoRegistrar12' is non-const and globally accessible #2582

@jan-revay

Description

@jan-revay

Describe the bug
Clang-tidy warning:
"Variable 'autoRegistrar12' is non-const and globally accessible, consider making it const clang-tidy(cppcoreguidelines-avoid-non-const-global-variables)"

Reproduction steps
Run clang-tidy-14 on any Catch2 source file with at least 2 scenarios.

Platform information:

  • OS: Linux
  • Compiler+version: clang-tidy-14
  • Catch version: v3.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions