<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Clang-CL can not compile TraceLoggingProvider.h"
href="https://bugs.llvm.org/show_bug.cgi?id=32021">32021</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang-CL can not compile TraceLoggingProvider.h
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>steveire@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The example at
<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dn904627(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/windows/desktop/dn904627(v=vs.85).aspx</a>
can not be compiled.
The first error is
..\SimpleTraceLoggingExample.cpp(6,1): error: use of undeclared identifier
'__annotation'
TRACELOGGING_DEFINE_PROVIDER(
^
C:\Program Files (x86)\Windows
Kits\10\include\10.0.10586.0\shared\TraceLoggingProvider.h(182,5): note:
expanded from macro 'TRACELOGGING_DEFINE_PROVIDER'
_TlgDefineProvider_annotation(handleVariable,
_Tlg##handleVariable##Prov, 1, providerName); \
^
C:\Program Files (x86)\Windows
Kits\10\include\10.0.10586.0\shared\TraceLoggingProvider.h(3448,9): note:
expanded from macro '_TlgDefineProvider_annotation'
__annotation( \
^
However, further errors prevent compilation too
..\SimpleTraceLoggingExample.cpp(6,1): error: use of undeclared identifier
'_Tlgg_hMyComponentProviderProv'; did you mean 'g_hMyComponentProvider'?
C:\Program Files (x86)\Windows
Kits\10\include\10.0.10586.0\shared\TraceLoggingProvider.h(183,29): note:
expanded from macro 'TRACELOGGING_DEFINE_PROVIDER'
_TlgProviderStorage_imp(_Tlg##handleVariable##Prov, providerName,
providerId, 1, __VA_ARGS__); \
^
I have not been able to deconstruct the macros enough to find out what the
problem is.</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>