@@ -246,7 +246,7 @@ static void initEntry()
246
246
247
247
static void lineCount ()
248
248
{
249
- static int tabSize = Config_getInt (TAB_SIZE);
249
+ int tabSize = Config_getInt (TAB_SIZE);
250
250
const char *p;
251
251
for (p = yytext ; *p ; ++p )
252
252
{
@@ -269,7 +269,7 @@ static void lineCount()
269
269
static inline int computeIndent (const char *s,int startIndent)
270
270
{
271
271
int col=startIndent;
272
- static int tabSize=Config_getInt (TAB_SIZE);
272
+ int tabSize=Config_getInt (TAB_SIZE);
273
273
const char *p=s;
274
274
char c;
275
275
while ((c=*p++))
@@ -4120,7 +4120,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
4120
4120
if (!g_msName.isEmpty ()
4121
4121
/*&& g_msName!=g_current->name*/ ) // skip typedef T {} T;, removed due to bug608493
4122
4122
{
4123
- static bool typedefHidesStruct = Config_getBool (TYPEDEF_HIDES_STRUCT);
4123
+ bool typedefHidesStruct = Config_getBool (TYPEDEF_HIDES_STRUCT);
4124
4124
// case 1: typedef struct _S { ... } S_t;
4125
4125
// -> omit typedef and use S_t as the struct name
4126
4126
if (typedefHidesStruct &&
@@ -6207,41 +6207,43 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
6207
6207
BEGIN ( DocBlock );
6208
6208
}
6209
6209
<FindMembers,FindFields,MemberSpec,FuncQual,SkipCurly,Operator,ClassVar,SkipInits,Bases,OldStyleArgs>" /**" [*]+{BL} {
6210
+ bool javadocBanner = Config_getBool (JAVADOC_BANNER);
6211
+ lineCount ();
6210
6212
6211
- static bool javadocBanner = Config_getBool (JAVADOC_BANNER);
6212
-
6213
- if ( javadocBanner ) {
6214
- g_lastDocContext = YY_START;
6213
+ if ( javadocBanner )
6214
+ {
6215
+ g_lastDocContext = YY_START;
6215
6216
6216
- // printf("Found comment banner at %s:%d\n",g_yyFileName,g_yyLineNr);
6217
- if (g_current_root->section & Entry::SCOPE_MASK)
6218
- {
6219
- g_current->inside = g_current_root->name +" ::" ;
6220
- }
6221
- g_current->docLine = g_yyLineNr;
6222
- g_current->docFile = g_yyFileName;
6223
- g_docBlockContext = YY_START;
6224
- g_docBlockInBody = YY_START==SkipCurly;
6225
- static bool javadocAutoBrief = Config_getBool (JAVADOC_AUTOBRIEF);
6226
- g_docBlockAutoBrief = javadocAutoBrief;
6217
+ // printf("Found comment banner at %s:%d\n",g_yyFileName,g_yyLineNr);
6218
+ if (g_current_root->section & Entry::SCOPE_MASK)
6219
+ {
6220
+ g_current->inside = g_current_root->name +" ::" ;
6221
+ }
6222
+ g_current->docLine = g_yyLineNr;
6223
+ g_current->docFile = g_yyFileName;
6224
+ g_docBlockContext = YY_START;
6225
+ g_docBlockInBody = YY_START==SkipCurly;
6226
+ bool javadocAutoBrief = Config_getBool (JAVADOC_AUTOBRIEF);
6227
+ g_docBlockAutoBrief = javadocAutoBrief;
6227
6228
6228
- QCString indent;
6229
- indent.fill (' ' ,computeIndent (yytext,g_column));
6230
- g_docBlock=indent;
6229
+ QCString indent;
6230
+ indent.fill (' ' ,computeIndent (yytext,g_column));
6231
+ g_docBlock=indent;
6231
6232
6232
- if (g_docBlockAutoBrief)
6233
- {
6234
- g_current->briefLine = g_yyLineNr;
6235
- g_current->briefFile = g_yyFileName;
6236
- }
6237
- startCommentBlock (FALSE );
6238
- BEGIN ( DocBlock );
6239
- } else {
6240
- g_current->program += yytext ;
6241
- g_lastContext = YY_START ;
6242
- BEGIN ( Comment ) ;
6233
+ if (g_docBlockAutoBrief)
6234
+ {
6235
+ g_current->briefLine = g_yyLineNr;
6236
+ g_current->briefFile = g_yyFileName;
6237
+ }
6238
+ startCommentBlock (FALSE );
6239
+ BEGIN ( DocBlock );
6240
+ }
6241
+ else
6242
+ {
6243
+ g_current->program += yytext ;
6244
+ g_lastContext = YY_START ;
6245
+ BEGIN ( Comment ) ;
6243
6246
}
6244
-
6245
6247
}
6246
6248
<FindMembers,FindFields,MemberSpec,FuncQual,SkipCurly,Operator,ClassVar,SkipInits,Bases,OldStyleArgs>(" //" {B}*)?" /**" /[^/*] {
6247
6249
g_lastDocContext = YY_START;
@@ -6255,7 +6257,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
6255
6257
g_current->docFile = g_yyFileName;
6256
6258
g_docBlockContext = YY_START;
6257
6259
g_docBlockInBody = YY_START==SkipCurly;
6258
- static bool javadocAutoBrief = Config_getBool(JAVADOC_AUTOBRIEF);
6260
+ bool javadocAutoBrief = Config_getBool(JAVADOC_AUTOBRIEF);
6259
6261
g_docBlockAutoBrief = javadocAutoBrief;
6260
6262
6261
6263
QCString indent;
@@ -6916,7 +6918,7 @@ static void newEntry()
6916
6918
6917
6919
static void handleCommentBlock (const QCString &doc,bool brief)
6918
6920
{
6919
- static bool hideInBodyDocs = Config_getBool(HIDE_IN_BODY_DOCS);
6921
+ bool hideInBodyDocs = Config_getBool(HIDE_IN_BODY_DOCS);
6920
6922
if (g_docBlockInBody && hideInBodyDocs) return ;
6921
6923
// printf("parseCommentBlock [%s] brief=%d\n",doc.data(),brief);
6922
6924
int lineNr = brief ? g_current->briefLine : g_current->docLine; // line of block start
@@ -7058,7 +7060,7 @@ static void parseCompounds(const std::unique_ptr<Entry> &rt)
7058
7060
initEntry ();
7059
7061
7060
7062
// deep copy group list from parent (see bug 727732)
7061
- static bool autoGroupNested = Config_getBool (GROUP_NESTED_COMPOUNDS);
7063
+ bool autoGroupNested = Config_getBool (GROUP_NESTED_COMPOUNDS);
7062
7064
if (autoGroupNested && ce->section !=Entry::ENUM_SEC && !(ce->spec &Entry::Enum))
7063
7065
{
7064
7066
ce->groups = rt->groups ;
0 commit comments