开发者

Recommended Clang command line options

开发者 https://www.devze.com 2022-12-27 03:32 出处:网络
The Manual for Clang seems to be work in progress, so could you help me formulate the definitive command line options for compiling ANSI-C (AKA C89, C90) with maximum strictness and relevant/helpful w

The Manual for Clang seems to be work in progress, so could you help me formulate the definitive command line options for compiling ANSI-C (AKA C89, C90) with maximum strictness and relevant/helpful warnings?

Clang is a compiler front end for the C, C++, and Objective-C programming languages. It uses the Low Level Virtual Machine (LLVM) as its back end. It is still under development开发者_运维问答. Its goal is to offer a replacement to the GNU Compiler Collection (GCC)


Clang's command-line arguments are, for the most part, GCC-compatible, so -std=c90 -pedantic should suffice.

0

精彩评论

暂无评论...
验证码 换一张
取 消