Extra Clang Tools 3.9 documentation

clang-tidy - modernize-use-using

«  modernize-use-override   ::   Contents   ::   performance-faster-string-find  »

modernize-use-using

Use C++11’s using instead of typedef.

Before:

typedef int variable;

class Class{};
typedef void (Class::* MyPtrType)() const;

After:

using variable = int;

class Class{};
using MyPtrType = void (Class::*)() const;

This check requires using C++11 or higher to run.

«  modernize-use-override   ::   Contents   ::   performance-faster-string-find  »