diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-06-29 20:32:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-06-29 20:32:15 (GMT) |
commit | 3e9d9386950cc67d155a920cf8483c4d5bdcec3c (patch) | |
tree | 96383bcb228e96d52f42552cb4273a6eb2e323c6 /src/doxygen.cpp | |
parent | 6b1543bbc7001cc67dbe55c7109c4c73fbb5f300 (diff) | |
download | Doxygen-3e9d9386950cc67d155a920cf8483c4d5bdcec3c.zip Doxygen-3e9d9386950cc67d155a920cf8483c4d5bdcec3c.tar.gz Doxygen-3e9d9386950cc67d155a920cf8483c4d5bdcec3c.tar.bz2 |
Fixed anothing compilation issue when use_libclang was not enabled
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 01b47f5..089110b 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -160,6 +160,7 @@ QCString Doxygen::spaces; bool Doxygen::generatingXmlOutput = FALSE; GenericsSDict *Doxygen::genericsDict; DefinesPerFileList Doxygen::macroDefinitions; +bool Doxygen::clangAssistedParsing = FALSE; // locally accessible globals static std::unordered_map< std::string, const Entry* > g_classEntries; @@ -7477,8 +7478,7 @@ static void generateFileSources() if (!Doxygen::inputNameLinkedMap->empty()) { #if USE_LIBCLANG - static bool clangAssistedParsing = Config_getBool(CLANG_ASSISTED_PARSING); - if (clangAssistedParsing) + if (Doxygen::clangAssistedParsing) { QDict<void> g_processedFiles(10007); @@ -9063,11 +9063,6 @@ static std::shared_ptr<Entry> parseFile(OutlineParserInterface &parser, FileDef *fd,const char *fn, bool sameTu,QStrList &filesInSameTu) { -#if USE_LIBCLANG - static bool clangAssistedParsing = Config_getBool(CLANG_ASSISTED_PARSING); -#else - static bool clangAssistedParsing = FALSE; -#endif QCString fileName=fn; QCString extension; int ei = fileName.findRev('.'); @@ -9114,7 +9109,7 @@ static std::shared_ptr<Entry> parseFile(OutlineParserInterface &parser, convBuf.addChar('\0'); - if (clangAssistedParsing && !sameTu) + if (Doxygen::clangAssistedParsing && !sameTu) { fd->getAllIncludeFilesRecursively(filesInSameTu); } @@ -9130,8 +9125,7 @@ static std::shared_ptr<Entry> parseFile(OutlineParserInterface &parser, static void parseFiles(const std::shared_ptr<Entry> &root) { #if USE_LIBCLANG - static bool clangAssistedParsing = Config_getBool(CLANG_ASSISTED_PARSING); - if (clangAssistedParsing) + if (Doxygen::clangAssistedParsing) { QDict<void> g_processedFiles(10007); @@ -10707,6 +10701,10 @@ void parseInput() { atexit(exitDoxygen); +#if USE_LIBCLANG + Doxygen::clangAssistedParsing = Config_getBool(CLANG_ASSISTED_PARSING); +#endif + // we would like to show the versionString earlier, but we first have to handle the configuration file // to know the value of the QUIET setting. QCString versionString = getFullVersion(); |