CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
55 lines
1.5 KiB
ReStructuredText
55 lines
1.5 KiB
ReStructuredText
.. title:: clang-tidy - readability-uppercase-literal-suffix
|
|
|
|
readability-uppercase-literal-suffix
|
|
====================================
|
|
|
|
`cert-dcl16-c` redirects here as an alias for this check.
|
|
By default, only the suffixes that begin with ``l`` (``l``, ``ll``, ``lu``,
|
|
``llu``, but not ``u``, ``ul``, ``ull``) are diagnosed by that alias.
|
|
|
|
Detects when the integral literal or floating point (decimal or hexadecimal)
|
|
literal has a non-uppercase suffix and provides a fix-it hint with the
|
|
uppercase suffix.
|
|
|
|
All valid combinations of suffixes are supported.
|
|
|
|
.. code:: c
|
|
|
|
auto x = 1; // OK, no suffix.
|
|
|
|
auto x = 1u; // warning: integer literal suffix 'u' is not upper-case
|
|
|
|
auto x = 1U; // OK, suffix is uppercase.
|
|
|
|
...
|
|
|
|
Options
|
|
-------
|
|
|
|
.. option:: NewSuffixes
|
|
|
|
Optionally, a list of the destination suffixes can be provided. When the
|
|
suffix is found, a case-insensitive lookup in that list is made, and if a
|
|
replacement is found that is different from the current suffix, then the
|
|
diagnostic is issued. This allows for fine-grained control of what suffixes to
|
|
consider and what their replacements should be.
|
|
|
|
Example
|
|
^^^^^^^
|
|
|
|
Given a list `L;uL`:
|
|
|
|
* ``l`` -> ``L``
|
|
* ``L`` will be kept as is.
|
|
* ``ul`` -> ``uL``
|
|
* ``Ul`` -> ``uL``
|
|
* ``UL`` -> ``uL``
|
|
* ``uL`` will be kept as is.
|
|
* ``ull`` will be kept as is, since it is not in the list
|
|
* and so on.
|
|
|
|
.. option:: IgnoreMacros
|
|
|
|
If this option is set to `true` (default is `true`), the check will not warn
|
|
about literal suffixes inside macros.
|