[LLVMbugs] [Bug 13930] New: [checker] set-xcode-analyzer only works if Xcode is named "Xcode.app"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 26 09:20:59 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13930

             Bug #: 13930
           Summary: [checker] set-xcode-analyzer only works if Xcode is
                    named "Xcode.app"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: mayer.julian at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


set-xcode-analyzer only works if Xcode is named "Xcode.app", however it is
common to rename Xcode to have multiple versions at once. e.g. my Applications
folder has Xcode43.app Xcode44.app and Xcode45.app

the set-xcode-analyzer of the static analyzer fails silently here.

changing the line


  if (re.search("Xcode.app", xcode_path)):

to

  if (re.search("Xcode.*app", xcode_path)):

fixes the problem.


there should be another fix to print some error if it still doesn't find any
xcspec file because it in this case set-xcode-analyzer really suggest it has
worked, when in fact it hasn't

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list