[flang-commits] [flang] [flang] Get ProvenanceRange from CharBlock starting with expanded macro (PR #77791)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu Jan 11 08:52:04 PST 2024


================
@@ -229,7 +233,8 @@ class CookedSource {
   void set_number(int n) { number_ = n; }
 
   CharBlock AsCharBlock() const { return CharBlock{data_}; }
-  std::optional<ProvenanceRange> GetProvenanceRange(CharBlock) const;
+  std::optional<ProvenanceRange> GetProvenanceRange(
----------------
klausler wrote:

Would it be possible & cleaner to add an `allSources_` member to `CookedSource`?

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


More information about the flang-commits mailing list