summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-05-09 14:48:17 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-05-09 14:48:17 +0000
commit8e015b2e94f8795bdba47038836ff20a9ce18e1c (patch)
treeb80dc8f69175f7005356ba5e8566f0a7c9ca767f /clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
parent70674549f10f851b6edf2c5329d1dce56df945c1 (diff)
downloadbcm5719-llvm-8e015b2e94f8795bdba47038836ff20a9ce18e1c.tar.gz
bcm5719-llvm-8e015b2e94f8795bdba47038836ff20a9ce18e1c.zip
Add the modernize-use-trailing-return check to rewrite function signatures to use trailing return types.
Patch by Bernhard Manfred Gruber. llvm-svn: 360345
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
index 45ecdf93a72..6280f9c991e 100644
--- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
@@ -35,6 +35,7 @@
#include "UseNoexceptCheck.h"
#include "UseNullptrCheck.h"
#include "UseOverrideCheck.h"
+#include "UseTrailingReturnTypeCheck.h"
#include "UseTransparentFunctorsCheck.h"
#include "UseUncaughtExceptionsCheck.h"
#include "UseUsingCheck.h"
@@ -87,6 +88,8 @@ public:
CheckFactories.registerCheck<UseNoexceptCheck>("modernize-use-noexcept");
CheckFactories.registerCheck<UseNullptrCheck>("modernize-use-nullptr");
CheckFactories.registerCheck<UseOverrideCheck>("modernize-use-override");
+ CheckFactories.registerCheck<UseTrailingReturnTypeCheck>(
+ "modernize-use-trailing-return-type");
CheckFactories.registerCheck<UseTransparentFunctorsCheck>(
"modernize-use-transparent-functors");
CheckFactories.registerCheck<UseUncaughtExceptionsCheck>(
OpenPOWER on IntegriCloud