Code Monkey home page Code Monkey logo

ipc_shm_arena_lend's People

Watchers

 avatar

Forkers

tide999 ur4t

ipc_shm_arena_lend's Issues

ipc_shm_arena_lend: Sync coding style in src/ipc/session/standalone/shm/arena_lend/** and src/ipc/shm/arena_lend/**

There is a quite consistent and even codified (in flow/.../doc-coding_style.cpp) style throughout Flow-IPC (and Flow). There is one significant subset of the code where this is not completely the case: src/ipc/session/standalone/shm/arena_lend/** and src/ipc/shm/arena_lend/**.

[There are some historical reasons for this; basically this is the part written by 1 of the 2 lead developers of the original code (~at the time this became open-source). (The other guy did write shm_pool_offset_ptr_data.?pp in this area... so the style there is consistent.)]

Even there it is largely the case, but some things I can see are somewhat different; some naming, some formatting (Doxygen function doc header formatting especially), log message punctuation and grammar.

It should be pretty easy to see which parts these are and manually fix 'em up. Formally one could check against doc-coding_style.cpp too, but you get the idea.

One specific aspect is not 100% stylistic, though close: There is some (not a lot of) explicit inlining. The official style (this can be controversial with some but hopefully not too much) says do not inline explicitly; let the compiler+linker deal with it. (We build with LTO enabled, so the inlining should occur even across translation units; unless one disables it with a dedicated CMake setting.) Probably, if only for consistency, this should be fixed-up. I mention it specifically, since it can be seen as affecting the generated code and even performance; but we make the argument that, well, not really.

Related issues that should be considered at the same time (the order in which they're to be done = exercise left to reader): Flow-IPC/ipc#87, Flow-IPC/flow#74.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.