[llvm] [NFC][TableGen] Elminate use of isalpha/isdigit from TGLexer (PR #104837)
    Rahul Joshi via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Aug 20 07:36:05 PDT 2024
    
    
  
================
@@ -51,14 +67,14 @@ static const char *lexMacroName(StringRef Str) {
 
   // Macro names start with [a-zA-Z_].
   const char *Next = Str.begin();
-  if (*Next != '_' && !isalpha(*Next))
+  if (!IsValidIDChar(*Next, First))
----------------
jurahul wrote:
Done.
https://github.com/llvm/llvm-project/pull/104837
    
    
More information about the llvm-commits
mailing list