Skip to content

Commit 6d9dea1

Browse files
committed
Extended HTML dump of symbols of symbol table by state state flags.
1 parent 5d75f2e commit 6d9dea1

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/summaries/summary_dump.cpp

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,58 @@ std::string dump_symbol_table_symbols_in_html(
542542
ostr << "</td>\n";
543543
ostr << " </tr>\n";
544544
ostr << " </table>\n";
545+
546+
struct yesnot
547+
{
548+
static std::string str(const bool value) { return value ? "yes" : "no"; }
549+
};
550+
551+
ostr << " <table>\n";
552+
ostr << " <tr>\n";
553+
ostr << " <th>type</th>\n";
554+
ostr << " <th>macro</th>\n";
555+
ostr << " <th>exported</th>\n";
556+
ostr << " <th>input</th>\n";
557+
ostr << " <th>output</th>\n";
558+
ostr << " <th>state_var</th>\n";
559+
ostr << " <th>property</th>\n";
560+
ostr << " </tr>\n";
561+
ostr << " <tr>\n";
562+
ostr << " <td>" << yesnot::str(symbol.is_type) << "</td>\n";
563+
ostr << " <td>" << yesnot::str(symbol.is_macro) << "</td>\n";
564+
ostr << " <td>" << yesnot::str(symbol.is_exported) << "</td>\n";
565+
ostr << " <td>" << yesnot::str(symbol.is_input) << "</td>\n";
566+
ostr << " <td>" << yesnot::str(symbol.is_output) << "</td>\n";
567+
ostr << " <td>" << yesnot::str(symbol.is_state_var) << "</td>\n";
568+
ostr << " <td>" << yesnot::str(symbol.is_property) << "</td>\n";
569+
ostr << " </tr>\n";
570+
ostr << " </table>\n";
571+
572+
ostr << " <table>\n";
573+
ostr << " <tr>\n";
574+
ostr << " <th>static</th>\n";
575+
ostr << " <th>thread_local</th>\n";
576+
ostr << " <th>lvalue</th>\n";
577+
ostr << " <th>file_local</th>\n";
578+
ostr << " <th>extern</th>\n";
579+
ostr << " <th>volatile</th>\n";
580+
ostr << " <th>parameter</th>\n";
581+
ostr << " <th>auxiliary</th>\n";
582+
ostr << " <th>weak</th>\n";
583+
ostr << " </tr>\n";
584+
ostr << " <tr>\n";
585+
ostr << " <td>" << yesnot::str(symbol.is_state_var) << "</td>\n";
586+
ostr << " <td>" << yesnot::str(symbol.is_thread_local) <<"</td>\n";
587+
ostr << " <td>" << yesnot::str(symbol.is_lvalue) << "</td>\n";
588+
ostr << " <td>" << yesnot::str(symbol.is_file_local) << "</td>\n";
589+
ostr << " <td>" << yesnot::str(symbol.is_extern) << "</td>\n";
590+
ostr << " <td>" << yesnot::str(symbol.is_volatile) << "</td>\n";
591+
ostr << " <td>" << yesnot::str(symbol.is_parameter) << "</td>\n";
592+
ostr << " <td>" << yesnot::str(symbol.is_auxiliary) << "</td>\n";
593+
ostr << " <td>" << yesnot::str(symbol.is_weak) << "</td>\n";
594+
ostr << " </tr>\n";
595+
ostr << " </table>\n";
596+
545597
ostr << " </td>\n";
546598
ostr << " </tr>\n";
547599
}

0 commit comments

Comments
 (0)