11#include "llvm/ADT/STLExtras.h"
14using namespace tooling;
20 assert(Locations.size() == NamePieces.size() &&
21 "mismatching number of locations and lengths");
22 assert(!Locations.empty() &&
"no locations");
23 if (Locations.size() == 1) {
25 Locations[0], Locations[0].getLocWithOffset(NamePieces[0].size()));
28 MultipleRanges = std::make_unique<SourceRange[]>(Locations.size());
30 for (
const auto &
Loc : llvm::enumerate(Locations)) {
SourceLocation getLocWithOffset(IntTy Offset) const
Return a source location with the specified offset from this SourceLocation.
A trivial tuple used to represent a source range.
The JSON file list parser is used to communicate input to InstallAPI.