@@ -164,7 +164,7 @@ bool Doxygen::clangAssistedParsing = FALSE;
164
164
// locally accessible globals
165
165
static std::multimap< std::string, const Entry* > g_classEntries;
166
166
static StringVector g_inputFiles;
167
- static QDict< void > g_compoundKeywordDict ( 7 ); // keywords recognised as compounds
167
+ static StringSet g_compoundKeywords; // keywords recognised as compounds
168
168
static OutputList *g_outputList = 0 ; // list of output generating objects
169
169
static QDict<FileDef> g_usingDeclarations (1009 ); // used classes
170
170
static bool g_successfulRun = FALSE ;
@@ -243,36 +243,8 @@ class Statistics
243
243
244
244
void statistics ()
245
245
{
246
- #if 0
247
- fprintf(stderr,"--- inputNameLinkedMap stats ----\n");
248
- Doxygen::inputNameLinkedMap->statistics();
249
- fprintf(stderr,"--- includeNameDict stats ----\n");
250
- Doxygen::includeNameDict->statistics();
251
- fprintf(stderr,"--- exampleNameDict stats ----\n");
252
- Doxygen::exampleNameDict->statistics();
253
- fprintf(stderr,"--- imageNameDict stats ----\n");
254
- Doxygen::imageNameDict->statistics();
255
- fprintf(stderr,"--- dotFileNameDict stats ----\n");
256
- Doxygen::dotFileNameDict->statistics();
257
- fprintf(stderr,"--- mscFileNameDict stats ----\n");
258
- Doxygen::mscFileNameDict->statistics();
259
- fprintf(stderr,"--- diaFileNameDict stats ----\n");
260
- Doxygen::diaFileNameDict->statistics();
261
- fprintf(stderr,"--- memGrpInfoDict stats ----\n");
262
- Doxygen::memGrpInfoDict.statistics();
263
- #endif
264
- // fprintf(stderr,"--- g_excludeNameDict stats ----\n");
265
- // g_excludeNameDict.statistics();
266
- // fprintf(stderr,"--- aliasDict stats ----\n");
267
- // Doxygen::aliasDict.statistics();
268
- // fprintf(stderr,"--- tagDestinationDict stats ----\n");
269
- // Doxygen::tagDestinationDict.statistics();
270
- fprintf (stderr," --- g_compoundKeywordDict stats ----\n " );
271
- g_compoundKeywordDict.statistics ();
272
246
}
273
247
274
-
275
-
276
248
static void addMemberDocs (const Entry *root,MemberDefMutable *md, const char *funcDecl,
277
249
const ArgumentList *al,bool over_load,uint64 spec);
278
250
static void findMember (const Entry *root,
@@ -2906,7 +2878,7 @@ static void buildVarList(const Entry *root)
2906
2878
// printf("buildVarList(%s) section=%08x\n",rootNav->name().data(),rootNav->section());
2907
2879
int isFuncPtr=-1 ;
2908
2880
if (!root->name .isEmpty () &&
2909
- (root->type .isEmpty () || g_compoundKeywordDict .find (root->type )== 0 ) &&
2881
+ (root->type .isEmpty () || g_compoundKeywords .find (root->type . str ())==g_compoundKeywords. end () ) &&
2910
2882
(
2911
2883
(root->section ==Entry::VARIABLE_SEC // it's a variable
2912
2884
) ||
@@ -6746,7 +6718,7 @@ static void filterMemberDocumentation(const Entry *root,const QCString relates)
6746
6718
||
6747
6719
(root->section ==Entry::VARIABLE_SEC && // variable
6748
6720
!type.isEmpty () && // with a type
6749
- g_compoundKeywordDict .find (type)== 0 // that is not a keyword
6721
+ g_compoundKeywords .find (type. str ())==g_compoundKeywords. end () // that is not a keyword
6750
6722
// (to skip forward declaration of class etc.)
6751
6723
)
6752
6724
)
@@ -10145,13 +10117,13 @@ void initDoxygen()
10145
10117
* Initialize some global constants
10146
10118
**************************************************************************/
10147
10119
10148
- g_compoundKeywordDict .insert (" template class" ,( void *) 8 );
10149
- g_compoundKeywordDict .insert (" template struct" ,( void *) 8 );
10150
- g_compoundKeywordDict .insert (" class" ,( void *) 8 );
10151
- g_compoundKeywordDict .insert (" struct" ,( void *) 8 );
10152
- g_compoundKeywordDict .insert (" union" ,( void *) 8 );
10153
- g_compoundKeywordDict .insert (" interface" ,( void *) 8 );
10154
- g_compoundKeywordDict .insert (" exception" ,( void *) 8 );
10120
+ g_compoundKeywords .insert (" template class" );
10121
+ g_compoundKeywords .insert (" template struct" );
10122
+ g_compoundKeywords .insert (" class" );
10123
+ g_compoundKeywords .insert (" struct" );
10124
+ g_compoundKeywords .insert (" union" );
10125
+ g_compoundKeywords .insert (" interface" );
10126
+ g_compoundKeywords .insert (" exception" );
10155
10127
}
10156
10128
10157
10129
void cleanUpDoxygen ()
0 commit comments