diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-08-27 22:13:31 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-08-27 22:13:31 +0000 |
| commit | 1fac68b0dc19b03fd2c5e9856f0f2c5a11691348 (patch) | |
| tree | 8d34e81ec9a2821e079ca8f647d6d1c82c5309f6 /clang/include | |
| parent | d3136661bac0509328231005957fb27adc8ce717 (diff) | |
| download | bcm5719-llvm-1fac68b0dc19b03fd2c5e9856f0f2c5a11691348.tar.gz bcm5719-llvm-1fac68b0dc19b03fd2c5e9856f0f2c5a11691348.zip | |
ArrayRef'ized CompilerInvocation::CreateFromArgs
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D66797
llvm-svn: 370122
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Frontend/CompilerInvocation.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/include/clang/Frontend/CompilerInvocation.h b/clang/include/clang/Frontend/CompilerInvocation.h index f0280232af0..f3253d5b40e 100644 --- a/clang/include/clang/Frontend/CompilerInvocation.h +++ b/clang/include/clang/Frontend/CompilerInvocation.h @@ -21,6 +21,7 @@ #include "clang/Frontend/PreprocessorOutputOptions.h" #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" +#include "llvm/ADT/ArrayRef.h" #include <memory> #include <string> @@ -153,12 +154,8 @@ public: /// one of the vaild-to-access (albeit arbitrary) states. /// /// \param [out] Res - The resulting invocation. - /// \param ArgBegin - The first element in the argument vector. - /// \param ArgEnd - The last element in the argument vector. - /// \param Diags - The diagnostic engine to use for errors. static bool CreateFromArgs(CompilerInvocation &Res, - const char* const *ArgBegin, - const char* const *ArgEnd, + ArrayRef<const char *> CommandLineArgs, DiagnosticsEngine &Diags); /// Get the directory where the compiler headers |

