[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/creduce] ce6504: Handle designated init expressions



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/creduce
  Commit: ce6504db072a0b9929c9927ddd7291e6486e7b93
      https://github.com/csmith-project/creduce/commit/ce6504db072a0b9929c9927ddd7291e6486e7b93
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    M clang_delta/RemoveUnusedStructField.cpp
    M clang_delta/RemoveUnusedStructField.h
    A clang_delta/tests/remove-unused-field/designated1.c
    A clang_delta/tests/remove-unused-field/designated2.c
    A clang_delta/tests/remove-unused-field/designated3.c
    A clang_delta/tests/remove-unused-field/designated4.c
    A clang_delta/tests/remove-unused-field/designated5.c
    A clang_delta/tests/remove-unused-field/unused_field1.c
    A clang_delta/tests/remove-unused-field/unused_field2.c

  Log Message:
  -----------
  Handle designated init expressions


  Commit: 399608ecef7caac3521eca585bc01637cb25bc64
      https://github.com/csmith-project/creduce/commit/399608ecef7caac3521eca585bc01637cb25bc64
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    M clang_delta/UnionToStruct.cpp
    A clang_delta/tests/union-to-struct/union1.c
    A clang_delta/tests/union-to-struct/union2.c
    A clang_delta/tests/union-to-struct/union3.c

  Log Message:
  -----------
  Handle anonymous unions are declared with other decls

In some rare cases, anonymous unions can be declared along with
other declarations such as FunctionDecl. In these cases, we have
to add new DDSet while processing the declarator. Furthermore,
we don't need to insert the declarator into the DDSet, because
the union keyword will be replaced by the routine for processing
the RecordDecl.


  Commit: c1b0cd498963a6eff8670363d6390e0e5e8da572
      https://github.com/csmith-project/creduce/commit/c1b0cd498963a6eff8670363d6390e0e5e8da572
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    M clang_delta/UnionToStruct.cpp

  Log Message:
  -----------
  update copyright year


  Commit: 49589b37deaf66849f53d66d6a873c0bb6783351
      https://github.com/csmith-project/creduce/commit/49589b37deaf66849f53d66d6a873c0bb6783351
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    M clang_delta/LocalToGlobal.cpp
    M clang_delta/RewriteUtils.cpp
    M clang_delta/RewriteUtils.h
    A clang_delta/tests/local-to-global/unnamed_1.c
    A clang_delta/tests/local-to-global/unnamed_2.c
    A clang_delta/tests/local-to-global/unnamed_3.c

  Log Message:
  -----------
  Fixed crashes due to groupdecls

Cases such as

void foo() {
  union {
  } u;
}

introduce a group declaration that has both the declaration of the union and
the declaration of the variable. It triggered crashes when we moved the
declaration statement. This is now fixed.


  Commit: 48e622ba74bc35c5a81299d3a34b9b14038d6a70
      https://github.com/csmith-project/creduce/commit/48e622ba74bc35c5a81299d3a34b9b14038d6a70
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2018-04-10 (Tue, 10 Apr 2018)

  Changed paths:
    M clang_delta/RenameFun.cpp
    A clang_delta/tests/rename-fun/test1.c
    A clang_delta/tests/rename-fun/test1.h

  Log Message:
  -----------
  Fixed an issue for checking function declarations

We should also check if the canonical function declaration comes
from an inluced file.


Compare: https://github.com/csmith-project/creduce/compare/7eb327e94d1b...48e622ba74bc