From: Ted Kremenek Date: Tue, 27 May 2008 23:17:16 +0000 (+0000) Subject: Correctly check to see if we are analyzing C++ files (skip). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30aba6d2aa1f38e6da980f58f8286548b1caf4a3;p=clang 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 --- 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 = []