Skip to content

Rose::StringUtility::classifyFileName

Determine whether a file is source code or system library.

Synopsis

Declared in <src/Rose/StringUtility/FileUtility.h>

[[visibility]]
FileNameClassification
classifyFileName(
    std::string const& fileName,
    std::string const& appPath,
    std::map<std::string, std::string> const& libPathCollection,
    OSType os);

Description

Given a fileName and an appPath that is a path to some application's source code directory, and a collection of library paths, return a FileNameClassification indicating whether the fileName is part of the source code or some system library.

Return Value

Classification result.

Parameters

Name

Description

fileName

File to classify.

appPath

Application source root.

libPathCollection

Library search paths.

os

Operating system type to assume.

Created with MrDocs