Skip to content

Commit 195f8d2

Browse files
committed
tidy
1 parent bbbe9db commit 195f8d2

File tree

8 files changed

+15
-12
lines changed

8 files changed

+15
-12
lines changed

source/lib/Asciidoc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ writeNameLink(
338338
llvm::SmallString<64> Path = R.getRelativeFilePath(CurrentPath);
339339
// Paths in Markdown use POSIX separators.
340340
llvm::sys::path::native(Path, llvm::sys::path::Style::posix);
341-
llvm::sys::path::append(Path, llvm::sys::path::Style::posix,
342-
R.getFileBaseName() + ".adoc");
341+
//llvm::sys::path::append(Path, llvm::sys::path::Style::posix, R.getFileBaseName() + ".adoc");
342+
llvm::sys::path::append(Path, llvm::sys::path::Style::posix, R.Name + ".adoc");
343343
os << "xref:" << Path << "#" << R.Name << "[" << R.Name << "]";
344344
}
345345

source/lib/Info.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ getRelativeFilePath(
106106
IT, Path, extractName(), CurrentPath);
107107
}
108108

109+
/*
109110
llvm::SmallString<16>
110111
Info::
111112
getFileBaseName() const
@@ -114,6 +115,7 @@ getFileBaseName() const
114115
return llvm::SmallString<16>("index");
115116
return extractName();
116117
}
118+
*/
117119

118120
//------------------------------------------------
119121

source/lib/Info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct Info
8181
llvm::SmallString<64> getRelativeFilePath(llvm::StringRef const& CurrentPath) const;
8282

8383
/// Returns the basename that should be used for this Info.
84-
llvm::SmallString<16> getFileBaseName() const;
84+
//llvm::SmallString<16> getFileBaseName() const;
8585

8686
/** Return the fully qualified name.
8787
*/

source/lib/Reference.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ getRelativeFilePath(
2424
RefType, Path, Name, CurrentPath);
2525
}
2626

27+
/*
2728
llvm::SmallString<16>
2829
Reference::
2930
getFileBaseName() const
@@ -32,6 +33,7 @@ getFileBaseName() const
3233
return llvm::SmallString<16>("index");
3334
return Name;
3435
}
36+
*/
3537

3638
bool
3739
Reference::

source/lib/Reference.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct Reference
8686
llvm::SmallString<64> getRelativeFilePath(llvm::StringRef const& CurrentPath) const;
8787

8888
/// Returns the basename that should be used for this Reference.
89-
llvm::SmallString<16> getFileBaseName() const;
89+
//llvm::SmallString<16> getFileBaseName() const;
9090
};
9191

9292
} // mrdox

source/lib/XML.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ write(
336336
//{ "usr", toString(ref.USR) }
337337
//});
338338
//writeTagLine("relpath", ref.getRelativeFilePath());
339-
writeTagLine("basename",
340-
I.getFileBaseName());
339+
//writeTagLine("basename",I.getFileBaseName());
341340
writeTagLine("name", I.Name);
342341
writeTagLine("tag", std::to_string(static_cast<int>(I.RefType)));
343342
writeTagLine("path", I.Path);
@@ -351,13 +350,13 @@ Writer::
351350
writeInfo(
352351
Info const& I)
353352
{
354-
writeTagLine("extract-name", I.extractName());
355353
#if 0
354+
writeTagLine("extract-name", I.extractName());
356355
auto relPath = I.getRelativeFilePath(config_.SourceRoot);
357356
if(! relPath.empty())
358357
writeTagLine("rel-path", relPath);
359-
#endif
360358
writeTagLine("base-name", I.getFileBaseName());
359+
#endif
361360
}
362361

363362
void

testfiles/2.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
/** brief
2+
3+
desc
4+
*/
15
namespace N {}

testfiles/2.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
<symbol name="N" usr="rjlMNXAaWNMkQYMTJzRA1DR0DiE="/>
44
</all>
55
<namespace name="">
6-
<extract-name>GlobalNamespace</extract-name>
7-
<base-name>index</base-name>
86
<namespace name="N" usr="rjlMNXAaWNMkQYMTJzRA1DR0DiE=">
9-
<extract-name>N</extract-name>
10-
<base-name>index</base-name>
117
</namespace>
128
</namespace>

0 commit comments

Comments
 (0)