blob: 2f7057902cc56cf5fb0f7bdaa0080989c9428333 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <cplusplus/CppDocument.h>
QT_BEGIN_NAMESPACE
class QObject;
class QTextDocument;
QT_END_NAMESPACE
namespace CppEditor::Internal {
enum MocIncludeMode { RespectMocIncludes, IgnoreMocIncludes };
enum IncludeStyle { LocalBeforeGlobal, GlobalBeforeLocal, AutoDetect };
int lineForNewIncludeDirective(const Utils::FilePath &filePath, const QTextDocument *textDocument,
const CPlusPlus::Document::Ptr cppDocument,
MocIncludeMode mocIncludeMode,
IncludeStyle includeStyle,
const QString &newIncludeFileName,
unsigned *newLinesToPrepend,
unsigned *newLinesToAppend);
QObject *createIncludeGroupsTest();
} // CppEditor::Internal
|