-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.quick fix
Milestone
Description
Type: LanguageService
To Reproduce
- create
apue.h( All files are in the top directory)
typedef int ssize_t;
typedef unsigned int size_t;
int test(int fd, ssize_t (*callback)(int, const void *, size_t));
int test2(int fd, int (*callback)(int, const void *, int));- create
apue.c
#include "apue.h"
int test(int fd, ssize_t (*callback)(int, const void *, size_t)) {
}
int test2(int fd, int (*callback)(int, const void *, int)) {
}- create
main.c
#include "apue.h"
ssize_t callback(int a, const void *b, size_t c) {
return 0;
}
int callback2(int a, const void *b, int c) {
return 0;
}
int main(void) {
test(1, callback); // Go to Definition failed. (Only jumped to the Declaration)
test2(1, callback2); // Go to Definition works fine.
}Metadata
Metadata
Assignees
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.quick fix