Changeset 1a3eab8 for src/InitTweak/FixInit.cc
- Timestamp:
- Apr 30, 2018, 11:59:07 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 7b45636
- Parents:
- c0453ca3 (diff), b9c432f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
rc0453ca3 r1a3eab8 385 385 void SelfAssignChecker::previsit( ApplicationExpr * appExpr ) { 386 386 DeclarationWithType * function = getFunction( appExpr ); 387 if ( isAssignment( function ) ) {387 if ( function->name == "?=?" ) { // doesn't use isAssignment, because ?+=?, etc. should not count as self-assignment 388 388 if ( appExpr->args.size() == 2 ) { 389 389 // check for structural similarity (same variable use, ignore casts, etc. - but does not look too deeply, anything looking like a function is off limits)
Note:
See TracChangeset
for help on using the changeset viewer.