diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-02 03:23:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-02 03:23:45 +0000 |
commit | 7b55668db7618334cc40011d3c1e128524d89462 (patch) | |
tree | 96291a6941a167a8e7a1ed721a88ab164a8eefa8 /lib/Basic/FileManager.cpp | |
parent | daab7b1016f0a82fefa4f7be6e63c57c06b19ffc (diff) |
Add ASTUnit::LoadFromCommandLine, which creates an ASTUnit out of a list of
(clang/driver) command line arguments (including the source file).
- The arguments are expected to include the source file.
- The idea is that even though this is a somewhat odd API, its the form which
many tools can most easily use (for example, by interposing with the compiler).
Also, switch index-test's -ast-from-source to use this entry point, and provide
a -arg command line argument which can be used to test that the command line
arguments are handled correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions