summaryrefslogtreecommitdiffstats
path: root/clang/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
commit53f3e7dba329e6f6bce06db702cb2b728b5ab8d3 (patch)
tree12847bb628524f58b97915d44192745f6cc947c1 /clang/lib/Frontend/CompilerInvocation.cpp
parent723b4f02a71a5c74c355cbe5f502c206b86824a5 (diff)
downloadbcm5719-llvm-53f3e7dba329e6f6bce06db702cb2b728b5ab8d3.tar.gz
bcm5719-llvm-53f3e7dba329e6f6bce06db702cb2b728b5ab8d3.zip
Change -analyzer-config to use '=' as the key-value separator, and only
support the '-analyzer-config key=val' variant. llvm-svn: 162891
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 8935e775a73..6f6ef42c6ff 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/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];
OpenPOWER on IntegriCloud