• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H14-Nov-2021-11695

source/H03-May-2022-14,1689,439

test/H03-May-2022-2,8151,597

third_party/H03-May-2022-

.gitignoreH A D14-Nov-202177 87

CODE_OF_CONDUCT.mdH A D14-Nov-20215.1 KiB8749

CONTRIBUTING.mdH A D14-Nov-20211.3 KiB3015

COPYINGH A D14-Nov-202134.3 KiB675553

INSTALL.mdH A D14-Nov-20214.3 KiB11278

README.mdH A D14-Nov-20212.9 KiB7149

README.md

1[![Packaging status](https://repology.org/badge/tiny-repos/bear.svg)](https://repology.org/project/bear/versions)
2[![GitHub release](https://img.shields.io/github/release/rizsotto/Bear)](https://github.com/rizsotto/Bear/releases)
3[![GitHub Release Date](https://img.shields.io/github/release-date/rizsotto/Bear)](https://github.com/rizsotto/Bear/releases)
4[![Continuous Integration](https://github.com/rizsotto/Bear/workflows/continuous%20integration/badge.svg)](https://github.com/rizsotto/Bear/actions)
5[![Contributors](https://img.shields.io/github/contributors/rizsotto/Bear)](https://github.com/rizsotto/Bear/graphs/contributors)
6[![Gitter](https://img.shields.io/gitter/room/rizsotto/Bear)](https://gitter.im/rizsotto/Bear)
7
8ʕ·ᴥ·ʔ Build EAR
9===============
10
11Bear is a tool that generates a compilation database for clang tooling.
12
13The [JSON compilation database][JSONCDB] is used in the clang project
14to provide information on how a single compilation unit is processed.
15With this, it is easy to re-run the compilation with alternate programs.
16
17Some build system natively supports the generation of JSON compilation
18database. For projects which does not use such build tool, Bear generates
19the JSON file during the build process.
20
21  [JSONCDB]: http://clang.llvm.org/docs/JSONCompilationDatabase.html
22
23How to install
24--------------
25
26Bear is [packaged](https://repology.org/project/bear/versions) for many
27distributions. Check out your package manager. Or [build it](INSTALL.md)
28from source.
29
30How to use
31----------
32
33After installation the usage is like this:
34
35    bear -- <your-build-command>
36
37The output file called `compile_commands.json` is saved in the current directory.
38
39For more options you can check the man page or pass `--help` parameter. Note
40that if you want to pass parameter to Bear, pass those _before_ the `--` sign,
41everything after that will be the build command.
42
43For more, read the man pages or [wiki][WIKI] of the project, which talks about
44limitations, known issues and platform specific usage.
45
46Problem reports
47---------------
48
49Before you open a new problem report, please look at the [wiki][WIKI] if your
50problem is a known one with documented workaround. It's also helpful to look
51at older (maybe closed) [issues][ISSUES] before you open a new one.
52
53If you decided to report a problem, try to give as much context as it would
54help me to reproduce the error you see. If you just have a question about the
55usage, please don't be shy, ask your question in an issue or in [chat][CHAT].
56
57If you found a bug, but also found a fix for it, please share it with me and
58open a pull request.
59
60Please follow the [contribution guide][GUIDE] when you do these.
61
62  [ISSUES]: https://github.com/rizsotto/Bear/issues
63  [WIKI]: https://github.com/rizsotto/Bear/wiki
64  [CHAT]: https://gitter.im/rizsotto/Bear
65  [GUIDE]: https://github.com/rizsotto/Bear/blob/master/CONTRIBUTING.md
66
67---
68
69Thanks to [JetBrains](https://www.jetbrains.com/?from=Bear)
70for donating product licenses to help develop Bear
71