manifest.cpp 720 B

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