[LLVMbugs] [Bug 6530] New: Extension: Support platforms with implicit extern "C" system headers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 6 21:08:00 PST 2010


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

           Summary: Extension: Support platforms with implicit extern "C"
                    system headers
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


GCC has the notion of system headers that are implicitly wrapped in extern "C"
blocks, since they were written without regard to C++. Clang may need to
support platforms with this requirement in the future, which involves:

  - Tracking which headers require the implicit extern "C" (already handled by
the preprocessor)
  - Implicitly wrapping extern "C" around these headers when the parser sees
them (we aren't doing this)
  - Allowing C-isms in such headers, e.g., prototype-less functions (which look
like zero-parameter functions in C++) can be merged with functions that have
prototypes (we aren't doing this).

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