Author: Haojian Wu Date: 2025-07-10T10:46:27+02:00 New Revision: a709621cd545b061782b03136286227867b452a6
URL: https://github.com/llvm/llvm-project/commit/a709621cd545b061782b03136286227867b452a6 DIFF: https://github.com/llvm/llvm-project/commit/a709621cd545b061782b03136286227867b452a6.diff LOG: [Lex] Use SourceLocation::UIntTy for the MacroDefStart, NFC Avoid using the underlying type, and be more consistent -- MacroDefStart stores the result of SourceManager::getNextLocalOffset() which returns the SourceLocation::UIntTy. Added: Modified: clang/include/clang/Lex/TokenLexer.h Removed: ################################################################################ diff --git a/clang/include/clang/Lex/TokenLexer.h b/clang/include/clang/Lex/TokenLexer.h index 7ac933d8f9d45..0456dd961fc30 100644 --- a/clang/include/clang/Lex/TokenLexer.h +++ b/clang/include/clang/Lex/TokenLexer.h @@ -65,7 +65,7 @@ class TokenLexer { /// The offset of the macro expansion in the /// "source location address space". - unsigned MacroStartSLocOffset; + SourceLocation::UIntTy MacroStartSLocOffset; /// Location of the macro definition. SourceLocation MacroDefStart; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits