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 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

View File

@ -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()

View File

@ -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"

View File

@ -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

View File

@ -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
/// @{ /// @{

View File

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

View File

@ -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))

View File

@ -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"

View File

@ -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 {

View File

@ -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 << '{';

View File

@ -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>