Prevent crash

It was already fixed in master

BUG: 320706
add missing braces
Fix builds for okteta in a separate prefix

The find-module already sets up the includedir to be
<prefix>/include/kasten2/okteta1 etc. so using the relative path here as
well breaks builds where okteta is installed in its own prefix and hence
there's no -I<prefix>/include on the compiler commandline.

Cherry-picked (by Sven) to 4.5 in order to fix build.kde.org
Correct Basic C++ Template

Removes unnecessary new lines in Header & Create proper implementations for functions (with return type.)
take() variables when they go out of scope

Instead of remove() that would remove all uses of the variable, with
ugly cases.

This solves a problem in a project that was modifying CMAKE_SOURCE_DIR

BUG: 320715
Verify validity of type after deserialization from the storage.

BUG: 318972
Update global vars when visiting set(..CACHE..FORCE) AST node

REVIEW: 111133
Support return statement

REVIEW: 111135
BUG: 320875
Revert "Update global vars when visiting set(..CACHE..FORCE) AST node"

This reverts commit 1726c5c02b7dfd0dd9b778664268632d66ce80f1, it mades the
cmakeprojectvisitortest not to pass.
RETURN() also works with find_package() and include()
SVN_SILENT made messages (.desktop file)
Fix overloaded-virtual of computeCompletions.

MissingIncludeCompletionWorker::computeCompletions causes an overloaded-virtual warning when building kdevelop. Upon investigation, it appears that it was intended to override CodeCompletionWorker::computeCompletions, but the third parameter is incorrect.

KDevelop was crashing left and right and with this change seems a bit more stable.

REVIEW: 111347
Don't use the items after calling ::removeUrl

Things can go wrong then

BUG: 321335
SVN_SILENT made messages (.desktop file)
SVN_SILENT made messages (.desktop file)
Don't run an execute process command if the working dir is unknown

BUG: 287805
cpp_header.h: Conditionally add license header

If no license text is given, don't add any comment at all.
I'm not adding "None" or similar to the combo box, because I think that
just clutters the box with another redundant item.

If you don't want a license, select "Other" and leave the text edit empty.

BUG: 321986
Gracefully react to a lack of a working directory

Use the current directory instead, I have no idea what was I thinking
when I did this.
SVN_SILENT made messages (.desktop file)
SVN_SILENT made messages (.desktop file)