Useful C++ compiler flags (GCC and Clang)

14 Aug 2021

[ c++  performance  test  ]

Main

Extra

Control flow

Arithmetics

Cast and conversion

Sanitizing

Security

C specific

C++ specific

GNU specific

GNU C++ specific

GNU >= 5.0.0

GNU >= 6.0.0

C++ GNU >= 6.0.0

GNU >= 7.0.0

GNU >= 8.0.0

Clang specific

Main

Mistakes

Sanitizing

Arrays

Arithmetics

Advices

Clang >= 6.0.0

References