Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Corbat2015-07-31 12:16:14 +0000
committerThomas Corbat2015-08-07 06:11:37 +0000
commit7168d36c5810d8ce01f9cf855c6aa6196e9fc010 (patch)
tree80e083c0d0b92c5333dd810ba54a7de3fad3fb8f /core/org.eclipse.cdt.core.tests/resources/rewrite
parent6ed3ce5fce594a9a8e0435e2ff2eaceb806f6960 (diff)
downloadorg.eclipse.cdt-7168d36c5810d8ce01f9cf855c6aa6196e9fc010.tar.gz
org.eclipse.cdt-7168d36c5810d8ce01f9cf855c6aa6196e9fc010.tar.xz
org.eclipse.cdt-7168d36c5810d8ce01f9cf855c6aa6196e9fc010.zip
Bug 474020 - [ASTRewrite] Nested modifications are suppressed by macros
Added further check to isStatementWithMixedLocation return false if all macro expansions are further enclosed in child statements. Change-Id: Ida6994adbbf76674c37a4c1c214aeea79b4963f2 Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/rewrite')
-rw-r--r--core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts
index 66b9dbe1a01..603eaf61fe1 100644
--- a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts
+++ b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts
@@ -312,16 +312,14 @@ int foo()
int foo()
{
int i = 1;
- if (i == ZWO)
- {
+ if (i == ZWO){
}
}
//=
int foo()
{
int i = 1;
- if (i == ZWO)
- {
+ if (i == ZWO){
}
}

Back to the top