Rename llvm::markup namespace to swift::markup

This was naming was cargoed from long ago and this functionality isn't
directly related to LLVM, it's specific to Swift.
This commit is contained in:
David Farler
2016-04-10 13:46:25 -07:00
parent 5eb479a6f2
commit a9297eed9f
17 changed files with 148 additions and 149 deletions

View File

@@ -204,7 +204,7 @@ void getClangDocKeyword(ClangImporter &Importer, const Decl *D,
} // end namespace comments
} // end namespace clang
namespace llvm {
namespace swift {
namespace markup {
class SwiftDocWordExtractor : public MarkupASTWalker {
CommandWordsPairs &Pairs;
@@ -242,7 +242,7 @@ void getSwiftDocKeyword(const Decl* D, CommandWordsPairs &Words) {
}
if (!Interested)
return;
static llvm::markup::MarkupContext MC;
static swift::markup::MarkupContext MC;
auto DC = getDocComment(MC, D);
if (!DC.hasValue())
return;
@@ -260,7 +260,7 @@ void getSwiftDocKeyword(const Decl* D, CommandWordsPairs &Words) {
}
}
} // end namespace markup
} // end namespace llvm
} // end namespace swift
typedef llvm::function_ref<bool(ValueDecl*, DeclVisibilityKind)> DeclFilter;
DeclFilter DefaultFilter = [] (ValueDecl* VD, DeclVisibilityKind Kind) {return true;};
@@ -1496,7 +1496,7 @@ private:
if (auto *CD = VD->getClangDecl()) {
clang::comments::getClangDocKeyword(*Importer, CD, Pairs);
} else {
llvm::markup::getSwiftDocKeyword(VD, Pairs);
swift::markup::getSwiftDocKeyword(VD, Pairs);
}
Builder.addDeclDocCommentWords(llvm::makeArrayRef(Pairs));
}