mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 04:33:23 +00:00
Standardized internal path handling on Posix separators.
There were several possible bugs involving paths not being recognized as being the same on Windows. Rather than trying to ensure all code deals with / and \ correctly, paths now get transformed to / on input, fixing all current and future such bugs. Tested: on OS X.
This commit is contained in:
@@ -1962,7 +1962,7 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths,
|
||||
Is(kTokenIdentifier))) {
|
||||
NEXT();
|
||||
if (opts.proto_mode && attribute_ == "public") NEXT();
|
||||
auto name = attribute_;
|
||||
auto name = flatbuffers::PosixPath(attribute_.c_str());
|
||||
EXPECT(kTokenStringConstant);
|
||||
// Look for the file in include_paths.
|
||||
std::string filepath;
|
||||
|
||||
Reference in New Issue
Block a user