Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clang user documentation

I was unsure whether to ask here or in superuser, but this site seemed more appropriate

I'm looking for documentation/analysis on Clang specifically for these two areas:

  • comparison of warnings provided by Clang vs. GCC
    • I'm specifically looking for the amount of checking that Clang is doing in comparison to GCC http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
  • description of the --analyze flag, what exactly does it check?
like image 612
Šimon Tóth Avatar asked Feb 23 '11 08:02

Šimon Tóth


People also ask

Is Clang owned by Apple?

In the end, Apple chose to develop Clang, a new compiler front end that supports C, Objective-C and C++.

Is GCC better than Clang?

GCC supports more traditional languages than Clang and LLVM, such as Ada, Fortran, and Go. GCC supports more less-popular architectures, and supported RISC-V earlier than Clang and LLVM. GCC supports more language extensions and more assembly language features than Clang and LLVM.

Is Clang faster than Msvc?

bat for Clang and MSVC, both with 3 different build settings: Slow, Fast and Release. MSVC compiles both of them faster than Clang takes to compile just one.

Is Clang slower than GCC?

GCC is slower to compile than clang, so I spend a lot of time compiling, but my final system is (usually) faster with GCC, so I have set GCC as my system compiler.


1 Answers

I did ask on the Clang mailing list and the documentation is non-existent at this point.

You can follow this thread for more information: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/013655.html

like image 148
Šimon Tóth Avatar answered Sep 29 '22 17:09

Šimon Tóth