<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:191919@gmail.com" title="jh <191919@gmail.com>"> <span class="fn">jh</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - clang failed to compile Objective-C++ code with -fmodules"
   href="http://llvm.org/bugs/show_bug.cgi?id=21626">bug 21626</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - clang failed to compile Objective-C++ code with -fmodules"
   href="http://llvm.org/bugs/show_bug.cgi?id=21626#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - clang failed to compile Objective-C++ code with -fmodules"
   href="http://llvm.org/bugs/show_bug.cgi?id=21626">bug 21626</a>
              from <span class="vcard"><a class="email" href="mailto:191919@gmail.com" title="jh <191919@gmail.com>"> <span class="fn">jh</span></a>
</span></b>
        <pre>There is no module map in /usr/include (see below).

I can write one, but there are C and C++ linkages for different header files, I
can't assume they are all entern_c.

Xcode 6.1's clang (Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM
3.5svn)) compiles the code successfully with `-fmodules`.

------

$ cd /
$ find . -name \*modulemap\*

# System frameworks

./System/Library/PrivateFrameworks/ExchangeWebServices.framework/Versions/A/Modules/module.modulemap


# Below are the module maps in /Application/Xcode.app:

./Applications/Utilities/Tower.app/Contents/Frameworks/FNAppKit.framework/Versions/A/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTPlaygroundCommunication.framework/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Metal.framework/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/DVTPlaygroundCommunication.framework/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/PrivateFrameworks/ExchangeWebServices.framework/Versions/A/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/Modules/module.modulemap

# Below are clang's installation directory

./opt/include/clang-c/module.modulemap
./opt/lib/clang/3.6.0/include/module.modulemap</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>