Add AbstractDeclarationNavigationContext, and move the html-method from
[kdevelopdvcssupport.git] / language / duchain / abstractfunctiondeclaration.cpp
blobef0bd4e2d9ef3b5a2747557a0ee97665e555f863
1 /* This file is part of KDevelop
2 Copyright 2007 Hamish Rodda <rodda@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
19 #include "abstractfunctiondeclaration.h"
20 #include <QStringList>
22 namespace KDevelop {
24 AbstractFunctionDeclaration::~AbstractFunctionDeclaration() {
27 bool AbstractFunctionDeclaration::isVirtual() const
29 return data()->m_isVirtual;
32 void AbstractFunctionDeclaration::setVirtual(bool isVirtual)
34 dynamicData()->m_isVirtual = isVirtual;
37 bool AbstractFunctionDeclaration::isInline() const
39 return data()->m_isInline;
42 void AbstractFunctionDeclaration::setInline(bool isInline)
44 dynamicData()->m_isInline = isInline;
47 bool AbstractFunctionDeclaration::isExplicit() const
49 return data()->m_isExplicit;
52 void AbstractFunctionDeclaration::setExplicit(bool isExplicit)
54 dynamicData()->m_isExplicit = isExplicit;
57 void AbstractFunctionDeclaration::setFunctionSpecifiers(FunctionSpecifiers specifiers)
59 dynamicData()->m_isInline = specifiers & InlineSpecifier;
60 dynamicData()->m_isExplicit = specifiers & ExplicitSpecifier;
61 dynamicData()->m_isVirtual = specifiers & VirtualSpecifier;
67 // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on