[cfe-commits] r51620 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Tue May 27 16:17:16 PDT 2008


Author: kremenek
Date: Tue May 27 18:17:16 2008
New Revision: 51620

URL: http://llvm.org/viewvc/llvm-project?rev=51620&view=rev
Log:
Correctly check to see if we are analyzing C++ files (skip).

Modified:
    cfe/trunk/utils/ccc-analyzer

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=51620&r1=51619&r2=51620&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Tue May 27 18:17:16 2008
@@ -44,7 +44,7 @@
   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 = []





More information about the cfe-commits mailing list