diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-07-15 19:23:12 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-07-16 06:27:29 (GMT) |
commit | 50fdb591d4abfdf88bfdda96ffd832cc4c024963 (patch) | |
tree | 85ad9b591eb36ad73cc07f4fb91ddcfb6d5762cf /src/scanner.h | |
parent | 93dc8f81eaaf5523715a4d5867cbb55f46c3f647 (diff) | |
download | Doxygen-50fdb591d4abfdf88bfdda96ffd832cc4c024963.zip Doxygen-50fdb591d4abfdf88bfdda96ffd832cc4c024963.tar.gz Doxygen-50fdb591d4abfdf88bfdda96ffd832cc4c024963.tar.bz2 |
Refactor: Modernize clang parser and make it run with multiple threads
Diffstat (limited to 'src/scanner.h')
-rw-r--r-- | src/scanner.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/scanner.h b/src/scanner.h index 70df660..cefc934 100644 --- a/src/scanner.h +++ b/src/scanner.h @@ -1,12 +1,12 @@ /****************************************************************************** * - * + * * * Copyright (C) 1997-2015 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 + * 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. * @@ -23,7 +23,7 @@ /** \brief C-like language parser using state-based lexical scanning. * * This is the language parser for doxygen. It is somewhat fuzzy and - * supports C++ and various languages that are closely related to C++, + * supports C++ and various languages that are closely related to C++, * such as C, C#, Objective-C, Java, PHP, and IDL. */ class COutlineParser : public OutlineParserInterface @@ -31,13 +31,10 @@ class COutlineParser : public OutlineParserInterface public: COutlineParser(); virtual ~COutlineParser(); - void startTranslationUnit(const char *fileName); - void finishTranslationUnit(); void parseInput(const char *fileName, const char *fileBuf, const std::shared_ptr<Entry> &root, - bool sameTranslationUnit, - QStrList &filesInSameTranslationUnit); + ClangTUParser *clangParser); bool needsPreprocessing(const QCString &extension) const; void parsePrototype(const char *text); private: |