Skip to content

Code navigation is broken on a large codebase #7951

@sridhargopinath

Description

@sridhargopinath

Bug type: Language Service

Describe the bug

  • OS and Version: MacOS 11.5.1
  • VS Code Version: 1.59.0
  • C/C++ Extension Version: 1.5.1
  • Other extensions you installed (and if the issue persists after disabling them): None
  • Code navigation is showing incorrect results on the latest LLVM repository. Some types are noted as undefined and navigating to the definition of some types leads to incorrect file locations. This problem was not present in version 1.1.3. I have tried reloading and restarting the language server. I have attached a screenshot as well.

Steps to reproduce

  1. Download LLVM 12.0.1 source.
  2. Open the source folder in VS Code
  3. Open file llvm/lib/Transforms/Hello/Hello.cpp
  4. See error variable "Function" is not a type name

Expected behavior
Repeat the above step on version 1.1.3 and there are 0 problems reported by the extension.

Code sample and logs

Screenshots
Screen Shot 2021-08-10 at 12 52 00 PM

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions