[cfe-commits] r91505 - /cfe/trunk/tools/scan-build/ccc-analyzer
Ted Kremenek
kremenek at apple.com
Tue Dec 15 21:02:49 PST 2009
Author: kremenek
Date: Tue Dec 15 23:02:47 2009
New Revision: 91505
URL: http://llvm.org/viewvc/llvm-project?rev=91505&view=rev
Log:
Add logic for computing preprocessor file extensions for C++ files.
Modified:
cfe/trunk/tools/scan-build/ccc-analyzer
Modified: cfe/trunk/tools/scan-build/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/ccc-analyzer?rev=91505&r1=91504&r2=91505&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/ccc-analyzer Tue Dec 15 23:02:47 2009
@@ -66,7 +66,9 @@
sub GetPPExt {
my $Lang = shift;
+ if ($Lang =~ /objective-c\+\+/) { return ".mm" };
if ($Lang =~ /objective-c/) { return ".mi"; }
+ if ($Lang =~ /c\+\+/) { return ".ii"; }
return ".i";
}
More information about the cfe-commits
mailing list