OSDN Git Service

Refactored NumericLiteralParser to not require a Preprocessor
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 9 Jul 2020 15:09:57 +0000 (17:09 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 9 Jul 2020 15:33:58 +0000 (17:33 +0200)
commit3cca818efabbccdde36b06609cf75ee7caa8e012
tree532fab0c0ca64074cab33a8200cd0698fddba6b2
parent67422e4294754e08f277b1ba22820487eb76b918
Refactored NumericLiteralParser to not require a Preprocessor

Summary:
We would like to use NumericLiteralParser in the implementation of the
syntax tree builder, and plumbing a preprocessor there seems
inconvenient and superfluous.

Reviewers: eduucaldas

Reviewed By: eduucaldas

Subscribers: gribozavr2, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83480
clang/include/clang/Lex/LiteralSupport.h
clang/lib/Lex/LiteralSupport.cpp
clang/lib/Lex/PPExpressions.cpp
clang/lib/Lex/Preprocessor.cpp
clang/lib/Sema/SemaExpr.cpp