This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL369182: [clang-doc] Fix casting not working in gcc 5.4.0 (authored by DiegoAstiazaran, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D66378?vs=215730&id=215732#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D66378/new/ https://reviews.llvm.org/D66378 Files: clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp Index: clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp =================================================================== --- clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp +++ clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp @@ -89,7 +89,7 @@ HTMLTag Tag; // Name of HTML Tag (p, div, h1) std::vector<std::unique_ptr<HTMLNode>> Children; // List of child nodes - std::vector<std::pair<llvm::SmallString<16>, llvm::SmallString<16>>> + std::vector<std::pair<std::string, std::string>> Attributes; // List of key-value attributes for tag void Render(llvm::raw_ostream &OS, int IndentationLevel) override; @@ -278,7 +278,7 @@ llvm::sys::path::filename(FilePath)); // Paths in HTML must be in posix-style llvm::sys::path::native(StylesheetPath, llvm::sys::path::Style::posix); - LinkNode->Attributes.emplace_back("href", StylesheetPath); + LinkNode->Attributes.emplace_back("href", StylesheetPath.str()); Out.emplace_back(std::move(LinkNode)); } return Out; @@ -293,7 +293,7 @@ llvm::sys::path::append(ScriptPath, llvm::sys::path::filename(FilePath)); // Paths in HTML must be in posix-style llvm::sys::path::native(ScriptPath, llvm::sys::path::Style::posix); - ScriptNode->Attributes.emplace_back("src", ScriptPath); + ScriptNode->Attributes.emplace_back("src", ScriptPath.str()); Out.emplace_back(std::move(ScriptNode)); } return Out; @@ -454,7 +454,7 @@ Node->Children.emplace_back(std::make_unique<TextNode>(" of file ")); auto LocFileNode = std::make_unique<TagNode>( HTMLTag::TAG_A, llvm::sys::path::filename(FileURL)); - LocFileNode->Attributes.emplace_back("href", FileURL); + LocFileNode->Attributes.emplace_back("href", FileURL.str()); Node->Children.emplace_back(std::move(LocFileNode)); return Node; }
Index: clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp =================================================================== --- clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp +++ clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp @@ -89,7 +89,7 @@ HTMLTag Tag; // Name of HTML Tag (p, div, h1) std::vector<std::unique_ptr<HTMLNode>> Children; // List of child nodes - std::vector<std::pair<llvm::SmallString<16>, llvm::SmallString<16>>> + std::vector<std::pair<std::string, std::string>> Attributes; // List of key-value attributes for tag void Render(llvm::raw_ostream &OS, int IndentationLevel) override; @@ -278,7 +278,7 @@ llvm::sys::path::filename(FilePath)); // Paths in HTML must be in posix-style llvm::sys::path::native(StylesheetPath, llvm::sys::path::Style::posix); - LinkNode->Attributes.emplace_back("href", StylesheetPath); + LinkNode->Attributes.emplace_back("href", StylesheetPath.str()); Out.emplace_back(std::move(LinkNode)); } return Out; @@ -293,7 +293,7 @@ llvm::sys::path::append(ScriptPath, llvm::sys::path::filename(FilePath)); // Paths in HTML must be in posix-style llvm::sys::path::native(ScriptPath, llvm::sys::path::Style::posix); - ScriptNode->Attributes.emplace_back("src", ScriptPath); + ScriptNode->Attributes.emplace_back("src", ScriptPath.str()); Out.emplace_back(std::move(ScriptNode)); } return Out; @@ -454,7 +454,7 @@ Node->Children.emplace_back(std::make_unique<TextNode>(" of file ")); auto LocFileNode = std::make_unique<TagNode>( HTMLTag::TAG_A, llvm::sys::path::filename(FileURL)); - LocFileNode->Attributes.emplace_back("href", FileURL); + LocFileNode->Attributes.emplace_back("href", FileURL.str()); Node->Children.emplace_back(std::move(LocFileNode)); return Node; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits