Why does Google forbid C ++ 11 and at the same time invest in Clang?

According to the Google C ++ Style Guide , the C ++ 11 feature is not supported .

On the other hand, it seems that Clang (in which the resources nested by Google) is very advanced in its C ++ 11 support .

This seems like a contradiction ... does anyone know why this is?

+6
source share
1 answer

The reasons are outlined in the cons section.

The C ++ 11 standard is significantly more complicated than its predecessor (1300 pages compared to 800 pages), and it does not correspond to many developers. The long-term effects of some functions on reading and maintaining code are unknown. We cannot predict when its various functions will be implemented uniformly using tools that may be of interest (gcc, icc, clang, Eclipse, etc.).

If I were to summarize, it will be what they expect and see the approach with new features. They want to see negative effects (and there will be some) before they deeply integrate functions into the code base

+10
source

Source: https://habr.com/ru/post/916939/


All Articles