Skip to content

Standardize C/C++ code style among projects #136

Closed

Description

@PokhodenkoSA

Configuration file .clang-format should be discussed.
There are projects like dpNP and daal4py which also use clang-format and have .clang-format.
It is better to have similar style among projects.

Activity

  1. oleksandr-pavlyk commented on Oct 15, 2020

    @oleksandr-pavlyk
    Contributor

    Choices made in _clang-format used in daal4py was necessitated by shortcomings of daal4py's C++ header parser, so I am not sure it needs to be replicated across projects.

  2. Alexander-Makaryev commented on Oct 17, 2020

    @Alexander-Makaryev

    Choices made in _clang-format used in daal4py was necessitated by shortcomings of daal4py's C++ header parser, so I am not sure it needs to be replicated across projects.

    It is a copy of config from original DAAL with single change ColumnLimit field. So it is not a synthetic example, it is used in huge and serious c++ project.
    https://github.com/oneapi-src/oneDAL/blob/master/cpp/daal/.clang-format

  3. diptorupd commented on Oct 19, 2020

    @diptorupd
    Contributor

    It might be hard to share coding style across projects, especially if there is no sharing of code. E.g. oneDAL's ColumnLimit=150 is not acceptable to me. I will go with LLVM's standard https://llvm.org/docs/CodingStandards.html with perhaps some minor modifications.

  4. diptorupd commented on Feb 14, 2021

    @diptorupd
    Contributor

    We now have a clang-format for the dpctl C API. Closing this ticket. Please reopen if we really want to discuss an IntelPython C coding style.

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

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions