microsoft / microsoft/wil

Multiple files not /analyze clean

Open
#27 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Tested against 4361351 with local fix for #26.

Test file (in root of repo for simplicity)

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "include/wil/com.h"
#include "include/wil/registry.h"
#include "include/wil/filesystem.h"
#include "include/wil/win32_helpers.h"
int main() {}
> cl testwil.cpp /W4 /WX /permissive- /analyze
Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27508.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

[see link below]

Compiler output: https://gist.github.com/zx64/563b366873fd8063bb72a44ec5839e52

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 with the root-level testwil.cpp reproduction and run the documented cl testwil.cpp /W4 /WX /permissive- /analyze command. Read the compiler output in the linked gist and inspect the included WIL headers to identify why analysis is not clean; done means the reproduction no longer emits the reported diagnostics.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.