================ @@ -124,6 +130,15 @@ class DeclIDBase { bool isInvalid() const { return ID == PREDEF_DECL_NULL_ID; } + unsigned getModuleFileIndex() const { return ID >> 32; } + + unsigned getLocalDeclIndex() const { + // Implement it directly instead of calling `llvm::maskTrailingOnes` since + // we don't want `MathExtras.h` to be inclued here. ---------------- jansvoboda11 wrote:
Why not? Just to keep the amount of code lower? Can't we move the function body to an implementation file? https://github.com/llvm/llvm-project/pull/92083 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits