<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64864>64864</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Custom HungarianNotation.UserDefinedType
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          RobertZickler
      </td>
    </tr>
</table>

<pre>
    Hello,
I am trying to do an automatic check for the hungarian notaion with clang-tidy.

The problem is that custom variable types are used in the project. For example `typedef unsigned char uint8`.

I have seen that there is a possibility to use `readability-identifier-naming.HungarianNotation.UserDefinedType.UINT8: myu8`. And also for the other needed types. But all with capital letters.
So it actually works if I define my variable with capital `UINT8`. But if I write it with small letters, the declaration is not found.

For example:

```
UINT8 my_var; // found. Correction to myu8my_var
uint8 my_var2; // not found
```

There is no possibility in the project of using capital letters.

Neither a definition (in .clang-tidy) of
`readability-identifier-naming.HungarianNotation.UserDefinedType.uint8: myu8` nor `readability-identifier-naming.HungarianNotation.PrimitiveType.unsigned-char: myu8` works.

How can I generate a true "UserDefinedType"? Or what am I doing wrong?

Kind regards
Robert
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVF1r7DYQ_TXyy7DGK-8a74Mf8sGSUEhLm_vSlzK2xrYaWVqkcbb-90Wym2TLhUIvBIe1NeecOXNGGIIeLFEjjvfi-JjhzKPzza-uJc-_6-7NkM9ap5bmiYxxQj6I4lEUd8-AE7BftB2AHSgHaAFndhOy7qAbqXuD3nngkWCc7YBeowXrGLWzcNU8QmfQDjvWaslX0PX5OhJcvGsNTaAD8IgM3RzYTfAeUVpDwMuFAqAnmAMp0DbxXLz7kzrO4ew80F84XQyBqIp4WlEPs03NKuhG9DBry7WoihvyZxjxnSAQ2ZWZR_IUdSBcXAi61UbzEnueQwL3hArXtzutyLLuNfmdxUnbIX_6p_UXx8ja2fxbIP9IvbakXpcL5d-eX15rUd7BtMxJDtxZBWiC-_DPRRFgiRSptfUc7mcGNGZzEi-a0YAhZvJh6-g3B5oBO57RmAWuzr8F0D08g0r8MC2fjt7giKpYZUU5kSlVXb1mipDpbJgi_cYo5ENSqqgz6FOj0TPrGHo3W3Xj8ZfpiPLu6xdRFdtf-pk0wLT88Y5elPcg5FnI84YID8576hIVu-TedjLVpulutfJL8Yek7zJ-JHCduXU3Q7-NGbge5hAX4Pv2r88X0ml6uJquk14ha20h_1wAIU_g-g9JP5qpNdqfmQLr_P_J6i9eT5r1O62o2_rs4vp8RU_Juun6yV2hQwvPMJAlj0yAwH4mEFL-S62QUpRn-NnDNS4cTjGgLvp69c4Oojx_Rf5JWwWeBvQqrG_WuypTTalO5QkzavbVSVayLveHbGzkUSnqCQvq8XTsytNBUUttr6ir266vM93IQpZFLff7Q7k_7vMaq3LfHQ5YtDWpshKHgibUJjfmfcqdHzIdwkxNdairQ2awJRPS_SmlpSukj7Gp42Pmm1iza-chiENhdODwicKaDTUP69X2n0PNZm-akfkS4tKkMA-ax7nNOzcJeY6w27_dllAhz0lMEPKcxP4dAAD__3Nv-t0">