From 30aba6d2aa1f38e6da980f58f8286548b1caf4a3 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 27 May 2008 23:17:16 +0000 Subject: [PATCH] Correctly check to see if we are analyzing C++ files (skip). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51620 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ccc-analyzer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index c62dc18053..60286e5223 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -44,7 +44,7 @@ def remove_pch_extension(path): return path[:i] def analyze(clang, args,language,output,files,verbose,htmldir,file,analysis_type): - if language.find("c++") > 0: + if language.rfind("c++") >= 0: return print_args = [] -- 2.50.1