Skip to content

Commit 54aabe2

Browse files
committed
big refactor, functions are Referenced
1 parent 550a350 commit 54aabe2

34 files changed

+1094
-1018
lines changed

include/mrdox/Corpus.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ struct Corpus
3131

3232
/** Table of Info keyed on Symbol ID.
3333
*/
34-
llvm::StringMap<std::unique_ptr<Info>> USRToInfo;
34+
llvm::StringMap<std::unique_ptr<Info>> InfoMap;
3535

36-
/** List of everything
36+
/** List of all symbols.
3737
*/
3838
std::vector<SymbolID> allSymbols;
3939

source/lib/AccessScope.hpp

Lines changed: 0 additions & 59 deletions
This file was deleted.

source/lib/AsciidocGenerator.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,13 @@ void
366366
listFunctions(
367367
Config const& cfg,
368368
llvm::StringRef label,
369-
std::vector<FunctionInfo> const& v,
369+
std::vector<Reference> const& v,
370370
llvm::raw_ostream& os)
371371
{
372372
if(v.empty())
373373
return;
374-
374+
#if 0
375+
FunctionInfo const* I;
375376
section(label, 2, os);
376377
os <<
377378
"[cols=2]\n" <<
@@ -395,6 +396,7 @@ listFunctions(
395396
os <<
396397
"|===\n" <<
397398
"\n";
399+
#endif
398400
}
399401

400402
void
@@ -747,7 +749,7 @@ generateDocs(
747749

748750
// Collect all output by file name and create the necessary directories.
749751
llvm::StringMap<std::vector<mrdox::Info*>> FileToInfos;
750-
for (const auto& Group : corpus.USRToInfo)
752+
for (const auto& Group : corpus.InfoMap)
751753
{
752754
mrdox::Info* Info = Group.getValue().get();
753755

0 commit comments

Comments
 (0)