mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
Add absolute file names option to BFBS (#8055)
* Add absolute file names option (#1) * Use ternary style for if --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -336,6 +336,10 @@ void EnsureDirExists(const std::string &filepath) {
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
std::string FilePath(const std::string& project, const std::string& filePath, bool absolute) {
|
||||
return (absolute) ? AbsolutePath(filePath) : RelativeToRootPath(project, filePath);
|
||||
}
|
||||
|
||||
std::string AbsolutePath(const std::string &filepath) {
|
||||
// clang-format off
|
||||
|
||||
|
||||
Reference in New Issue
Block a user