aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-30 05:49:16 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-30 05:49:16 +0000
commit318cc3c07eaca04d319be841e9e3bac35d1ff9f5 (patch)
tree0b03de4090577163ae21d4d481469895499cc091 /lib/Frontend/CompilerInvocation.cpp
parent50f88b99c60c2ed31b339cd8bd484766cc9e916b (diff)
Change -analyzer-config to use '=' as the key-value separator, and only
support the '-analyzer-config key=val' variant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 8935e775a7..6f6ef42c6f 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -1161,20 +1161,20 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
const Arg *A = *it;
A->claim();
// We can have a list of comma separated config names, e.g:
- // '-analyzer-config=key1:val1,key2:val2'
+ // '-analyzer-config key1=val1,key2=val2'
StringRef configList = A->getValue(Args);
SmallVector<StringRef, 4> configVals;
configList.split(configVals, ",");
for (unsigned i = 0, e = configVals.size(); i != e; ++i) {
StringRef key, val;
- llvm::tie(key, val) = configVals[i].split(":");
+ llvm::tie(key, val) = configVals[i].split("=");
if (val.empty()) {
Diags.Report(SourceLocation(),
diag::err_analyzer_config_no_value) << configVals[i];
Success = false;
break;
}
- if (val.find(':') != StringRef::npos) {
+ if (val.find('=') != StringRef::npos) {
Diags.Report(SourceLocation(),
diag::err_analyzer_config_multiple_values)
<< configVals[i];