From 517d8f96842b7559dbaff90a39187d20750e3daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jun 2018 08:58:56 +0200 Subject: [PATCH] Renamed private member tokenlists to mTokenLists --- lib/preprocessor.cpp | 20 ++++++++++---------- lib/preprocessor.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index fe86b1627..61166fbb4 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -63,7 +63,7 @@ Preprocessor::Preprocessor(Settings& settings, ErrorLogger *errorLogger) : mSett Preprocessor::~Preprocessor() { - for (std::map::iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) + for (std::map::iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) delete it->second; } @@ -122,7 +122,7 @@ void Preprocessor::inlineSuppressions(const simplecpp::TokenList &tokens) return; std::list err; ::inlineSuppressions(tokens, mSettings, &err); - for (std::map::const_iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) { + for (std::map::const_iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) { if (it->second) ::inlineSuppressions(*it->second, mSettings, &err); } @@ -137,9 +137,9 @@ void Preprocessor::setDirectives(const simplecpp::TokenList &tokens) mDirectives.clear(); std::vector list; - list.reserve(1U + tokenlists.size()); + list.reserve(1U + mTokenLists.size()); list.push_back(&tokens); - for (std::map::const_iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) { + for (std::map::const_iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) { list.push_back(it->second); } @@ -432,7 +432,7 @@ std::set Preprocessor::getConfigs(const simplecpp::TokenList &token ::getConfigs(tokens, defined, mSettings.userDefines, mSettings.userUndefs, ret); - for (std::map::const_iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) { + for (std::map::const_iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) { if (!mSettings.configurationExcluded(it->first)) ::getConfigs(*(it->second), defined, mSettings.userDefines, mSettings.userUndefs, ret); } @@ -577,12 +577,12 @@ void Preprocessor::loadFiles(const simplecpp::TokenList &rawtokens, std::vector< { const simplecpp::DUI dui = createDUI(mSettings, emptyString, files[0]); - tokenlists = simplecpp::load(rawtokens, files, dui, nullptr); + mTokenLists = simplecpp::load(rawtokens, files, dui, nullptr); } void Preprocessor::removeComments() { - for (std::map::iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) { + for (std::map::iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) { if (it->second) it->second->removeComments(); } @@ -615,7 +615,7 @@ simplecpp::TokenList Preprocessor::preprocess(const simplecpp::TokenList &tokens simplecpp::OutputList outputList; std::list macroUsage; simplecpp::TokenList tokens2(files); - simplecpp::preprocess(tokens2, tokens1, files, tokenlists, dui, &outputList, ¯oUsage); + simplecpp::preprocess(tokens2, tokens1, files, mTokenLists, dui, &outputList, ¯oUsage); const bool showerror = (!mSettings.userDefines.empty() && !mSettings.force); reportOutput(outputList, showerror); @@ -908,7 +908,7 @@ unsigned int Preprocessor::calculateChecksum(const simplecpp::TokenList &tokens1 if (!tok->comment) ostr << tok->str(); } - for (std::map::const_iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) { + for (std::map::const_iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) { for (const simplecpp::Token *tok = it->second->cfront(); tok; tok = tok->next) { if (!tok->comment) ostr << tok->str(); @@ -920,7 +920,7 @@ unsigned int Preprocessor::calculateChecksum(const simplecpp::TokenList &tokens1 void Preprocessor::simplifyPragmaAsm(simplecpp::TokenList *tokenList) { Preprocessor::simplifyPragmaAsmPrivate(tokenList); - for (std::map::iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) { + for (std::map::iterator it = mTokenLists.begin(); it != mTokenLists.end(); ++it) { Preprocessor::simplifyPragmaAsmPrivate(it->second); } } diff --git a/lib/preprocessor.h b/lib/preprocessor.h index 6255da91e..fe8b743f1 100644 --- a/lib/preprocessor.h +++ b/lib/preprocessor.h @@ -212,7 +212,7 @@ private: /** list of all directives met while preprocessing file */ std::list mDirectives; - std::map tokenlists; + std::map mTokenLists; /** filename for cpp/c file - useful when reporting errors */ std::string file0;