[clang-tools-extra] r216529 - Simplify creation of a couple ArrayRefs by using None and makeArrayRef.
Craig Topper
craig.topper at gmail.com
Tue Aug 26 23:29:08 PDT 2014
Author: ctopper
Date: Wed Aug 27 01:29:07 2014
New Revision: 216529
URL: http://llvm.org/viewvc/llvm-project?rev=216529&view=rev
Log:
Simplify creation of a couple ArrayRefs by using None and makeArrayRef.
Modified:
clang-tools-extra/trunk/clang-query/Query.cpp
Modified: clang-tools-extra/trunk/clang-query/Query.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/Query.cpp?rev=216529&r1=216528&r2=216529&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/Query.cpp (original)
+++ clang-tools-extra/trunk/clang-query/Query.cpp Wed Aug 27 01:29:07 2014
@@ -92,8 +92,8 @@ bool MatchQuery::run(llvm::raw_ostream &
TD.emitDiagnostic(
R.getBegin(), DiagnosticsEngine::Note,
"\"" + BI->first + "\" binds here",
- ArrayRef<CharSourceRange>(CharSourceRange::getTokenRange(R)),
- ArrayRef<FixItHint>(), &AST->getSourceManager());
+ llvm::makeArrayRef(CharSourceRange::getTokenRange(R)),
+ None, &AST->getSourceManager());
}
break;
}
More information about the cfe-commits
mailing list