// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fcntl.h> #include <string.h> #include <unistd.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "tools/cddl/codegen.h" #include "tools/cddl/logging.h" #include "tools/cddl/parse.h" #include "tools/cddl/sema.h" std::string ReadEntireFile(const std::string& filename) { … } struct CommandLineArguments { … }; CommandLineArguments ParseCommandLineArguments(int argc, char** argv) { … } int main(int argc, char** argv) { … }