|
28 | 28 | #include "Cxx/CxxLexerAPI.h" |
29 | 29 | #include "Cxx/CxxVariableScanner.h" |
30 | 30 | #include "Cxx/cpp_comment_creator.h" |
31 | | -#include "StdToWX.h" |
32 | 31 | #include "cl_command_event.h" |
33 | 32 | #include "codelite_events.h" |
34 | 33 | #include "database/tags_storage_sqlite3.h" |
@@ -208,7 +207,7 @@ bool TagsManager::GetDerivationListInternal(const wxString& path, TagEntryPtr de |
208 | 207 | { |
209 | 208 | std::vector<TagEntryPtr> tags; |
210 | 209 | TagEntryPtr tag; |
211 | | - const wxArrayString kind = StdToWX::ToArrayString({ wxT("class"), wxT("struct") }); |
| 210 | + const wxArrayString kind = { wxT("class"), wxT("struct") }; |
212 | 211 |
|
213 | 212 | GetDatabase()->GetTagsByKindAndPath(kind, path, tags); |
214 | 213 |
|
@@ -380,7 +379,7 @@ Language* TagsManager::GetLanguage() |
380 | 379 |
|
381 | 380 | void TagsManager::GetClasses(std::vector<TagEntryPtr>& tags) |
382 | 381 | { |
383 | | - const wxArrayString kind = StdToWX::ToArrayString({ wxT("class"), wxT("struct"), wxT("union") }); |
| 382 | + const wxArrayString kind = {wxT("class"), wxT("struct"), wxT("union")}; |
384 | 383 |
|
385 | 384 | GetDatabase()->GetTagsByKind(kind, wxT("name"), ITagsStorage::OrderAsc, tags); |
386 | 385 | } |
@@ -456,7 +455,7 @@ void TagsManager::CacheFile(const wxString& fileName) |
456 | 455 | m_cachedFile = fileName; |
457 | 456 | m_cachedFileFunctionsTags.clear(); |
458 | 457 |
|
459 | | - const wxArrayString kinds = StdToWX::ToArrayString({ wxT("function"), wxT("prototype") }); |
| 458 | + const wxArrayString kinds = {wxT("function"), wxT("prototype")}; |
460 | 459 | // disable the cache |
461 | 460 | GetDatabase()->SetUseCache(false); |
462 | 461 | GetDatabase()->GetTagsByKindAndFile(kinds, fileName, wxT("line"), ITagsStorage::OrderDesc, |
@@ -690,49 +689,49 @@ void TagsManager::GetCXXKeywords(wxStringSet_t& words) |
690 | 689 |
|
691 | 690 | void TagsManager::GetCXXKeywords(wxArrayString& words) |
692 | 691 | { |
693 | | - words = StdToWX::ToArrayString({ "alignas", "alignof", |
694 | | - "and", "and_eq", |
695 | | - "asm", "auto", |
696 | | - "bitand", "bitor", |
697 | | - "bool", "break", |
698 | | - "case", "catch", |
699 | | - "char", "char16_t", |
700 | | - "char32_t", "class", |
701 | | - "compl", "const", |
702 | | - "constexpr", "const_cast", |
703 | | - "continue", "decltype", |
704 | | - "default", "delete", |
705 | | - "do", "double", |
706 | | - "dynamic_cast", "else", |
707 | | - "enum", "explicit", |
708 | | - "export", "extern", |
709 | | - "false", "final", |
710 | | - "float", "for", |
711 | | - "friend", "goto", |
712 | | - "if", "inline", |
713 | | - "int", "long", |
714 | | - "mutable", "namespace", |
715 | | - "new", "noexcept", |
716 | | - "not", "not_eq", |
717 | | - "nullptr", "operator", |
718 | | - "or", "or_eq", |
719 | | - "override", "private", |
720 | | - "protected", "public", |
721 | | - "register", "reinterpret_cast", |
722 | | - "return", "short", |
723 | | - "signed", "sizeof", |
724 | | - "static", "static_assert", |
725 | | - "static_cast", "struct", |
726 | | - "switch", "template", |
727 | | - "this", "thread_local", |
728 | | - "throw", "true", |
729 | | - "try", "typedef", |
730 | | - "typeid", "typename", |
731 | | - "union", "unsigned", |
732 | | - "using", "virtual", |
733 | | - "void", "volatile", |
734 | | - "wchar_t", "while", |
735 | | - "xor", "xor_eq" }); |
| 692 | + words = {"alignas", "alignof", |
| 693 | + "and", "and_eq", |
| 694 | + "asm", "auto", |
| 695 | + "bitand", "bitor", |
| 696 | + "bool", "break", |
| 697 | + "case", "catch", |
| 698 | + "char", "char16_t", |
| 699 | + "char32_t", "class", |
| 700 | + "compl", "const", |
| 701 | + "constexpr", "const_cast", |
| 702 | + "continue", "decltype", |
| 703 | + "default", "delete", |
| 704 | + "do", "double", |
| 705 | + "dynamic_cast", "else", |
| 706 | + "enum", "explicit", |
| 707 | + "export", "extern", |
| 708 | + "false", "final", |
| 709 | + "float", "for", |
| 710 | + "friend", "goto", |
| 711 | + "if", "inline", |
| 712 | + "int", "long", |
| 713 | + "mutable", "namespace", |
| 714 | + "new", "noexcept", |
| 715 | + "not", "not_eq", |
| 716 | + "nullptr", "operator", |
| 717 | + "or", "or_eq", |
| 718 | + "override", "private", |
| 719 | + "protected", "public", |
| 720 | + "register", "reinterpret_cast", |
| 721 | + "return", "short", |
| 722 | + "signed", "sizeof", |
| 723 | + "static", "static_assert", |
| 724 | + "static_cast", "struct", |
| 725 | + "switch", "template", |
| 726 | + "this", "thread_local", |
| 727 | + "throw", "true", |
| 728 | + "try", "typedef", |
| 729 | + "typeid", "typename", |
| 730 | + "union", "unsigned", |
| 731 | + "using", "virtual", |
| 732 | + "void", "volatile", |
| 733 | + "wchar_t", "while", |
| 734 | + "xor", "xor_eq"}; |
736 | 735 | } |
737 | 736 |
|
738 | 737 | TagEntryPtrVector_t TagsManager::ParseBuffer(const wxString& content, const wxString& filename, const wxString& kinds) |
|
0 commit comments