================
@@ -415,7 +415,7 @@ class MacroDirective {
const DefInfo findDirectiveAtLoc(SourceLocation L,
const SourceManager &SM) const;
- void dump() const;
----------------
zwuis wrote:
Please keep this overload so we can easily call it in the debugger.
Something like
```cpp
void dump(const SourceManager *SM) const;
void dump() const { dump(/*SM=*/nullptr); }
// It's up to you whether to add this overload.
void dump(const SourceManager &SM) const { dump(&SM); }
```
https://github.com/llvm/llvm-project/pull/240172
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits