Skip to content

Commit 1f49653

Browse files
committed
tidy
1 parent 5ed6c8f commit 1f49653

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

source/lib/BasicVisitor.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ bool
125125
BasicVisitor::
126126
VisitTypedefDecl(TypedefDecl const* D)
127127
{
128-
#if 0
129-
TypeDecl const* td = D;
130-
Type const* ty = td->getTypeForDecl();
131-
ty->getAsCXXRecordDecl();
132-
133-
/*
134-
for(auto const& t : D->redecls())
135-
{
136-
llvm::outs() << "\n";
137-
}
138-
*/
139-
#endif
140128
return mapDecl(D);
141129
}
142130

source/lib/BitcodeWriter.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,10 @@ void ClangDocBitcodeWriter::emitBlock(const Reference& R, FieldId Field) {
444444
emitRecord((unsigned)Field, REFERENCE_FIELD);
445445
}
446446

447-
void ClangDocBitcodeWriter::emitBlock(const TypeInfo& T) {
447+
void
448+
ClangDocBitcodeWriter::
449+
emitBlock(TypeInfo const& T)
450+
{
448451
StreamSubBlockGuard Block(Stream, BI_TYPE_BLOCK_ID);
449452
emitBlock(T.Type, FieldId::F_type);
450453
}

source/lib/XML.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ XMLGenerator::
403403
writeFunction(
404404
FunctionInfo const& I)
405405
{
406-
openTag("func", {
406+
openTag("function", {
407407
{ "name", I.Name },
408408
{ "USR", toBase64(I.USR) },
409409
{ "access", toString(I.Access) }
@@ -428,7 +428,7 @@ writeFunction(
428428
{ "t", p.Type.Name }
429429
});
430430
writeLoc(I.Loc);
431-
closeTag("func");
431+
closeTag("function");
432432
}
433433

434434
void

0 commit comments

Comments
 (0)