[cfe-users] Can clang check for adherence to a coding standard?

Fabrice Triboix via cfe-users cfe-users at lists.llvm.org
Mon Dec 7 09:42:42 PST 2015


Dear All,

I know clang offers a built-in static analyser. Can it check that the code (C++) adheres to a certain coding standard?

For example:
 - Curly brackets around single statement after an "if"
 - Code properly indented
 - Naming conventions for classes, methods, variables, types, etc.
 - Avoidance of certain constructs
 - Ensure "catch" statements are done by reference
 - etc.

Many thanks for any help!

Fabrice Triboix
Senior Software Engineer
Release Manager (Contribution Solutions)


1 Sheldon Square    l    Paddington    l    London W2 6TT
M: +44 (7919) 355752
fabrice.triboix at v-nova.com

www.v-nova.com




Company registration number: 08121803
Place of registration: England

This email and any attachments are sent in strictest confidence for the sole use of the addressee
and may contain legally privileged, confidential, and proprietary data. If you are not the intended
recipient, please advise the sender by replying promptly to this email and then delete and destroy
this email and any attachments without any further use, copying or forwarding.

Please consider your environmental responsibility before printing this e-mail



More information about the cfe-users mailing list