Hello community, here is the log from the commit of package cvise for openSUSE:Factory checked in at 2020-07-08 19:11:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cvise (Old) and /work/SRC/openSUSE:Factory/.cvise.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cvise" Wed Jul 8 19:11:03 2020 rev:13 rq:819230 version:1.5.0+git.20200707.c1ebd48 Changes: -------- --- /work/SRC/openSUSE:Factory/cvise/cvise.changes 2020-07-01 14:27:44.622962713 +0200 +++ /work/SRC/openSUSE:Factory/.cvise.new.3060/cvise.changes 2020-07-08 19:12:19.346970018 +0200 @@ -1,0 +2,35 @@ +Tue Jul 07 12:15:06 UTC 2020 - [email protected] + +- Update to version 1.5.0+git.20200707.c1ebd48: + * Bump to 1.5.0. + +------------------------------------------------------------------- +Tue Jul 07 08:09:13 UTC 2020 - [email protected] + +- Update to version 1.4.0+git.20200707.1195f4f: + * Fix crash when reducing multiple files. + +------------------------------------------------------------------- +Tue Jul 7 07:34:15 UTC 2020 - Martin Liška <[email protected]> + +- Add python3-psutil to Requires. + +------------------------------------------------------------------- +Mon Jul 06 21:31:39 UTC 2020 - [email protected] + +- Update to version 1.4.0+git.20200706.369bc31: + * Port test-case. + * retrieve InvalidIdx only for definitions + +------------------------------------------------------------------- +Fri Jul 03 12:49:56 UTC 2020 - [email protected] + +- Update to version 1.4.0+git.20200703.e2dcfaa: + * Update merged revision. + * Port tests to python. + * update Copyright year + * skip cases where the TemplateArg has the same name as the parameter + * fixed a crash in rewriteNamedDecls + * RemoveUnusedEnumMember: sync up from master. + +------------------------------------------------------------------- Old: ---- cvise-1.4.0+git.20200701.2dbaf41.tar.xz New: ---- cvise-1.5.0+git.20200707.c1ebd48.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cvise.spec ++++++ --- /var/tmp/diff_new_pack.VVc3nH/_old 2020-07-08 19:12:20.862975249 +0200 +++ /var/tmp/diff_new_pack.VVc3nH/_new 2020-07-08 19:12:20.862975249 +0200 @@ -17,7 +17,7 @@ Name: cvise -Version: 1.4.0+git.20200701.2dbaf41 +Version: 1.5.0+git.20200707.c1ebd48 Release: 0 Summary: Super-parallel Python port of the C-Reduce License: BSD-3-Clause @@ -41,6 +41,7 @@ Requires: indent Requires: llvm10 Requires: python3-Pebble +Requires: python3-psutil Requires: unifdef %description ++++++ _service ++++++ --- /var/tmp/diff_new_pack.VVc3nH/_old 2020-07-08 19:12:20.902975387 +0200 +++ /var/tmp/diff_new_pack.VVc3nH/_new 2020-07-08 19:12:20.902975387 +0200 @@ -4,7 +4,7 @@ <param name="scm">git</param> <param name="changesgenerate">enable</param> <param name="filename">cvise</param> - <param name="versionformat">1.4.0+git.%cd.%h</param> + <param name="versionformat">1.5.0+git.%cd.%h</param> </service> <service mode="disabled" name="recompress"> <param name="file">*.tar</param> ++++++ cvise-1.4.0+git.20200701.2dbaf41.tar.xz -> cvise-1.5.0+git.20200707.c1ebd48.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/CMakeLists.txt new/cvise-1.5.0+git.20200707.c1ebd48/CMakeLists.txt --- old/cvise-1.4.0+git.20200701.2dbaf41/CMakeLists.txt 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/CMakeLists.txt 2020-07-07 14:11:31.000000000 +0200 @@ -122,11 +122,11 @@ set(cvise_PACKAGE "cvise") set(cvise_PACKAGE_BUGREPORT "https://github.com/marxin/cvise/issues") set(cvise_PACKAGE_NAME "cvise") -set(cvise_PACKAGE_STRING "cvise 1.4.0") +set(cvise_PACKAGE_STRING "cvise 1.5.0") set(cvise_PACKAGE_TARNAME "cvise") set(cvise_PACKAGE_URL "https://github.com/marxin/cvise/") -set(cvise_PACKAGE_VERSION "1.4.0") -set(cvise_VERSION "1.4.0") +set(cvise_PACKAGE_VERSION "1.5.0") +set(cvise_VERSION "1.5.0") set(cvise_LLVM_VERSION "${LLVM_PACKAGE_VERSION}") configure_file("cmake_config.h.in" "${PROJECT_BINARY_DIR}/config.h") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/CREDUCE_MERGE new/cvise-1.5.0+git.20200707.c1ebd48/CREDUCE_MERGE --- old/cvise-1.4.0+git.20200701.2dbaf41/CREDUCE_MERGE 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/CREDUCE_MERGE 2020-07-07 14:11:31.000000000 +0200 @@ -1,2 +1,2 @@ Last cherry-picked git revision: -d5691462d89327479c70ac7ba70456ce2ec11f4b +274e1fe5210b379fbfdca9a565715d2db1df2d04 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/CMakeLists.txt new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/CMakeLists.txt --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/CMakeLists.txt 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/CMakeLists.txt 2020-07-07 14:11:31.000000000 +0200 @@ -78,6 +78,13 @@ "/tests/empty-struct-to-int/test2.output" "/tests/empty-struct-to-int/test3.c" "/tests/empty-struct-to-int/test3.output" + "/tests/instantiate-template-param/default_param.cc" + "/tests/instantiate-template-param/default_param.output" + "/tests/instantiate-template-param/test1.cc" + "/tests/instantiate-template-param/test1.output" + "/tests/instantiate-template-param/test2.cc" + "/tests/instantiate-template-param/test2.output" + "/tests/instantiate-template-param/test3.cc" "/tests/local-to-global/macro.c" "/tests/local-to-global/macro.output" "/tests/local-to-global/unnamed_1.c" @@ -323,6 +330,7 @@ "/tests/simplify-if/macro.output" "/tests/simplify-recursive-template-instantiation/test.cc" "/tests/simplify-recursive-template-instantiation/test.output" + "/tests/template-arg-to-int/not_valid5.cc" "/tests/union-to-struct/union1.c" "/tests/union-to-struct/union1.output" "/tests/union-to-struct/union2.c" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/InstantiateTemplateParam.cpp new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/InstantiateTemplateParam.cpp --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/InstantiateTemplateParam.cpp 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/InstantiateTemplateParam.cpp 2020-07-07 14:11:31.000000000 +0200 @@ -1,6 +1,6 @@ //===----------------------------------------------------------------------===// // -// Copyright (c) 2012, 2013, 2015, 2017, 2019 The University of Utah +// Copyright (c) 2012, 2013, 2015, 2017, 2019, 2020 The University of Utah // All rights reserved. // // This file is distributed under the University of Illinois Open Source @@ -380,6 +380,9 @@ std::string ForwardStr; if (!getTemplateArgumentString(Arg, ArgStr, ForwardStr)) continue; + // in case the argument has the same name as the parameter + if (ArgStr == ND->getNameAsString()) + continue; ValidInstanceNum++; if (ValidInstanceNum == TransformationCounter) { TheInstantiationString = ArgStr; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/RemoveNamespace.cpp new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/RemoveNamespace.cpp --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/RemoveNamespace.cpp 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/RemoveNamespace.cpp 2020-07-07 14:11:31.000000000 +0200 @@ -707,7 +707,8 @@ Decl::Kind K = D->getKind(); switch (K) { - case Decl::Function: { + case Decl::Function: + case Decl::CXXMethod: { // Check replaceFunctionDecl in RewriteUtils.cpp for the reason that // we need a special case for FunctionDecl const FunctionDecl *FD = dyn_cast<FunctionDecl>(D); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/RemoveUnusedEnumMember.cpp new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/RemoveUnusedEnumMember.cpp --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/RemoveUnusedEnumMember.cpp 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/RemoveUnusedEnumMember.cpp 2020-07-07 14:11:31.000000000 +0200 @@ -1,6 +1,6 @@ //===----------------------------------------------------------------------===// // -// Copyright (c) 2012, 2013, 2015, 2016, 2019 The University of Utah +// Copyright (c) 2012, 2013, 2015, 2016, 2019, 2020 The University of Utah // Copyright (c) 2012 Konstantin Tokarev <[email protected]> // All rights reserved. // @@ -63,10 +63,8 @@ if (ConsumerInstance->ValidInstanceNum >= ConsumerInstance->TransformationCounter && ConsumerInstance->ValidInstanceNum <= - ConsumerInstance->ToCounter) { - TransAssert(ED && "NULL TheEnumDecl!"); + ConsumerInstance->ToCounter) ConsumerInstance->EnumValues.push_back (I); - } } } return true; @@ -85,6 +83,15 @@ if (QueryInstanceOnly) return; + if (TransformationCounter > ValidInstanceNum) { + TransError = TransMaxInstanceError; + return; + } + if (ToCounter != -1 && ToCounter > ValidInstanceNum) { + TransError = TransToCounterTooBigError; + return; + } + Ctx.getDiagnostics().setSuppressAllDiagnostics(false); for (auto ev : EnumValues) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/TemplateArgToInt.cpp new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/TemplateArgToInt.cpp --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/TemplateArgToInt.cpp 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/TemplateArgToInt.cpp 2020-07-07 14:11:31.000000000 +0200 @@ -1,6 +1,6 @@ //===----------------------------------------------------------------------===// // -// Copyright (c) 2012, 2013, 2014, 2015, 2017 The University of Utah +// Copyright (c) 2012, 2013, 2014, 2015, 2017, 2020 The University of Utah // All rights reserved. // // This file is distributed under the University of Illinois Open Source @@ -369,6 +369,17 @@ TransAssert(Spec && "Not a ClassTemplateSpecializationDecl!"); TmplD = Spec->getSpecializedTemplate(); } + if (const ClassTemplateDecl *ClassTmplD = + dyn_cast<ClassTemplateDecl>(TmplD)) { + if (!ClassTmplD->getTemplatedDecl()->hasDefinition()) + return; + } + if (const FunctionTemplateDecl *FuncTmplD = + dyn_cast<FunctionTemplateDecl>(TmplD)) { + if (!FuncTmplD->getTemplatedDecl()->getDefinition()) + return; + } + TransAssert(TmplD && "NULL TemplateDecl!"); TemplateParameterIdxSet *InvalidIdx = DeclToParamIdx[dyn_cast<TemplateDecl>(TmplD->getCanonicalDecl())]; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/default_param.cc new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/default_param.cc --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/default_param.cc 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/default_param.cc 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,6 @@ +template <typename T1, typename T2 = int> struct A { + void bar(T2 p); +}; +void foo() { + A<int> a; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/default_param.output new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/default_param.output --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/default_param.output 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/default_param.output 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,6 @@ +template <typename T1, typename T2 = int> struct A { + void bar(int p); +}; +void foo() { + A<int> a; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test1.cc new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test1.cc --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test1.cc 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test1.cc 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,6 @@ +template <typename T> struct S { + T bar(T p) { return p; } +}; +void foo() { + struct S<int> s; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test1.output new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test1.output --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test1.output 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test1.output 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,6 @@ +template <typename T> struct S { + int bar(int p) { return p; } +}; +void foo() { + struct S<int> s; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test2.cc new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test2.cc --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test2.cc 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test2.cc 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,10 @@ +template<typename T> class A { +public: + template<typename T1> struct C { + typedef A other; + }; +}; +template<typename T1, typename T2> class B { + typedef typename T2::template C<int>::other type; +}; +class B<char, A<char> >; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test2.output new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test2.output --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test2.output 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test2.output 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,10 @@ +template<typename T> class A { +public: + template<typename T1> struct C { + typedef A other; + }; +}; +template<typename T1, typename T2> class B { + typedef typename A<char>::template C<int>::other type; +}; +class B<char, A<char> >; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test3.cc new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test3.cc --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/instantiate-template-param/test3.cc 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/instantiate-template-param/test3.cc 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,7 @@ +template <typename T> struct S { + T bar(T p) { return p; } +}; +class T {}; +void foo() { + struct S<T> s; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/template-arg-to-int/not_valid5.cc new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/template-arg-to-int/not_valid5.cc --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/template-arg-to-int/not_valid5.cc 1970-01-01 01:00:00.000000000 +0100 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/template-arg-to-int/not_valid5.cc 2020-07-07 14:11:31.000000000 +0200 @@ -0,0 +1,15 @@ +struct v { int ak; }; +template <typename> class aa; +template <typename> struct j; +template <typename b> struct j<aa<b>> { + using k = b; +}; +struct ag { + typename j<aa<v>>::k + foo() { return s; } + v s; +}; +void as() { + ag aw; + aw.foo().ak; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/test_clang_delta.py new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/test_clang_delta.py --- old/cvise-1.4.0+git.20200701.2dbaf41/clang_delta/tests/test_clang_delta.py 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/clang_delta/tests/test_clang_delta.py 2020-07-07 14:11:31.000000000 +0200 @@ -106,6 +106,19 @@ def test_empty_struct_to_int_test3(self): self.check_clang_delta('empty-struct-to-int/test3.c', '--transformation=empty-struct-to-int --counter=1') + def test_instantiate_template_param_default_param(self): + self.check_clang_delta('instantiate-template-param/default_param.cc', '--transformation=instantiate-template-param --counter=1') + + def test_instantiate_template_param_default_test1(self): + self.check_clang_delta('instantiate-template-param/test1.cc', '--transformation=instantiate-template-param --counter=1') + + def test_instantiate_template_param_default_test2(self): + self.check_clang_delta('instantiate-template-param/test2.cc', '--transformation=instantiate-template-param --counter=1') + + def test_instantiate_template_param_default_test3(self): + self.check_query_instances('instantiate-template-param/test3.cc', '--query-instances=instantiate-template-param', + 'Available transformation instances: 0') + def test_local_to_global_macro(self): self.check_clang_delta('local-to-global/macro.c', '--transformation=local-to-global --counter=1') @@ -490,6 +503,10 @@ def test_simplify_simple_recursive_template(self): self.check_clang_delta('simplify-recursive-template-instantiation/test.cc', '--transformation=simplify-recursive-template-instantiation --counter=1') + def test_template_arg_to_int_not_valid_5(self): + self.check_query_instances('template-arg-to-int/not_valid5.cc', '--query-instances=template-arg-to-int', + 'Available transformation instances: 0') + def test_union_to_struct_union1(self): self.check_clang_delta('union-to-struct/union1.c', '--transformation=union-to-struct --counter=1') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-1.4.0+git.20200701.2dbaf41/cvise/utils/testing.py new/cvise-1.5.0+git.20200707.c1ebd48/cvise/utils/testing.py --- old/cvise-1.4.0+git.20200701.2dbaf41/cvise/utils/testing.py 2020-07-01 12:38:16.000000000 +0200 +++ new/cvise-1.5.0+git.20200707.c1ebd48/cvise/utils/testing.py 2020-07-07 14:11:31.000000000 +0200 @@ -471,13 +471,13 @@ success_env = self.run_parallel_tests() self.kill_pid_queue() - if not success_env: - self.remove_root() - break - self.process_result(success_env) + if success_env: + self.process_result(success_env) self.release_folders() self.futures.clear() + if not success_env: + break # Cache result of this pass if not self.no_cache:
