Commit Graph

276 Commits

Author SHA1 Message Date
Roy Qu 0e3a1fdca9 - fix: In compiler options page, Can't save default stack size to 0MB. 2024-05-17 18:15:12 +08:00
Roy Qu f4d3ebc9bc optimize: use constData() if possible 2024-05-14 20:26:32 +08:00
Cyano Hao 43e795e791
migrate QStringRef -> QStringView (#425) 2024-05-14 08:38:22 +08:00
Roy Qu 311fe880bb stack size doesn't work in linux 2024-05-05 16:11:34 +08:00
Roy Qu eac49a90f0 - fix: The memory usage displayed after program execution is wrong.
- enhancement: New compiler option "stack size" in the link subpage.
  - change: Set "Ctrl+G" as the shortcut for "Goto page..."
  - change: Set "Ctrl+B" as the shortcut for "Toggle Bookmark"
2024-05-05 10:24:36 +08:00
Roy Qu c19ca5e362 add infrastructure for number compiler options 2024-05-04 21:03:40 +08:00
Cyano Hao 8b80e2a77d
remove pre-Qt 5.15 stuff (#405) 2024-04-28 16:46:01 +08:00
Roy Qu f59462025f minor code clean 2024-04-17 21:01:27 +08:00
Cyano Hao c90f0bc313
Add support for weston-terminal (#384)
* add support for weston-terminal

* move NonExclusiveTemporaryFileOwner to utils

* move wrapCommandForTerminalEmulator to utils
2024-04-17 12:49:37 +08:00
Roy Qu e78799f561 fix: -stack-protect default to Normal 2024-04-14 21:37:44 +08:00
Roy Qu 081d37e21f redirect 2>&1 2024-04-14 12:27:01 +08:00
Roy Qu 44802c6315 windows installer: Template -> template
- sdcc project compiler: compile source file in subfolders.
2024-04-14 12:23:31 +08:00
zw9629 697bdca255
sdcc makefile生成优化 (#377)
* sdcc makefile生成优化
1.隐藏删除文件的错误提示
2.支持生成目标文件输出目录

* 修复删不了文件

* 确保能删除编译文件同时不提示任何错误

* 更正clean脚本错误(%1 2>&1)应为(%1 2>%1)
指定生成目标文件输出目录支持跨盘,跨平台(理论)

* 预防配置项为相对路径

* clean 目标与>%1中间添加空格,避免错误
2024-04-14 12:13:39 +08:00
Roy Qu 05a36d3ed1 Dont auto scroll when copy by drag & drop 2024-04-11 08:09:43 +08:00
Roy Qu 88db0b283a encoding name sensitivity 2024-04-11 07:00:32 +08:00
Roy Qu 396b6f42dc fix : project include dirs not in make file 2024-04-08 13:49:59 +08:00
Roy Qu 17fddff91b clean code
refactor: rename fileIncludes to fileInfo
2024-04-06 18:10:49 +08:00
Roy Qu 8c6cef0ad9 - fix: Compiler set options "Check for stack smashing attacks (-fstack-protector)" was not correctly applied when compiling. 2024-04-06 09:30:35 +08:00
Roy Qu d3f2cd1dc1 refactor: name project options
fix: chinese translation for project options
2024-04-03 16:50:19 +08:00
Roy Qu e58adc94ff - fix: Compile info for project doesn't have name of the project executable.
- fix: Select a word in string / comment doesn't highlight other words in the file
2024-03-28 10:16:28 +08:00
Roy Qu c941ae4cf8 - enhancement: Open ".def" (Module definition file) file in editor when double click it in the project view.
- enhancement: When a dll project has .def file, use it when generating the dll file.
2024-03-27 15:32:30 +08:00
Roy Qu df992c5cbc - fix: Remove duplicated macro defines make it's lost in the parse result.
- fix: An undefined macro is still missing the the parse result after #undef is removed.
2024-03-26 16:33:22 +08:00
Roy Qu 477f7f1d7d - enhancement: Info contents from stderr are logged into "Tools Output" panel, add problem case name info to the log. 2024-03-26 13:45:26 +08:00
Roy Qu 5c7e7fb793 clean up code 2024-03-26 12:56:50 +08:00
Roy Qu 76e098bfc6 fix #327 - enhancement: Auto define macro "_DEBUG" for "Debug" compiler set(like visual studio). 2024-03-26 12:54:25 +08:00
Roy Qu 5b328f1e1a - fix: Option 'Pause after run in console' for tools doesn't work. 2024-03-21 17:54:58 +08:00
Cyano Hao 5be546e97f
fix custom link options parsing (#291) 2024-03-19 20:09:47 +08:00
Cyano Hao f996426916
fix static and shared makefile (#258) 2024-03-10 08:05:09 +08:00
Roy Qu cb323850f0 change: force gcc use english to output if not in zh locale
enhancement: support gcc zh_CN locale
2024-03-07 20:33:16 +08:00
Cyano Hao 18318653d7
Move from command line to argv array (#216)
* command line -> argv array

* update function names

* update directory structure

---------

Co-authored-by: Roy Qu <royqh1979@gmail.com>
2024-02-28 19:41:05 +08:00
Roy Qu f9d8212712 - Enhancement: New option for compiler set "Don't localize gcc output messages" 2024-02-20 21:47:12 +08:00
Roy Qu 625475fabd - Reduce sanitizer option length 2024-02-20 12:55:27 +08:00
Cyano Hao e2e5c46820
Add compiler hint interface for packager (#175)
* add compiler hint addon interface

* add architecture info in about dialog

* detect user install

* add qmake variable to control OpenConsole.exe preference

* enable asan/hwasan option on all platforms for cross toolchain

* fix lldb-server

* force to lldb-server when using lldb-mi

* add qt.conf for windows

* add windows domain installer with compiler hint

* add compiler hint for arch linux

* fix mainwindow actionInterrupt visibility

* update news

* update arch linux packaging

* update windows domain packaging

* allow parallel packaging in windows domain installer

* fix compiler set persistence in compiler hint interface
2024-01-18 16:14:36 +08:00
Roy Qu 8cdc678d38 SDCC feature can be disabled 2023-12-17 13:53:22 +08:00
Roy Qu 3aa9be81d3 - fix: Use the system default encoding for input when running problem cases. 2023-11-19 10:39:12 +08:00
Roy Qu aa12dcc4d1 - fix: Crash if #include a non-exist header file in the source. 2023-11-05 21:00:52 +08:00
Roy Qu 30cabe2faa - enhancement: Parse files that contains C++ 20 'concept' keyword. (No code suggesion for concepts now)
- enhancement: Parse files that contains C++ 20 'requires' keyword.
  - fix: Code suggestions in namespace.
  - enhancement: Code suggestions for namespace alias.
  - fix: Correctly handle statements like 'using xxx::operator()'.
2023-10-22 13:19:03 +08:00
Cyano Hao a62acc2eb0
Add Windows XP support (#146)
* improve Qt 5.6 support

* switch registry API to Windows XP compatible Unicode API

* update docs

* add comment for `CONFIG += c++14 c++17` in qmake .pro files

* fix logic for lockFile
2023-10-21 13:38:12 +08:00
Cyano Hao ca13548ba0
Terminal arguments fix and cleanup (#138)
* fix linux build error

* Linux packaging: remove Alacritty from AppImage

* limit APP_DIR trick to Windows only

* implement Windows search path

* fix terminal search
2023-09-25 10:15:07 +08:00
Roy Qu 7b5fa255da Redesign terminal settings 2023-09-21 16:31:22 +08:00
Roy Qu 1e645d7770 Improvement of terminal support 2023-09-21 08:17:07 +08:00
Cyano Hao 52c5ea4caf
improve custom terminal settings (#137)
- custom terminal on Windows now require explicit enablement
- customizable terminal arguments pattern and its auto detection
- move hard-coded terminals to resource files
2023-09-20 10:52:54 +08:00
Cyano Hao 7cf5d21b48
Add runner args abstraction and fix shm on macOS/BSD (#134)
* add runner args abstraction to allow different args patterns in various terminal apps; fix macOS shm IPC

* extend platform support from Linux to XDG desktop

* update build docs for Unix

* improve terminal args pattern migration for macOS
2023-09-05 19:14:08 +08:00
Roy Qu 23a1a80890 more options for sdcc compiler 2023-08-21 22:03:21 +08:00
Roy Qu 6690599d60 fix: options are ignored when compile
add more compiler options for sdcc
 Support text input for compiler options
2023-08-21 11:48:23 +08:00
Roy Qu 3d3e92bfdb fix: windows project failed to compile. 2023-08-17 19:48:55 +08:00
Roy Qu 6b2a800d37 - enhancement: Support SDCC Project. 2023-08-17 19:24:49 +08:00
Roy Qu d720421830 - enhancement: Better layout for compiler options page. 2023-08-15 11:57:32 +08:00
Roy Qu 72883cf8fb streamline codes 2023-08-15 10:57:03 +08:00
Roy Qu 08693b81ec - enhancement: Use sdcc to generate bin files without linking sdcc startup codes. 2023-08-15 00:29:48 +08:00