Skip to content

Commit 02129ea

Browse files
committed
[Syntax] avoid using c++17 features on 15.x branch
1 parent fc47af8 commit 02129ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/lib/Tooling/Syntax/Tokens.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,10 @@ TokenBuffer::spelledForExpanded(llvm::ArrayRef<syntax::Token> Expanded) const {
460460
return llvm::None;
461461
const syntax::Token *First = &Expanded.front();
462462
const syntax::Token *Last = &Expanded.back();
463-
auto [FirstSpelled, FirstMapping] = spelledForExpandedToken(First);
464-
auto [LastSpelled, LastMapping] = spelledForExpandedToken(Last);
463+
const syntax::Token *FirstSpelled, *LastSpelled;
464+
const TokenBuffer::Mapping *FirstMapping, *LastMapping;
465+
std::tie(FirstSpelled, FirstMapping) = spelledForExpandedToken(First);
466+
std::tie(LastSpelled, LastMapping) = spelledForExpandedToken(Last);
465467

466468
FileID FID = SourceMgr->getFileID(FirstSpelled->location());
467469
// FIXME: Handle multi-file changes by trying to map onto a common root.

0 commit comments

Comments
 (0)