Skip to content

Commit ba4b173

Browse files
committed
documentation: update project's man pages
1 parent 427c7ee commit ba4b173

File tree

6 files changed

+76
-38
lines changed

6 files changed

+76
-38
lines changed

source/bear/man/bear.1

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
.\" Automatically generated by Pandoc 2.9.2.1
22
.\"
3-
.TH "BEAR" "1" "May 10, 2019" "Bear User Manuals" ""
3+
.TH "BEAR" "1" "Sep 04, 2021" "Bear User Manuals" ""
44
.hy
55
.SH NAME
66
.PP
7-
Bear - Build EAR
7+
Bear - a tool to generate compilation database for Clang tooling.
88
.SH SYNOPSIS
99
.PP
1010
bear [\f[I]options\f[R]] -- [\f[I]build command\f[R]]
1111
.SH DESCRIPTION
1212
.PP
13-
Bear is a tool to generate compilation database for clang tooling.
14-
.PP
1513
The JSON compilation database
1614
<http://clang.llvm.org/docs/JSONCompilationDatabase.html> is used in
1715
Clang project to provide information how a single compilation unit was
@@ -84,7 +82,29 @@ file name to \f[C]citnames\f[R].
8482
.SH EXIT STATUS
8583
.PP
8684
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.
88108
.SH SEE ALSO
89109
.PP
90110
intercept(1), citnames(1)

source/bear/man/bear.1.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
% BEAR(1) Bear User Manuals
22
% László Nagy
3-
% Dec 14, 2020
3+
% Sep 04, 2021
44

55
# NAME
66

7-
Bear - Build EAR
7+
Bear - a tool to generate compilation database for Clang tooling.
88

99
# SYNOPSIS
1010

1111
bear [*options*] \-\- [*build command*]
1212

1313
# DESCRIPTION
1414

15-
Bear is a tool to generate compilation database for clang tooling.
16-
1715
The JSON compilation database
1816
<http://clang.llvm.org/docs/JSONCompilationDatabase.html> is used in
1917
Clang project to provide information how a single compilation unit
@@ -79,13 +77,33 @@ version of Bear generates entries where:
7977

8078
# CONFIG FILE
8179

82-
Read `citnames` man page for the content of this file. `bear` is not reading the
83-
content of this file, but passing the file name to `citnames`.
80+
Read `citnames` man page for the content of this file. `bear` is not reading
81+
the content of this file, but passing the file name to `citnames`.
8482

8583
# EXIT STATUS
8684

8785
The exit status of the program is the exit status of the build command.
88-
Except when the program itself crashes, then it sets to non zero.
86+
Except when the program itself crashes, then it sets to non-zero.
87+
88+
# TROUBLESHOOTING
89+
90+
The potential problems you can face with are: the build with and without Bear
91+
behaves differently or the output is empty.
92+
93+
The most common cause for empty outputs is that the build command did not
94+
execute any commands. The reason for that could be, because incremental builds
95+
not running the compilers if everything is up-to-date. Remember, Bear does not
96+
understand the build file (eg.: makefile), but intercepts the executed
97+
commands.
98+
99+
The other common cause for empty output is that the build has a "configure"
100+
step, which captures the compiler to build the project. In case of Bear is
101+
using the _wrapper_ mode (read `intercept` man page), it needs to run the
102+
configure step with Bear too (and discard that output), before run the build
103+
with Bear.
104+
105+
There could be many reasons for any of these failures. It's better to consult
106+
with the project wiki page for known problems, before open a bug report.
89107

90108
# SEE ALSO
91109

source/citnames/man/citnames.1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.\" Automatically generated by Pandoc 2.9.2.1
22
.\"
3-
.TH "CITNAMES" "1" "Jun 19, 2021" "Bear User Manuals" ""
3+
.TH "CITNAMES" "1" "Sep 04, 2021" "Bear User Manuals" ""
44
.hy
55
.SH NAME
66
.PP
7-
citnames - Deduce command semantic
7+
citnames - deduce command semantic
88
.SH SYNOPSIS
99
.PP
1010
citnames [\f[I]options\f[R]] --input <file> --output <file>
@@ -65,15 +65,15 @@ The configuration file captures how the output should be formatted and
6565
which entries it shall contain.
6666
.SH EXIT STATUS
6767
.PP
68-
Citnames exit status is non zero in case of IO problems, otherwise
68+
Citnames exit status is non-zero in case of IO problems, otherwise
6969
it\[cq]s zero.
70-
The exit status is independent from how many command it recognized or
71-
was it recognized at all.
70+
The exit status is independent of how many command it recognized or was
71+
it recognized at all.
7272
.SH OBSERVABILITY
7373
.PP
7474
Any insight about the command recognition logic can be observed with
7575
\f[C]--verbose\f[R] flag on the standard error.
76-
Otherwise the command is silent.
76+
Otherwise, the command is silent.
7777
.SH INPUT FILE
7878
.PP
7979
It\[cq]s a JSON file, with the command execution history.
@@ -85,7 +85,7 @@ Read more about the syntax of the file in the \f[C]intercept\f[R] man
8585
page.
8686
.SH OUTPUT FILE
8787
.PP
88-
Currently the only output format is the JSON compilation database.
88+
Currently, the only output format is the JSON compilation database.
8989
Read more about the syntax of that in the \f[C]bear\f[R] man page.
9090
.SH CONFIG FILE
9191
.PP

