diff options
| author | Ben Pfaff <blp@nicira.com> | 2013-08-01 15:27:52 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2013-08-01 15:32:44 -0700 |
| commit | 8a6de510b0ce003a05629dbb3f6522f6fbb045eb (patch) | |
| tree | 637e228b0f471c8718f0dc06a2f28c44f84b2502 /CodingStyle | |
| parent | 4468099e7cabab8c6a290a5a883469c1986e0bb8 (diff) | |
| download | openvswitch-8a6de510b0ce003a05629dbb3f6522f6fbb045eb.tar.gz | |
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>
Diffstat (limited to 'CodingStyle')
| -rw-r--r-- | CodingStyle | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CodingStyle b/CodingStyle index 22f0f458a..55b37a1cb 100644 --- a/CodingStyle +++ b/CodingStyle @@ -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. |
