summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-07-30 15:49:11 +0200
committerPaul Wicking <paul.wicking@qt.io>2019-08-03 07:12:17 +0200
commitc83bf647fb84f0bee5cc9894dd0c58f661194932 (patch)
tree6e7c1d6c401d4cf1b93e78f4ef446ecd3f07c1c8 /src/qdoc/cppcodeparser.cpp
parenta9416f9cb747632a73e7901b48aa89ad250c69fe (diff)
downloadqttools-c83bf647fb84f0bee5cc9894dd0c58f661194932.tar.gz
QDoc: Ensure all includes are uniform and according to style
Housekeeping. Includes are organized after recommended best practice and organized in the following order: - include self (i.e. include own header) - include local files - include Qt, e.g. <QtCore/qstring.h> - include Qt private - include externals, e.g. stdio.h in alphabetic order within each block, aside from accommodating #if-ery, in which includes follow the block they belong to. Also, updated copyright notice to year of latest edit in each file. Change-Id: I1e6b215f172fd5373d57016f7678b88b9e73231e Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index 2f5288ba8..a5e498f07 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the tools applications of the Qt Toolkit.
@@ -30,16 +30,18 @@
cppcodeparser.cpp
*/
-#include <qfile.h>
-#include <stdio.h>
-#include <errno.h>
-#include "config.h"
#include "cppcodeparser.h"
+
+#include "config.h"
#include "qdocdatabase.h"
-#include <qdebug.h>
#include "generator.h"
+#include <QtCore/qdebug.h>
+#include <QtCore/qfile.h>
+
#include <algorithm>
+#include <errno.h>
+#include <stdio.h>
QT_BEGIN_NAMESPACE