Commit 156fb9e5 authored by Laurent Navet's avatar Laurent Navet Committed by Sven Brauch

clean headers guards naming scheme

REVIEW:109763
BUG:281688
parent 36bc548f
#!/bin/bash
## We use xargs to prevent passing too many filenames to sed, but
## this command will fail if filenames contain spaces or newlines.
# Add KDEVPLATFORM_ prefix to all patterns matching [A-Z].*_H$
#
# Use carrefully and precautious review needed as it won't match
# if there's as example, trailing whitespace, #define FOO_H 1, or define FOO_H_
# It can also match some non wanted pattern like #undef HAVE_STDINT_H
# in util/google/sparsehash/sparseconfig_windows.h
find . -name '*.h' -print | xargs sed -i 's/[A-Z].*_H$/KDEVPLATFORM_&/'
#find plugins/ -name '*.h' -print | xargs sed -i 's/[A-Z].*_H$/PLUGIN_&/'
......@@ -18,8 +18,8 @@
If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef KDEV_BREAKPOINT_H
#define KDEV_BREAKPOINT_H
#ifndef KDEVPLATFORM_BREAKPOINT_H
#define KDEVPLATFORM_BREAKPOINT_H
#include <QtCore/QSet>
#include <KDE/KUrl>
......
......@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KDEVELOP_BREAKPOINTDETAILS_H
#define KDEVELOP_BREAKPOINTDETAILS_H
#ifndef KDEVPLATFORM_BREAKPOINTDETAILS_H
#define KDEVPLATFORM_BREAKPOINTDETAILS_H
#include <QtGui/QWidget>
#include "../debuggerexport.h"
......@@ -53,4 +53,4 @@ private:
}
#endif // KDEVELOP_BREAKPOINTDETAILS_H
#endif // KDEVPLATFORM_BREAKPOINTDETAILS_H
......@@ -19,8 +19,8 @@
*/
#ifndef KDEV_BREAKPOINTMODEL_H
#define KDEV_BREAKPOINTMODEL_H
#ifndef KDEVPLATFORM_BREAKPOINTMODEL_H
#define KDEVPLATFORM_BREAKPOINTMODEL_H
#include <QtCore/QAbstractTableModel>
......
......@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KDEVELOP_BREAKPOINTWIDGET_H
#define KDEVELOP_BREAKPOINTWIDGET_H
#ifndef KDEVPLATFORM_BREAKPOINTWIDGET_H
#define KDEVPLATFORM_BREAKPOINTWIDGET_H
#include <QtGui/QWidget>
#include "../debuggerexport.h"
......@@ -81,4 +81,4 @@ private:
}
#endif // KDEVELOP_BREAKPOINTWIDGET_H
#endif // KDEVPLATFORM_BREAKPOINTWIDGET_H
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef KDEV_FRAMESTACKMODEL_H
#define KDEV_FRAMESTACKMODEL_H
#ifndef KDEVPLATFORM_FRAMESTACKMODEL_H
#define KDEVPLATFORM_FRAMESTACKMODEL_H
#include <QtCore/QModelIndex>
#include <QtCore/QHash>
......
......@@ -21,8 +21,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KDEVELOP_FRAMESTACKWIDGET_H
#define KDEVELOP_FRAMESTACKWIDGET_H
#ifndef KDEVPLATFORM_FRAMESTACKWIDGET_H
#define KDEVPLATFORM_FRAMESTACKWIDGET_H
#include <QSplitter>
......@@ -71,4 +71,4 @@ class KDEVPLATFORMDEBUGGER_EXPORT FramestackWidget : public QSplitter
}
#endif // KDEVELOP_FRAMESTACKWIDGET_H
#endif // KDEVPLATFORM_FRAMESTACKWIDGET_H
......@@ -20,8 +20,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef KDEVELOP_IBREAKPOINTCONTROLLER_H
#define KDEVELOP_IBREAKPOINTCONTROLLER_H
#ifndef KDEVPLATFORM_IBREAKPOINTCONTROLLER_H
#define KDEVPLATFORM_IBREAKPOINTCONTROLLER_H
#include <QtCore/QObject>
#include <QtCore/QMap>
......@@ -75,4 +75,4 @@ private Q_SLOTS:
}
#endif // KDEVELOP_IBREAKPOINTCONTROLLER_H
#endif // KDEVPLATFORM_IBREAKPOINTCONTROLLER_H
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef KDEV_IDEBUGSESSION_H
#define KDEV_IDEBUGSESSION_H
#ifndef KDEVPLATFORM_IDEBUGSESSION_H
#define KDEVPLATFORM_IDEBUGSESSION_H
#include <QtCore/QObject>
#include <QtCore/QAbstractItemModel>
......
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef KDEVELOP_IFRAMESTACKMODEL_H
#define KDEVELOP_IFRAMESTACKMODEL_H
#ifndef KDEVPLATFORM_IFRAMESTACKMODEL_H
#define KDEVPLATFORM_IFRAMESTACKMODEL_H
#include "idebugsession.h"
......
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef KDEVELOP_IVARIABLECONTROLLER_H
#define KDEVELOP_IVARIABLECONTROLLER_H
#ifndef KDEVPLATFORM_IVARIABLECONTROLLER_H
#define KDEVPLATFORM_IVARIABLECONTROLLER_H
#include <QtCore/QObject>
class QString;
......
......@@ -20,8 +20,8 @@
*/
#ifndef KDEVELOP_PATHMAPPINGSWIDGET_H
#define KDEVELOP_PATHMAPPINGSWIDGET_H
#ifndef KDEVPLATFORM_PATHMAPPINGSWIDGET_H
#define KDEVPLATFORM_PATHMAPPINGSWIDGET_H
#include <QWidget>
......
......@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef TREEITEM_H
#define TREEITEM_H
#ifndef KDEVPLATFORM_TREEITEM_H
#define KDEVPLATFORM_TREEITEM_H
#include <QtCore/QList>
#include <QtCore/QVariant>
......
......@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef TREEMODEL_H
#define TREEMODEL_H
#ifndef KDEVPLATFORM_TREEMODEL_H
#define KDEVPLATFORM_TREEMODEL_H
#include <QtCore/QAbstractItemModel>
#include <QtCore/QModelIndex>
......
......@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef TREEVIEW_H
#define TREEVIEW_H
#ifndef KDEVPLATFORM_TREEVIEW_H
#define KDEVPLATFORM_TREEVIEW_H
#include <QtGui/QTreeView>
......
......@@ -21,8 +21,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KDEV_VARIABLECOLLECTION_H
#define KDEV_VARIABLECOLLECTION_H
#ifndef KDEVPLATFORM_VARIABLECOLLECTION_H
#define KDEVPLATFORM_VARIABLECOLLECTION_H
#include <QtCore/QAbstractItemModel>
#include <QtCore/QMap>
......
......@@ -20,8 +20,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KDEV_VARIABLETOOLTIP_H
#define KDEV_VARIABLETOOLTIP_H
#ifndef KDEVPLATFORM_VARIABLETOOLTIP_H
#define KDEVPLATFORM_VARIABLETOOLTIP_H
#include "../../util/activetooltip.h"
#include "../util/treeview.h"
......
......@@ -13,8 +13,8 @@
* *
***************************************************************************/
#ifndef KDEV_VARIABLEWIDGET_H
#define KDEV_VARIABLEWIDGET_H
#ifndef KDEVPLATFORM_VARIABLEWIDGET_H
#define KDEVPLATFORM_VARIABLEWIDGET_H
#include <QTreeView>
#include <QAction>
......
......@@ -20,8 +20,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef DOCUMENTATIONEXPORT_H
#define DOCUMENTATIONEXPORT_H
#ifndef KDEVPLATFORM_DOCUMENTATIONEXPORT_H
#define KDEVPLATFORM_DOCUMENTATIONEXPORT_H
/* needed for KDE_EXPORT macros */
#include <kdemacros.h>
......
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef DOCUMENTATIONFINDWIDGET_H
#define DOCUMENTATIONFINDWIDGET_H
#ifndef KDEVPLATFORM_DOCUMENTATIONFINDWIDGET_H
#define KDEVPLATFORM_DOCUMENTATIONFINDWIDGET_H
#include <QWidget>
#include "documentationexport.h"
......@@ -57,4 +57,4 @@ class KDEVPLATFORMDOCUMENTATION_EXPORT DocumentationFindWidget : public QWidget
}
#endif // DOCUMENTATIONFINDWIDGET_H
#endif // KDEVPLATFORM_DOCUMENTATIONFINDWIDGET_H
......@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef DOCUMENTATIONVIEW_H
#define DOCUMENTATIONVIEW_H
#ifndef KDEVPLATFORM_DOCUMENTATIONVIEW_H
#define KDEVPLATFORM_DOCUMENTATIONVIEW_H
#include <QWidget>
#include <QAbstractListModel>
......@@ -96,4 +96,4 @@ signals:
void providersChanged();
};
#endif // DOCUMENTATIONVIEW_H
#endif // KDEVPLATFORM_DOCUMENTATIONVIEW_H
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef STANDARDDOCUMENTATIONVIEW_H
#define STANDARDDOCUMENTATIONVIEW_H
#ifndef KDEVPLATFORM_STANDARDDOCUMENTATIONVIEW_H
#define KDEVPLATFORM_STANDARDDOCUMENTATIONVIEW_H
#include <QWebView>
#include "documentationexport.h"
......@@ -45,4 +45,4 @@ public slots:
};
}
#endif // STANDARDDOCUMENTATIONVIEW_H
#endif // KDEVPLATFORM_STANDARDDOCUMENTATIONVIEW_H
......@@ -28,8 +28,8 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CONTEXT_H
#define CONTEXT_H
#ifndef KDEVPLATFORM_CONTEXT_H
#define KDEVPLATFORM_CONTEXT_H
#include "interfacesexport.h"
......
......@@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef CONTEXTMENUEXTENSION_H
#define CONTEXTMENUEXTENSION_H
#ifndef KDEVPLATFORM_CONTEXTMENUEXTENSION_H
#define KDEVPLATFORM_CONTEXTMENUEXTENSION_H
#include <QtCore/QString>
#include <QtCore/QList>
......
<
......@@ -17,8 +17,8 @@
*/
#ifndef KDEVELOP_FOREGROUNDLOCK_H
#define KDEVELOP_FOREGROUNDLOCK_H
#ifndef KDEVPLATFORM_FOREGROUNDLOCK_H
#define KDEVPLATFORM_FOREGROUNDLOCK_H
#include "interfacesexport.h"