source/citnames/man/citnames.1.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
% CITNAMES(1) Bear User Manuals
22
% László Nagy
3-
% Jun 19, 2021
3+
% Sep 04, 2021
44

55
# NAME
66

7-
citnames - Deduce command semantic
7+
citnames - deduce command semantic
88

99
# SYNOPSIS
1010

@@ -61,14 +61,14 @@ is currently the only output of the tool.)
6161

6262
# EXIT STATUS
6363

64-
Citnames exit status is non zero in case of IO problems, otherwise it's zero.
65-
The exit status is independent from how many command it recognized or was
64+
Citnames exit status is non-zero in case of IO problems, otherwise it's zero.
65+
The exit status is independent of how many command it recognized or was
6666
it recognized at all.
6767

6868
# OBSERVABILITY
6969

7070
Any insight about the command recognition logic can be observed with `--verbose`
71-
flag on the standard error. Otherwise the command is silent.
71+
flag on the standard error. Otherwise, the command is silent.
7272

7373
# INPUT FILE
7474

@@ -81,7 +81,7 @@ Read more about the syntax of the file in the `intercept` man page.
8181

8282
# OUTPUT FILE
8383

84-
Currently the only output format is the JSON compilation database.
84+
Currently, the only output format is the JSON compilation database.
8585
Read more about the syntax of that in the `bear` man page.
8686

8787
# CONFIG FILE

source/intercept/man/intercept.1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 2.9.2.1
22
.\"
3-
.TH "INTERCEPT" "1" "Jul 11, 2021" "Bear User Manuals" ""
3+
.TH "INTERCEPT" "1" "Sep 04, 2021" "Bear User Manuals" ""
44
.hy
55
.SH NAME
66
.PP
@@ -79,16 +79,16 @@ the interception behaves differently (eg.: the build crash with the
7979
The output is empty, and it failed to intercept the children process
8080
execution by the build command.
8181
.PP
82-
There could be many reasons for any of these failures.
83-
It\[cq]s better to consult with the project wiki page for known
84-
problems, before open a bug report.
85-
.PP
8682
The most common cause for empty outputs is that the build command did
8783
not execute any commands.
8884
The reason for that could be, because incremental builds not running the
89-
compilers if everything is up to date.
90-
Remember, \f[C]intercept\f[R] is not understanding the build file (eg.:
85+
compilers if everything is up-to-date.
86+
Remember, \f[C]intercept\f[R] does not understand the build file (eg.:
9187
makefile), but intercepts the executed commands.
88+
.PP
89+
There could be many reasons for any of these failures.
90+
It\[cq]s better to consult with the project wiki page for known
91+
problems, before open a bug report.
9292
.SH SEE ALSO
9393
.PP
9494
bear(1)

source/intercept/man/intercept.1.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% INTERCEPT(1) Bear User Manuals
22
% László Nagy
3-
% Jul 11, 2021
3+
% Sep 04, 2021
44

55
# NAME
66

@@ -78,15 +78,15 @@ interception behaves differently (eg.: the build crash with the `intercept`
7878
tool, but succeed otherwise). The output is empty, and it failed to intercept
7979
the children process execution by the build command.
8080

81-
There could be many reasons for any of these failures. It's better to consult
82-
with the project wiki page for known problems, before open a bug report.
83-
8481
The most common cause for empty outputs is that the build command did not
8582
execute any commands. The reason for that could be, because incremental builds
86-
not running the compilers if everything is up to date. Remember, `intercept`
87-
is not understanding the build file (eg.: makefile), but intercepts the executed
83+
not running the compilers if everything is up-to-date. Remember, `intercept`
84+
does not understand the build file (eg.: makefile), but intercepts the executed
8885
commands.
8986

87+
There could be many reasons for any of these failures. It's better to consult
88+
with the project wiki page for known problems, before open a bug report.
89+
9090
# SEE ALSO
9191

9292
bear(1)

0 commit comments

Comments
 (0)