We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcde700 commit 26f6282Copy full SHA for 26f6282
src/goto-checker/report_util.cpp
@@ -198,7 +198,11 @@ get_sorted_properties(const propertiest &properties)
198
const auto &p2 = pit2->second.pc->source_location;
199
if(p1.get_file() != p2.get_file())
200
return id2string(p1.get_file()) < id2string(p2.get_file());
201
- else if(!p1.get_line().empty() && !p2.get_line().empty())
+ if(p1.get_function() != p2.get_function())
202
+ return id2string(p1.get_function()) < id2string(p2.get_function());
203
+ else if(
204
+ !p1.get_line().empty() && !p2.get_line().empty() &&
205
+ p1.get_line() != p2.get_line())
206
return std::stoul(id2string(p1.get_line())) <
207
std::stoul(id2string(p2.get_line()));
208
else
0 commit comments