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:
Oliver Stöneberg 2020-05-10 16:45:45 +02:00 committed by GitHub
parent e066300f95
commit e0e50139cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 7 additions and 11 deletions

View File

@ -9,8 +9,6 @@
class CodeEditorStyle;
class QPaintEvent;
class QResizeEvent;
class QSize;
class QWidget;
class Highlighter : public QSyntaxHighlighter {
Q_OBJECT

View File

@ -20,7 +20,6 @@
#include <QDir>
#include <QFileInfo>
#include "filelist.h"
#include "path.h"
#include "pathmatch.h"
QStringList FileList::getDefaultFilters()

View File

@ -24,6 +24,7 @@
#include <QSettings>
#ifdef _WIN32
#include <QMessageBox>
#include "aboutdialog.h"
#else
#include <iostream>
#endif
@ -31,7 +32,6 @@
#include "common.h"
#include "mainwindow.h"
#include "erroritem.h"
#include "aboutdialog.h"
#include "translationhandler.h"

View File

@ -34,7 +34,6 @@ class ThreadHandler;
class TranslationHandler;
class ScratchPad;
class ProjectFile;
class ErrorItem;
class QAction;
/// @addtogroup GUI

View File

@ -25,13 +25,13 @@
#include <QDateTime>
#include <set>
#include "threadresult.h"
#include "importproject.h"
#include "suppressions.h"
class ResultsView;
class CheckThread;
class QSettings;
class Settings;
class ImportProject;
/// @addtogroup GUI
/// @{

View File

@ -24,7 +24,6 @@
#include "report.h"
class ErrorItem;
class QObject;
/// @addtogroup GUI
/// @{

View File

@ -22,7 +22,7 @@
//---------------------------------------------------------------------------
#include "config.h"
#include "token.h"
#include "errorlogger.h" // for Severity::SeverityType
#include "tokenize.h"
#include <list>
@ -42,6 +42,7 @@ namespace ValueFlow {
class Settings;
class Token;
class ErrorLogger;
/** Use WRONG_DATA in checkers to mark conditions that check that data is correct */
#define WRONG_DATA(COND, TOK) (wrongData((TOK), (COND), #COND))

View File

@ -131,7 +131,6 @@
#include "exprengine.h"
#include "astutils.h"
#include "path.h"
#include "settings.h"
#include "symboldatabase.h"
#include "tokenize.h"

View File

@ -19,11 +19,11 @@
#ifndef forwardanalyzerH
#define forwardanalyzerH
#include "valueptr.h"
#include <vector>
class Settings;
class Token;
template <class T> class ValuePtr;
struct ForwardAnalyzer {
struct Action {

View File

@ -1577,7 +1577,7 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
case ValueFlow::Value::ValueKind::Possible:
out << "possible ";
break;
};
}
}
if (tok->mImpl->mValues->size() > 1U)
out << '{';

View File

@ -91,6 +91,7 @@
#include "token.h"
#include "tokenlist.h"
#include "utils.h"
#include "valueptr.h"
#include <algorithm>
#include <cassert>