[llvm-dev] typedef or using in C++ code

Eugene Zelenko via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 7 16:30:01 PDT 2016


Hi!

What should be used for type declarations: typedef or using? typedef
is there because of historical reasons, but LLVM code based is C++11
now.

LLVM Coding Standards are not clear on this matter.

Eugene.

Clang-tidy has modernize-use-using, but fix-it functionality is not
perfect (https://llvm.org/bugs/show_bug.cgi?id=28334).


More information about the llvm-dev mailing list