"Martin Winter" <[email protected]> writes:

> And as a side note, how popular is clang these days and on which platforms? 
> I’m only building with
> GCC at this time on my CI system. Should I add CLANG and if yes, on which 
> platforms?

clang is the default compiler on OS X.  As I understand things, it is or
will be the standard compiler on FreeBSD.  It's becoming optional but
normal on NetBSD (via pkgsrc or MKLLVM=yes), and someday may be the
standard approach.

I would recommend building with clang on any platform you can
(additionally).  Code debugged under only gcc tends to have issues with
other compilers, simply because only the bugs that manifest under gcc
are noticed and removed.  In pkgsrc, clang has surfaced many errors,
mostly in C++ where following the standards seems harder.

Even building with clang on just one platform would be a big help.

All that said, quagga seems pretty clean wrt clang/gcc.  The issues I
pointed out are about assuming the type of size_t and are more of a
linux/not-linux issue.  I wonder though if clang would notice these, so
I would also try clang on GNU/Linux - surely it must be available in
packages.
;

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to