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
8e8b3061
Commit
8e8b3061
authored
Jun 26, 2016
by
mk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some changes
parent
41d44386
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
10 deletions
+28
-10
CMakeLists.txt
addon/doxyapp/CMakeLists.txt
+11
-0
util.cpp
src/util.cpp
+1
-1
VhdlParser.cc
vhdlparser/VhdlParser.cc
+2
-2
vhdlparser.jj
vhdlparser/vhdlparser.jj
+14
-7
No files found.
addon/doxyapp/CMakeLists.txt
View file @
8e8b3061
if
(
build_app
)
# configvalues.h
add_custom_command
(
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/src/configgen.py -maph
${
CMAKE_SOURCE_DIR
}
/src/config.xml >
${
GENERATED_SRC
}
/configvalues.h
DEPENDS
${
CMAKE_SOURCE_DIR
}
/src/config.xml
${
CMAKE_SOURCE_DIR
}
/src/configgen.py
OUTPUT
${
GENERATED_SRC
}
/configvalues.h
)
set_source_files_properties
(
${
GENERATED_SRC
}
/configvalues.h PROPERTIES GENERATED 1
)
find_package
(
Iconv
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src
${
GENERATED_SRC
}
${
CMAKE_SOURCE_DIR
}
/qtools
${
ICONV_INCLUDE_DIR
}
${
CLANG_INCLUDEDIR
}
)
add_executable
(
doxyapp
...
...
@@ -21,6 +31,7 @@ ${ICONV_LIBRARIES}
${
CMAKE_THREAD_LIBS_INIT
}
${
SQLITE3_LIBRARIES
}
${
EXTRA_LIBS
}
${
CLANG_LIBS
}
)
install
(
TARGETS doxyapp DESTINATION bin
)
...
...
src/util.cpp
View file @
8e8b3061
...
...
@@ -7777,7 +7777,7 @@ bool readInputFile(const char *fileName,BufStr &inBuf,bool filter,bool isSourceC
QFile
f
(
fileName
);
if
(
!
f
.
open
(
IO_ReadOnly
))
{
err
(
"could
2222
not open file %s
\n
"
,
fileName
);
err
(
"could not open file %s
\n
"
,
fileName
);
return
FALSE
;
}
size
=
fi
.
size
();
...
...
vhdlparser/VhdlParser.cc
View file @
8e8b3061
...
...
@@ -5695,7 +5695,7 @@ QCString VhdlParser::library_clause() {QCString s;if (!hasError) {
}
if
(
parse_sec
==
0
&&
Config_getBool
(
"SHOW_INCLUDE_FILES"
)
)
if
(
parse_sec
==
0
&&
Config_getBool
(
SHOW_INCLUDE_FILES
)
)
{
addVhdlType
(
s
.
data
(),
getLine
(),
Entry
::
VARIABLE_SEC
,
VhdlDocGen
::
LIBRARY
,
s
.
data
(),
"_library_"
,
Public
);
}
...
...
@@ -10382,7 +10382,7 @@ QStringList ql1=QStringList::split(",",s,FALSE);
{
QStringList
ql
=
QStringList
::
split
(
"."
,
ql1
[
j
],
FALSE
);
QCString
it
=
ql
[
1
].
utf8
();
if
(
parse_sec
==
0
&&
Config_getBool
(
"SHOW_INCLUDE_FILES"
)
)
if
(
parse_sec
==
0
&&
Config_getBool
(
SHOW_INCLUDE_FILES
)
)
{
VhdlParser
::
addVhdlType
(
it
.
data
(),
getLine
(),
Entry
::
VARIABLE_SEC
,
VhdlDocGen
::
USE
,
it
.
data
(),
"_use_"
,
Public
);
}
...
...
vhdlparser/vhdlparser.jj
View file @
8e8b3061
...
...
@@ -699,7 +699,13 @@ void component_instantiation_statement() : {QCString s,s1;}
s=identifier() <COLON_T>
s1=instantiation_unit()
{
addCompInst(s.lower().data(),s1.lower().data(),0,getLine());
QCString s3;
if (s1.contains("|")) {
s3=VhdlDocGen::getIndexWord(s1.data(),0);
s1=VhdlDocGen::getIndexWord(s1.data(),1);
}
addCompInst(s.lower().data(),s1.lower().data(),s3.data(),getLine());
}
[ LOOKAHEAD(generic_map_aspect()) generic_map_aspect() ]
[ port_map_aspect() ] <SEMI_T>
...
...
@@ -1367,10 +1373,10 @@ QCString index_subtype_definition() : {QCString s;}
s=type_mark() <RANGE_T> <BOX_T> { return s+" range <> ";}
}
QCString instantiation_unit() : {QCString s,s1,s2;Token *tok
=0
;}
QCString instantiation_unit() : {QCString s,s1,s2;Token *tok;}
{
[
tok=<COMPONENT_T> ] s=identifier() {s1="component
"; return s; }
|
tok=<ENTITY_T> s2=name() {s=tok->image.c_str()
+s2;} [ <LPAREN_T> s1=identifier() <RPAREN_T> {s+="(";s+=s1;s+=")" ;}] { return s;}
[
<COMPONENT_T> ] s=identifier() {s1="component
"; return s; }
|
<ENTITY_T> [LOOKAHEAD(2)<BASIC_IDENTIFIER> <DOT_T>] s2=name() {s="entity|"
+s2;} [ <LPAREN_T> s1=identifier() <RPAREN_T> {s+="(";s+=s1;s+=")" ;}] { return s;}
| <CONFIGURATION_T> s=name() {s1="configuration ";return s;}
}
...
...
@@ -1501,7 +1507,7 @@ QCString library_clause() : {QCString s;}
(<LIBRARY_T> s=identifier_list() <SEMI_T>
)
{
if ( parse_sec==0 && Config_getBool(
"SHOW_INCLUDE_FILES"
) )
if ( parse_sec==0 && Config_getBool(
SHOW_INCLUDE_FILES
) )
{
addVhdlType(s.data(),getLine(),Entry::VARIABLE_SEC,VhdlDocGen::LIBRARY,s.data(),"_library_",Public);
}
...
...
@@ -2408,7 +2414,7 @@ QCString unconstraint_array_definition() : {QCString s,s1,s2,s3;}
{
QStringList ql=QStringList::split(".",ql1[j],FALSE);
QCString it=ql[1].utf8();
if ( parse_sec==0 && Config_getBool(
"SHOW_INCLUDE_FILES"
) )
if ( parse_sec==0 && Config_getBool(
SHOW_INCLUDE_FILES
) )
{
VhdlParser::addVhdlType(it.data(),getLine(),Entry::VARIABLE_SEC,VhdlDocGen::USE,it.data(),"_use_",Public);
}
...
...
@@ -2848,8 +2854,9 @@ QCString param(): {QCString s,s1;Token *tok=0;}
if(tok)
{
s = tok->image.data();
param_sec=0;
}
param_sec=0;
return s+"("+s1+")";
}
...
...
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