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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Invalid options reported by --dump-config
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

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

<pre>
    Assuming the following .clang-tidy config file

````
---
Checks: readability-identifier-naming

CheckOptions:
  - key: readability-identifier-naming.TypedefSuffix
    value: '_t'
````

If I run the command `clang-tidy --dump-config <file.cpp>`
I will get the following output:
````
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-identifier-naming'
[...]
CheckOptions:
 [...]
  readability-identifier-naming.AggressiveDependentMemberLookup: 'false'
  readability-identifier-naming.CheckAnonFieldInParent: 'false'
 readability-identifier-naming.GetConfigPerFile: 'true'
 readability-identifier-naming.IgnoreFailedSplit: 'false'
 readability-identifier-naming.IgnoreMainLikeFunctions: 'false'
 readability-identifier-naming.TypedefHungarianPrefix: Off
 readability-identifier-naming.TypedefIgnoredRegexp: ''
 readability-identifier-naming.TypedefPrefix: ''
 readability-identifier-naming.TypedefSuffix: _t
SystemHeaders: false
...
````

Now, I've trimmed the output of the command to keep the interesting part.
Notice that the config mentions the option `TypedefHungarianPrefix`, but this option is not recognised by clang-tidy and is not documented anywhere.
This leads me to think that this is an "internal" parameter and should not be part of the `--dump-config` output.
I've also noticed the same issue with the parameters `MacroDefinitionHungarianPrefix` and `TypeAliasHungarianPrefix`. There are probably more of those parameters, but I did not take the time to investigate.


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVV9vozgQ_zTOiwUi5l_zwAPbXm4jbW-ra99XBg8wF2Mj26TNffqTDbm21952KyFFMZ7fP88Ybi32CqAi-ReS32z47AZtqg4kPhUZ2zRanKva2nl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