Single-Source

Patrick Venture venture at google.com
Thu Aug 30 05:23:06 AEST 2018


On Wed, Aug 29, 2018 at 11:26 AM Ed Tanous <ed.tanous at intel.com> wrote:
>
> > still different to read every repo.  Of course, the clang-format
> > doesn't do variables names (right?)
>
> clang-format can't do variable renames, but clang-tidy can.
>
> I've been experimenting with it a bit, and it seems to work pretty well,
> but requires a lot more work than clang-format to get set up on a given
> repo.  Right now I'm using the CMAKE_EXPORT_COMPILE_COMMANDS flag to
> generate the metadata that it needs to run.  At some point, I want to
> look into doing that automatically in the build scripts, but I'm not
> there yet.
>
> A .clang-tidy file that approximates the OpenBMC style guides naming
> standard is here:
> https://github.com/openbmc/bmcweb/blob/master/.clang-tidy

Cool.


More information about the openbmc mailing list