[clang-tools-extra] r207715 - Fix ClangTidyOptions constructor to initialize all members. Fixes bug introduced in r207652.

Alex McCarthy alexmc at google.com
Wed Apr 30 15:32:52 PDT 2014


Author: alexmc
Date: Wed Apr 30 17:32:51 2014
New Revision: 207715

URL: http://llvm.org/viewvc/llvm-project?rev=207715&view=rev
Log:
Fix ClangTidyOptions constructor to initialize all members. Fixes bug introduced in r207652.

Reviewers: rsmith

Subscribers: cfe-commits, alexfh, klimek

Differential Revision: http://reviews.llvm.org/D3578

Modified:
    clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.h

Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.h?rev=207715&r1=207714&r2=207715&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.h (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.h Wed Apr 30 17:32:51 2014
@@ -15,7 +15,7 @@ namespace tidy {
 
 /// \brief Contains options for clang-tidy.
 struct ClangTidyOptions {
-  ClangTidyOptions() : EnableChecksRegex(".*") {}
+  ClangTidyOptions() : EnableChecksRegex(".*"), AnalyzeTemporaryDtors(false) {}
   std::string EnableChecksRegex;
   std::string DisableChecksRegex;
   bool AnalyzeTemporaryDtors;





More information about the cfe-commits mailing list