Open Bug 1859932 Opened 2 years ago Updated 2 years ago

Cannot navigate to definition of RemoveFileOnSignal() in LLVM codebase

Categories

(Webtools :: Searchfox, defect)

defect

Tracking

(Not tracked)

People

(Reporter: botond, Unassigned)

References

Details

Steps to reproduce

  1. Load https://searchfox.org/llvm/source/llvm/include/llvm/Support/Signals.h#33
  2. Click on the name RemoveFileOnSignal in the declaration of that function

The popup menu does not offer a go-to-definition item.

Probably has something to do with the fact that the definition, which differs between Unix and Windows, is in a file with extension .inc.

(In reply to Botond Ballo [:botond] from comment #0)

Probably has something to do with the fact that the definition, which differs between Unix and Windows, is in a file with extension .inc.

Hm, yeah, something weird is definitely going on. The file definitely gets included in Signal.cpp, and intriguingly there is an empty analysis file as opposed to a non-existent analysis file.

Maybe something weird is happening with either the enterSourceFile interestingness check or the per-loc isInterestingLocation check? That hinges on the FileInfo mapping which uses relativizePath. I should note that the lack of a FILE_ symbol does imply that we're unhapy with the file at the enterSourceFile level, because enterSourceFile tries to emit that symbol.

You need to log in before you can comment on or make changes to this bug.