@@ -112,7 +112,7 @@ static QCString makeDisplayName(const ClassDef *cd,bool includeScope)
112
112
SrcLangExt lang = cd->getLanguage ();
113
113
// bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
114
114
QCString n;
115
- if (lang==SrcLangExt_VHDL )
115
+ if (lang==SrcLangExt::VHDL )
116
116
{
117
117
n = VhdlDocGen::getClassName (cd);
118
118
}
@@ -147,7 +147,7 @@ static QCString makeDisplayName(const ClassDef *cd,bool includeScope)
147
147
148
148
static QCString getCompoundTypeString (SrcLangExt lang,ClassDef::CompoundType compType,bool isJavaEnum)
149
149
{
150
- if (lang==SrcLangExt_Fortran )
150
+ if (lang==SrcLangExt::Fortran )
151
151
{
152
152
switch (compType)
153
153
{
@@ -168,7 +168,7 @@ static QCString getCompoundTypeString(SrcLangExt lang,ClassDef::CompoundType com
168
168
case ClassDef::Class: return isJavaEnum ? " enum" : " class" ;
169
169
case ClassDef::Struct: return " struct" ;
170
170
case ClassDef::Union: return " union" ;
171
- case ClassDef::Interface: return lang==SrcLangExt_ObjC ? " class" : " interface" ;
171
+ case ClassDef::Interface: return lang==SrcLangExt::ObjC ? " class" : " interface" ;
172
172
case ClassDef::Protocol: return " protocol" ;
173
173
case ClassDef::Category: return " category" ;
174
174
case ClassDef::Exception: return " exception" ;
@@ -826,7 +826,7 @@ void ClassDefImpl::IMPL::init(const QCString &defFileName, const QCString &name,
826
826
827
827
// we cannot use getLanguage at this point, as setLanguage has not been called.
828
828
SrcLangExt lang = getLanguageFromFileName (defFileName);
829
- if ((lang==SrcLangExt_Cpp || lang==SrcLangExt_ObjC ) && guessSection (defFileName).isSource ())
829
+ if ((lang==SrcLangExt::Cpp || lang==SrcLangExt::ObjC ) && guessSection (defFileName).isSource ())
830
830
{
831
831
isLocal=TRUE ;
832
832
}
@@ -923,7 +923,7 @@ void ClassDefImpl::internalInsertMember(MemberDef *md,
923
923
// printf("%s:insertInternalMember(%s) isHidden()=%d\n",qPrint(name()),qPrint(md->name()),md->isHidden());
924
924
if (md->isHidden ()) return ;
925
925
926
- if (getLanguage ()==SrcLangExt_VHDL )
926
+ if (getLanguage ()==SrcLangExt::VHDL )
927
927
{
928
928
QCString title=theTranslator->trVhdlType (md->getVhdlSpecifiers (),FALSE );
929
929
m_impl->vhdlSummaryTitles .insert (title.str ());
@@ -1457,7 +1457,7 @@ void ClassDefImpl::writeDetailedDocumentationBody(OutputList &ol) const
1457
1457
1458
1458
ol.startTextBlock ();
1459
1459
1460
- if (getLanguage ()==SrcLangExt_Cpp )
1460
+ if (getLanguage ()==SrcLangExt::Cpp )
1461
1461
{
1462
1462
writeTemplateSpec (ol,this ,compoundTypeString (),getLanguage ());
1463
1463
}
@@ -1549,10 +1549,10 @@ QCString ClassDefImpl::generatedFromFiles() const
1549
1549
QCString result;
1550
1550
SrcLangExt lang = getLanguage ();
1551
1551
size_t numFiles = m_impl->files .size ();
1552
- if (lang==SrcLangExt_Fortran )
1552
+ if (lang==SrcLangExt::Fortran )
1553
1553
{
1554
1554
result = theTranslator->trGeneratedFromFilesFortran (
1555
- getLanguage ()==SrcLangExt_ObjC && m_impl->compType ==Interface ? Class : m_impl->compType ,
1555
+ getLanguage ()==SrcLangExt::ObjC && m_impl->compType ==Interface ? Class : m_impl->compType ,
1556
1556
numFiles==1 );
1557
1557
}
1558
1558
else if (isJavaEnum ())
@@ -1570,7 +1570,7 @@ QCString ClassDefImpl::generatedFromFiles() const
1570
1570
else
1571
1571
{
1572
1572
result = theTranslator->trGeneratedFromFiles (
1573
- getLanguage ()==SrcLangExt_ObjC && m_impl->compType ==Interface ? Class : m_impl->compType ,
1573
+ getLanguage ()==SrcLangExt::ObjC && m_impl->compType ==Interface ? Class : m_impl->compType ,
1574
1574
numFiles==1 );
1575
1575
}
1576
1576
return result;
@@ -2074,7 +2074,7 @@ void ClassDefImpl::writeSummaryLinks(OutputList &ol) const
2074
2074
bool first=TRUE ;
2075
2075
SrcLangExt lang = getLanguage ();
2076
2076
2077
- if (lang!=SrcLangExt_VHDL )
2077
+ if (lang!=SrcLangExt::VHDL )
2078
2078
{
2079
2079
for (const auto &lde : LayoutDocManager::instance ().docEntries (LayoutDocManager::Class))
2080
2080
{
@@ -2454,13 +2454,13 @@ void ClassDefImpl::writeDeclarationLink(OutputList &ol,bool &found,const QCStrin
2454
2454
{
2455
2455
ol.parseText (header);
2456
2456
}
2457
- else if (lang==SrcLangExt_VHDL )
2457
+ else if (lang==SrcLangExt::VHDL )
2458
2458
{
2459
2459
ol.parseText (theTranslator->trVhdlType (VhdlSpecifier::ARCHITECTURE,FALSE ));
2460
2460
}
2461
2461
else
2462
2462
{
2463
- ol.parseText (lang==SrcLangExt_Fortran ?
2463
+ ol.parseText (lang==SrcLangExt::Fortran ?
2464
2464
theTranslator->trDataTypes () :
2465
2465
theTranslator->trCompounds ());
2466
2466
}
@@ -2473,7 +2473,7 @@ void ClassDefImpl::writeDeclarationLink(OutputList &ol,bool &found,const QCStrin
2473
2473
QCString ctype = compoundTypeString ();
2474
2474
QCString cname = displayName (!localNames);
2475
2475
2476
- if (lang!=SrcLangExt_VHDL ) // for VHDL we swap the name and the type
2476
+ if (lang!=SrcLangExt::VHDL ) // for VHDL we swap the name and the type
2477
2477
{
2478
2478
if (isSliceLocal ())
2479
2479
{
@@ -2497,7 +2497,7 @@ void ClassDefImpl::writeDeclarationLink(OutputList &ol,bool &found,const QCStrin
2497
2497
ol.docify (cname);
2498
2498
ol.endBold ();
2499
2499
}
2500
- if (lang==SrcLangExt_VHDL ) // now write the type
2500
+ if (lang==SrcLangExt::VHDL ) // now write the type
2501
2501
{
2502
2502
ol.writeString (" " );
2503
2503
ol.insertMemberAlign ();
@@ -2535,7 +2535,7 @@ void ClassDefImpl::addClassAttributes(OutputList &ol) const
2535
2535
if (isSealed ()) sl.push_back (" sealed" );
2536
2536
if (isAbstract ()) sl.push_back (" abstract" );
2537
2537
if (isExported ()) sl.push_back (" export" );
2538
- if (getLanguage ()==SrcLangExt_IDL && isPublished ()) sl.push_back (" published" );
2538
+ if (getLanguage ()==SrcLangExt::IDL && isPublished ()) sl.push_back (" published" );
2539
2539
2540
2540
for (const auto &sx : m_impl->qualifiers )
2541
2541
{
@@ -2583,7 +2583,7 @@ void ClassDefImpl::writeDocumentationContents(OutputList &ol,const QCString & /*
2583
2583
writeBriefDescription (ol,exampleFlag);
2584
2584
break ;
2585
2585
case LayoutDocEntry::ClassIncludes:
2586
- if (lang==SrcLangExt_Slice )
2586
+ if (lang==SrcLangExt::Slice )
2587
2587
{
2588
2588
writeIncludeFilesForSlice (ol);
2589
2589
}
@@ -2714,19 +2714,19 @@ QCString ClassDefImpl::title() const
2714
2714
QCString pageTitle;
2715
2715
SrcLangExt lang = getLanguage ();
2716
2716
2717
- if (lang==SrcLangExt_Fortran )
2717
+ if (lang==SrcLangExt::Fortran )
2718
2718
{
2719
2719
pageTitle = theTranslator->trCompoundReferenceFortran (displayName (),
2720
2720
m_impl->compType ,
2721
2721
!m_impl->tempArgs .empty ());
2722
2722
}
2723
- else if (lang==SrcLangExt_Slice )
2723
+ else if (lang==SrcLangExt::Slice )
2724
2724
{
2725
2725
pageTitle = theTranslator->trCompoundReferenceSlice (displayName (),
2726
2726
m_impl->compType ,
2727
2727
isSliceLocal ());
2728
2728
}
2729
- else if (lang==SrcLangExt_VHDL )
2729
+ else if (lang==SrcLangExt::VHDL )
2730
2730
{
2731
2731
pageTitle = theTranslator->trCustomReference (VhdlDocGen::getClassTitle (this ));
2732
2732
}
@@ -2751,7 +2751,7 @@ QCString ClassDefImpl::title() const
2751
2751
else
2752
2752
{
2753
2753
pageTitle = theTranslator->trCompoundReference (displayName (),
2754
- m_impl->compType == Interface && getLanguage ()==SrcLangExt_ObjC ? Class : m_impl->compType ,
2754
+ m_impl->compType == Interface && getLanguage ()==SrcLangExt::ObjC ? Class : m_impl->compType ,
2755
2755
!m_impl->tempArgs .empty ());
2756
2756
}
2757
2757
}
@@ -3110,18 +3110,18 @@ void ClassDefImpl::writeMemberList(OutputList &ol) const
3110
3110
}
3111
3111
SrcLangExt lang = md->getLanguage ();
3112
3112
if (
3113
- (prot!=Protection::Public || (virt!=Specifier::Normal && getLanguage ()!=SrcLangExt_ObjC ) ||
3113
+ (prot!=Protection::Public || (virt!=Specifier::Normal && getLanguage ()!=SrcLangExt::ObjC ) ||
3114
3114
md->isFriend () || md->isRelated () || md->isExplicit () ||
3115
3115
md->isMutable () || (md->isInline () && Config_getBool (INLINE_INFO)) ||
3116
3116
md->isSignal () || md->isSlot () ||
3117
- (getLanguage ()==SrcLangExt_IDL &&
3117
+ (getLanguage ()==SrcLangExt::IDL &&
3118
3118
(md->isOptional () || md->isAttribute () || md->isUNOProperty ())) ||
3119
- md->isStatic () || lang==SrcLangExt_VHDL
3119
+ md->isStatic () || lang==SrcLangExt::VHDL
3120
3120
)
3121
3121
&& memberWritten)
3122
3122
{
3123
3123
StringVector sl;
3124
- if (lang==SrcLangExt_VHDL )
3124
+ if (lang==SrcLangExt::VHDL )
3125
3125
{
3126
3126
sl.push_back (theTranslator->trVhdlType (md->getVhdlSpecifiers (),TRUE ).str ()); // append vhdl type
3127
3127
}
@@ -3136,7 +3136,7 @@ void ClassDefImpl::writeMemberList(OutputList &ol) const
3136
3136
if (prot==Protection::Protected) sl.push_back (" protected" );
3137
3137
else if (prot==Protection::Private) sl.push_back (" private" );
3138
3138
else if (prot==Protection::Package) sl.push_back (" package" );
3139
- if (virt==Specifier::Virtual && getLanguage ()!=SrcLangExt_ObjC )
3139
+ if (virt==Specifier::Virtual && getLanguage ()!=SrcLangExt::ObjC )
3140
3140
sl.push_back (" virtual" );
3141
3141
else if (virt==Specifier::Pure) sl.push_back (" pure virtual" );
3142
3142
if (md->isStatic ()) sl.push_back (" static" );
@@ -3542,7 +3542,7 @@ void ClassDefImpl::mergeMembers()
3542
3542
{
3543
3543
// merge the members in the base class of this inheritance branch first
3544
3544
bClass->mergeMembers ();
3545
- if (bClass->getLanguage ()==SrcLangExt_Python ) continue ; // python does not have member overloading, see issue 8480
3545
+ if (bClass->getLanguage ()==SrcLangExt::Python ) continue ; // python does not have member overloading, see issue 8480
3546
3546
3547
3547
const MemberNameInfoLinkedMap &srcMnd = bClass->memberNameInfoLinkedMap ();
3548
3548
MemberNameInfoLinkedMap &dstMnd = m_impl->allMemberNameInfoLinkedMap ;
@@ -4311,7 +4311,7 @@ int ClassDefImpl::countMemberDeclarations(MemberListType lt,const ClassDef *inhe
4311
4311
int count=0 ;
4312
4312
MemberList * ml = getMemberList (lt);
4313
4313
MemberList * ml2 = getMemberList (static_cast <MemberListType>(lt2));
4314
- if (getLanguage ()!=SrcLangExt_VHDL ) // use specific declarations function
4314
+ if (getLanguage ()!=SrcLangExt::VHDL ) // use specific declarations function
4315
4315
{
4316
4316
if (ml)
4317
4317
{
@@ -4546,7 +4546,7 @@ void ClassDefImpl::writeMemberDeclarations(OutputList &ol,ClassDefSet &visitedCl
4546
4546
// printf("%s: ClassDefImpl::writeMemberDeclarations lt=%d lt2=%d\n",qPrint(name()),lt,lt2);
4547
4547
MemberList * ml = getMemberList (lt);
4548
4548
MemberList * ml2 = getMemberList (static_cast <MemberListType>(lt2));
4549
- if (getLanguage ()==SrcLangExt_VHDL ) // use specific declarations function
4549
+ if (getLanguage ()==SrcLangExt::VHDL ) // use specific declarations function
4550
4550
{
4551
4551
static const ClassDef *cdef;
4552
4552
if (cdef!=this )
@@ -4771,17 +4771,17 @@ bool ClassDefImpl::isInterface() const
4771
4771
4772
4772
bool ClassDefImpl::isObjectiveC () const
4773
4773
{
4774
- return getLanguage ()==SrcLangExt_ObjC ;
4774
+ return getLanguage ()==SrcLangExt::ObjC ;
4775
4775
}
4776
4776
4777
4777
bool ClassDefImpl::isFortran () const
4778
4778
{
4779
- return getLanguage ()==SrcLangExt_Fortran ;
4779
+ return getLanguage ()==SrcLangExt::Fortran ;
4780
4780
}
4781
4781
4782
4782
bool ClassDefImpl::isCSharp () const
4783
4783
{
4784
- return getLanguage ()==SrcLangExt_CSharp ;
4784
+ return getLanguage ()==SrcLangExt::CSharp ;
4785
4785
}
4786
4786
4787
4787
ClassDef *ClassDefImpl::categoryOf () const
@@ -4817,7 +4817,7 @@ void ClassDefImpl::setSubGrouping(bool enabled)
4817
4817
void ClassDefImpl::setProtection (Protection p)
4818
4818
{
4819
4819
m_impl->prot =p;
4820
- if (getLanguage ()==SrcLangExt_VHDL && VhdlDocGen::convert (p)==VhdlDocGen::ARCHITECTURECLASS)
4820
+ if (getLanguage ()==SrcLangExt::VHDL && VhdlDocGen::convert (p)==VhdlDocGen::ARCHITECTURECLASS)
4821
4821
{
4822
4822
m_impl->className = name ();
4823
4823
}
@@ -5135,7 +5135,7 @@ bool classHasVisibleChildren(const ClassDef *cd)
5135
5135
{
5136
5136
BaseClassList bcl;
5137
5137
5138
- if (cd->getLanguage ()==SrcLangExt_VHDL ) // reverse baseClass/subClass relation
5138
+ if (cd->getLanguage ()==SrcLangExt::VHDL ) // reverse baseClass/subClass relation
5139
5139
{
5140
5140
if (cd->baseClasses ().empty ()) return FALSE ;
5141
5141
bcl=cd->baseClasses ();
0 commit comments