| Summary: | [PATCH] Add a style file for clang-format | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Petr Pavlu <petr.pavlu> |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | pjfloyd |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
0001-Add-a-style-file-for-clang-format.patch
v2-0001-Add-a-style-file-for-clang-format.patch |
||
|
Description
Petr Pavlu
2023-04-11 19:27:23 UTC
Thanks Petr this looks like a good start. Do you think that this will also need TypenameMacros for the tool 'namespace' macros (MC_ etc.)? Any thoughts on adding this to git hooks? I think it would also be a good idea to add a section to README_DEVELOPERS (difficult to be totally comprehensive, but things like which package provides clang-format, how to use it, IDE integration ...) Created attachment 158146 [details]
v2-0001-Add-a-style-file-for-clang-format.patch
(In reply to Paul Floyd from comment #1) > Thanks Petr this looks like a good start. Do you think that this will also > need TypenameMacros for the tool 'namespace' macros (MC_ etc.)? Missed these, added in v2 of the patch. > Any thoughts on adding this to git hooks? Not sure, it might be hard to tell clang-format what it should exactly do from a Git hook and it has some potential to annoy people that don't want to use the tool. I would start simply and only add a configuration file in the root directory. This gives folks that want to use this tool an easy way to do so. > I think it would also be a good idea to add a section to README_DEVELOPERS > (difficult to be totally comprehensive, but things like which package > provides clang-format, how to use it, IDE integration ...) Makes sense, v2 adds some basic information in README_DEVELOPERS and a reference to the upstream documentation for integration with text editors and IDEs. commit 1b3430761f6bda43b8187dbd342b34cb5c99df3f (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Mon Apr 17 22:05:30 2023 +0200 Bug 468401 - [PATCH] Add a style file for clang-format Patch submitted by: Petr Pavlu <petr.pavlu@dagobah.cz> |