[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5625":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":33,"discoverSource":34},5625,"Bear","rizsotto\u002FBear","rizsotto","Bear is a tool that generates a compilation database for clang tooling.","",null,"Rust",6351,366,54,2,0,10,40,5,38.69,"GNU General Public License v3.0",false,"master",true,[26,27,28,29],"build-system","build-tool","clang","compilation-database","2026-06-12 02:01:13","[![Packaging status](https:\u002F\u002Frepology.org\u002Fbadge\u002Ftiny-repos\u002Fbear-clang.svg)](https:\u002F\u002Frepology.org\u002Fproject\u002Fbear-clang\u002Fversions)\n[![GitHub release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Frelease\u002Frizsotto\u002FBear)](https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Freleases)\n[![GitHub Release Date](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Frelease-date\u002Frizsotto\u002FBear)](https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Freleases)\n[![Continuous Integration](https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Fworkflows\u002Frust%20CI\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Factions)\n[![Contributors](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002Frizsotto\u002FBear)](https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Fgraphs\u002Fcontributors)\n[![Gitter](https:\u002F\u002Fimg.shields.io\u002Fgitter\u002Froom\u002Frizsotto\u002FBear)](https:\u002F\u002Fgitter.im\u002Frizsotto\u002FBear)\n\nʕ·ᴥ·ʔ Build EAR\n===============\n\nBear generates a compilation database for Clang tooling.\n\nThe [JSON compilation database][JSONCDB] describes how each translation unit\nis compiled. Clang-based tools use it to understand compiler flags, include\npaths, and other build settings.\n\nSome build systems can generate a JSON compilation database directly. For\nbuild systems that cannot, Bear captures compiler invocations during the\nbuild and writes the database for you.\n\n  [JSONCDB]: http:\u002F\u002Fclang.llvm.org\u002Fdocs\u002FJSONCompilationDatabase.html\n\nHow to install\n--------------\n\nBear is [packaged](https:\u002F\u002Frepology.org\u002Fproject\u002Fbear-clang\u002Fversions) for many\ndistributions. Check your distribution's package manager first. Alternatively,\nyou can [build it](INSTALL.md) from source.\n\nHow to use\n----------\n\nAfter installation, run:\n\n    bear -- \u003Cyour-build-command>\n\nBear writes `compile_commands.json` to the current working directory.\n\nFor more options, see the man page or run `bear --help`. Pass Bear’s own\noptions before `--`; everything after that is treated as part of the build command.\n\nPlease be aware that some package managers still ship the 2.4.x release. In\nthat case, please omit the extra `--` or consult your local documentation.\n\nFor more information, read the man pages or the project [wiki][WIKI], which\ntalks about limitations, known issues, and platform-specific usage.\n\nWhen to use Bear\n-----------------\n\nUse Bear when your build system does not natively support generating a\n[JSON compilation database][JSONCDB]. If your project already uses CMake, Meson,\nor Bazel, prefer the built-in compilation database export those tools provide;\nit is usually faster and more reliable.\n\nSupported platforms\n-------------------\n\nBear works on Linux, macOS, FreeBSD, OpenBSD, NetBSD, DragonFly BSD,\nand Windows.\n\nLimitations\n-----------\n\nBear works by intercepting compiler calls during a build. This means certain\nenvironments may need extra configuration — for example, macOS System\nIntegrity Protection (SIP) or sandboxed builds (Nix, Flatpak). See the\n[wiki][WIKI] for details and workarounds.\n\nProblem reports\n---------------\n\nBefore opening a new problem report, please check the [wiki][WIKI] to see if\nyour problem is a known issue with a documented workaround. It's also helpful\nto look at older (possibly closed) [issues][ISSUES] before opening a new one.\n\nIf you decide to report a problem, please provide as much context as possible\nto help reproduce the error. If you just have a question about usage, please\ndon't be shy; ask your question in an issue or in our [chat][CHAT].\n\nIf you've found a bug and have a fix for it, please share it by opening a pull\nrequest.\n\nPlease follow the [contribution guide][GUIDE] when you do.\n\n  [ISSUES]: https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Fissues\n  [WIKI]: https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Fwiki\n  [CHAT]: https:\u002F\u002Fgitter.im\u002Frizsotto\u002FBear\u002Fdiscussions\n  [GUIDE]: https:\u002F\u002Fgithub.com\u002Frizsotto\u002FBear\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md","Bear 是一个用于生成 Clang 工具链所需的编译数据库的工具。它通过拦截构建过程中的编译器调用，为那些不直接支持生成 JSON 编译数据库的构建系统提供了一个解决方案，从而帮助开发者更好地利用 Clang 基础的代码分析和重构工具。Bear 采用 Rust 语言编写，具有跨平台性，支持 Linux、macOS 以及多种 BSD 系统。此工具特别适用于使用自定义或较旧构建系统的项目，在这些情况下，CMake 或 Meson 等现代构建系统提供的内置功能可能不可用。","2026-06-11 03:04:24","top_language"]