aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qtcreatorcdbext/stringutils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use lowercase for Windows header for supporting cross-compilationOrgad Shaneh2021-09-271-1/+1
| | | | | | | | | | Linux mingw uses lowercase headers, so cross-building on Linux for Windows target must use the correct form. Windows is case-insensitive, so it won't affect host-native builds. Change-Id: Ic2140412bb367bbce83b5e2546d70e0936928c5c Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: David Schulz <david.schulz@qt.io>
* cdbext: fix c++17 deprecation warningDavid Schulz2021-09-241-1/+6
| | | | | | Change-Id: I2d06f602b4b229d1dec1dc1924e473f6b7aa4f68 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: always hex encode the value of assignments in cdbextDavid Schulz2019-10-221-0/+11
| | | | | | | | Fixes assigning negative values to locals Change-Id: Ief6e7f47e8e6f0a5d38458396164dfcd24e408a5 Fixes: QTCREATORBUG-17269 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CDB: Add a missing includeOrgad Shaneh2016-07-051-0/+1
| | | | | | | | Required for strlen. Detected by clang code model. Change-Id: Ide38c387ae55a74ce2aa365af261a633c0fd1b52 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* CDB: Make a local function staticOrgad Shaneh2016-07-051-1/+1
| | | | | Change-Id: I91f694a6fdfe4f8efb038180da376081ec9d1ad6 Reviewed-by: David Schulz <david.schulz@qt.io>
* CDB: Add breaks on switch-caseOrgad Shaneh2016-07-051-0/+4
| | | | | | | Detected by clang code model. Change-Id: I9b9d857d8b8310714d942427ace6f44078a5b046 Reviewed-by: David Schulz <david.schulz@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Debugger: Remove unused functions in cdb extensionhjk2015-12-211-46/+0
| | | | | Change-Id: I96991f8dad6f384d798bd27738176fe7319de797 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Debugger: Merge qtcreatorcdbext/base64.{h,cpp} into stringutilshjk2015-12-151-5/+9
| | | | | | | | There was only one function left and this wasn't related to base64 anymore. Change-Id: I071fb383bc3d79b606859cbfc79995dd7345a0a5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* CDB: Only use codemodel breakpoint correction for old cdbs.David Schulz2014-05-161-0/+8
| | | | | | | | Since version 6.2 cdb supports setting breakpoints on non codelines and automatically set it to the next available line. Change-Id: I27facf4f2463bad76a20ef0abb5a5412471c296f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | CDB: Use maxStringLength parameter from settings.Friedemann Kleint2013-01-311-4/+8
| | | | | | | | | | Change-Id: I0969bbbc39863e0981b5af81feced10d0fbbecac Reviewed-by: hjk <hjk121@nokiamail.com>
* | Remove braces for single lines of conditionsOrgad Shaneh2013-01-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #!/usr/bin/env ruby Dir.glob('**/*.cpp') { |file| # skip ast (excluding paste, astpath, and canv'ast'imer) next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i s = File.read(file) next if s.include?('qlalr') orig = s.dup s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m| res = $& if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces res else res.gsub!('} else', 'else') res.gsub!(/\n +} *\n/m, "\n") res.gsub(/ *{$/, '') end } s.gsub!(/ *$/, '') File.open(file, 'wb').write(s) if s != orig } Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc Reviewed-by: hjk <qthjk@ovi.com>
* | Implement basics for edit value handling in CDB.Friedemann Kleint2012-12-211-3/+34
|/ | | | | | | | | | | | | | - Add routine for formatting edit values. - Optionally store memory in SymbolGroupNode (along with special info) to be able to re-use it for edit values using a simple convenience class MemoryHandle. - Prototypically implement QString and QByteArray / Qt 5. Task-number: QTCREATORBUG-8344 Change-Id: I6d2cac7a1e9ac48e94335142c41dc1bfb984c515 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Debugger[CDB]: Fix setting individual formats by iname.Friedemann Kleint2011-08-181-4/+36
| | | | | | | | Do not hex-decode names. Change-Id: I0b9b6df2524cdf66bc34958bbab5bbc28f8a73db Reviewed-on: http://codereview.qt.nokia.com/3172 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger[CDB]: Rework string formatting.Friedemann Kleint2011-08-081-0/+25
| | | | | | | | | | | | | Use watch encoding without quotes for non-ASCII output. Use formats with quotes for recoded strings. Extend char-pointer recoding to work for char-arrays as well and restrict to char types. Split up and re-use when outputting QByteArrays or std::[w]string. Task-number: QTCREATORBUG-5667 Change-Id: If9748c2e375ee5ecb05d257410eba4012de1c3cf Reviewed-on: http://codereview.qt.nokia.com/2747 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger [CDB]: Enable Assignment to string classes.Friedemann Kleint2011-05-171-0/+9
| | | | | | | | Assign to QString/QByteArray following gdbmacros.py implementation (call resize if required, copy data into buffer). Assign to std::[w]string only it has sufficient memory (since std::string<>.resize cannot be called).
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Fix more krazy warnings.Friedemann Kleint2011-04-191-5/+5
|
* Update license.hjk2011-04-131-14/+13
|
* Debugger[CDB]: Reduce roundtrips when stepping.Friedemann Kleint2011-01-251-2/+3
| | | | | | Report threads and frames along with stopped notification. Change special logic for step into and switching threads on interrupt accordingly.
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* License headers, part 2con2010-12-171-7/+11
|
* Debugger[New CDB]: Work on recoding char *-pointers.Friedemann Kleint2010-12-101-0/+17
| | | | | Latin1/Ucs4. Append hex dump in case non-printable characters show in default output.
* Debugger[New CDB]: Pass formatting parameters.Friedemann Kleint2010-12-091-0/+49
| | | | | | | Pass around formatting parameters as structure. Prototypically implement formatting of char *-Pointers as UTF8. Transfer registers and modules only if dock window is visible.
* Debugger[New CDB]: Add SymbolGroupValue for simple dumping.Friedemann Kleint2010-11-251-0/+21
|
* Debugger: Add extension library to be loaded into CDB.exeFriedemann Kleint2010-11-181-0/+180