Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects

Resolve "add clang-format configuration file"

Merged gsell requested to merge 617-add-clang-format-configuration-file into master

Closes #617 (closed)

Edited by gsell

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • snuverink_j
  • snuverink_j
  • Maintainer

    @gsell Can we make this setting also available for groups https://gitlab.psi.ch/OPAL/Libraries? Or do I need to add such a file for each repository?

  • Author Owner

    You need a .clang-format file somewhere in your file-system. It starts looking for a configuration file in the directory of the file to be formatted. If there is non, it goes one directory up and so on till a configuration file is found or the top-level directory is reached.

    So, on your system you can do something like this. Whether it is possible on Gitlab itself - i.e. in a pipeline - I have to check.

    Edited by gsell
  • gsell added 1 commit

    added 1 commit

    • 267da80d - AlignConsecutiveAssignments: true added to .clang-format

    Compare with previous version

  • gsell resolved all threads

    resolved all threads

  • snuverink_j approved this merge request

    approved this merge request

  • kraus
  • kraus
  • gsell added 2 commits

    added 2 commits

    Compare with previous version

  • gsell added 1 commit

    added 1 commit

    Compare with previous version

  • snuverink_j approved this merge request

    approved this merge request

  • kraus resolved all threads

    resolved all threads

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading