[all-commits] [llvm/llvm-project] 4f50a7: [clang][clang-scan-deps] Add LangOptions::AllowLit...
Naveen Seth Hanig via All-commits
all-commits at lists.llvm.org
Mon Mar 2 13:58:12 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4f50a725fa1921915f29b5d6603d91aef3dbe589
https://github.com/llvm/llvm-project/commit/4f50a725fa1921915f29b5d6603d91aef3dbe589
Author: Naveen Seth Hanig <naveen.hanig at outlook.com>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Basic/LangStandard.h
M clang/lib/Basic/LangOptions.cpp
M clang/lib/Format/Format.cpp
M clang/lib/Lex/DependencyDirectivesScanner.cpp
M clang/lib/Lex/Lexer.cpp
M clang/unittests/Lex/DependencyDirectivesScannerTest.cpp
Log Message:
-----------
[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 at gmail.com>) in
#158420.
Co-authored-by: Yifan Fang <gatsfn at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list