mirror of
https://github.com/openvswitch/ovs
synced 2025-10-19 14:37:21 +00:00
INSTALL, CodingStyle: Recognize that Clang is an acceptable compiler.
Clang has nice static analysis and works well as an Open vSwitch compiler, so mention it more explicitly. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -518,7 +518,8 @@ older compilers:
|
||||
|
||||
As a matter of style, avoid // comments.
|
||||
|
||||
Avoid using GCC extensions unless you also add a fallback for
|
||||
non-GCC compilers. You can, however, use GCC extensions and C99
|
||||
features in code that compiles only on GNU/Linux (such as
|
||||
lib/netdev-linux.c), because GCC is the system compiler there.
|
||||
Avoid using GCC or Clang extensions unless you also add a fallback
|
||||
for other compilers. You can, however, use C99 features or GCC
|
||||
extensions also supported by Clang in code that compiles only on
|
||||
GNU/Linux (such as lib/netdev-linux.c), because GCC is the system
|
||||
compiler there.
|
||||
|
Reference in New Issue
Block a user