Changes between Version 18 and Version 19 of EFLWebKitCodingStyle


Ignore:
Timestamp:
Dec 3, 2012 7:19:08 PM (8 years ago)
Author:
halton.huo@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EFLWebKitCodingStyle

    v18 v19  
    11= Summary =
    2 
     2== C/C++ ==
    33 * EFL port should adhere to the WebKit Coding Style basically.(http://www.webkit.org/coding/coding-style.html)
    44 * Do not use '''abbreviation''' except for public APIs
     
    1111 * Use a double negation '''(!!)''' when you modify or compare with a Eina Bool member variable which stores a value in a bit field.
    1212 * *_ref() functions should return the ref'd object
    13 
     13== CMake ==
     14 * Use spaces, not tabs.
     15 * Four spaces as indent.
     16 * Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break ().
     17 * Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction().
     18 * Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" )
     19 * No space at line ending.
     20 * Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET().
    1421= Example =
    1522