Skip to content

Commit e3de53f

Browse files
committed
tidy
1 parent 65bc8d4 commit e3de53f

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

source/lib/Representation.h

+12-3
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,20 @@ struct TemplateInfo {
301301
};
302302

303303
// Info for field types.
304-
struct FieldTypeInfo : public TypeInfo {
304+
struct FieldTypeInfo
305+
: public TypeInfo
306+
{
305307
FieldTypeInfo() = default;
306-
FieldTypeInfo(const TypeInfo& TI, StringRef Name = StringRef(),
308+
309+
FieldTypeInfo(
310+
TypeInfo const& TI,
311+
StringRef Name = StringRef(),
307312
StringRef DefaultValue = StringRef())
308-
: TypeInfo(TI), Name(Name), DefaultValue(DefaultValue) {}
313+
: TypeInfo(TI)
314+
, Name(Name)
315+
, DefaultValue(DefaultValue)
316+
{
317+
}
309318

310319
bool operator==(const FieldTypeInfo& Other) const {
311320
return std::tie(Type, Name, DefaultValue) ==

source/lib/XML.cpp

+13-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ class XMLGenerator
182182

183183
//--------------------------------------------
184184

185+
void write(FieldTypeInfo const& I);
186+
187+
//--------------------------------------------
188+
185189
void writeInfoPart(Info const& I);
186190
void writeNamespaceList(llvm::SmallVector<Reference, 4> const& v);
187191
void writeRef(Reference const& ref);
@@ -412,7 +416,6 @@ writeFunction(
412416
writeTagLine("return",
413417
//I.ReturnType.Type.Name, {
414418
I.ReturnType.Type.QualName, {
415-
//{ "usr", toString(I.ReturnType.Type.USR) }
416419
{ "usr", toString(I.ReturnType.Type.USR) }
417420
});
418421
//writeRef(I.ReturnType.Type);
@@ -491,6 +494,15 @@ writeTypedef(
491494

492495
//------------------------------------------------
493496

497+
void
498+
XMLGenerator::
499+
write(
500+
FieldTypeInfo const& I)
501+
{
502+
}
503+
504+
//------------------------------------------------
505+
494506
void
495507
XMLGenerator::
496508
writeInfoPart(

0 commit comments

Comments
 (0)