From: Chris Lattner Date: Wed, 15 Apr 2009 14:42:02 +0000 (+0000) Subject: rename variable in comment, not just in code :). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9dbbdbf63785cf39e9cc1dfd1eab1729d0048f17;p=clang rename variable in comment, not just in code :). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69166 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-cc/Warnings.cpp b/tools/clang-cc/Warnings.cpp index 95983e2c5a..f272292301 100644 --- a/tools/clang-cc/Warnings.cpp +++ b/tools/clang-cc/Warnings.cpp @@ -124,7 +124,7 @@ bool clang::ProcessWarningOptions(Diagnostic &Diags) { // FIXME: -fdiagnostics-show-option // FIXME: -Wfatal-errors / -Wfatal-errors=foo - /// ControlledOptions - Keep track of the options that the user explicitly + /// ControlledDiags - Keep track of the options that the user explicitly /// poked with -Wfoo, -Wno-foo, or -Werror=foo. llvm::SmallVector ControlledDiags; @@ -189,7 +189,7 @@ bool clang::ProcessWarningOptions(Diagnostic &Diags) { for (const diag::kind *Member = Found->Members, *E = Found->Members+Found->NumMembers; Member != E; ++Member) { Diags.setDiagnosticMapping(*Member, Mapping); - assert(*Member < 65536 && "ControlledOptions element too small"); + assert(*Member < 65536 && "ControlledDiags element too small"); ControlledDiags.push_back(*Member); } } @@ -210,7 +210,7 @@ bool clang::ProcessWarningOptions(Diagnostic &Diags) { // Loop over all of the extension diagnostics. Unless they were explicitly // controlled, reset their mapping to Mapping. We walk through the - // ControlledOptions in parallel with this walk, which is faster than + // ControlledDiags in parallel with this walk, which is faster than // repeatedly binary searching it. // llvm::SmallVectorImpl::iterator ControlledDiagsIt =