cleaned up includes based on include-what-you-use (#2632)
* cleaned up includes based on include-what-you-use * token.cpp: fixed -Wextra-semi-stmt warning
This commit is contained in:
parent
e066300f95
commit
e0e50139cb
|
@ -9,8 +9,6 @@
|
||||||
class CodeEditorStyle;
|
class CodeEditorStyle;
|
||||||
class QPaintEvent;
|
class QPaintEvent;
|
||||||
class QResizeEvent;
|
class QResizeEvent;
|
||||||
class QSize;
|
|
||||||
class QWidget;
|
|
||||||
|
|
||||||
class Highlighter : public QSyntaxHighlighter {
|
class Highlighter : public QSyntaxHighlighter {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
#include "path.h"
|
|
||||||
#include "pathmatch.h"
|
#include "pathmatch.h"
|
||||||
|
|
||||||
QStringList FileList::getDefaultFilters()
|
QStringList FileList::getDefaultFilters()
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include "aboutdialog.h"
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#endif
|
#endif
|
||||||
|
@ -31,7 +32,6 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "aboutdialog.h"
|
|
||||||
#include "translationhandler.h"
|
#include "translationhandler.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ class ThreadHandler;
|
||||||
class TranslationHandler;
|
class TranslationHandler;
|
||||||
class ScratchPad;
|
class ScratchPad;
|
||||||
class ProjectFile;
|
class ProjectFile;
|
||||||
class ErrorItem;
|
|
||||||
class QAction;
|
class QAction;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "threadresult.h"
|
#include "threadresult.h"
|
||||||
#include "importproject.h"
|
|
||||||
#include "suppressions.h"
|
#include "suppressions.h"
|
||||||
|
|
||||||
class ResultsView;
|
class ResultsView;
|
||||||
class CheckThread;
|
class CheckThread;
|
||||||
class QSettings;
|
class QSettings;
|
||||||
class Settings;
|
class Settings;
|
||||||
|
class ImportProject;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
class QObject;
|
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "token.h"
|
#include "errorlogger.h" // for Severity::SeverityType
|
||||||
#include "tokenize.h"
|
#include "tokenize.h"
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
@ -42,6 +42,7 @@ namespace ValueFlow {
|
||||||
|
|
||||||
class Settings;
|
class Settings;
|
||||||
class Token;
|
class Token;
|
||||||
|
class ErrorLogger;
|
||||||
|
|
||||||
/** Use WRONG_DATA in checkers to mark conditions that check that data is correct */
|
/** Use WRONG_DATA in checkers to mark conditions that check that data is correct */
|
||||||
#define WRONG_DATA(COND, TOK) (wrongData((TOK), (COND), #COND))
|
#define WRONG_DATA(COND, TOK) (wrongData((TOK), (COND), #COND))
|
||||||
|
|
|
@ -131,7 +131,6 @@
|
||||||
|
|
||||||
#include "exprengine.h"
|
#include "exprengine.h"
|
||||||
#include "astutils.h"
|
#include "astutils.h"
|
||||||
#include "path.h"
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "symboldatabase.h"
|
#include "symboldatabase.h"
|
||||||
#include "tokenize.h"
|
#include "tokenize.h"
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
#ifndef forwardanalyzerH
|
#ifndef forwardanalyzerH
|
||||||
#define forwardanalyzerH
|
#define forwardanalyzerH
|
||||||
|
|
||||||
#include "valueptr.h"
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class Settings;
|
class Settings;
|
||||||
class Token;
|
class Token;
|
||||||
|
template <class T> class ValuePtr;
|
||||||
|
|
||||||
struct ForwardAnalyzer {
|
struct ForwardAnalyzer {
|
||||||
struct Action {
|
struct Action {
|
||||||
|
|
|
@ -1577,7 +1577,7 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
|
||||||
case ValueFlow::Value::ValueKind::Possible:
|
case ValueFlow::Value::ValueKind::Possible:
|
||||||
out << "possible ";
|
out << "possible ";
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
if (tok->mImpl->mValues->size() > 1U)
|
if (tok->mImpl->mValues->size() > 1U)
|
||||||
out << '{';
|
out << '{';
|
||||||
|
|
|
@ -91,6 +91,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "tokenlist.h"
|
#include "tokenlist.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
#include "valueptr.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
Loading…
Reference in New Issue