]> granicus.if.org Git - clang/commitdiff
Recognize '-M' and '-MM' options.
authorTed Kremenek <kremenek@apple.com>
Tue, 4 Aug 2009 00:57:12 +0000 (00:57 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 4 Aug 2009 00:57:12 +0000 (00:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78027 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index f29c4d51d14b9b54cd6ceb1558d06bb3688f5781..598e7024e9900a0be9eea69c576387c755407c2a 100755 (executable)
@@ -410,7 +410,7 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
   my ($ArgKey) = split /=/,$Arg,2;
 
   # Modes ccc-analyzer supports
-  if ($Arg eq '-E') { $Action = 'preprocess'; }
+  if ($Arg =~ /^-(E|MM?)$/) { $Action = 'preprocess'; }
   elsif ($Arg eq '-c') { $Action = 'compile'; }
   elsif ($Arg =~ /^-print-prog-name/) { exit 0; }