MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getExtensionsPatternsSupported

Method getExtensionsPatternsSupported

src/eepp/ui/doc/syntaxdefinitionmanager.cpp:679–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679std::vector<std::string> SyntaxDefinitionManager::getExtensionsPatternsSupported() const {
680 Lock l( mMutex );
681 std::unordered_set<std::string> exts;
682 exts.reserve( mDefinitions.size() );
683 for ( auto& definition : mDefinitions )
684 for ( auto& pattern : definition->getFiles() )
685 exts.insert( pattern );
686
687 for ( auto& preDefinition : mPreDefinitions )
688 for ( auto& pattern : preDefinition.getFiles() )
689 exts.insert( pattern );
690
691 std::vector<std::string> vexts;
692 vexts.reserve( exts.size() );
693 for ( auto& ext : exts )
694 vexts.emplace_back( std::move( ext ) );
695 std::sort( vexts.begin(), vexts.end() );
696 return vexts;
697}
698
699const SyntaxDefinition* SyntaxDefinitionManager::getPtrByLSPName( const std::string& name ) const {
700 Lock l( mMutex );

Callers 2

loadDirTreeMethod · 0.80
openAllFilesInFolderMethod · 0.80

Calls 7

sortFunction · 0.85
reserveMethod · 0.80
sizeMethod · 0.45
getFilesMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected