[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdev-python] /: Cleanup of unnecessary files; add/update license headers
From: Sven Brauch <svenbrauch () googlemail ! com>
Date: 2012-02-25 0:38:19
Message-ID: 20120225003819.59153A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 93629a9151a808ea31091d2d549b5315e9225ba9 by Sven Brauch.
Committed on 25/02/2012 at 01:29.
Pushed by brauch into branch 'master'.
Cleanup of unnecessary files; add/update license headers
D +0 -46 cmake/FindKDevPlatform.cmake
M +19 -0 codecompletion/helpers.cpp
M +20 -0 codecompletion/helpers.h
M +2 -1 duchain/contextbuilder.h
M +1 -1 duchain/expressionvisitor.cpp
M +24 -0 duchain/helpers.cpp
M +24 -0 duchain/helpers.h
M +24 -0 duchain/pythonducontext.cpp
M +1 -0 duchain/pythoneditorintegrator.cpp
M +1 -0 duchain/pythoneditorintegrator.h
M +1 -1 duchain/usebuilder.cpp
M +1 -0 duchain/usebuilder.h
M +1 -0 pythonparsejob.cpp
M +1 -0 pythonparsejob.h
M +5 -0 pythonpythonparser.py
http://commits.kde.org/kdev-python/93629a9151a808ea31091d2d549b5315e9225ba9
diff --git a/cmake/FindKDevPlatform.cmake b/cmake/FindKDevPlatform.cmake
deleted file mode 100644
index 1a771c5..0000000
--- a/cmake/FindKDevPlatform.cmake
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# Find the KDevelop Platform modules and sets various variables accordingly
-#
-# Example usage of this module:
-# find_package(KDevPlatform 1.0.0 REQUIRED)
-#
-# The version number and REQUIRED flag are optional. You can set CMAKE_PREFIX_PATH
-# variable to help it find the required files and directories
-
-# KDEVPLATFORM_FOUND - set to TRUE if the platform was found and the version is compatible FALSE otherwise
-#
-# KDEVPLATFORM_VERSION - The version number of kdevplatform
-# KDEVPLATFORM_VERSION_MAJOR - The major version number of kdevplatform
-# KDEVPLATFORM_VERSION_MINOR - The minor version number of kdevplatform
-# KDEVPLATFORM_VERSION_PATCH - The patch version number of kdevplatform
-# KDEVPLATFORM_INCLUDE_DIR - include dir of the platform, for example /usr/include/kdevplatform
-# KDEVPLATFORM_INTERFACES_LIBRARIES - interfaces module library
-# KDEVPLATFORM_LANGUAGE_LIBRARIES - language module library
-# KDEVPLATFORM_OUTPUTVIEW_LIBRARIES - outputview module library
-# KDEVPLATFORM_PROJECT_LIBRARIES - project module library
-# KDEVPLATFORM_SUBLIME_LIBRARIES - sublime module library
-# KDEVPLATFORM_SHELL_LIBRARIES - shell module library
-# KDEVPLATFORM_TESTS_LIBRARIES - library to write tests for plugins,
-# contains some useful tools and a way to replace parts of Core
-# classes with custom implementations
-# KDEVPLATFORM_UTIL_LIBRARIES - util module library
-# KDEVPLATFORM_VCS_LIBRARIES - vcs module library
-# KDEVPLATFORM_SOURCEFORMATTER_LIBRARIES - source formatter library
-# KDEVPLATFORM_DEBUGGER_LIBRARIES - debugger module library
-#
-# The following macros are added (from KDevPlatformMacros.cmake):
-#
-# KDEVPLATFORM_ADD_APP_TEMPLATES( template1 ... templateN )
-# Use this to get packaged template archives for the given templates.
-# Parameters should be the directories containing the templates.
-#
-# Copyright 2007 Andreas Pakulat <apaku@gmx.de>
-# Redistribution and use is allowed according to the terms of the BSD license.
-
-set(_KDevPlatform_FIND_QUIETLY ${KDevPlatform_FIND_QUIETLY})
-find_package( KDevPlatform ${KDevPlatform_FIND_VERSION} NO_MODULE )
-set(KDevPlatform_FIND_QUIETLY ${_KDevPlatform_FIND_QUIETLY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(KDevPlatform DEFAULT_MSG KDevPlatform_CONFIG )
-
diff --git a/codecompletion/helpers.cpp b/codecompletion/helpers.cpp
index bbb108d..f7a6d54 100644
--- a/codecompletion/helpers.cpp
+++ b/codecompletion/helpers.cpp
@@ -1,3 +1,22 @@
+/*****************************************************************************
+ * This file is part of KDevelop
+ * Copyright (c) 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
+ * *
+ * This program is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU General Public License as *
+ * published by the Free Software Foundation; either version 2 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
+ *****************************************************************************
+ */
+
#include "helpers.h"
#include <language/duchain/abstractfunctiondeclaration.h>
#include <language/duchain/duchainutils.h>
diff --git a/codecompletion/helpers.h b/codecompletion/helpers.h
index 6388594..0a00a8c 100644
--- a/codecompletion/helpers.h
+++ b/codecompletion/helpers.h
@@ -1,3 +1,23 @@
+/*****************************************************************************
+ * This file is part of KDevelop
+ * Copyright (c) 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
+ * *
+ * This program is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU General Public License as *
+ * published by the Free Software Foundation; either version 2 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
+ *****************************************************************************
+ */
+
+
#ifndef HELPERS_H
#define HELPERS_H
diff --git a/duchain/contextbuilder.h b/duchain/contextbuilder.h
index 891b889..191d64b 100644
--- a/duchain/contextbuilder.h
+++ b/duchain/contextbuilder.h
@@ -1,6 +1,7 @@
/*****************************************************************************
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
- * Copyright 2007 Andreas Pakulat <apaku@gmx.de> *
+ * Copyright 2007 Andreas Pakulat <apaku@gmx.de> *
+ * Copyright (c) 2010-2012 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/duchain/expressionvisitor.cpp b/duchain/expressionvisitor.cpp
index 6a4dbe4..bab7349 100644
--- a/duchain/expressionvisitor.cpp
+++ b/duchain/expressionvisitor.cpp
@@ -1,5 +1,5 @@
/*****************************************************************************
- * This file is part of KDDevelop *
+ * This file is part of KDevelop *
* Copyright 2010 (c) Miquel Canes Gonzalez <miquelcanes@gmail.com> *
* Copyright 2011 by Sven Brauch <svenbrauch@googlemail.com> *
* *
diff --git a/duchain/helpers.cpp b/duchain/helpers.cpp
index 2fa8912..ed3b20f 100644
--- a/duchain/helpers.cpp
+++ b/duchain/helpers.cpp
@@ -1,3 +1,27 @@
+/*****************************************************************************
+ * This file is part of KDevelop *
+ * Copyright 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
+ * *
+ * Permission is hereby granted, free of charge, to any person obtaining *
+ * a copy of this software and associated documentation files (the *
+ * "Software"), to deal in the Software without restriction, including *
+ * without limitation the rights to use, copy, modify, merge, publish, *
+ * distribute, sublicense, and/or sell copies of the Software, and to *
+ * permit persons to whom the Software is furnished to do so, subject to *
+ * the following conditions: *
+ * *
+ * The above copyright notice and this permission notice shall be *
+ * included in all copies or substantial portions of the Software. *
+ * *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE *
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION *
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION *
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
+ *****************************************************************************/
+
#include "helpers.h"
#include <QList>
diff --git a/duchain/helpers.h b/duchain/helpers.h
index fbc94c5..4c8aa6c 100644
--- a/duchain/helpers.h
+++ b/duchain/helpers.h
@@ -1,3 +1,27 @@
+/*****************************************************************************
+ * This file is part of KDevelop *
+ * Copyright 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
+ * *
+ * Permission is hereby granted, free of charge, to any person obtaining *
+ * a copy of this software and associated documentation files (the *
+ * "Software"), to deal in the Software without restriction, including *
+ * without limitation the rights to use, copy, modify, merge, publish, *
+ * distribute, sublicense, and/or sell copies of the Software, and to *
+ * permit persons to whom the Software is furnished to do so, subject to *
+ * the following conditions: *
+ * *
+ * The above copyright notice and this permission notice shall be *
+ * included in all copies or substantial portions of the Software. *
+ * *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE *
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION *
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION *
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
+ *****************************************************************************/
+
#ifndef GLOBALHELPERS_H
#define GLOBALHELPERS_H
diff --git a/duchain/pythonducontext.cpp b/duchain/pythonducontext.cpp
index 03500ac..635889e 100644
--- a/duchain/pythonducontext.cpp
+++ b/duchain/pythonducontext.cpp
@@ -1,3 +1,27 @@
+/*****************************************************************************
+ * This file is part of KDevelop *
+ * Copyright 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
+ * *
+ * Permission is hereby granted, free of charge, to any person obtaining *
+ * a copy of this software and associated documentation files (the *
+ * "Software"), to deal in the Software without restriction, including *
+ * without limitation the rights to use, copy, modify, merge, publish, *
+ * distribute, sublicense, and/or sell copies of the Software, and to *
+ * permit persons to whom the Software is furnished to do so, subject to *
+ * the following conditions: *
+ * *
+ * The above copyright notice and this permission notice shall be *
+ * included in all copies or substantial portions of the Software. *
+ * *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE *
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION *
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION *
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
+ *****************************************************************************/
+
#include "pythonducontext.h"
#include <language/duchain/topducontext.h>
diff --git a/duchain/pythoneditorintegrator.cpp b/duchain/pythoneditorintegrator.cpp
index a82a458..3dc7179 100644
--- a/duchain/pythoneditorintegrator.cpp
+++ b/duchain/pythoneditorintegrator.cpp
@@ -1,5 +1,6 @@
/*****************************************************************************
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
+ * Copyright 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/duchain/pythoneditorintegrator.h b/duchain/pythoneditorintegrator.h
index 30cf8cf..874fcd3 100644
--- a/duchain/pythoneditorintegrator.h
+++ b/duchain/pythoneditorintegrator.h
@@ -1,5 +1,6 @@
/*****************************************************************************
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
+ * Copyright 2011-2012 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/duchain/usebuilder.cpp b/duchain/usebuilder.cpp
index 27f6689..abe6f40 100644
--- a/duchain/usebuilder.cpp
+++ b/duchain/usebuilder.cpp
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
- * Copyright 2010-2011 Sven Brauch <svenbrauch@googlemail.com> *
+ * Copyright 2010-2012 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/duchain/usebuilder.h b/duchain/usebuilder.h
index c571529..64ac558 100644
--- a/duchain/usebuilder.h
+++ b/duchain/usebuilder.h
@@ -1,5 +1,6 @@
/*****************************************************************************
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
+ * Copyright 2010-2011 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/pythonparsejob.cpp b/pythonparsejob.cpp
index 3f2517b..f300f7c 100644
--- a/pythonparsejob.cpp
+++ b/pythonparsejob.cpp
@@ -1,6 +1,7 @@
/*****************************************************************************
* Copyright (c) 2007 Andreas Pakulat <apaku@gmx.de> *
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
+ * Copyright (c) 2010-2012 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/pythonparsejob.h b/pythonparsejob.h
index e00bc4e..092a957 100644
--- a/pythonparsejob.h
+++ b/pythonparsejob.h
@@ -1,6 +1,7 @@
/*****************************************************************************
* Copyright (c) 2007 Andreas Pakulat <apaku@gmx.de> *
* Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com> *
+ * Copyright (c) 2010-2012 Sven Brauch <svenbrauch@googlemail.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining *
* a copy of this software and associated documentation files (the *
diff --git a/pythonpythonparser.py b/pythonpythonparser.py
index b80d102..0f723a0 100755
--- a/pythonpythonparser.py
+++ b/pythonpythonparser.py
@@ -7,6 +7,11 @@
# Licensed under the GNU GPL
#
+# This script once was used for parsing documents; that implementation is long gone.
+# It's just kept for looking at the AST created by some code quickly; you can do this:
+# echo 'foo = baz.bar(3, "str")' |./pythonpythonparser.py
+# or similar to quickly see the AST for that code.
+
import ast
from xml.dom.minidom import Document
from lxml import etree
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic