[LLVMbugs] [Bug 10727] New: #import directive in CPP MSVC file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 24 05:29:20 PDT 2011


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

           Summary: #import directive in CPP MSVC file
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: eremeev at viva64.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


#import directive is incorrectly handled in MSVC cpp file by Clang. In MSVC,
this directive is used to incorporate information from a type library dll
(http://msdn.microsoft.com/en-us/library/8etzzkb6(v=VS.90).aspx), converting
its' contents into  C++ classes (mostly for COM interfaces)

Clang instead handles this directive in Objective-C style, inserting the binary
contents of specified dll into its' resulting preprocessor output, although the
file being processed is indeed a cpp file (it is explicitly specified through
-x command line option)

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