]> granicus.if.org Git - clang/commitdiff
ccc-analyzer: Don't create preprocessed files about the ignored 'cdecl' attribute...
authorTed Kremenek <kremenek@apple.com>
Wed, 22 Apr 2009 13:42:27 +0000 (13:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 22 Apr 2009 13:42:27 +0000 (13:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69802 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 4e3f6dd3544f11ae157d57be1f4314a3ab0d342c..5ca834a7b2357d1dcf87c35b3d4895ed7d52f721 100755 (executable)
@@ -193,6 +193,11 @@ sub Analyze {
     # Check if there were any unhandled attributes.
     if (open(CHILD, $ofile)) {
       my %attributes_not_handled;
+      
+      # Don't flag warnings about the following attributes that we
+      # know are currently not supported by Clang.
+      $attributes_not_handled{"cdecl"} = 1;
+      
       my $ppfile;
       while (<CHILD>) {
         next if (! /warning: '([^\']+)' attribute ignored/);