summaryrefslogtreecommitdiffstats
path: root/src/vhdlcode.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-09-13 14:31:14 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-09-13 14:34:02 (GMT)
commite801f129218e6f9ab11dc165b0e1607fc64cd645 (patch)
treee08906e55a1be9b81e9855542ada26d1bc6d7573 /src/vhdlcode.h
parent9826394521af43b38a6e228397328deaf793cd1e (diff)
downloadDoxygen-e801f129218e6f9ab11dc165b0e1607fc64cd645.zip
Doxygen-e801f129218e6f9ab11dc165b0e1607fc64cd645.tar.gz
Doxygen-e801f129218e6f9ab11dc165b0e1607fc64cd645.tar.bz2
Refactoring: making vhdlcode.l reentrant
Also fixed a few VHDL related memory leaks and one newly introduced Fortran memory leak.
Diffstat (limited to 'src/vhdlcode.h')
-rw-r--r--src/vhdlcode.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/vhdlcode.h b/src/vhdlcode.h
index b79e2ab..48c15bb 100644
--- a/src/vhdlcode.h
+++ b/src/vhdlcode.h
@@ -1,3 +1,17 @@
+/******************************************************************************
+ *
+ * Copyright (C) 1997-2020 by Dimitri van Heesch.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
+ * for any purpose. It is provided "as is" without express or implied warranty.
+ * See the GNU General Public License for more details.
+ *
+ * Documents produced by Doxygen are derivative works derived from the
+ * input used in their production; they are not affected by this license.
+ *
+ */
#ifndef VHDLCODE_H
#define VHDLCODE_H
@@ -12,7 +26,8 @@ void codeFreeVhdlScanner();
class VHDLCodeParser : public CodeParserInterface
{
public:
- virtual ~VHDLCodeParser() {}
+ VHDLCodeParser();
+ virtual ~VHDLCodeParser();
void parseCode(CodeOutputInterface &codeOutIntf,
const char *scopeName,
const QCString &input,
@@ -28,8 +43,10 @@ class VHDLCodeParser : public CodeParserInterface
const Definition *searchCtx=0,
bool collectXRefs=TRUE
);
- void resetCodeParserState() {}
+ void resetCodeParserState();
+ private:
+ struct Private;
+ std::unique_ptr<Private> p;
};
-
-#endif
+#endif