Commit Graph

412 Commits

Author SHA1 Message Date
Roy Qu 4797e53b61 update: only define functions in class/namespace/global scopes.
update: add remove custom theme button
2024-04-24 10:26:55 +08:00
Roy Qu 96c4e95172 - fix #388: Temp object + member function call is wrongly parsed as constructor. 2024-04-23 13:31:05 +08:00
Roy Qu 3887b9387d enhancement: Support lambda expression without a parameter list. 2024-04-23 13:05:54 +08:00
Roy Qu c6c7d92e1c - enhancement: Auto type induction for "std::make_shared"/"std::make_unique" 2024-04-14 10:17:17 +08:00
Roy Qu 5d1b874bdf fix: ">>" not correctly handled in auto var definition 2024-04-14 09:24:39 +08:00
Roy Qu 56310e8363 - fix: Can't show correct completion info for vars declared with template parameters ending with ">>". 2024-04-13 22:37:09 +08:00
Roy Qu e3145d680f - fix: Shouldn't consider preceeding '&'/'*' when popping completion suggest list for variable members. 2024-04-13 10:39:55 +08:00
Roy Qu 306e1b6bc4 Merge branch 'master' of github.com:royqh1979/RedPanda-CPP 2024-04-11 18:59:37 +08:00
Roy Qu 57c4b4d646 - enhancement: Function tip's width changes with editor width.
- fix: '<' / '>' not shown in function tips.
2024-04-10 21:43:28 +08:00
Roy Qu 7abbe2f6b5 inline functions in tokenizer 2024-04-10 10:09:04 +08:00
Roy Qu a9295caff2 optimization: make parser methods inline 2024-04-09 22:12:03 +08:00
Roy Qu 1f1d79c094 optimize QHash/QMap iterations 2024-04-09 20:18:10 +08:00
Roy Qu 37c7405311 refactor: openInclude 2024-04-09 19:39:35 +08:00
Roy Qu 35dccca91e refactor: PParsedFileInfo 2024-04-09 18:19:48 +08:00
Roy Qu 9ef6d1f3e6 refactor: ParsedFileInfo 2024-04-09 18:10:44 +08:00
Roy Qu edbe230bf7 refactor 2024-04-09 17:15:27 +08:00
Roy Qu 4f1cc3d50d - fix: Alias a namespace to itself will create infinite loop. 2024-04-08 13:57:16 +08:00
Roy Qu cbd6559ddc - fix #374: Can't find the correct type if current symbol is member of a class that has constructors. 2024-04-08 11:47:53 +08:00
Roy Qu 8ebfeec97d fix : crash when parsing fmt/xchar.h 2024-04-08 11:00:47 +08:00
Roy Qu 17fddff91b clean code
refactor: rename fileIncludes to fileInfo
2024-04-06 18:10:49 +08:00
Roy Qu fd062e2f34 refactor: rename FileIncludes to ParsedFileInfo 2024-04-06 17:45:02 +08:00
Roy Qu f029de3048 - fixes #371 : Don't show completion suggestion for members of variable which type name has namespace alias; 2024-04-06 10:31:08 +08:00
Roy Qu 384396d196 clean codes 2024-04-06 04:05:00 +08:00
Roy Qu 762c27b860 fix: cppparser : #included files not correctly handled
refactor project options -> file page
2024-04-06 04:03:14 +08:00
Roy Qu 29ed064b91 fix: function tips not correctly displayed 2024-04-05 22:43:07 +08:00
Roy Qu 12153bf16a refactor doFindNamespace 2024-04-05 21:40:40 +08:00
Roy Qu 16a3c0ad7a fixes #330 : Don't show function prototype tip for function name that contains more than one namespace; 2024-04-05 21:38:18 +08:00
Roy Qu 3ae25776b6 fix #331 Don't show function prototype tip for function name that contains namespace alias 2024-04-05 17:38:22 +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 648e555fc5 refactor: enum to enum class 2024-04-03 10:37:29 +08:00
Roy Qu 775148eb43 eliminate warnings 2024-04-01 21:28:36 +08:00
Roy Qu c5b07ff321 skip extern template 2024-04-01 11:08:30 +08:00
Roy Qu 1372ac774f - enhancement: Support "extern template" in parser. 2024-04-01 10:59:01 +08:00
Roy Qu dd1bb88733 fix #348 : crash when failed to expand parametered macro in the expression 2024-03-30 12:42:48 +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 2483962082 fix #329 - fix: Some functions like "std::fstream::write" are not shown in the completion suggestion. 2024-03-27 11:18:20 +08:00
Roy Qu 6cb843a1ee fix: hardDefines not correctly handled 2024-03-26 17:36:17 +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 1bb8ad3a27 fix: crash when parsing A{}
enhancement: auto type induction for new
2024-03-24 21:53:55 +08:00
Roy Qu 13e0393c8e - enhancement: Auto type induction for new / temp class object. 2024-03-24 19:42:29 +08:00
Roy Qu 0405a51206 fix #318 #309 - enhancement: Auto type induction for new / temp class object. 2024-03-24 19:19:57 +08:00
Roy Qu 4c8e88ce1b highlights "import"/"module"/"override"/"final" 2024-03-24 17:15:40 +08:00
Roy Qu 741b814e1d fixes #315 : foreach not correcly handled. 2024-03-24 17:07:53 +08:00
Roy Qu 09a61c4c32 support lambda expression captures. 2024-03-23 09:03:20 +08:00
Roy Qu 0782994f95 fix : menu items for editors are disabled. 2024-03-22 19:37:13 +08:00
Roy Qu 517fdbdecc - enhancement: Improve lambda support. 2024-03-22 18:56:02 +08:00
Roy Qu 470bd9cee0 work save 2024-03-22 18:43:01 +08:00
Roy Qu e5a23b7686 cppparser refactors 2024-03-22 17:54:08 +08:00
West-Pavilion 421a227d05
update the C++20 keyword "co_await" from "co_wait" (#299)
* Updated the Chinese translation for "Goto Page Start and Select"
This PR updates the Chinese translation for "Goto Page Start and Select" to accurately reflect the functionality of the feature.
本次PR更新了“Goto Page Start and Select”的中文翻译,以准确反映该功能的操作。

* update the C++20 keyword "co_await" from "co_wait"

The C++20 introduced a new keyword "co_await", however there is a tiny typo wrong("co_wait") in the current version of RedPanda-CPP. This PR is aimed to correct it.
2024-03-22 15:44:04 +08:00
Roy Qu 72cd79eef5 - enhancement: Improvement in italic font support. 2024-03-22 11:12:06 +08:00