Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Change Android cpp to meet mbgl coding styles and techniques #560

Closed

Description

@ljbade

Currently all my code is in a code style that I made up on the fly back in June when I first wrote a lot of it. This was before I got my head around the style that the mbgl stuff is written it.

  • use Log:: functions - 7d66632
  • correct location for cpp and hpp files - 6b9e3c6

TODO: add more items to this list

Activity

  1. added
    Android
    on Nov 7, 2014
  2. ljbade commented on Nov 12, 2014

    @ljbade
    ContributorAuthor

    @springmeyer is there an official style guide somewhere?

  3. ljbade commented on Nov 12, 2014

    @ljbade
    ContributorAuthor

    I have put the include files in include/mbgl/android as I am currently using the mbgl::android namespace

    Let me know if they should be in include/mbgl/platform/android

  4. springmeyer commented on Nov 12, 2014

    @springmeyer
    Contributor

    @ljbade good idea - I should create a C++ style guide for Mapbox. In the meantime have a look at https://github.com/mapnik/mapnik/blob/master/docs/contributing.markdown, most of which is relevant to mapbox-gl-native, and ask any questions you have here.

  5. added this to the Android merge milestone on Nov 13, 2014
  6. ljbade commented on Nov 14, 2014

    @ljbade
    ContributorAuthor

    @springmeyer:
    some differences from mapnik:

    • Braces should be on a separate line - mapbox-gl seems to put them in line
    • Use const keyword after the type - mapbox-gl uses before
  7. springmeyer commented on Nov 14, 2014

    @springmeyer
    Contributor

    Yes, and those differences (with the mapnik style guide) are fine as long as we are consistent in mapbox-gl.

  8. ljbade commented on Nov 14, 2014

    @ljbade
    ContributorAuthor

    Well then I can't anything I have missed. Closing.

    @springmeyer if you find something I have missed, just reopen this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions