We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07e60e commit c21fd44Copy full SHA for c21fd44
clang/tools/clang-scan-deps/ClangScanDeps.cpp
@@ -284,11 +284,9 @@ class ResourceDirectoryCache {
284
if (CachedResourceDir != Cache.end())
285
return CachedResourceDir->second;
286
287
- std::vector<StringRef> PrintResourceDirArgs{ClangBinaryName};
288
- if (ClangCLMode)
289
- PrintResourceDirArgs.push_back("/clang:-print-resource-dir");
290
- else
291
- PrintResourceDirArgs.push_back("-print-resource-dir");
+ const std::array<StringRef, 2> PrintResourceDirArgs{
+ ClangBinaryName,
+ ClangCLMode ? "/clang:-print-resource-dir" : "-print-resource-dir"};
292
293
llvm::SmallString<64> OutputFile, ErrorFile;
294
llvm::sys::fs::createTemporaryFile("print-resource-dir-output",
0 commit comments