llvm-project
4f50a725 - [clang][clang-scan-deps] Add LangOptions::AllowLiteralDigitSeparator to fix #88896 (#184235)

Commit
48 days ago
[clang][clang-scan-deps] Add LangOptions::AllowLiteralDigitSeparator to fix #88896 (#184235) Fixes #88896 by following the approach described in https://github.com/llvm/llvm-project/pull/95798#discussion_r1649496882. This adds `LangOptions::AllowLiteralDigitSeparator`, following the pattern used for `RawStringLiterals` in #88265. It is enabled by default for C++14 and C23, and the Scanner sets it explicitly to always allow literals with digit separators in directives. Originally authored by @tsfn (Yifan Fang, <gatsfn@gmail.com>) in #158420. Co-authored-by: Yifan Fang <gatsfn@gmail.com>
Author
Parents
Loading