Files
llvm/clang/test/Analysis/model-file-missing.cpp
Jan Svoboda 2e96cd6562 [clang][analyzer] Delay checking the model-path (#150133)
This PR is part of an effort to remove file system usage from the
command line parsing code. The reason for that is that it's impossible
to do file system access correctly without a configured VFS, and the VFS
can only be configured after the command line is parsed. I don't want to
intertwine command line parsing and VFS configuration, so I decided to
perform the file system access after the command line is parsed and the
VFS is configured - ideally right before the file system entity is used
for the first time.

This patch delays checking that `model-path` is an existing directory.
2025-09-02 10:43:04 -07:00

4 lines
253 B
C++

// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-config model-path=%t/blah %s -o - 2>&1 | FileCheck %s
// CHECK: error: invalid input for analyzer-config option 'model-path', that expects a filename value
// CHECK-NEXT: 1 error generated