================
@@ -1157,6 +1157,12 @@ SourceRange 
cxcursor::MacroExpansionCursor::getSourceRange() const {
     return getPseudoLoc();
   return getAsMacroExpansion()->getSourceRange();
 }
+std::optional<std::string>
+cxcursor::MacroExpansionCursor::getExpandedText() const {
+  if (isPseudo())
+    return std::nullopt;
+  return getAsMacroExpansion()->getExpandedText();
+}
----------------
vvuksanovic wrote:

This is not needed for out functionality, and can be removed. I just saw that 
it exposes getters for other fields from `MacroExpansion` and added this as 
well.

https://github.com/llvm/llvm-project/pull/176126
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to