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);
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 and automatically determine the operating system from the host uname.
Return Value
Classification result.
Parameters
Name |
Description |
fileName |
File to classify. |
appPath |
Application source root. |
Created with MrDocs