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 QPaintEvent;
|
||||
class QResizeEvent;
|
||||
class QSize;
|
||||
class QWidget;
|
||||
|
||||
class Highlighter : public QSyntaxHighlighter {
|
||||
Q_OBJECT
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include "filelist.h"
|
||||
#include "path.h"
|
||||
#include "pathmatch.h"
|
||||
|
||||
QStringList FileList::getDefaultFilters()
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ class ThreadHandler;
|
|||
class TranslationHandler;
|
||||
class ScratchPad;
|
||||
class ProjectFile;
|
||||
class ErrorItem;
|
||||
class QAction;
|
||||
|
||||
/// @addtogroup GUI
|
||||
|
|
|
@ -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
|
||||
/// @{
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "report.h"
|
||||
|
||||
class ErrorItem;
|
||||
class QObject;
|
||||
|
||||
/// @addtogroup GUI
|
||||
/// @{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -131,7 +131,6 @@
|
|||
|
||||
#include "exprengine.h"
|
||||
#include "astutils.h"
|
||||
#include "path.h"
|
||||
#include "settings.h"
|
||||
#include "symboldatabase.h"
|
||||
#include "tokenize.h"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 << '{';
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
#include "token.h"
|
||||
#include "tokenlist.h"
|
||||
#include "utils.h"
|
||||
#include "valueptr.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
|
Loading…
Reference in New Issue