OSDN Git Service

Use FileRange::text instead of Lexer::getSpelling
authorEduardo Caldas <ecaldas@google.com>
Fri, 10 Jul 2020 09:23:09 +0000 (09:23 +0000)
committerEduardo Caldas <ecaldas@google.com>
Fri, 10 Jul 2020 16:21:12 +0000 (16:21 +0000)
commita474d5bae4773782d50d4a5a62300c0f4a2dff28
treee86b4b735fe2cd28b25b51615ed6ef3f5fc66609
parent1db5b348c4c93b6610afb4fd515b389989efc302
Use FileRange::text instead of Lexer::getSpelling

* as we are using them only for integer and floating literals they have
the same behavior
* FileRange::text is simpler to call and is within the context of
syntax trees
clang/lib/Tooling/Syntax/BuildTree.cpp