handle case of SRCDIR == BUILDDIR

Change-Id: I9daea65dc28ab13776a7c4319e5d5811515fe160
This commit is contained in:
Luboš Luňák
2013-01-03 22:57:46 +01:00
parent 258aca9924
commit d5ea81b87b

View File

@@ -253,7 +253,7 @@ class PluginHandler
else if( strncmp( e->getName(), WORKDIR, strlen( WORKDIR )) == 0 )
diag.Report( diag.getCustomDiagID( DiagnosticsEngine::Warning,
"modified source in workdir/ : %0 [loplugin]" )) << e->getName();
else if( strncmp( e->getName(), BUILDDIR, strlen( BUILDDIR )) == 0 )
else if( strcmp( SRCDIR, BUILDDIR ) != 0 && strncmp( e->getName(), BUILDDIR, strlen( BUILDDIR )) == 0 )
diag.Report( diag.getCustomDiagID( DiagnosticsEngine::Warning,
"modified source in build dir : %0 [loplugin]" )) << e->getName();
else if( strncmp( e->getName(), SRCDIR, strlen( SRCDIR )) == 0 )