|
1 | 1 | .\" Automatically generated by Pandoc 2.9.2.1 |
2 | 2 | .\" |
3 | | -.TH "BEAR" "1" "May 10, 2019" "Bear User Manuals" "" |
| 3 | +.TH "BEAR" "1" "Sep 04, 2021" "Bear User Manuals" "" |
4 | 4 | .hy |
5 | 5 | .SH NAME |
6 | 6 | .PP |
7 | | -Bear - Build EAR |
| 7 | +Bear - a tool to generate compilation database for Clang tooling. |
8 | 8 | .SH SYNOPSIS |
9 | 9 | .PP |
10 | 10 | bear [\f[I]options\f[R]] -- [\f[I]build command\f[R]] |
11 | 11 | .SH DESCRIPTION |
12 | 12 | .PP |
13 | | -Bear is a tool to generate compilation database for clang tooling. |
14 | | -.PP |
15 | 13 | The JSON compilation database |
16 | 14 | <http://clang.llvm.org/docs/JSONCompilationDatabase.html> is used in |
17 | 15 | Clang project to provide information how a single compilation unit was |
@@ -84,7 +82,29 @@ file name to \f[C]citnames\f[R]. |
84 | 82 | .SH EXIT STATUS |
85 | 83 | .PP |
86 | 84 | The exit status of the program is the exit status of the build command. |
87 | | -Except when the program itself crashes, then it sets to non zero. |
| 85 | +Except when the program itself crashes, then it sets to non-zero. |
| 86 | +.SH TROUBLESHOOTING |
| 87 | +.PP |
| 88 | +The potential problems you can face with are: the build with and without |
| 89 | +Bear behaves differently or the output is empty. |
| 90 | +.PP |
| 91 | +The most common cause for empty outputs is that the build command did |
| 92 | +not execute any commands. |
| 93 | +The reason for that could be, because incremental builds not running the |
| 94 | +compilers if everything is up-to-date. |
| 95 | +Remember, Bear does not understand the build file (eg.: makefile), but |
| 96 | +intercepts the executed commands. |
| 97 | +.PP |
| 98 | +The other common cause for empty output is that the build has a |
| 99 | +\[lq]configure\[rq] step, which captures the compiler to build the |
| 100 | +project. |
| 101 | +In case of Bear is using the \f[I]wrapper\f[R] mode (read |
| 102 | +\f[C]intercept\f[R] man page), it needs to run the configure step with |
| 103 | +Bear too (and discard that output), before run the build with Bear. |
| 104 | +.PP |
| 105 | +There could be many reasons for any of these failures. |
| 106 | +It\[cq]s better to consult with the project wiki page for known |
| 107 | +problems, before open a bug report. |
88 | 108 | .SH SEE ALSO |
89 | 109 | .PP |
90 | 110 | intercept(1), citnames(1) |
|
0 commit comments