@@ -150,13 +150,14 @@ void registerUtil(py::module_& m) {
150150 .def (" getFullyOriginalRange" , &SourceManager::getFullyOriginalRange, " range" _a)
151151 .def (" getFullyExpandedLoc" , &SourceManager::getFullyExpandedLoc, " location" _a)
152152 .def (" getSourceText" , &SourceManager::getSourceText, " buffer" _a)
153- .def (" assignText" ,
154- py::overload_cast<std::string_view, SourceLocation, const SourceLibrary*>(
155- &SourceManager::assignText),
156- " text" _a, " includedFrom" _a = SourceLocation (), " library" _a = nullptr )
153+ .def (
154+ " assignText" ,
155+ static_cast <SourceBuffer (SourceManager::*)(std::string_view, SourceLocation, const SourceLibrary*)>(
156+ &SourceManager::assignText),
157+ " text" _a, " includedFrom" _a = SourceLocation (), " library" _a = nullptr )
157158 .def (" assignText" ,
158159 py::overload_cast<std::string_view, std::string_view, SourceLocation,
159- const SourceLibrary*>(&SourceManager::assignText),
160+ const SourceLibrary*>(&SourceManager::assignText< false > ),
160161 " path" _a, " text" _a, " includedFrom" _a = SourceLocation (), " library" _a = nullptr )
161162 .def (
162163 " readSource" ,
0 commit comments