Doxygen
|
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <errno.h>
#include <thread>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstdint>
#include "config.h"
#include "regex.h"
#include "configimpl.h"
#include "version.h"
#include "portable.h"
#include "message.h"
#include "language.h"
#include "configoptions.h"
#include "fileinfo.h"
#include "dir.h"
#include "textstream.h"
#include "dotattributes.h"
#include "debug.h"
#include "doxygen_lex.h"
#include "configimpl.l.h"
Go to the source code of this file.
Classes | |
struct | ConfigFileState |
Macros | |
#define | YY_NO_INPUT 1 |
#define | YY_NO_UNISTD_H 1 |
#define | SHOW_INCLUDES 0 |
#define | MAX_INCLUDE_DEPTH 10 |
#define | YY_NEVER_INTERACTIVE 1 |
#define | unput_string(yytext, yyleng) |
#define | YY_INPUT(buf, result, max_size) |
#define | LEX_NO_REENTRANT |
Functions | |
static const char * | stateToString (int state) |
static QCString | configStringRecode (const QCString &str, const QCString &fromEncoding, const QCString &toEncoding) |
static bool | containsEnvVar (QCString &str) |
static QCString | convertToComment (const QCString &s, const QCString &u) |
static bool | convertStringToBool (const QCString &str, bool &isValid) |
static const char * | getLexerFILE () |
static int | yyread (char *buf, int max_size) |
static void | checkEncoding () |
static QCString | stripComment (const QCString &s) |
static void | processStoreRepl (QCString &storeReplStr) |
static void | processString () |
static void | processList () |
static FILE * | tryPath (const QCString &path, const QCString &fileName) |
static void | substEnvVarsInStrList (StringVector &sl) |
static void | substEnvVarsInString (QCString &s) |
static FILE * | findFile (const QCString &fileName) |
static void | readIncludeFile (const QCString &incName) |
int | yylex (void) |
static QCString | configFileToString (const QCString &name) |
static void | cleanUpPaths (StringVector &str) |
static bool | checkFileName (const QCString &s, const char *optionName) |
static void | checkList (const StringVector &list, const char *name, bool equalRequired, bool valueRequired) |
static void | adjustBoolSetting (const char *depOption, const char *optionName, bool expectedValue) |
static void | adjustStringSetting (const char *depOption, const char *optionName, const QCString &expectedValue) |
static void | adjustColorStyleSetting (const char *depOption) |
static void | updateAttribute (DotAttributes &attr, QCString name, ConfigObsolete *value) |
Variables | |
static const char * | warning_str = "warning: " |
static const char * | error_str = "error: " |
static const char * | g_inputString = nullptr |
static int | g_inputPosition = 0 |
static int | g_yyLineNr = 1 |
static QCString | g_yyFileName |
static QCString | g_cmd |
static QCString * | g_string = nullptr |
static StringVector * | g_list = nullptr |
static QCString | g_listStr |
static StringVector | g_includePathList |
static std::vector< std::unique_ptr< ConfigFileState > > | g_includeStack |
static bool | g_configUpdate = FALSE |
static QCString | g_encoding |
static ConfigImpl * | g_config = nullptr |
static Config::CompareMode | g_compareMode = Config::CompareMode::Full |
static QCString | g_localStoreRepl |
static const reg::Ex | reEnvVar (R"(\$\((\a[\w.-]*)\))") |
static const reg::Ex | reEnvVarExt (R"(\$\((\a[\w.-]*\(\a[\w.-]*\))\))") |
static const reg::Ex | reEnvVarCMake (R"(@\a\w*@)") |
#define LEX_NO_REENTRANT |
Definition at line 675 of file configimpl.l.
#define MAX_INCLUDE_DEPTH 10 |
Definition at line 93 of file configimpl.l.
Referenced by readIncludeFile().
#define SHOW_INCLUDES 0 |
Definition at line 53 of file configimpl.l.
#define unput_string | ( | yytext, | |
yyleng ) |
Definition at line 667 of file configimpl.l.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size ) |
Definition at line 671 of file configimpl.l.
#define YY_NEVER_INTERACTIVE 1 |
Definition at line 94 of file configimpl.l.
#define YY_NO_INPUT 1 |
Definition at line 49 of file configimpl.l.
#define YY_NO_UNISTD_H 1 |
Definition at line 50 of file configimpl.l.
|
static |
Definition at line 1705 of file configimpl.l.
References err.
Referenced by Config::checkAndCorrect().
|
static |
Definition at line 1733 of file configimpl.l.
References Config_getEnum, Config_updateEnum, err, and qPrint().
Referenced by Config::checkAndCorrect().
|
static |
Definition at line 1719 of file configimpl.l.
Referenced by Config::checkAndCorrect().
|
static |
Definition at line 736 of file configimpl.l.
References g_config, g_encoding, and ConfigString::valueRef().
Referenced by processString().
|
static |
Definition at line 1657 of file configimpl.l.
References err, QCString::lower(), qPrint(), and QCString::stripWhiteSpace().
Referenced by Config::checkAndCorrect().
|
static |
Definition at line 1675 of file configimpl.l.
References err, QCString::find(), QCString::isEmpty(), QCString::left(), QCString::length(), qPrint(), QCString::right(), and QCString::stripWhiteSpace().
Referenced by Config::checkAndCorrect().
|
static |
Definition at line 1638 of file configimpl.l.
References FileInfo::absFilePath(), FileInfo::exists(), and FileInfo::isDir().
Referenced by Config::checkAndCorrect().
Definition at line 1577 of file configimpl.l.
References ConfigImpl::config_term(), QCString::isEmpty(), Portable::openInputStream(), and qPrint().
Referenced by ConfigImpl::parse().
|
static |
Definition at line 700 of file configimpl.l.
References QCString::at(), ConfigImpl::config_term(), QCString::data(), QCString::ExplicitSize, QCString::isEmpty(), QCString::length(), portable_iconv(), portable_iconv_close(), portable_iconv_open(), qPrint(), QCString::rawData(), and QCString::resize().
Referenced by processList(), processStoreRepl(), processString(), and ConfigOption::writeStringValue().
|
static |
Definition at line 1401 of file configimpl.l.
References reEnvVar, reEnvVarCMake, reEnvVarExt, reg::search(), and QCString::str().
Referenced by ConfigBool::compareDoxyfile(), ConfigInt::compareDoxyfile(), ConfigBool::convertStrToVal(), ConfigEnum::convertStrToVal(), and ConfigInt::convertStrToVal().
|
static |
Definition at line 227 of file configimpl.l.
References QCString::isEmpty(), QCString::lower(), and QCString::stripWhiteSpace().
Referenced by ConfigBool::convertStrToVal(), and Config::updateObsolete().
Definition at line 98 of file configimpl.l.
References QCString::data(), QCString::isEmpty(), and QCString::stripWhiteSpace().
Referenced by ConfigBool::writeTemplate(), ConfigEnum::writeTemplate(), ConfigImpl::writeTemplate(), ConfigInt::writeTemplate(), ConfigList::writeTemplate(), and ConfigString::writeTemplate().
|
static |
Definition at line 947 of file configimpl.l.
References g_includePathList, Portable::isAbsolutePath(), QCString::isEmpty(), substEnvVarsInStrList(), and tryPath().
Referenced by readIncludeFile(), and readIncludeFile().
|
inlinestatic |
Definition at line 674 of file configimpl.l.
|
static |
Definition at line 838 of file configimpl.l.
References QCString::at(), ConfigImpl::config_warn(), configStringRecode(), g_cmd, g_encoding, g_list, g_listStr, g_yyFileName, g_yyLineNr, QCString::isEmpty(), QCString::length(), qPrint(), QCString::str(), and stripComment().
|
static |
Definition at line 770 of file configimpl.l.
References configStringRecode(), g_encoding, stripComment(), and QCString::stripWhiteSpace().
|
static |
Definition at line 778 of file configimpl.l.
References QCString::at(), checkEncoding(), ConfigImpl::config_warn(), configStringRecode(), g_cmd, g_encoding, g_string, g_yyFileName, g_yyLineNr, QCString::length(), QCString::mid(), qPrint(), and stripComment().
|
static |
Definition at line 967 of file configimpl.l.
References QCString::at(), ConfigImpl::config_term(), ConfigFileState::fileName, ConfigFileState::filePtr, findFile(), g_includeStack, g_yyFileName, g_yyLineNr, QCString::length(), ConfigFileState::lineNr, MAX_INCLUDE_DEPTH, QCString::mid(), msg(), ConfigFileState::newState, ConfigFileState::oldState, qPrint(), QCString::stripWhiteSpace(), substEnvVarsInString(), and YY_BUF_SIZE.
|
static |
Definition at line 742 of file configimpl.l.
References QCString::at(), g_config, QCString::left(), QCString::length(), QCString::mid(), and QCString::stripWhiteSpace().
Referenced by processList(), processStoreRepl(), and processString().
|
static |
Definition at line 1408 of file configimpl.l.
References end(), Portable::getenv(), QCString::isEmpty(), reEnvVar, reEnvVarExt, QCString::str(), QCString::stripWhiteSpace(), and substEnvVarsInString().
Referenced by readIncludeFile(), ConfigBool::substEnvVars(), ConfigEnum::substEnvVars(), ConfigInt::substEnvVars(), ConfigString::substEnvVars(), substEnvVarsInString(), and substEnvVarsInStrList().
|
static |
Definition at line 1436 of file configimpl.l.
References QCString::at(), QCString::find(), QCString::isEmpty(), QCString::length(), QCString::mid(), QCString::right(), QCString::str(), and substEnvVarsInString().
Referenced by findFile(), and ConfigList::substEnvVars().
Definition at line 931 of file configimpl.l.
References ConfigImpl::config_err(), FileInfo::exists(), Portable::fopen(), QCString::isEmpty(), FileInfo::isFile(), qPrint(), and QCString::str().
Referenced by findFile().
|
static |
Definition at line 2233 of file configimpl.l.
References DotAttributes::updateValue(), and ConfigObsolete::valueStringRef().
Referenced by Config::updateObsolete().
int yylex | ( | void | ) |
Definition at line 1027 of file configimpl.l.
Referenced by convertCppComments().
|
static |
Definition at line 678 of file configimpl.l.
References g_includeStack, g_inputPosition, and g_inputString.
|
static |
Definition at line 58 of file configimpl.l.
Referenced by ConfigImpl::config_err(), and ConfigImpl::config_term().
|
static |
Definition at line 655 of file configimpl.l.
Referenced by processList(), and processString().
|
static |
Definition at line 664 of file configimpl.l.
Referenced by Config::parse().
|
static |
Definition at line 663 of file configimpl.l.
Referenced by checkEncoding(), Config::parse(), ConfigImpl::parseString(), and stripComment().
|
static |
Definition at line 661 of file configimpl.l.
Referenced by ConfigImpl::parseString().
|
static |
Definition at line 662 of file configimpl.l.
Referenced by checkEncoding(), ConfigImpl::parse(), processList(), processStoreRepl(), and processString().
|
static |
Definition at line 659 of file configimpl.l.
Referenced by findFile().
|
static |
Definition at line 660 of file configimpl.l.
Referenced by ConfigImpl::parseString(), readIncludeFile(), and yyread().
|
static |
Definition at line 652 of file configimpl.l.
Referenced by ConfigImpl::parseString(), and yyread().
|
static |
Definition at line 651 of file configimpl.l.
Referenced by ConfigImpl::parseString(), and yyread().
|
static |
Definition at line 657 of file configimpl.l.
Referenced by processList().
|
static |
Definition at line 658 of file configimpl.l.
Referenced by processList().
|
static |
Definition at line 665 of file configimpl.l.
|
static |
Definition at line 656 of file configimpl.l.
Referenced by processString().
|
static |
Definition at line 654 of file configimpl.l.
Referenced by ConfigImpl::parseString(), processList(), processString(), and readIncludeFile().
|
static |
Definition at line 653 of file configimpl.l.
Referenced by ConfigImpl::parseString(), processList(), processString(), and readIncludeFile().
|
static |
Referenced by containsEnvVar(), and substEnvVarsInString().
|
static |
Referenced by containsEnvVar().
|
static |
Referenced by containsEnvVar(), and substEnvVarsInString().
|
static |
Definition at line 57 of file configimpl.l.
Referenced by ConfigImpl::config_warn().