File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ std::string mapTypeStringRecursive(const std::string &cpp_type) {
549549std::string normalizeTranslationRule (std::string rule) {
550550 static const std::array<std::pair<std::regex, std::string>, 2 >
551551 normalization_rules{{
552- // Dettach pointer from double reference. Useful for matching
552+ // Detach pointer from double reference. Useful for matching
553553 // translation rules.
554554 {std::regex (R"( \*\&\&)" ), " * &&" },
555555 // Ignore constant template parameters, i.e. replace them with _.
@@ -568,7 +568,7 @@ static std::string synthesizeAnonRecordName(const clang::RecordDecl *record) {
568568 if (auto *parent =
569569 clang::dyn_cast<clang::RecordDecl>(record->getDeclContext ())) {
570570 parent_name = parent->getIdentifier ()
571- ? std::string ( parent->getIdentifier ()->getName ())
571+ ? parent->getIdentifier ()->getName (). str ( )
572572 : synthesizeAnonRecordName (parent);
573573 parent_name += ' _' ;
574574 }
You can’t perform that action at this time.
0 commit comments