aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
AgeCommit message (Collapse)Author
2020-07-23[clang] set ReflowComments to falseAlwin Esch
This breaks doxygen documenation where on some parts a line break is not allowed. There are few parts where no line breaks allowed for e.g. a table or there the `@defgroup`: ```cpp /// @defgroup cpp_kodi_addon_inputstream_Defs_Interface_InputstreamMasteringMetadata_Help Value Help /// @ingroup cpp_kodi_addon_inputstream_Defs_Interface_InputstreamMasteringMetadata /// /// <b>The following table contains values that can be set with @ref cpp_kodi_addon_inputstream_Defs_Interface_InputstreamMasteringMetadata :</b> /// | Name | Type | Set call | Get call /// |------|------|----------|---------- /// | **Chromaticity X coordinates of the red** | `double` | @ref InputstreamMasteringMetadata::SetPrimaryR_ChromaticityX "SetPrimaryR_ChromaticityX" | @ref InputstreamMasteringMetadata::GetPrimaryR_ChromaticityX "GetPrimaryR_ChromaticityX" /// | **Chromaticity Y coordinates of the red** | `double` | @ref InputstreamMasteringMetadata::SetPrimaryR_ChromaticityY "SetPrimaryR_ChromaticityY" | @ref InputstreamMasteringMetadata::GetPrimaryR_ChromaticityY "GetPrimaryR_ChromaticityY" /// | **Chromaticity X coordinates of the green** | `double` | @ref InputstreamMasteringMetadata::SetPrimaryG_ChromaticityX "SetPrimaryG_ChromaticityX" | @ref InputstreamMasteringMetadata::GetPrimaryG_ChromaticityX "GetPrimaryG_ChromaticityX" /// | **Chromaticity Y coordinates of the green** | `double` | @ref InputstreamMasteringMetadata::SetPrimaryG_ChromaticityY "SetPrimaryG_ChromaticityY" | @ref InputstreamMasteringMetadata::GetPrimaryG_ChromaticityY "GetPrimaryG_ChromaticityY" /// | **Chromaticity X coordinates of the blue** | `double` | @ref InputstreamMasteringMetadata::SetPrimaryB_ChromaticityX "SetPrimaryB_ChromaticityX" | @ref InputstreamMasteringMetadata::GetPrimaryB_ChromaticityX "GetPrimaryB_ChromaticityX" /// | **Chromaticity Y coordinates of the blue** | `double` | @ref InputstreamMasteringMetadata::SetPrimaryB_ChromaticityY "SetPrimaryB_ChromaticityY" | @ref InputstreamMasteringMetadata::GetPrimaryB_ChromaticityY "GetPrimaryB_ChromaticityY" /// | **Chromaticity X coordinates of the white point** | `double` | @ref InputstreamMasteringMetadata::SetWhitePoint_ChromaticityX "SetWhitePoint_ChromaticityX" | @ref InputstreamMasteringMetadata::GetWhitePoint_ChromaticityX "GetWhitePoint_ChromaticityX" /// | **Chromaticity Y coordinates of the white point** | `double` | @ref InputstreamMasteringMetadata::SetWhitePoint_ChromaticityY "SetWhitePoint_ChromaticityY" | @ref InputstreamMasteringMetadata::GetWhitePoint_ChromaticityY "GetWhitePoint_ChromaticityY" /// | **Maximum number of bits of the display** | `double` | @ref InputstreamMasteringMetadata::SetLuminanceMax "SetLuminanceMax" | @ref InputstreamMasteringMetadata::GetLuminanceMax "GetLuminanceMax" /// | **Minimum number of bits of the display** | `double` | @ref InputstreamMasteringMetadata::SetLuminanceMin "SetLuminanceMin" | @ref InputstreamMasteringMetadata::GetLuminanceMin "GetLuminanceMin" ``` Also by links it becomes not good: ```cpp //============================================================================== /// @defgroup cpp_kodi_addon_inputstream_Defs_Interface_InputstreamMasteringMetadata class InputstreamMasteringMetadata /// @ingroup cpp_kodi_addon_inputstream_Defs_Interface /// @brief **Mastering metadata.**\n /// Describes the metadata for [HDR10](https://en.wikipedia.org/wiki/High-dynamic-range_video). /// /// Used when video is compressed using [High Efficiency Video Coding (HEVC)](https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding). /// This is used to describe the capabilities of the display used to master the /// content and the luminance values of the content. /// /// Used on @ref kodi::addon::InputstreamInfo::SetMasteringMetadata and @ref kodi::addon::InputstreamInfo::GetMasteringMetadata. /// /// ---------------------------------------------------------------------------- /// /// @copydetails cpp_kodi_addon_inputstream_Defs_Interface_InputstreamMasteringMetadata_Help /// ```
2020-05-26[clang-format] Enable comment reflowGarrett Brown
2019-10-06[clang-format] switch - indent case and defaultphunkyfish
2019-10-06[clang-format] change constructor init list to colon on newline, break after ↵phunkyfish
comma for longer lines
2019-06-16[docs] update header include coding guidelineRechi
2019-05-28update clang-formatRechi
- support Objective-C - do not align backslashes in escaped lines - do not align trailing comments - put short functions into a single line if they are inside a class block - indent constructor initializer lists and inheritance lists with two spaces - allow two empty lines
2018-06-12[root] nuke whitespaceh.udo
2018-04-15Added clang-format that roughly matches our current stylePär Björklund