MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / preprocess

Method preprocess

lib/preprocessor.cpp:906–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906simplecpp::TokenList Preprocessor::preprocess(const std::string &cfgStr, std::vector<std::string> &files, simplecpp::OutputList& outputList)
907{
908 const simplecpp::DUI dui = createDUI(mSettings, cfgStr, mLang);
909
910 std::list<simplecpp::MacroUsage> macroUsage;
911 std::list<simplecpp::IfCond> ifCond;
912 simplecpp::TokenList tokens2(files);
913 simplecpp::preprocess(tokens2, mTokens, files, mFileCache, dui, &outputList, &macroUsage, &ifCond);
914 mMacroUsage = std::move(macroUsage);
915 mIfCond = std::move(ifCond);
916
917 tokens2.removeComments();
918
919 return tokens2;
920}
921
922std::string Preprocessor::getcode(const std::string &cfgStr, std::vector<std::string> &files, const bool writeLocations)
923{

Callers 1

checkInternalMethod · 0.45

Calls 2

createDUIFunction · 0.85
removeCommentsMethod · 0.45

Tested by

no test coverage detected