[clang-tools-extra] [clang-doc] Add Start and End Line Numbers (PR #135081)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 9 16:13:07 PDT 2025


================
@@ -85,7 +85,7 @@ llvm::Error decodeRecord(const Record &R, std::optional<Location> &Field,
   if (R[0] > INT_MAX)
     return llvm::createStringError(llvm::inconvertibleErrorCode(),
                                    "integer too large to parse");
-  Field.emplace((int)R[0], Blob, (bool)R[1]);
+  Field.emplace((int)R[0], (int)R[1], Blob, (bool)R[2]);
----------------
ilovepi wrote:

If we're touching these, lets use `static_cast<T>`. If C style casts are prevalent in the rest of the file, we should address those separately.

https://github.com/llvm/llvm-project/pull/135081


More information about the cfe-commits mailing list