The coding standards of a project I am working on require a _ as a separator between the Hungarian notation prefix and the variable name. For example:
uint32_t u32_MyVar;
By default clang-tidy formats it like so:
uint32_t u32MyVar;
How can I change the Hungarian notation prefix to include an underscore?
P.S. I tried using a variable prefix, but that is put before the Hungarian notation (i.e. _u32MyVar).
I found the solution - I needed to change the style of the notation to
LowerCase(possible values areOff,On,LowerCaseandCamelCase. To do this add the following option:However, I also found out how to change the prefixes themselves by looking at the sources: