> On March 19, 2018, 1:35 p.m., Benjamin Bannier wrote: > > I am not convinced that this tool will be much more useful than e.g., the > > existing `support/mesos-tidy.sh`. While being able to generate compilation > > databases and generating prerequisites is great, this tool e.g., would not > > enforce a proper header filter which would only diagnose cpp files for the > > uninitiated. Would the idea be to increase mesos-tidy coverage by having it > > run outside of the one docker environment `mesos-tidy.sh` provides? > > Michael Park wrote: > > would not enforce a proper header filter which would only diagnose cpp > files for the uninitiated > Hm, there's a `-header-filter` flag as well as `files` positional > argument. I don't think I fully > understand what you're referring to here. Could you elaborate? > > > Would the idea be to increase mesos-tidy coverage by having it run > outside of the one docker environment mesos-tidy.sh provides? > There are 2 things: > - Using an existing compilation database > - The ability to apply fix-its > > Do you feel that it'd be easy to have the current `mesos-tidy.sh` setup > support both scenarios?
I personally feel that generating the compilation database isn't too much of a hassle anymore with cmake (sadly still has incomplete coverage); this might only need minor doc updates. Regarding fixits, we should be able to just ship a stock `run-clang-tidy.py` with the tools which we could then point to our custom `clang-tidy`. - Benjamin ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/66115/#review199409 ----------------------------------------------------------- On March 16, 2018, 11:57 a.m., Michael Park wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/66115/ > ----------------------------------------------------------- > > (Updated March 16, 2018, 11:57 a.m.) > > > Review request for mesos, Benjamin Bannier and Benjamin Mahler. > > > Repository: mesos > > > Description > ------- > > Added `mesos-tidy.py`, a modified version of `run-clang-tidy.py`. > > > Diffs > ----- > > support/mesos-tidy.py PRE-CREATION > > > Diff: https://reviews.apache.org/r/66115/diff/3/ > > > Testing > ------- > > > Thanks, > > Michael Park > >
