Skip to content

"anonymous namespace" should be "unnamed namespace" in C++ #244455

@BenFrantzDale

Description

@BenFrantzDale

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.96.2
  • OS Version: Win & Linux

Steps to Reproduce:

  1. In a C++ file with an unnamed namespace (namespace foo { int bar() { return 42; } }), put the cursor on bar and note that it says ... / (anonymous namespace) in the breadcrumbs at the top.

In C++, while some people say "anonymous namespace", it's not a thing in the standard. (The only "anonymous" thing I see is unions.) The correct wording is "unnamed namespace" ([namespace.unnamed] in the standard).

While this is pretty pedantic, there's enough confusing wording in C++, it's best to be consistent.

Metadata

Metadata

Assignees

Labels

*caused-by-extensionIssue identified to be caused by an extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions