21
21
using namespace llvm ;
22
22
23
23
namespace clang {
24
- namespace doc {
24
+ namespace mrdox {
25
25
26
26
namespace {
27
27
@@ -743,7 +743,7 @@ class AsciidocGenerator : public Generator
743
743
llvm::Error
744
744
generateDocs (
745
745
StringRef RootDir,
746
- llvm::StringMap<std::unique_ptr<doc ::Info>> Infos,
746
+ llvm::StringMap<std::unique_ptr<mrdox ::Info>> Infos,
747
747
ClangDocContext const & CDCtx) override ;
748
748
749
749
llvm::Error
@@ -764,16 +764,16 @@ llvm::Error
764
764
AsciidocGenerator::
765
765
generateDocs (
766
766
StringRef RootDir,
767
- llvm::StringMap<std::unique_ptr<doc ::Info>> Infos,
767
+ llvm::StringMap<std::unique_ptr<mrdox ::Info>> Infos,
768
768
ClangDocContext const & CDCtx)
769
769
{
770
770
// Track which directories we already tried to create.
771
771
llvm::StringSet<> CreatedDirs;
772
772
773
773
// Collect all output by file name and create the necessary directories.
774
- llvm::StringMap<std::vector<doc ::Info*>> FileToInfos;
774
+ llvm::StringMap<std::vector<mrdox ::Info*>> FileToInfos;
775
775
for (const auto & Group : Infos) {
776
- doc ::Info* Info = Group.getValue ().get ();
776
+ mrdox ::Info* Info = Group.getValue ().get ();
777
777
778
778
llvm::SmallString<128 > Path;
779
779
llvm::sys::path::native (RootDir, Path);
@@ -820,19 +820,19 @@ generateDocForInfo(
820
820
switch (I->IT )
821
821
{
822
822
case InfoType::IT_namespace:
823
- makeNamespacePage (CDCtx, *static_cast <clang::doc ::NamespaceInfo*>(I), os);
823
+ makeNamespacePage (CDCtx, *static_cast <clang::mrdox ::NamespaceInfo*>(I), os);
824
824
break ;
825
825
case InfoType::IT_record:
826
- genMarkdown (CDCtx, *static_cast <clang::doc ::RecordInfo*>(I), os);
826
+ genMarkdown (CDCtx, *static_cast <clang::mrdox ::RecordInfo*>(I), os);
827
827
break ;
828
828
case InfoType::IT_enum:
829
- genMarkdown (CDCtx, *static_cast <clang::doc ::EnumInfo*>(I), os);
829
+ genMarkdown (CDCtx, *static_cast <clang::mrdox ::EnumInfo*>(I), os);
830
830
break ;
831
831
case InfoType::IT_function:
832
- genMarkdown (CDCtx, *static_cast <clang::doc ::FunctionInfo*>(I), os);
832
+ genMarkdown (CDCtx, *static_cast <clang::mrdox ::FunctionInfo*>(I), os);
833
833
break ;
834
834
case InfoType::IT_typedef:
835
- genMarkdown (CDCtx, *static_cast <clang::doc ::TypedefInfo*>(I), os);
835
+ genMarkdown (CDCtx, *static_cast <clang::mrdox ::TypedefInfo*>(I), os);
836
836
break ;
837
837
case InfoType::IT_default:
838
838
return createStringError (llvm::inconvertibleErrorCode (),
@@ -871,5 +871,5 @@ Add<AsciidocGenerator> Asciidoc(
871
871
// file and thus register the generator.
872
872
volatile int AsciidocGeneratorAnchorSource = 0 ;
873
873
874
- } // namespace doc
874
+ } // namespace mrdox
875
875
} // namespace clang
0 commit comments