Is there any C ++ coding standard like PSR-1/2

I was looking for a coding standard in C ++.

I found many standards:

  • Google C ++ Style Guide
  • High Quality C ++ Encoding Standard Version 4.0
  • ...

Is there any C ++ coding standard, such as PSR-1/2 1, that follows every C ++ developer?


1) Standard PHP recommendation. PSR-1: basic coding standard. PSR-2: Coding Style Guide.

+4
source share
3 answers

Although I think these answers are already good, I would like to add the following comment:

++, , ( , ). , . .

CppCon 2015: Bjarne Stroustrup " ++ 14"

CppCon 2015: Herb Sutter " ++ 14... "

. , , , .

.6: ISO ++ ? ?

. . , ++. , .

, .

+1

- ++, PSR-1/2, ++?

++ ISO ++ Committee.

(, ++ - 11, ++ - 14, ++ - 17), ( ) .

, ++.


, , , , ++.


, , , , Misra ++.

, -. , , , .

, (, , ) .

+2

.

If you had a single style guide, then why not have a few style guides?

For what it's worth, I don’t follow anyone else’s style guide, and, in my opinion, you don’t need to.

Your work may require you to follow certain guidelines, but then you did not ask us what to use.

Please note that I refuse to invoke these standards style guides.

+1
source

All Articles