Closed PwnVerse closed 3 months ago
Build checks have not completed. Possible reasons for this are:
bear
is a tool for generating compile_commands.json
files, which are mostly used for clang tooling such as the clang-tidy linter and the clangd language server. CMake can actually generate that file for you though, by passing -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
to the CMake command-line.
This issue was observed when attempting to compile the file
HeartRateController.cpp
as an individual object file with x86 gcc by usingcompile_commands.json
generated by runningbear
on the project's build command.Here is the error log -
Note that the issue does not occur when this file is compiled with
-std=c++17
. Nevertheless, the proposed patch fixes the issue from it's root cause by ensuringmin
andmax
are undefined before includingstdatomic