Commit Graph

431 Commits

Author SHA1 Message Date
Roy Qu 2c5ff4f956 refactor: use QDir::fromNativeSeperators / toNativeSeperators 2024-09-06 15:32:18 +08:00
Roy Qu b326058ea2 - fix: "bits/stdc++" is not openned in readonly mode. 2024-09-06 15:27:49 +08:00
Roy Qu 1f6ef884e6 - enhancement: Support operator() overload. 2024-06-02 18:57:52 +08:00
Roy Qu c83da8309c - fix: Variables defined by using alias can't show completion info. 2024-06-02 17:53:31 +08:00
Roy Qu 7593f3fe64 refactor: make qmutex mutable 2024-05-28 19:01:18 +08:00
Roy Qu 454dcbadcb - optimization: use QString::constData() instead of QString::data() if possible
- fix: Can't correctly parse template parameters that contains "->", like "std::queue<std::function<auto()->void>>";
2024-05-14 21:19:42 +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
Cyano Hao cc359651ef
fix unexpected "int -> QChar -> QString" conversion (#417) 2024-05-09 21:09:57 +08:00
Roy Qu cd65ecd74a - fix: Fail to evaluate expressions if macro can't be expanded. 2024-05-05 16:01:29 +08:00
Roy Qu ce97272fc0 fix: Crash when has source line like "std::cout << (3+4*4>5*(4+3)-1 && (4-3>5)) <<std::endl;". 2024-05-04 12:33:35 +08:00
Roy Qu 49049b0884 refactor: structural binding 2024-05-04 10:31:15 +08:00
Roy Qu 4bd3829484 fix: Correctly parsing array defines. 2024-05-03 21:00:38 +08:00
Roy Qu ebeea19794 - enhancement: support C++ 17 structured binding in stl map containers foreach loop. 2024-05-03 10:39:44 +08:00
Roy Qu 131941801d simplify implementation 2024-05-03 08:48:58 +08:00
Roy Qu c5cd30eb2a fix: compile error 2024-05-03 08:38:00 +08:00
Roy Qu 1eb804ab0e fix: (UB) get shared ptr from raw pointer 2024-05-03 07:50:05 +08:00
Roy Qu 67b2ec1bc7 - fix: Current editor wouldn't get parsed, when it's switched from another editor being parsed.
- enhancement: Support macro in #include preprocessing statements. (Issue #497)
2024-05-02 16:58:01 +08:00
Cyano Hao 8b80e2a77d
remove pre-Qt 5.15 stuff (#405) 2024-04-28 16:46:01 +08:00
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