microsoft / microsoft/wil

TraceLogging.h causing error when building using Clang

Open
#212 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3k
Forks
300
Avg merge
19h 12m
Merged PRs (30d)
1

Description

When using Clang toolset to compile and do code analysis, using macros from TraceLogging.h are causing build errors. The code mapping to those macros does not seem to be supported by Clang compiler (probably not conformant to the standard?).

Code:
image

Output:
image

Note: the code build without any issue using MSVC

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the macro definitions in TraceLogging.h and reproduce the reported build and code-analysis errors with the Clang toolset, comparing them with the successful MSVC build. Done means the TraceLogging.h macros compile and support the reported usage under Clang without the shown errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.