[LLVMbugs] [Bug 12253] New: Please add a pragma for controlling ARC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 12 09:12:17 PDT 2012


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

             Bug #: 12253
           Summary: Please add a pragma for controlling ARC
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: britt.durbrow at ymail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Please add a pragma override directive for enabling and disabling ARC. Although
it would be nice to be able to switch ARC on and off mid-file, requiring the
directive appear before anything else in the file would be OK also.

The reason for this feature request is because I have a bunch of files, some of
which support ARC, and some that don't, that are designed to be dropped
directly into a new Xcode project (and which have other compile-time
configuration issues that make them not very friendly to just put into a
library); it would greatly simplify matters if I didn't have to go configure
the target for each file, every time I needed to add these files to a new
project (with a pragma override, I could just drop them in, turn on ARC
globally for the whole project, and compile).

I imagine others would find it handy also...

Thanks!

-- 
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