Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
941eea99
Commit
941eea99
authored
Mar 15, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some restructuring and some compiler warning fixes
parent
c1e25238
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
46 additions
and
44 deletions
+46
-44
docblocks.doc
doc/docblocks.doc
+3
-3
commentcnv.h
src/commentcnv.h
+1
-1
context.cpp
src/context.cpp
+1
-1
dot.cpp
src/dot.cpp
+6
-2
fortrancode.h
src/fortrancode.h
+5
-3
fortrancode.l
src/fortrancode.l
+6
-6
fortranscanner.h
src/fortranscanner.h
+8
-8
fortranscanner.l
src/fortranscanner.l
+7
-7
index.cpp
src/index.cpp
+1
-1
language.cpp
src/language.cpp
+0
-10
lodepng.cpp
src/lodepng.cpp
+1
-1
types.h
src/types.h
+7
-0
util.h
src/util.h
+0
-1
No files found.
doc/docblocks.doc
View file @
941eea99
...
@@ -460,10 +460,10 @@ settings where overruled.
...
@@ -460,10 +460,10 @@ settings where overruled.
When using doxygen for Fortran code you should
When using doxygen for Fortran code you should
set \ref cfg_optimize_for_fortran "OPTIMIZE_FOR_FORTRAN" to \c YES.
set \ref cfg_optimize_for_fortran "OPTIMIZE_FOR_FORTRAN" to \c YES.
The parser tries to guess
wheter
the source code is fixed format Fortran or
The parser tries to guess
if
the source code is fixed format Fortran or
free format Fortran code. This
is not always correct, in the later case
free format Fortran code. This
may not always be correct. If not
one should use \ref cfg_extension_mapping "EXTENSION_MAPPING" to correct this.
one should use \ref cfg_extension_mapping "EXTENSION_MAPPING" to correct this.
By sett
e
ing `EXTENSION_MAPPING = f=FortranFixed f90=FortranFree` files with
By setting `EXTENSION_MAPPING = f=FortranFixed f90=FortranFree` files with
extension \c f90 are interpreted as fixed format Fortran code and files with
extension \c f90 are interpreted as fixed format Fortran code and files with
extension \c f are interpreted as free format Fortran code.
extension \c f are interpreted as free format Fortran code.
...
...
src/commentcnv.h
View file @
941eea99
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
*/
*/
#ifndef _COMMENTCNV_H
#ifndef _COMMENTCNV_H
#define _COMM
NE
TCNV_H
#define _COMM
EN
TCNV_H
class
BufStr
;
class
BufStr
;
...
...
src/context.cpp
View file @
941eea99
...
@@ -4045,7 +4045,7 @@ class ClassInheritanceContext::Private : public GenericNodeListContext
...
@@ -4045,7 +4045,7 @@ class ClassInheritanceContext::Private : public GenericNodeListContext
bool
b
;
bool
b
;
if
(
cd
->
getLanguage
()
==
SrcLangExt_VHDL
)
if
(
cd
->
getLanguage
()
==
SrcLangExt_VHDL
)
{
{
if
(
!
(
VhdlDocGen
::
VhdlClasses
)
cd
->
protection
()
=
=
VhdlDocGen
::
ENTITYCLASS
)
if
(
(
VhdlDocGen
::
VhdlClasses
)
cd
->
protection
()
!
=
VhdlDocGen
::
ENTITYCLASS
)
{
{
continue
;
continue
;
}
}
...
...
src/dot.cpp
View file @
941eea99
...
@@ -2462,8 +2462,12 @@ void DotGfxHierarchyTable::addClassList(ClassSDict *cl)
...
@@ -2462,8 +2462,12 @@ void DotGfxHierarchyTable::addClassList(ClassSDict *cl)
for
(
cli
.
toLast
();(
cd
=
cli
.
current
());
--
cli
)
for
(
cli
.
toLast
();(
cd
=
cli
.
current
());
--
cli
)
{
{
//printf("Trying %s subClasses=%d\n",cd->name().data(),cd->subClasses()->count());
//printf("Trying %s subClasses=%d\n",cd->name().data(),cd->subClasses()->count());
if
(
cd
->
getLanguage
()
==
SrcLangExt_VHDL
&&
!
(
VhdlDocGen
::
VhdlClasses
)
cd
->
protection
()
==
VhdlDocGen
::
ENTITYCLASS
)
if
(
cd
->
getLanguage
()
==
SrcLangExt_VHDL
&&
continue
;
(
VhdlDocGen
::
VhdlClasses
)
cd
->
protection
()
!=
VhdlDocGen
::
ENTITYCLASS
)
{
continue
;
}
if
(
!
hasVisibleRoot
(
cd
->
baseClasses
())
&&
if
(
!
hasVisibleRoot
(
cd
->
baseClasses
())
&&
cd
->
isVisibleInHierarchy
()
cd
->
isVisibleInHierarchy
()
)
// root node in the forest
)
// root node in the forest
...
...
src/fortrancode.h
View file @
941eea99
...
@@ -15,8 +15,10 @@
...
@@ -15,8 +15,10 @@
*
*
*/
*/
#ifndef CODE_H
#ifndef FORTRANCODE_H
#define CODE_H
#define FORTRANCODE_H
#include "types.h"
class
CodeOutputInterface
;
class
CodeOutputInterface
;
class
FileDef
;
class
FileDef
;
...
@@ -28,7 +30,7 @@ void parseFortranCode(CodeOutputInterface &,const char *,const QCString &,
...
@@ -28,7 +30,7 @@ void parseFortranCode(CodeOutputInterface &,const char *,const QCString &,
bool
,
const
char
*
,
FileDef
*
fd
,
bool
,
const
char
*
,
FileDef
*
fd
,
int
startLine
,
int
endLine
,
bool
inlineFragment
,
int
startLine
,
int
endLine
,
bool
inlineFragment
,
MemberDef
*
memberDef
,
bool
showLineNumbers
,
Definition
*
searchCtx
,
MemberDef
*
memberDef
,
bool
showLineNumbers
,
Definition
*
searchCtx
,
bool
collectRefs
,
Fortran
Kind
codeType
);
bool
collectRefs
,
Fortran
Format
format
);
void
resetFortranCodeParserState
();
void
resetFortranCodeParserState
();
void
codeFreeScanner
();
void
codeFreeScanner
();
...
...
src/fortrancode.l
View file @
941eea99
...
@@ -154,14 +154,14 @@ static int bracketCount = 0;
...
@@ -154,14 +154,14 @@ static int bracketCount = 0;
// simplified way to know if this is fixed form
// simplified way to know if this is fixed form
// duplicate in fortranscanner.l
// duplicate in fortranscanner.l
static bool recognizeFixedForm(const char* contents, Fortran
Kind codeType
)
static bool recognizeFixedForm(const char* contents, Fortran
Format format
)
{
{
int column=0;
int column=0;
bool skipLine=FALSE;
bool skipLine=FALSE;
if (
codeType == FORTRAN_FIXED
) return TRUE;
if (
format == FortranFormat_Fixed
) return TRUE;
if (
codeType == FORTRAN_FREE)
return FALSE;
if (
format == FortranFormat_Free)
return FALSE;
for (int i=0;;i++)
for (int i=0;;i++)
{
{
column++;
column++;
...
@@ -1110,7 +1110,7 @@ void parseFortranCode(CodeOutputInterface &od,const char *className,const QCStri
...
@@ -1110,7 +1110,7 @@ void parseFortranCode(CodeOutputInterface &od,const char *className,const QCStri
bool exBlock, const char *exName,FileDef *fd,
bool exBlock, const char *exName,FileDef *fd,
int startLine,int endLine,bool inlineFragment,
int startLine,int endLine,bool inlineFragment,
MemberDef *memberDef,bool,Definition *searchCtx,
MemberDef *memberDef,bool,Definition *searchCtx,
bool collectXRefs, Fortran
Kind codeType
)
bool collectXRefs, Fortran
Format format
)
{
{
//printf("***parseCode() exBlock=%d exName=%s fd=%p\n",exBlock,exName,fd);
//printf("***parseCode() exBlock=%d exName=%s fd=%p\n",exBlock,exName,fd);
...
@@ -1124,7 +1124,7 @@ void parseFortranCode(CodeOutputInterface &od,const char *className,const QCStri
...
@@ -1124,7 +1124,7 @@ void parseFortranCode(CodeOutputInterface &od,const char *className,const QCStri
g_code = &od;
g_code = &od;
g_inputString = s;
g_inputString = s;
g_inputPosition = 0;
g_inputPosition = 0;
g_isFixedForm = recognizeFixedForm((const char*)s,
codeType
);
g_isFixedForm = recognizeFixedForm((const char*)s,
format
);
g_currentFontClass = 0;
g_currentFontClass = 0;
g_needsTermination = FALSE;
g_needsTermination = FALSE;
g_searchCtx = searchCtx;
g_searchCtx = searchCtx;
...
...
src/fortranscanner.h
View file @
941eea99
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#define SCANNER_FORTRAN_H
#define SCANNER_FORTRAN_H
#include "parserintf.h"
#include "parserintf.h"
#include "util.h"
/** \brief Fortran language parser using state-based lexical scanning.
/** \brief Fortran language parser using state-based lexical scanning.
*
*
...
@@ -28,10 +27,10 @@
...
@@ -28,10 +27,10 @@
class
FortranLanguageScanner
:
public
ParserInterface
class
FortranLanguageScanner
:
public
ParserInterface
{
{
public
:
public
:
FortranLanguageScanner
(
void
)
{
codeType
=
FORTRAN_UNKNOWN
;
}
FortranLanguageScanner
(
FortranFormat
format
=
FortranFormat_Unknown
)
:
m_format
(
format
)
{
}
virtual
~
FortranLanguageScanner
(
void
)
{}
virtual
~
FortranLanguageScanner
()
{}
void
startTranslationUnit
(
const
char
*
)
{}
void
startTranslationUnit
(
const
char
*
)
{}
void
finishTranslationUnit
(
void
)
{}
void
finishTranslationUnit
()
{}
void
parseInput
(
const
char
*
fileName
,
void
parseInput
(
const
char
*
fileName
,
const
char
*
fileBuf
,
const
char
*
fileBuf
,
Entry
*
root
,
Entry
*
root
,
...
@@ -53,22 +52,23 @@ class FortranLanguageScanner : public ParserInterface
...
@@ -53,22 +52,23 @@ class FortranLanguageScanner : public ParserInterface
Definition
*
searchCtx
=
0
,
Definition
*
searchCtx
=
0
,
bool
collectXRefs
=
TRUE
bool
collectXRefs
=
TRUE
);
);
void
resetCodeParserState
(
void
);
void
resetCodeParserState
();
void
parsePrototype
(
const
char
*
text
);
void
parsePrototype
(
const
char
*
text
);
FortranKind
codeType
;
private
:
FortranFormat
m_format
;
};
};
class
FortranLanguageScannerFree
:
public
FortranLanguageScanner
class
FortranLanguageScannerFree
:
public
FortranLanguageScanner
{
{
public
:
public
:
FortranLanguageScannerFree
(
void
)
{
codeType
=
FORTRAN_FREE
;
}
FortranLanguageScannerFree
(
)
:
FortranLanguageScanner
(
FortranFormat_Free
)
{
}
};
};
class
FortranLanguageScannerFixed
:
public
FortranLanguageScanner
class
FortranLanguageScannerFixed
:
public
FortranLanguageScanner
{
{
public
:
public
:
FortranLanguageScannerFixed
(
void
)
{
codeType
=
FORTRAN_FIXED
;
}
FortranLanguageScannerFixed
(
)
:
FortranLanguageScanner
(
FortranFormat_Fixed
)
{
}
};
};
#endif
#endif
src/fortranscanner.l
View file @
941eea99
...
@@ -1313,13 +1313,13 @@ void truncatePrepass(int index)
...
@@ -1313,13 +1313,13 @@ void truncatePrepass(int index)
// simplified way to know if this is fixed form
// simplified way to know if this is fixed form
// duplicate in fortrancode.l
// duplicate in fortrancode.l
static bool recognizeFixedForm(const char* contents, Fortran
Kind codeType
)
static bool recognizeFixedForm(const char* contents, Fortran
Format format
)
{
{
int column=0;
int column=0;
bool skipLine=FALSE;
bool skipLine=FALSE;
if (
codeType == FORTRAN_FIXED
) return TRUE;
if (
format == FortranFormat_Fixed
) return TRUE;
if (
codeType == FORTRAN_FREE)
return FALSE;
if (
format == FortranFormat_Free)
return FALSE;
for(int i=0;;i++) {
for(int i=0;;i++) {
column++;
column++;
...
@@ -2246,7 +2246,7 @@ level--;
...
@@ -2246,7 +2246,7 @@ level--;
#endif
#endif
static void parseMain(const char *fileName,const char *fileBuf,Entry *rt, Fortran
Kind codeType
)
static void parseMain(const char *fileName,const char *fileBuf,Entry *rt, Fortran
Format format
)
{
{
char *tmpBuf = NULL;
char *tmpBuf = NULL;
initParser();
initParser();
...
@@ -2266,7 +2266,7 @@ static void parseMain(const char *fileName,const char *fileBuf,Entry *rt, Fortra
...
@@ -2266,7 +2266,7 @@ static void parseMain(const char *fileName,const char *fileBuf,Entry *rt, Fortra
inputFile.setName(fileName);
inputFile.setName(fileName);
if (inputFile.open(IO_ReadOnly))
if (inputFile.open(IO_ReadOnly))
{
{
isFixedForm = recognizeFixedForm(fileBuf,
codeType
);
isFixedForm = recognizeFixedForm(fileBuf,
format
);
if (isFixedForm)
if (isFixedForm)
{
{
...
@@ -2345,7 +2345,7 @@ void FortranLanguageScanner::parseInput(const char *fileName,
...
@@ -2345,7 +2345,7 @@ void FortranLanguageScanner::parseInput(const char *fileName,
printlex(yy_flex_debug, TRUE, __FILE__, fileName);
printlex(yy_flex_debug, TRUE, __FILE__, fileName);
::parseMain(fileName,fileBuf,root,
this->codeType
);
::parseMain(fileName,fileBuf,root,
m_format
);
printlex(yy_flex_debug, FALSE, __FILE__, fileName);
printlex(yy_flex_debug, FALSE, __FILE__, fileName);
}
}
...
@@ -2368,7 +2368,7 @@ void FortranLanguageScanner::parseCode(CodeOutputInterface & codeOutIntf,
...
@@ -2368,7 +2368,7 @@ void FortranLanguageScanner::parseCode(CodeOutputInterface & codeOutIntf,
{
{
::parseFortranCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
::parseFortranCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
fileDef,startLine,endLine,inlineFragment,memberDef,
fileDef,startLine,endLine,inlineFragment,memberDef,
showLineNumbers,searchCtx,collectXRefs,
this->codeType
);
showLineNumbers,searchCtx,collectXRefs,
m_format
);
}
}
bool FortranLanguageScanner::needsPreprocessing(const QCString &extension)
bool FortranLanguageScanner::needsPreprocessing(const QCString &extension)
...
...
src/index.cpp
View file @
941eea99
...
@@ -811,7 +811,7 @@ static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started,FT
...
@@ -811,7 +811,7 @@ static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started,FT
bool
b
;
bool
b
;
if
(
cd
->
getLanguage
()
==
SrcLangExt_VHDL
)
if
(
cd
->
getLanguage
()
==
SrcLangExt_VHDL
)
{
{
if
(
!
(
VhdlDocGen
::
VhdlClasses
)
cd
->
protection
()
==
VhdlDocGen
::
ENTITYCLASS
)
if
(
(
VhdlDocGen
::
VhdlClasses
)
cd
->
protection
()
!=
VhdlDocGen
::
ENTITYCLASS
)
{
{
continue
;
continue
;
}
}
...
...
src/language.cpp
View file @
941eea99
...
@@ -156,16 +156,6 @@
...
@@ -156,16 +156,6 @@
Translator
*
theTranslator
=
0
;
Translator
*
theTranslator
=
0
;
static
const
char
obsoleteMsg
[]
=
"---------
\n
"
"ERROR: The selected language is no longer supported!
\n
"
"If you want doxygen to produce output in this language
\n
"
"you are kindly requested to help bringing the documentation
\n
"
"up to date. Please read the development section of the manual
\n
"
"for more information or contact Petr Prikryl (Prikryl@skil.cz).
\n
"
"Thanks in advance!
\n
"
"---------
\n
"
;
bool
setTranslator
(
const
char
*
langName
)
bool
setTranslator
(
const
char
*
langName
)
{
{
if
(
L_EQUAL
(
"english"
))
if
(
L_EQUAL
(
"english"
))
...
...
src/lodepng.cpp
View file @
941eea99
...
@@ -1146,10 +1146,10 @@ static unsigned encodeLZ77_brute(uivector* out, const unsigned char* in, size_t
...
@@ -1146,10 +1146,10 @@ static unsigned encodeLZ77_brute(uivector* out, const unsigned char* in, size_t
}
}
#endif
#endif
/*
static const unsigned HASH_NUM_VALUES = 65536;
static const unsigned HASH_NUM_VALUES = 65536;
static const unsigned HASH_NUM_CHARACTERS = 6;
static const unsigned HASH_NUM_CHARACTERS = 6;
static const unsigned HASH_SHIFT = 2;
static const unsigned HASH_SHIFT = 2;
/*
Good and fast values: HASH_NUM_VALUES=65536, HASH_NUM_CHARACTERS=6, HASH_SHIFT=2
Good and fast values: HASH_NUM_VALUES=65536, HASH_NUM_CHARACTERS=6, HASH_SHIFT=2
making HASH_NUM_CHARACTERS larger (like 8), makes the file size larger but is a bit faster
making HASH_NUM_CHARACTERS larger (like 8), makes the file size larger but is a bit faster
making HASH_NUM_CHARACTERS smaller (like 3), makes the file size smaller but is slower
making HASH_NUM_CHARACTERS smaller (like 3), makes the file size smaller but is slower
...
...
src/types.h
View file @
941eea99
...
@@ -210,4 +210,11 @@ enum MemberType
...
@@ -210,4 +210,11 @@ enum MemberType
MemberType_Service
,
MemberType_Service
,
};
};
enum
FortranFormat
{
FortranFormat_Unknown
,
FortranFormat_Free
,
FortranFormat_Fixed
};
#endif
#endif
src/util.h
View file @
941eea99
...
@@ -414,7 +414,6 @@ QCString externalRef(const QCString &relPath,const QCString &ref,bool href);
...
@@ -414,7 +414,6 @@ QCString externalRef(const QCString &relPath,const QCString &ref,bool href);
int
nextUtf8CharPosition
(
const
QCString
&
utf8Str
,
int
len
,
int
startPos
);
int
nextUtf8CharPosition
(
const
QCString
&
utf8Str
,
int
len
,
int
startPos
);
const
char
*
writeUtf8Char
(
FTextStream
&
t
,
const
char
*
s
);
const
char
*
writeUtf8Char
(
FTextStream
&
t
,
const
char
*
s
);
enum
FortranKind
{
FORTRAN_UNKNOWN
=
0
,
FORTRAN_FREE
,
FORTRAN_FIXED
};
/** Data associated with a HSV colored image. */
/** Data associated with a HSV colored image. */
struct
ColoredImgDataItem
struct
ColoredImgDataItem
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment