Cppcheck
|
#include <analyzerinfo.h>
Public Member Functions | |
~AnalyzerInformation () | |
void | close () |
Close current TU.analyzerinfo file. More... | |
bool | analyzeFile (const std::string &buildDir, const std::string &sourcefile, const std::string &cfg, std::size_t hash, std::list< ErrorMessage > &errors) |
void | reportErr (const ErrorMessage &msg) |
void | setFileInfo (const std::string &check, const std::string &fileInfo) |
Static Public Member Functions | |
static void | writeFilesTxt (const std::string &buildDir, const std::list< std::string > &sourcefiles, const std::string &userDefines, const std::list< FileSettings > &fileSettings) |
static std::string | getAnalyzerInfoFile (const std::string &buildDir, const std::string &sourcefile, const std::string &cfg) |
Static Protected Member Functions | |
static std::string | getAnalyzerInfoFileFromFilesTxt (std::istream &filesTxt, const std::string &sourcefile, const std::string &cfg) |
Private Attributes | |
std::ofstream | mOutputStream |
std::string | mAnalyzerInfoFile |
Analyzer information.
Store various analysis information:
The information can be used for various purposes. It allows:
Definition at line 50 of file analyzerinfo.h.
AnalyzerInformation::~AnalyzerInformation | ( | ) |
Definition at line 31 of file analyzerinfo.cpp.
References close().
bool AnalyzerInformation::analyzeFile | ( | const std::string & | buildDir, |
const std::string & | sourcefile, | ||
const std::string & | cfg, | ||
std::size_t | hash, | ||
std::list< ErrorMessage > & | errors | ||
) |
Definition at line 131 of file analyzerinfo.cpp.
References cfg(), close(), getAnalyzerInfoFile(), mAnalyzerInfoFile, mOutputStream, and skipAnalysis().
Referenced by CppCheck::checkFile().
void AnalyzerInformation::close | ( | ) |
Close current TU.analyzerinfo file.
Definition at line 67 of file analyzerinfo.cpp.
References mAnalyzerInfoFile, and mOutputStream.
Referenced by analyzeFile(), CppCheck::checkFile(), and ~AnalyzerInformation().
|
static |
Definition at line 113 of file analyzerinfo.cpp.
References cfg(), getAnalyzerInfoFileFromFilesTxt(), and Path::join().
Referenced by CppCheck::analyseClangTidy(), analyzeFile(), CppCheck::checkClang(), Summaries::create(), getDumpFileName(), and CheckThread::runAddonsAndTools().
|
staticprotected |
Definition at line 99 of file analyzerinfo.cpp.
References cfg(), endsWith(), and Path::simplifyPath().
Referenced by getAnalyzerInfoFile().
void AnalyzerInformation::reportErr | ( | const ErrorMessage & | msg | ) |
Definition at line 153 of file analyzerinfo.cpp.
References mOutputStream, and ErrorMessage::toXML().
Referenced by CppCheck::reportErr().
void AnalyzerInformation::setFileInfo | ( | const std::string & | check, |
const std::string & | fileInfo | ||
) |
Definition at line 159 of file analyzerinfo.cpp.
References mOutputStream.
Referenced by CppCheck::checkNormalTokens().
|
static |
Definition at line 48 of file analyzerinfo.cpp.
References Path::fromNativeSeparators(), getFilename(), and Path::simplifyPath().
Referenced by CppCheckExecutor::check_internal(), MainWindow::doAnalyzeFiles(), and MainWindow::doAnalyzeProject().
|
private |
Definition at line 66 of file analyzerinfo.h.
Referenced by analyzeFile(), and close().
|
private |
Definition at line 65 of file analyzerinfo.h.
Referenced by analyzeFile(), close(), reportErr(), and setFileInfo().