News for hackers. Stuff that matters.
Re:How to convince any C developer to dump gcc and use clang by eordano on Saturday March 06, 2010 @10:39PM (#1172837)
you're saying I should port all my code just because the ui is more user-friendly? what about performance, options, special warnings, builtins, and everything else?

I've been using gcc for a while now, and every time I use it I found a new feature. It's rock solid and had never let me down.

Re:How to convince any C developer to dump gcc and use clang by pgbovine on Sunday March 07, 2010 @02:21AM (#1173029)
just because the ui is more user-friendly?

Those better warnings aren't just due to a simple UI patch ... clang is doing better and deeper static analysis than gcc in order to even be able to produce those more intelligent warnings.

Re:How to convince any C developer to dump gcc and use clang by ahn on Sunday March 07, 2010 @04:28AM (#1173132)
gcc with the dehydra plugin is doing better and deeper static analysis than clang.
Re:How to convince any C developer to dump gcc and use clang by Zev on Sunday March 07, 2010 @08:28PM (#1174426)
Doesn't dehydra do static analysis for C++ code? In which case, of course it would do better then clang; clang doesn't even claim to have complete c++ support yet.
Re:How to convince any C developer to dump gcc and use clang by ssp on Sunday March 07, 2010 @06:17AM (#1173216)
There is nothing deep about these warnings. It would likely be really, really simple to add them to gcc.
Re:How to convince any C developer to dump gcc and use clang by orborde on Sunday March 07, 2010 @06:38AM (#1173235)
And yet, gcc doesn't have them.
Re:How to convince any C developer to dump gcc and use clang by ssp on Sunday March 07, 2010 @09:17PM (#1174486)
If you think these warnings are evidence that "clang is doing better and deeper static analysis than gcc", then you have no idea how compilers work.
Re:How to convince any C developer to dump gcc and use clang by steveklabnik on Saturday March 06, 2010 @11:59PM (#1172896)
You shouldn't need to port your code; C is C, right?

Or do you use a lot of gcc extensions?

Re:How to convince any C developer to dump gcc and use clang by ssp on Sunday March 07, 2010 @01:31AM (#1172988)
Clang is compatible with the most used GCC extensions. See this: http://clang.llvm.org/features.html#gcccompat
Re:How to convince any C developer to dump gcc and use clang by steveklabnik on Sunday March 07, 2010 @01:59AM (#1173008)
Even better!
Re:How to convince any C developer to dump gcc and use clang by upinsmoke on Sunday March 07, 2010 @06:06AM (#1173207)
wow, just wow. how about read what clang actually is before posting?
Re:How to convince any C developer to dump gcc and use clang by ramchip on Sunday March 07, 2010 @07:01AM (#1173256)
Seriously? How can a comment this misguided be upvoted so high?