[clang-tidy] [modernize-use-auto] Fix members initialization order
authorZinovy Nis <zinovy.nis@gmail.com>
Tue, 10 Apr 2018 18:56:29 +0000 (18:56 +0000)
committerZinovy Nis <zinovy.nis@gmail.com>
Tue, 10 Apr 2018 18:56:29 +0000 (18:56 +0000)
llvm-svn: 329740

clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp

index 276217a..23478ae 100644 (file)
@@ -287,8 +287,9 @@ StatementMatcher makeCombinedMatcher() {
 } // namespace
 
 UseAutoCheck::UseAutoCheck(StringRef Name, ClangTidyContext *Context)
-    : ClangTidyCheck(Name, Context), RemoveStars(Options.get("RemoveStars", 0)),
-      MinTypeNameLength(Options.get("MinTypeNameLength", 5)) {}
+    : ClangTidyCheck(Name, Context),
+      MinTypeNameLength(Options.get("MinTypeNameLength", 5)),
+      RemoveStars(Options.get("RemoveStars", 0)) {}
 
 void UseAutoCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
   Options.store(Opts, "MinTypeNameLength", MinTypeNameLength);