/*@only@*/ cstring
fileloc_unparseRaw (cstring fname, int lineno)
{
- bool parenFormat = context_getFlag (FLG_PARENFILEFORMAT);
-
- if (parenFormat)
+ if (!cstring_isEmpty (fname))
{
- return (message ("%q(%d)", osd_outputPath (fname), lineno));
+ bool parenFormat = context_getFlag (FLG_PARENFILEFORMAT);
+
+ if (parenFormat)
+ {
+ return (message ("%q(%d)", osd_outputPath (fname), lineno));
+ }
+ else
+ {
+ return (message ("%q:%d", osd_outputPath (fname), lineno));
+ }
}
else
{
- return (message ("%q:%d", osd_outputPath (fname), lineno));
+ return cstring_makeLiteral ("Command Line");
}
}
/*@only@*/ cstring
fileloc_unparseRawCol (cstring fname, int lineno, int col)
{
- if (context_getFlag (FLG_SHOWCOL))
+ if (!cstring_isEmpty (fname))
{
- bool parenFormat = context_getFlag (FLG_PARENFILEFORMAT);
-
- if (parenFormat)
+ if (context_getFlag (FLG_SHOWCOL))
{
- return (message ("%q(%d,%d)", osd_outputPath (fname), lineno, col));
+ bool parenFormat = context_getFlag (FLG_PARENFILEFORMAT);
+
+ if (parenFormat)
+ {
+ return (message ("%q(%d,%d)", osd_outputPath (fname), lineno, col));
+ }
+ else
+ {
+ return (message ("%q:%d:%d", osd_outputPath (fname), lineno, col));
+ }
}
else
{
- return (message ("%q:%d:%d", osd_outputPath (fname), lineno, col));
+ return fileloc_unparseRaw (fname, lineno);
}
}
else
{
- return fileloc_unparseRaw (fname, lineno);
+ return cstring_makeLiteral ("Command Line");
}
}
specclauses3.c:7:6: Special clause accesses field of non-struct or union result
(int): *(result).name
specclauses3.c: (in function badResult)
-specclauses3.c:12:10: Undefined storage <const ?>->name corresponds to storage
- result->name listed in defines clause: NULL
+specclauses3.c:12:10: Undefined storage <const <any>>->name corresponds to
+ storage result->name listed in defines clause: NULL
specclauses3.c:12:10: Null storage returned as non-null: NULL
specclauses3.c: (in function createName2)
specclauses3.c:29:10: Undefined storage res->name corresponds to storage