Skip to content

[clang-tidy] cert-err33-c false positive on user-defined function named timer #121607

@LegalizeAdulthood

Description

@LegalizeAdulthood
  1. git clone https://github.com/LegalizeAdulthood/iterated-dynamics
  2. git checkout 53c6c9909e2d2e320ccedc55e9ed2d59fbcb1705
  3. git submodule init
  4. git submodule update
  5. configure CMake project, optionally using the provided CMakePresets.json
  6. Browse to libid/bifurcation.cpp, line 471 on the call to the timer function
  7. IDEs (and presumably clang-tidy from the command-line) flag the call to timer as a cert-err33-c violation
  8. The documentation doesn't list the function timer as one that would be flagged by this check
  9. Even if a system function called timer (I couldn't find any such function) existed, if a user-defined overload is distinguished from the system function, then it still shouldn't be flagged as a violation.Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions