Commit 9f2c0917 authored by dcheng@chromium.org's avatar dcheng@chromium.org

Remove C++11 usage from Clang tools.

I guess I shouldn't have ignored the compiler warnings.

BUG=

Review URL: https://codereview.chromium.org/13904002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193023 0039d316-1c4b-4281-b951-d872f2087c98
parent 270428f3
......@@ -96,7 +96,7 @@ class EmptyStringConverter {
};
void EmptyStringConverter::SetupMatchers(MatchFinder* match_finder) {
const auto& constructor_call =
const clang::ast_matchers::StatementMatcher& constructor_call =
id("call",
constructExpr(
hasDeclaration(methodDecl(ofClass(hasName("std::basic_string")))),
......@@ -189,9 +189,10 @@ int main(int argc, const char* argv[]) {
// Only the <replacement text> field can contain embedded ":" characters.
// TODO(dcheng): Use a more clever serialization.
llvm::outs() << "==== BEGIN EDITS ====\n";
for (const Replacement& r : replacements) {
llvm::outs() << "r:" << r.getFilePath() << ":" << r.getOffset() << ":"
<< r.getLength() << ":" << r.getReplacementText() << "\n";
for (Replacements::const_iterator it = replacements.begin();
it != replacements.end(); ++it) {
llvm::outs() << "r:" << it->getFilePath() << ":" << it->getOffset() << ":"
<< it->getLength() << ":" << it->getReplacementText() << "\n";
}
llvm::outs() << "==== END EDITS ====\n";
......
......@@ -85,9 +85,10 @@ int main(int argc, const char* argv[]) {
// Serialization format is documented in tools/clang/scripts/run_tool.py
llvm::outs() << "==== BEGIN EDITS ====\n";
for (const Replacement& r : replacements) {
llvm::outs() << "r:" << r.getFilePath() << ":" << r.getOffset() << ":"
<< r.getLength() << ":" << r.getReplacementText() << "\n";
for (Replacements::const_iterator it = replacements.begin();
it != replacements.end(); ++it) {
llvm::outs() << "r:" << it->getFilePath() << ":" << it->getOffset() << ":"
<< it->getLength() << ":" << it->getReplacementText() << "\n";
}
llvm::outs() << "==== END EDITS ====\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment