Skip to content

-Wmicrosoft-template changed in 10.0.0 #44139

@JVApen

Description

@JVApen
Bugzilla Link 44794
Resolution FIXED
Resolved on Feb 26, 2020 07:11
Version 10.0
OS Windows NT
Blocks #43900
CC @zmodem,@zygoloid,@rnk

Extended Description

On our code base, we had the -Wmicrosoft-template warning active before. With 10.0.0-RC1, I have to suppress this warning again, because it got changed.

Ideally, every warning would have it's own flag, something like: -Wmicrosoft-template-shadowing and be part put in a warning group -Wmicrosoft-template.
This eases upgrades to newer releases, as you don't have to disable warnings that were previously active.

Not sure if this is feasible within the RC time, however, updating the release note comments to mention changes to this warning should still be feasible.

See https://clang.llvm.org/docs/DiagnosticsReference.html#wmicrosoft-template :
declaration of A shadows template parameter

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions