1
Help / Re: bug
« Last post by Miguel Gimenez on Today at 10:05:05 am »Trash reported to moderator.
The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .
diff --git a/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp b/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp
index 0964bbd37..e122e4823 100644
--- a/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp
+++ b/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp
@@ -1073,11 +1073,9 @@ void ClgdCompletion::BuildModuleMenu(const ModuleType type, wxMenu* menu, const
const wxString labelAStyle = _("Format use AStyle");
const wxString label = _("Format use Clangd"); // (christo 25/05/02)
int position = Manager::Get()->GetPluginManager()->FindSortedMenuItemPosition(*menu, labelAStyle);
- wxMenuItem* item = menu->FindItemByPosition(position);
- if (item) {
- wxString itemLabel = item->GetItemLabelText();
- if (itemLabel == labelAStyle)
- position += 1;
+ if (position != menu->GetMenuItemCount())
+ {
+ position += 1;
}
menu->Insert(position, idCodeFormatterActiveFile, label, _("Format the selected source code (selected line) in the current file"));
Many of the projects now a days use clang-format for formatting code. clangd has support for clang-format as well using textDocument/rangeFormatting LSP request. Attaching patch which adds a context menu item " Format use Clangd" and does the formatting on selecting that.
'void ThreadSearch::OnCboSearchExprEnter(wxCommandEvent &event)'6- in 'ThreadSearch::OnAttach()' with LOGGING string translation
The links should be fixed now for 32 bit builds. You should (however) always consider to use the 64 bit bundle - the compiler that ships with that one can also create 32 bit executables.Unfortunately 64 bit compiler has problems creating 32 bit executables. Have posted about this already here: https://forums.codeblocks.org/index.php/topic,26027.0.html