[clang] bbca20f - [Clang][NFC] remove CHAR_PUNCT duplication introduced by #93216 (#93605)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 28 14:04:16 PDT 2024
Author: cor3ntin
Date: 2024-05-28T23:04:12+02:00
New Revision: bbca20f0b1ab7c6ea36a84e88a6abb07f94ca80b
URL: https://github.com/llvm/llvm-project/commit/bbca20f0b1ab7c6ea36a84e88a6abb07f94ca80b
DIFF: https://github.com/llvm/llvm-project/commit/bbca20f0b1ab7c6ea36a84e88a6abb07f94ca80b.diff
LOG: [Clang][NFC] remove CHAR_PUNCT duplication introduced by #93216 (#93605)
Added:
Modified:
clang/include/clang/Basic/CharInfo.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/CharInfo.h b/clang/include/clang/Basic/CharInfo.h
index 4d90528f7992e..d71857e8e5dcc 100644
--- a/clang/include/clang/Basic/CharInfo.h
+++ b/clang/include/clang/Basic/CharInfo.h
@@ -151,8 +151,7 @@ LLVM_READONLY inline bool isHexDigit(unsigned char c) {
/// Note that '_' is both a punctuation character and an identifier character!
LLVM_READONLY inline bool isPunctuation(unsigned char c) {
using namespace charinfo;
- return (InfoTable[c] &
- (CHAR_UNDER | CHAR_PERIOD | CHAR_PUNCT | CHAR_PUNCT)) != 0;
+ return (InfoTable[c] & (CHAR_UNDER | CHAR_PERIOD | CHAR_PUNCT)) != 0;
}
/// Return true if this character is an ASCII printable character; that is, a
More information about the cfe-commits
mailing list