library_name.h 732 B

12345678910111213141516171819202122232425
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef EXECUTABLE_SEMANTICS_AST_LIBRARY_NAME_H_
  5. #define EXECUTABLE_SEMANTICS_AST_LIBRARY_NAME_H_
  6. #include <string>
  7. namespace Carbon {
  8. // Identifies a particular library. For example, "Geometry//Objects/FourSides"
  9. // will have package="Geometry" and path="Objects/FourSides".
  10. struct LibraryName {
  11. // The library's package.
  12. std::string package;
  13. // The package-relative path of the library. This defaults to the empty
  14. // string.
  15. std::string path;
  16. };
  17. } // namespace Carbon
  18. #endif // EXECUTABLE_SEMANTICS_AST_LIBRARY_NAME_H_