|
NAMEBear - a tool to generate compilation database for Clang tooling.SYNOPSISbear [options] -- [build command]DESCRIPTIONThe JSON compilation database <http://clang.llvm.org/docs/JSONCompilationDatabase.html> is used in Clang project to provide information how a single compilation unit was processed. When that is available then it is easy to re-run the compilation with different programs.Bear executes the original build command and intercept the command executions issued by the build tool. From the log of command executions it tries to identify the compiler calls and creates the final compilation database. OPTIONS
OUTPUTThe JSON compilation database definition changed over time. The current version of Bear generates entries where:
CONFIG FILERead citnames man page for the content of this file. bear is not reading the content of this file, but passing the file name to citnames.EXIT STATUSThe exit status of the program is the exit status of the build command. Except when the program itself crashes, then it sets to non-zero.TROUBLESHOOTINGThe potential problems you can face with are: the build with and without Bear behaves differently or the output is empty.The most common cause for empty outputs is that the build command did not execute any commands. The reason for that could be, because incremental builds not running the compilers if everything is up-to-date. Remember, Bear does not understand the build file (eg.: makefile), but intercepts the executed commands. The other common cause for empty output is that the build has a “configure” step, which captures the compiler to build the project. In case of Bear is using the wrapper mode (read intercept man page), it needs to run the configure step with Bear too (and discard that output), before run the build with Bear. There could be many reasons for any of these failures. It’s better to consult with the project wiki page for known problems, before open a bug report. SEE ALSOintercept(1), citnames(1)COPYRIGHTCopyright (C) 2012-2022 by László Nagy <https://github.com/rizsotto/Bear>AUTHORSLászló Nagy.
Visit the GSP FreeBSD Man Page Interface. |