manifest.cpp 701 B

123456789101112131415161718192021
  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. #include "testing/file_test/manifest.h"
  5. // The test manifest, produced by `manifest_as_cpp`.
  6. // NOLINTNEXTLINE(readability-identifier-naming): Constant in practice.
  7. extern const char* CarbonFileTestManifest[];
  8. namespace Carbon::Testing {
  9. auto GetFileTestManifest() -> llvm::SmallVector<std::string> {
  10. llvm::SmallVector<std::string> manifest;
  11. for (int i = 0; CarbonFileTestManifest[i]; ++i) {
  12. manifest.push_back(CarbonFileTestManifest[i]);
  13. }
  14. return manifest;
  15. }
  16. } // namespace Carbon::Testing