Skip to content

Commit bbca20f

Browse files
authored
[Clang][NFC] remove CHAR_PUNCT duplication introduced by #93216 (#93605)
1 parent 98fa0f6 commit bbca20f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/include/clang/Basic/CharInfo.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ LLVM_READONLY inline bool isHexDigit(unsigned char c) {
151151
/// Note that '_' is both a punctuation character and an identifier character!
152152
LLVM_READONLY inline bool isPunctuation(unsigned char c) {
153153
using namespace charinfo;
154-
return (InfoTable[c] &
155-
(CHAR_UNDER | CHAR_PERIOD | CHAR_PUNCT | CHAR_PUNCT)) != 0;
154+
return (InfoTable[c] & (CHAR_UNDER | CHAR_PERIOD | CHAR_PUNCT)) != 0;
156155
}
157156

158157
/// Return true if this character is an ASCII printable character; that is, a

0 commit comments

Comments
 (0)