From dca6816d6a7add340fef2fe2b6076e7166beaa7b Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 16 Dec 2009 05:02:47 +0000 Subject: [PATCH] Add logic for computing preprocessor file extensions for C++ files. llvm-svn: 91505 --- clang/tools/scan-build/ccc-analyzer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/tools/scan-build/ccc-analyzer b/clang/tools/scan-build/ccc-analyzer index aca411f67ae8..7b459623a723 100755 --- a/clang/tools/scan-build/ccc-analyzer +++ b/clang/tools/scan-build/ccc-analyzer @@ -66,7 +66,9 @@ END { sub GetPPExt { my $Lang = shift; + if ($Lang =~ /objective-c\+\+/) { return ".mm" }; if ($Lang =~ /objective-c/) { return ".mi"; } + if ($Lang =~ /c\+\+/) { return ".ii"; } return ".i"; }