Skip to content

Commit

Permalink
[Clang][NFC] remove CHAR_PUNCT duplication introduced by #93216 (#93605)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor3ntin authored May 28, 2024
1 parent 98fa0f6 commit bbca20f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/include/clang/Basic/CharInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbca20f

Please sign in to comment.