Author: d0k Date: Tue May 10 06:35:47 2016 New Revision: 269043 URL: http://llvm.org/viewvc/llvm-project?rev=269043&view=rev Log: [include-fixer] Default to YAML db, it's much more useful than the fixed dummy db.
Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp clang-tools-extra/trunk/test/include-fixer/fixeddb.cpp Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp?rev=269043&r1=269042&r2=269043&view=diff ============================================================================== --- clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp (original) +++ clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp Tue May 10 06:35:47 2016 @@ -33,7 +33,7 @@ cl::opt<DatabaseFormatTy> DatabaseFormat cl::values(clEnumVal(fixed, "Hard-coded mapping"), clEnumVal(yaml, "Yaml database created by find-all-symbols"), clEnumValEnd), - cl::init(fixed), cl::cat(IncludeFixerCategory)); + cl::init(yaml), cl::cat(IncludeFixerCategory)); cl::opt<std::string> Input("input", cl::desc("String to initialize the database"), Modified: clang-tools-extra/trunk/test/include-fixer/fixeddb.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/include-fixer/fixeddb.cpp?rev=269043&r1=269042&r2=269043&view=diff ============================================================================== --- clang-tools-extra/trunk/test/include-fixer/fixeddb.cpp (original) +++ clang-tools-extra/trunk/test/include-fixer/fixeddb.cpp Tue May 10 06:35:47 2016 @@ -1,6 +1,6 @@ // REQUIRES: shell // RUN: sed -e 's#//.*$##' %s > %t.cpp -// RUN: clang-include-fixer -input='foo= "foo.h","bar.h"' %t.cpp -- +// RUN: clang-include-fixer -db=fixed -input='foo= "foo.h","bar.h"' %t.cpp -- // RUN: FileCheck %s -input-file=%t.cpp // CHECK: #include "foo.h" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits