Add-Override Transform

The Add-Override Transform adds the override specifier to member
functions that override a virtual function in a base class and that
don’t already have the specifier. The transform is enabled with the
-add-override option of clang-modernize.
For example:

classA{public:virtualvoidh()const;};classB:publicA{public:voidh()const;// The declaration of h is transformed tovoidh()constoverride;};

Like LLVM’s LLVM_OVERRIDE, several projects have macros that conditionally
expand to the override keyword when compiling with C++11 features enabled.
To maintain compatibility with non-C++11 builds, the Add-Override Transform
supports detection and use of these macros instead of using the override
keyword directly. Specify -override-macros on the command line to the
Modernizer to enable this behavior.