rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.83k stars 313 forks source link

Patch in order citnames make atomic write #513

Closed asierllano closed 1 year ago

asierllano commented 1 year ago

If the citnames process is stopped during the serialization, the output can be corrupted. Rename-overwrite operation makes the process atomic.

Bear-3.0.21-citnames-atomic-write.patch

rizsotto commented 1 year ago

Thanks @asierllano , I moved this logic into the citnames application instead, but does the same as your solution was doing. Will be released as 3.1.1.