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

Clang-tidy raises a warning in msgpack's source code. #109

Open
LinZhihao-723 opened this issue Jan 5, 2025 · 0 comments
Open

Clang-tidy raises a warning in msgpack's source code. #109

LinZhihao-723 opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@LinZhihao-723
Copy link
Member

Bug

Clang-tidy raises the following warning on msgpack's source code:

/home/lzh/clp-ffi-py/clp-ffi-py/src/msgpack/include/msgpack/v1/detail/cpp11_zone.hpp:197:9: error: Attempt to free released memory [clang-analyzer-cplusplus.NewDelete,-warnings-as-errors]                                                               
197 |         ::free(p);                                                                                                        
    |         ^      

This warning is out of the scope of this project. It might be caused by this clang-tidy bug: llvm/llvm-project#119415

clp-ffi-py version

0ace191

Environment

Ubuntu 22.04
Python 3.10
clang-tidy 19.1.0

Reproduction steps

  • Please make sure the linting env have been set up.
  • Manually running clang-tidy with the following command: clang-tidy -p $BUILD_DIR/compile_commands.json src/clp_ffi_py/ir/native/PyKeyValuePairLogEvent.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant