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

[csmith-project/creduce] 6b71ee: Rewrite only the main source file



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/creduce
  Commit: 6b71ee263900a013b93d35be9e3e843c67672908
      https://github.com/csmith-project/creduce/commit/6b71ee263900a013b93d35be9e3e843c67672908
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2015-10-20 (Tue, 20 Oct 2015)

  Changed paths:
    M clang_delta/AggregateToScalar.cpp
    M clang_delta/BinOpSimplification.cpp
    M clang_delta/CallExprToValue.cpp
    M clang_delta/ClassTemplateToClass.cpp
    M clang_delta/CombineGlobalVarDecl.cpp
    M clang_delta/CombineLocalVarDecl.cpp
    M clang_delta/CopyPropagation.cpp
    M clang_delta/EmptyStructToInt.cpp
    M clang_delta/InstantiateTemplateParam.cpp
    M clang_delta/InstantiateTemplateTypeParamToInt.cpp
    M clang_delta/LiftAssignmentExpr.cpp
    M clang_delta/MoveFunctionBody.cpp
    M clang_delta/MoveGlobalVar.cpp
    M clang_delta/ParamToGlobal.cpp
    M clang_delta/ParamToLocal.cpp
    M clang_delta/ReduceArrayDim.cpp
    M clang_delta/ReduceArraySize.cpp
    M clang_delta/ReduceClassTemplateParameter.cpp
    M clang_delta/ReducePointerLevel.cpp
    M clang_delta/ReducePointerPairs.cpp
    M clang_delta/RemoveAddrTaken.cpp
    M clang_delta/RemoveArray.cpp
    M clang_delta/RemoveBaseClass.cpp
    M clang_delta/RemoveCtorInitializer.cpp
    M clang_delta/RemoveEnumMemberValue.cpp
    M clang_delta/RemoveNamespace.cpp
    M clang_delta/RemoveNestedFunction.cpp
    M clang_delta/RemovePointer.cpp
    M clang_delta/RemoveTrivialBaseTemplate.cpp
    M clang_delta/RemoveUnresolvedBase.cpp
    M clang_delta/RemoveUnusedEnumMember.cpp
    M clang_delta/RemoveUnusedFunction.cpp
    M clang_delta/RemoveUnusedOuterClass.cpp
    M clang_delta/RemoveUnusedStructField.cpp
    M clang_delta/RemoveUnusedVar.cpp
    M clang_delta/RenameCXXMethod.cpp
    M clang_delta/RenameFun.cpp
    M clang_delta/RenameParam.cpp
    M clang_delta/RenameVar.cpp
    M clang_delta/ReplaceArrayIndexVar.cpp
    M clang_delta/ReplaceCallExpr.cpp
    M clang_delta/ReplaceClassWithBaseTemplateSpec.cpp
    M clang_delta/ReplaceDependentName.cpp
    M clang_delta/ReplaceDependentTypedef.cpp
    M clang_delta/ReplaceDerivedClass.cpp
    M clang_delta/ReplaceFunctionDefWithDecl.cpp
    M clang_delta/ReplaceOneLevelTypedefType.cpp
    M clang_delta/ReplaceSimpleTypedef.cpp
    M clang_delta/ReplaceUndefinedFunction.cpp
    M clang_delta/ReturnVoid.cpp
    M clang_delta/SimpleInliner.cpp
    M clang_delta/SimplifyCallExpr.cpp
    M clang_delta/SimplifyCommaExpr.cpp
    M clang_delta/SimplifyDependentTypedef.cpp
    M clang_delta/SimplifyIf.cpp
    M clang_delta/SimplifyNestedClass.cpp
    M clang_delta/SimplifyRecursiveTemplateInstantiation.cpp
    M clang_delta/SimplifyStruct.cpp
    M clang_delta/SimplifyStructUnionDecl.cpp
    M clang_delta/TemplateArgToInt.cpp
    M clang_delta/TemplateNonTypeArgToInt.cpp
    M clang_delta/Transformation.cpp
    M clang_delta/Transformation.h
    M clang_delta/UnifyFunctionDecl.cpp
    M clang_delta/UnionToStruct.cpp

  Log Message:
  -----------
  Rewrite only the main source file

Previously, clang_delta tried to rewrite sources that were
not part of the main source file. This triggered a lot of crashes
when we process non-preprocessed code.

This patch teaches clang_delta to only rewrite the main source file.
The patch is based on the patches sent by Johan and Moritz.