Pass PIC/PIE options to gcc when asking for defines.

These influence the __PIC__ and __PIE__ macros.

Change-Id: I7938a897584f49b6e1c4d66c6e69ec7adccf2ad6
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Clang: do not pass the CXTranslationUnit_Incomplete option for parsing.

This flag is meant to be used when generating pre-compiled headers.

Change-Id: I4758f36c5774e7da8c3b6cc401ea4245761d2278
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Editor: add margin displaying to project settings.

This patch also moves the showMargin and marginColumn settings into a
new settings class.

Change-Id: I676447be751c13ee438edc1e31e5998b999c6771
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Android: JavaParser, adjust paths from build to source directory

Since we copy the java files to the build directory, we need to adjust
the path that the java compiler emits for error messages.

For that the JavaParser needs to know the source directory, which is
the android package source dir and the build directory. The
AndroidDeployQtStep thus needs more information then just the
input json file and now stores the path to the .pro file to both
retrieve the input file and the android package source directory.

Task-number: QTCREATORBUG-10904
Change-Id: Ib5141b35b610bc2eee568a096fc5e930f9eb2e47
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Editors: Remove BaseTextEditorWidget::setBaseTextDocument

First step in never changing the text document after construction,
because that is actually not really supported.
Second step will be to fix that for the editor duplicate() methods too.

Change-Id: I3d112ba0895e7ee7ac6dd8ae2318f0de7d2cebc9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
ProFileEditor: Remove unused factory variable

Change-Id: Ifa20cc17675dfce1da9b087ee2e9b2ecdb3d8f22
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Debugger: Simplify display of std::shared_ptr<Foo>

Change-Id: Ie2145903f9ac303d88455cfd609f55240aa76a67
Reviewed-by: hjk <hjk121@nokiamail.com>
TextEditors: Avoid changing document after construction.

Also when duplicating editors, we don't want to change the document
after construction. Actually at some places (e.g. CppEditorSupport
creation) we don't handle document changes correctly, and we are only
lucky that things still (more or less?) work. Get rid of
BaseTextEditorWidget::duplicateFrom and use copy-constructor style instead.

Change-Id: I7f688b7fcc51d1bb5e222bb333f0d28479b597a6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Clang: clean up unit handling.

- Use a QSharedPointer instead of an explicitly shared pointer.
- Remove the LiveUnitManager.

Change-Id: I05bf32c1f77c17f42ee1da39f1353cff580fa6eb
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>