We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4b718 commit 2e06d6bCopy full SHA for 2e06d6b
gcc-c-api/gcc-location.c
@@ -54,7 +54,7 @@ GCC_IMPLEMENT_PUBLIC_API (int) gcc_location_get_column (gcc_location loc)
54
55
GCC_PUBLIC_API (bool) gcc_location_is_unknown (gcc_location loc)
56
{
57
- return UNKNOWN_LOCATION == loc.inner;
+ return UNKNOWN_LOCATION == loc.inner || !gcc_location_get_filename(loc);
58
}
59
60
GCC_IMPLEMENT_PUBLIC_API (bool) gcc_location_get_in_system_header (gcc_location loc)
0 commit comments