summaryrefslogtreecommitdiff
path: root/src/tools/clangbackend/clangbackendmain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove clangbackendChristian Kandeler2022-05-041-103/+0
| | | | | Change-Id: I5f4f9a2fc5469c4eeb112a46626791ffb9a57a85 Reviewed-by: David Schulz <david.schulz@qt.io>
* Fix warnings about possible detach of temporary objectsJarek Kobus2020-11-161-1/+1
| | | | | | | | | Calling first() or last() on temporary container may unnecessarily detach the container. Fix it by calling constFirst() and constLast(). Change-Id: I2460efd5dbee1534eec8a514d9bff2a947bfddf9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Fix MSVC warningOrgad Shaneh2020-11-111-1/+1
| | | | | | | C4273: 'OutputDebugStringW': inconsistent dll linkage Change-Id: Iee29998801f2cbc821acdfdfa919e74709e3383b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix build of clangrefactoring backend on WindowsCristian Adam2019-09-231-1/+1
| | | | | | | Broke in ccab8354551ab1e0b4c79bba66469e32945a750b Change-Id: Ic5db7597cb6cc3c798987997d8fe50c4d801ec8e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Debugging: Enable Windows debugging for clang toolsCristian Adam2019-09-191-19/+5
| | | | | | | | | | On Windows the debugging of clang tools is not working due to the nature of how processes are started. This makes it possible to use DebugViewer or DebugViewPP Change-Id: I2c1e4bb7a8fafd6f07570e5d2ba4df5b44e9d44d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Clang Backend: enable Windows debug loggingCristian Adam2019-04-011-2/+19
| | | | | | | | | | | On Windows the debug messages are not sent to the Windows logger, because a custom Qt message handler was set up. This commit forwards the messages also to the default message handler. Change-Id: I1745a86f72fcc1e48cd52603633fca2f23c8fedf Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Set LC_NUMERIC to "C" for clangbackendNikolai Kosjar2019-01-081-0/+5
| | | | | | | | | | The tidy check SuspiciousMissingCommaCheck uses the locale dependent stod() when reading settings and might throw std::invalid_argument for a locale different than "C". Fixes: QTCREATORBUG-21605 Change-Id: I69bf719a8fd94e13ce67b46238f536c85ab2eaa3 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Disable printing stack traces by defaultNikolai Kosjar2018-11-261-1/+3
| | | | | | | | | | | | | | | | | | | | | Printing the stack strace in the event of a crash is very useful, but in the worst case it can also result in a deadlock, without any trace being printed, rendering the clangbackend completely useless. For example, if a thread allocates memory (lock) and another thread crashes right then, clang's stack trace printer is invoked, which (unfortunately) also tries to allocate memory (deadlock). This was observed with QTCREATORBUG-21559. The stack trace printer should be fixed in clang. Until then, disable printing stack traces by default and allow to enable when explicitly requested (QTC_CLANG_ENABLE_STACKTRACES=1). Task-number: QTCREATORBUG-21559 Change-Id: I418cea7f3d70bc8a9cae333b3858228650307c6e Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Remove hard-coded disabling of debug logsOrgad Shaneh2018-10-131-2/+0
| | | | | | | | | | | Instead, set the default level of all logs to QtWarningMsg. The call to setFilterRules overrides the user preferences in qtlogging.ini. Change-Id: Id5f6cd550d14ff7f45ae04c5d3110e0bafb0f072 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Clang: Disable crash recovery in libclangNikolai Kosjar2018-06-051-1/+0
| | | | | | | | | | | | | | | | | ...because 1. We already run in a separate process. 2. It's not entirely clear in which state we end up after a crash, except for: 3. A "crashed" translation unit won't be freed, even when calling clang_disposeTranslationUnit(). This avoids undefined behavior within clangbackend and accumulated leaking memory in the long run. On the other side, crashes within libclang will crash clangbackend now, too. Change-Id: I0789c52db08ace2f7e181e3b7bdfc9f595f75e8d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: forward clangbackend QDebug messages to stdoutIvan Donchevskii2018-01-251-0/+14
| | | | | | | | | | | ...to see them in both qtcreator application output and DebugView. clangbackend is a separate process which provides QtCreator stdout and stderr channels so we need to have QDebug messages there in order to receive them. Change-Id: I2edc4de1ca203b061395b0b3070e4471348eaad7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Enable QTC_ASSERT() outputNikolai Kosjar2018-01-051-1/+1
| | | | | | | | We had all debug output disabled by default, even the one generated from QTC_ASSERT and friends. Change-Id: Ie41eac49c2c3da25f584e43d7c9a292715b3f355 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Move QLocalServer in ConnectionClientMarco Bubke2017-11-281-2/+2
| | | | | | | | | | | Before the QLocalServer was in the ConnectionServer so more than one client could connect to the server. But we never used that possibility which made the hand shaking much more difficult. It is now moved in the client, so that there is always a QLocalServer. Change-Id: Ifa357074b0c0809434c49d23b1cee38496f72f43 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Use CrashHandler for clangbackendNikolai Kosjar2016-11-011-1/+5
| | | | | Change-Id: Ic51e9c3227744fa087ade4bde9a7b5f421024f6f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Clang: Add clang refactoringMarco Bubke2016-08-041-1/+1
| | | | | | Change-Id: I2e3f36f810276da3f8dc7dcc587b06f8edb586d3 GPush-Base: d02f51b48fc752fddcdef6dcb32b3f7f6c0195a3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Make ConnectionServer adaptableMarco Bubke2016-07-121-2/+7
| | | | | | | The server and client are adaptable by template parameter. Change-Id: Ia28e2863ca73b633689964ea1df6df08f8358ac1 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* Clang: Rename Ipc* in ClangCodeModel*Marco Bubke2016-06-301-3/+3
| | | | | | | | | | We want to share more functionality of the IPC mechanism and for what we need more interface classes. But we use this names already for the ClangCodeModel implementation. So we rename the them to ClangCodeModel*. Change-Id: Ie320e0d3b993586a9bcc6a5aa0d32427af41202e Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Use MessageEnvelop instead of QVariantMarco Bubke2016-02-081-3/+0
| | | | | | | | | | QVariant has unwanted dependencies so we provided our own simpler solution. We want to support move only types and calling the copy constructor as you move the value in and outside. This copying is adding unwanted overhead too. Change-Id: I2e27a7924868efe81e8b8ff3415499c9fa22c2bc Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.6'Eike Ziller2016-02-011-5/+19
|\ | | | | | | Change-Id: Ic4d3d94feaaa588c6244509bb3dd14c5cb646fe7
| * ClangBackEnd: Use QCommandLineParser.Friedemann Kleint2016-02-011-5/+19
| | | | | | | | | | | | | | | | Output a proper usage message instead of a cryptic "wrong argument count" when launching it from the shell for testing. Change-Id: Iedb6b1062c9d246a514aefb05220942e4a6341df Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
* | Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
|/ | | | | | | * Update files in src/share* and src/tools Change-Id: I78aa5d4a1d76212964e467de7676c1fcb2b777d6 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Clang: Enable stack tracesMarco Bubke2015-11-231-0/+1
| | | | | Change-Id: Ia7b8b7aa598f74e2c80e27f328ac5ddb410c043e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Clang: Activate clang crash recoveryMarco Bubke2015-11-231-0/+2
| | | | | Change-Id: I382a4d433ef64dedfeb39034df93579e7eb2580c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Strip BOM from filesNikolai Kosjar2015-10-011-1/+1
| | | | | Change-Id: I9167c016760fe1e8378cdf84144c4bed5cd4e57c Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
* Clang: Rename command in messageMarco Bubke2015-08-251-2/+2
| | | | | Change-Id: I1e2671d15b0db3c670b86dd0d4bed5ee09e866f1 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Clang: Disable debug logging categoriesNikolai Kosjar2015-07-301-0/+3
| | | | | | | ...apparently they are enabled by default. Change-Id: I6bda380655050c62e124de451a8aefd440cf4b91 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Clang: Rename CodeModelBackEnd in ClangBackEndMarco Bubke2015-06-161-0/+61
Change-Id: I13e8a458634110456375956d4d4da7239c86957f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>