Question about clang-format features.

Hi, everyone.

I'd like to know if there is anything in the works to let clang-format provide guidance about naming conventions (camelcase, first-letter-capitalized, etc) in code, and if not (and if it's considered in-scope for clang-format) if a patch to provide that guidance would be interesting.

I couldn't find an answer in the list-archives; thanks for your time.

- mhoye

Hi, everyone.

I'd like to know if there is anything in the works to let clang-format
provide guidance about naming conventions (camelcase,
first-letter-capitalized, etc) in code, and if not (and if it's considered
in-scope for clang-format) if a patch to provide that guidance would be
interesting.

That's generally considered out of scope for clang-format. The goal of
clang-format is only to format code - whitespace changes only. It's the
precursor necessary to build other tools on top of, though - since anything
that would change identifiers, add/remove braces, etc, would need a
formatter to fix up lines that might've changed length in the process, etc.

The intention is to make a tool called clang-tidy that would actually fix
code to conform to naming conventions (& then reformat the result), etc,
rather than simply report them to the user & expect the user to manually
fix them.

Awesome, thank you. Is there a timeline or feature list for clang-tidy anywhere public-facing?

- mhoye

All I know of is word of mouth/email/IRC exchanges so far. Perhaps Manuel
can add some detail - I don't want to misrepresent anything.

- David

Daniel will send out a very basic strawman patch soon :slight_smile:

Cheers,
/Manuel