aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/CompilerInstance.h
diff options
context:
space:
mode:
authorAxel Naumann <Axel.Naumann@cern.ch>2010-10-11 09:13:46 +0000
committerAxel Naumann <Axel.Naumann@cern.ch>2010-10-11 09:13:46 +0000
commit7d0c4ccd65b4549283c55e4923602e234f3811c5 (patch)
tree223417de11f2332ef3dad3a86f1b3d14c034b9cd /include/clang/Frontend/CompilerInstance.h
parent757e685512b8616c9de918b3d3fad8247562dce2 (diff)
Tighten up constness of argv parameters to allow for string literals as argumants and to reflect actual (non-modifying) use.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInstance.h')
-rw-r--r--include/clang/Frontend/CompilerInstance.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Frontend/CompilerInstance.h b/include/clang/Frontend/CompilerInstance.h
index 800d5be068..410129ab7a 100644
--- a/include/clang/Frontend/CompilerInstance.h
+++ b/include/clang/Frontend/CompilerInstance.h
@@ -474,7 +474,7 @@ public:
/// and replace any existing one with it.
///
/// Note that this routine also replaces the diagnostic client.
- void createDiagnostics(int Argc, char **Argv);
+ void createDiagnostics(int Argc, const char* const *Argv);
/// Create a Diagnostic object with a the TextDiagnosticPrinter.
///
@@ -492,7 +492,8 @@ public:
///
/// \return The new object on success, or null on failure.
static llvm::IntrusiveRefCntPtr<Diagnostic>
- createDiagnostics(const DiagnosticOptions &Opts, int Argc, char **Argv);
+ createDiagnostics(const DiagnosticOptions &Opts, int Argc,
+ const char* const *Argv);
/// Create the file manager and replace any existing one with it.
void createFileManager();