Commit graph

32 commits

Author SHA1 Message Date
Dimitri van Heesch
592aaa4f17
Refactoring: remove implicit conversion from QCString to const char *
This commit changes the following in relation to string use
- The implicit convert from 'QCString' to 'const char *' is removed
- Strings parameters use 'const QCString &' as much as possible in favor
  over 'const char *'
- 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())'
- data() now always returns a valid C-string and not a 0-pointer.
- when passing a string 's' to printf and related functions 'qPrint(s)' is
  used instead of 's.data()'
- for empty string arguments 'QCString()' is used instead of '0'
- The copy() operation has been removed
- Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and
  'qstrcmp(a,b)<0' has been replaced by 'a<b'
- Parameters of string type that were default initialized with '= 0' are
  no initialized with '= QCString()'
2021-04-22 19:34:13 +02:00
Dimitri van Heesch
1e77368e15
Refactoring: move qcstring and remove qtools 2021-03-25 22:16:50 +01:00
Dimitri van Heesch
a59cd27893
Refactoring: replace QRegExp by std::regex in doxyparse.cpp 2021-02-20 20:17:52 +01:00
Dimitri van Heesch
cc0baded76
Refactoring: modernize MemberList 2021-01-22 21:45:19 +01:00
Dimitri van Heesch
7f79d52ff6
Refactoring: remove unused Doxygen::entryDBFileName and Doxygen::objDBFileName 2021-01-01 11:20:17 +01:00
Dimitri van Heesch
7af8870a02
Merge pull request #8263 from albert-github/feature/bug_addon_version
Usage of version and help in addons
2020-12-21 15:00:28 +01:00
Dimitri van Heesch
963caeef1c
Refactoring: replace ClassSDict by ClassLinkedMap/ClassLinkedRefMap 2020-12-19 20:27:37 +01:00
albert-github
b320b14cdf Usage of version and help in addons
More consequent and consistent usage of help and version in addons.
2020-12-19 18:42:18 +01:00
Joenio Marques da Costa
77b4c3bc7c quotes added surrounding inheritance tokens on doxyparse output
closes analizo/analizo#173
2020-12-01 22:13:58 +01:00
Dimitri van Heesch
1611bc8f24
Fix compile issue for doxyparse.cpp
This regression was introduced after removing support for isVisited/setVisited
2020-11-21 16:46:33 +01:00
Dimitri van Heesch
d03e8d9411
Refactoring: modernize TooltipManager class and source reference lists
- Tooltips are now collected per file instead of globally
- Source reference lists now use STL containers
2020-10-20 13:51:24 +02:00
albert-github
854a46d0f3 Compilation warnings in doxyparse
In doxyparse.cpp we got some compilation warnings (Windows 64-bit compiler) like:
```
doxyparse.cpp(299): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
```
these have been eliminated.
2020-10-13 12:17:14 +02:00
Dimitri van Heesch
86904d5b97
Refactoring: Modernize BaseClassList 2020-10-12 20:13:32 +02:00
Dimitri van Heesch
502e03dad2
Fix for broken LaTeX output.
Fixes error:
"\begin{DoxyCodeInclude} on input line 93 ended by \end{DoxyCode}"
while generating the LaTeX version of the manual
2020-09-27 21:08:41 +02:00
Dimitri van Heesch
cfdabb54c5
Refactoring: prepare output generators for multi-threaded use 2020-09-27 20:26:20 +02:00
Dimitri van Heesch
0df1623c93
Refactor: modernize configuration values 2020-06-04 22:06:08 +02:00
Dimitri van Heesch
4bc2355373
Replaced FileNameDict/FileNameList by FileNameLinkedMap 2020-04-06 19:19:07 +02:00
Joenio Costa
c6b9eb4268 print protection information on doxyparse
closes analizo/analizo#136
2020-03-29 13:06:33 -03:00
albert-github
39ba759f4d
Doxygen version information (#7645)
- add doxygen version to rtf, comment, output
- remove duplicate code (getFullVersion)
- more clear name to get doxygen version (getVersion becomes getrDoxygenVersion). Also to overcomecofusion with the version information for files.
2020-03-17 20:29:45 +01:00
albert-github
57662b4051 Problem with temporary / intermediate directory in doxyparse
When we want to use doxyparse under Windows we get the message like:
```
error: tag OUTPUT_DIRECTORY: Output directory '/tmp/doxyparse-9848' does not exist and cannot be created
```
as this is a *nix type path and the '/tmp', normally doesn't exists on Windows, better to see what is the real temporary directory (on all systems) and make everything system independent.
2020-02-27 13:56:11 +01:00
Joenio Costa
f5a91767dc output on doxyparse if a function is a prototype
issue #5618
2020-02-24 15:14:01 -03:00
Dimitri van Heesch
3bda58a7b7
Split language parser into "outline parser" and "code parser" 2019-12-03 20:54:36 +01:00
Dimitri van Heesch
c38a6fe88c
Changed ArgumentList to be an STL container 2019-10-27 12:55:16 +01:00
Joenio Costa
62df9b1ca6 add list of file extensions on doxyparse config
without that doxyparse doesn't proccess input files
2019-08-06 20:48:52 -03:00
Dimitri van Heesch
c60743a4b6
Some fixes and restructuring
- moved unescapeCharsInString to util.cpp
- restructured flow keyword counting
- make flow keyword counting work for python and fortran code as well
2019-08-06 20:30:19 +02:00
Joenio Costa
69f51747c3 doxyparse addon new features and bugfixes
this commit is a squashed merge from lots of doxyparse evolution and
concentrates contributions from many authors, all listed at the end of this
message as Signed-off-by

follow a list of all improvements and bugfixes on doxyparse:

*  workarounding strings replaced by doxygen core
*  print missing module name for some C code (analizo/analizo#155)
*  do not count/print 'void' as a function argument
*  rough instructions for doxyparse release
*  limit identifiers to 1024 chars (analizo/analizo#135)
*  removing "\\" from function signatures (analizo/analizo#138)
*  fix override args references (analizo/analizo#79)
*  check if new_data in removeDoubleQuotes function is empty (analizo/analizo#120)
*  removing double quotes from function signature (analizo/analizo#117)
*  check if ArgumentList is null (analizo/analizo#116)
*  don't report same module/class more than once (analizo/analizo#112)
*  add missing key "defines:" to all modules (analizo/analizo#111)
*  check if string is larger than 1 before removing surrounding quotes (analizo/analizo#110)
*  doxyparse properly detects package methods
*  output inheritance as list instead of hash
*  start yaml document: ---
*  adding double quoted in module name (analizo/analizo#106)
*  added --version flag to doxyparse
*  removing double quotes from function arguments list
*  fix doxyparse segfault for python source files
*  using quotes to surround members definition on yaml
*  add the number of conditionals path
*  generate configvalues.h
*  adding .cs (csharp) as non-C file extension
*  adding .pyw (python) as non-C file extension
*  adding .py (python) as non-C file extension

Signed-off-by: Antonio Terceiro <terceiro@softwarelivre.org>
Signed-off-by: Henrique Dutra <hld@henriquedutra.com.br>
Signed-off-by: Igor Ribeiro Barbosa Duarte <igor.ribeiro.duarte@gmail.com>
Signed-off-by: João M. Miranda <joaomm88@gmail.com>
Signed-off-by: Jonathan Moraes <arkyebr@gmail.com>
Signed-off-by: Kleber <kleberbritomoreira10@gmail.com>
Signed-off-by: leonardork <leodegolim@yahoo.com.br>
Signed-off-by: Marcelo Ferreira <marcelohpf@gmail.com>
Signed-off-by: Mateus Andrade <mateusandrade080@gmail.com>
Signed-off-by: Matheus Miranda <matheusmirandalacerda@gmail.com>
Signed-off-by: Paulo Meirelles <paulo@softwarelivre.org>
Signed-off-by: Sabryna de Sousa <sabryna.sousa1323@gmail.com>
Signed-off-by: Vinicius Daros <vkdaros@mercurio.eclipse.ime.usp.br>
Signed-off-by: VinyPinheiro <viny-pinheiro@hotmail.com>
2019-08-04 22:22:12 -03:00
albert-github
5fcc55a7a7 issue #6939 Build fail in Windows with build_parse turn ON (unistd.h does not exist in Windows)
Made doxyparse compilable  on Windows.
- removed printNumberOfConditionalPaths as it contained numberOfFlowKeywords() that was removed as dead code in 924cc02d8b or Jan 21, 2019.
-  corrected casts and prototypes
- corrected include files
- got correct "getpid" for windows.
- corrected calls to OS remove functions by system independent Qt functions
2019-04-22 11:28:05 +02:00
Joenio Costa
b4ec5e1442 doxyparse bugfixes and minor improvements
- removing double quotes from function arguments list
- fix doxyparse segfault for python source files
- documenting install instructions from source
- documenting build dependencies
- updating email address

Signed-off-by: Igor Ribeiro Barbosa Duarte <igor.ribeiro.duarte@gmail.com>
Signed-off-by: Jonathan Moraes <arkyebr@gmail.com>
Signed-off-by: Kleber <kleberbritomoreira10@gmail.com>
Signed-off-by: leonardork <leodegolim@yahoo.com.br>
Signed-off-by: Marcelo Ferreira <marcelohpf@gmail.com>
Signed-off-by: Matheus Miranda <matheusmirandalacerda@gmail.com>
Signed-off-by: Sabryna de Sousa <sabryna.sousa1323@gmail.com>
Signed-off-by: VinyPinheiro <viny-pinheiro@hotmail.com>
2017-12-28 13:45:57 -02:00
luzpaz
9fd7f3aeb4 Misc. typos
Super trivial typos
Some are in qtools/ which I know is a 3rd party dependency but as we know is now obsolete upstream. I reckon it wouldn't be much of an issue to merge neverthless
Tacked on several more commits
2017-12-23 11:52:14 -05:00
Joenio Costa
20af63f43e add the number of conditionals path and bugfix
* Rebased with upstream master
* Added build instructions to README
* Bug 398942 - fixes the problem with instance variables and
               arguments with the same name

Signed-off-by: Antonio Terceiro <terceiro@softwarelivre.org>
Signed-off-by: João M. Miranda <joaomm88@gmail.com>
Signed-off-by: Paulo Meirelles <paulo@softwarelivre.org>
Signed-off-by: Vinicius Daros <vkdaros@mercurio.eclipse.ime.usp.br>
Signed-off-by: Jonathan Moraes <arkyebr@gmail.com>
2017-06-27 23:10:08 -03:00
Joenio Costa
82dbb5fe86 using YAML in the output of "doxyparse"
refers to pull-request !425
2016-02-03 20:48:12 -02:00
Joenio Costa
e6dcc3b6c6 new addon doxyparse, a source parsing engine
doxyparse parses source code and dumps the dependencies between the code
elements. Today doxyparse is in use by Analizo* toolkit, a suite of
source code analysis tools, aimed at being language-independent and
extensible.

* http://analizo.org

Signed-off-by: Antonio Terceiro <terceiro@softwarelivre.org>
Signed-off-by: João M. Miranda <joaomm88@gmail.com>
Signed-off-by: Paulo Meirelles <paulo@softwarelivre.org>
Signed-off-by: Vinicius Daros <vkdaros@mercurio.eclipse.ime.usp.br>
2015-12-13 14:25:58 -02:00