[lldb-dev] Running Clang-format automatically in CMake
Zachary Turner via lldb-dev
lldb-dev at lists.llvm.org
Tue Sep 6 16:07:15 PDT 2016
What would be the gain of such a thing? It would be extremely slow to run
clang-format every single time you ran CMake, and also having a run of
CMake generate changes to your source tree seems like using the wrong tool
for the job. I think we should follow whatever LLVM does, which in this
case is that it is each developers' responsibility to run clang-format
before submitting.
There may be a case to be made for presubmit hooks that prevent you from
checking in code which doesn't pass clang-format, but that discussion
should happen on llvm-dev at .
On Tue, Sep 6, 2016 at 4:04 PM Eugene Zelenko via lldb-dev <
lldb-dev at lists.llvm.org> wrote:
> Hi!
>
> Since LLDB code is freshly formatted, it may make sense to run
> Clang-format automatically via CMake. If not as part of regular build,
> but may be subtarget of install or check targets as it done in Polly.
>
> Eugene.
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160906/a0de6bf2/attachment-0001.html>
More information about the lldb-dev
mailing list