Using llvm::getInputFileDirectory() in unit tests is discouraged, so require an explicit opt-in.
This way, cmake also writes ~60 fewer unused files to disk.
Differential D52095
Introduce explicit add_file_reading_unittest target for tests that use llvm::getInputFileDirectory() thakis on Sep 14 2018, 7:54 AM. Authored by
Details Using llvm::getInputFileDirectory() in unit tests is discouraged, so require an explicit opt-in. This way, cmake also writes ~60 fewer unused files to disk.
Diff Detail Event Timeline
|
Can you call this add_llvm_unittest_with_input_files? The distinction is subtle, but we already have plenty of unittests that read files and don't need this functionality (specifically, most of the tests of Support/FileSystem.h itself. This way it's clear what's being read.