[llvm-bugs] [Bug 32021] New: Clang-CL can not compile TraceLoggingProvider.h
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 20 07:24:33 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=32021
Bug ID: 32021
Summary: Clang-CL can not compile TraceLoggingProvider.h
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: steveire at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The example at
https://msdn.microsoft.com/en-us/library/windows/desktop/dn904627(v=vs.85).aspx
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170220/1cb29683/attachment-0001.html>
More information about the llvm-bugs
mailing list