Cannot navigate to definition of RemoveFileOnSignal() in LLVM codebase
Categories
(Webtools :: Searchfox, defect)
Tracking
(Not tracked)
People
(Reporter: botond, Unassigned)
References
Details
Steps to reproduce
- Load https://searchfox.org/llvm/source/llvm/include/llvm/Support/Signals.h#33
- Click on the name
RemoveFileOnSignalin 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.
Comment 1•2 years ago
|
||
(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.
Description
•