add lint pass to check whether types with ISync actually have any [Sync] members

This commit is contained in:
Chris Forbes
2011-07-11 10:08:07 +12:00
committed by Paul Chote
parent 513b852a67
commit 5633d84d21
8 changed files with 54 additions and 6 deletions

View File

@@ -28,6 +28,11 @@ namespace RALint
++errors;
}
static void EmitWarning(string e)
{
Console.WriteLine("RALint(1,1): Warning: {0}", e);
}
static int Main(string[] args)
{
try
@@ -52,7 +57,7 @@ namespace RALint
Console.WriteLine("CustomPass: {0}".F(customPassType.ToString()));
customPass.Run(EmitError);
customPass.Run(EmitError, EmitWarning);
}
if (errors > 0)