Skip to content

Fix clang-tidy issues - const correctness - misc-const-correctness #35

@eljonny

Description

@eljonny

There are locations in the code where a local or other-scoped object can and should be declared const.

/mnt/c/Users/user/Code/TestCPP/src/TestCPPAssertions.cpp:51:13: error: variable 'eptr' of type 'exception_ptr' can be declared 'const' [misc-const-correctness,-warnings-as-errors]
   51 |             exception_ptr eptr = current_exception();
      |             ^
      |                           const

Metadata

Metadata

Assignees

No one assigned

    Labels

    static-analysisAn issue related to a static analysis result

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions