https://github.com/rizsotto/Bear Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} rizsotto / Bear Public * * Notifications You must be signed in to change notification settings * Fork 315 * Star 4.9k Bear is a tool that generates a compilation database for clang tooling. License GPL-3.0 license 4.9k stars 315 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 35 * Pull requests 6 * Discussions * Actions * Projects 0 * Wiki * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Wiki * Security * Insights rizsotto/Bear This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 1,192 Commits .github .github rust rust source source test test third_party third_party .gitignore .gitignore CMakeLists.txt CMakeLists.txt CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTING.md COPYING COPYING INSTALL.md INSTALL.md README.md README.md View all files Repository files navigation * README * Code of conduct * GPL-3.0 license Packaging status GitHub release GitHub Release Date Continuous Integration Contributors Gitter ?**? Build EAR Bear is a tool that generates a compilation database for clang tooling. The JSON compilation database is used in the clang project to provide information on how a single compilation unit is processed. With this, it is easy to re-run the compilation with alternate programs. Some build system natively supports the generation of JSON compilation database. For projects which does not use such build tool, Bear generates the JSON file during the build process. How to install Bear is packaged for many distributions. Check out your package manager. Or build it from source. How to use After installation the usage is like this: bear -- The output file called compile_commands.json is saved in the current directory. For more options you can check the man page or pass --help parameter. Note that if you want to pass parameter to Bear, pass those before the -- sign, everything after that will be the build command. Please be aware that some package manager still ship our old 2.4.x release. In that case please omit the extra -- sign or consult your local documentation. For more, read the man pages or wiki of the project, which talks about limitations, known issues and platform specific usage. Problem reports Before you open a new problem report, please look at the wiki if your problem is a known one with documented workaround. It's also helpful to look at older (maybe closed) issues before you open a new one. If you decided to report a problem, try to give as much context as it would help me to reproduce the error you see. If you just have a question about the usage, please don't be shy, ask your question in an issue or in chat. If you found a bug, but also found a fix for it, please share it with me and open a pull request. Please follow the contribution guide when you do these. --------------------------------------------------------------------- Thanks to JetBrains for donating product licenses to help develop Bear About Bear is a tool that generates a compilation database for clang tooling. Topics clang build-tool build-system compilation-database Resources Readme License GPL-3.0 license Code of conduct Code of conduct Activity Stars 4.9k stars Watchers 61 watching Forks 315 forks Report repository Releases 36 3.1.5 Latest Sep 26, 2024 + 35 releases Sponsor this project Sponsor Learn more about GitHub Sponsors Contributors 57 * @rizsotto * @breser * @sebastinas * @samu698 * @SpecLad * @nweston * @drbeco * @mamaria-k * @EdwardBetts * @smmckay * @dmitris * @Moisan * @tchaikov * @kljohann + 43 contributors Languages * C++ 65.1% * Rust 18.7% * Shell 6.5% * CMake 3.8% * C 3.0% * Roff 1.8% * Other 1.1% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.