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,
OSType os);
Description
Given a fileName and an appPath that is a path to some application's source code directory, 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. |
os |
Operating system type to assume. |
Created with MrDocs