[PATCH] D82157: Fix crash on `user defined literals`
Eduardo Caldas via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 19 01:34:52 PDT 2020
eduucaldas created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Given an UserDefinedLiteral `1.2_w`:
Problem: Lexer generates one Token for the literal, but ClangAST
references two source locations
Fix: Ignore the operator and interpret it as the underlying literal.
e.g.: `1.2_w` token generates syntax node IntegerLiteral(1.2_w)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82157
Files:
clang/lib/Tooling/Syntax/BuildTree.cpp
clang/unittests/Tooling/Syntax/TreeTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82157.271950.patch
Type: text/x-patch
Size: 2581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200619/135ab70b/attachment.bin>
More information about the cfe-commits
mailing list