diff options
Diffstat (limited to 'include/clang/Index')
-rw-r--r-- | include/clang/Index/CommentToXML.h | 52 | ||||
-rw-r--r-- | include/clang/Index/USRGeneration.h | 62 |
2 files changed, 0 insertions, 114 deletions
diff --git a/include/clang/Index/CommentToXML.h b/include/clang/Index/CommentToXML.h deleted file mode 100644 index bb7b71a..0000000 --- a/include/clang/Index/CommentToXML.h +++ /dev/null @@ -1,52 +0,0 @@ -//===--- CommentToXML.h - Convert comments to XML representation ----------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_INDEX_COMMENTTOXML_H -#define LLVM_CLANG_INDEX_COMMENTTOXML_H - -#include "clang/Basic/LLVM.h" -#include <memory> - -namespace clang { -class ASTContext; - -namespace comments { -class FullComment; -class HTMLTagComment; -} - -namespace index { -class SimpleFormatContext; - -class CommentToXMLConverter { - std::unique_ptr<SimpleFormatContext> FormatContext; - unsigned FormatInMemoryUniqueId; - -public: - CommentToXMLConverter(); - ~CommentToXMLConverter(); - - void convertCommentToHTML(const comments::FullComment *FC, - SmallVectorImpl<char> &HTML, - const ASTContext &Context); - - void convertHTMLTagNodeToText(const comments::HTMLTagComment *HTC, - SmallVectorImpl<char> &Text, - const ASTContext &Context); - - void convertCommentToXML(const comments::FullComment *FC, - SmallVectorImpl<char> &XML, - const ASTContext &Context); -}; - -} // namespace index -} // namespace clang - -#endif // LLVM_CLANG_INDEX_COMMENTTOXML_H - diff --git a/include/clang/Index/USRGeneration.h b/include/clang/Index/USRGeneration.h deleted file mode 100644 index 55e35cc..0000000 --- a/include/clang/Index/USRGeneration.h +++ /dev/null @@ -1,62 +0,0 @@ -//===- USRGeneration.h - Routines for USR generation ----------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_INDEX_USRGENERATION_H -#define LLVM_CLANG_INDEX_USRGENERATION_H - -#include "clang/Basic/LLVM.h" -#include "llvm/ADT/StringRef.h" - -namespace clang { -class Decl; -class MacroDefinitionRecord; -class SourceManager; - -namespace index { - -static inline StringRef getUSRSpacePrefix() { - return "c:"; -} - -/// \brief Generate a USR for a Decl, including the USR prefix. -/// \returns true if the results should be ignored, false otherwise. -bool generateUSRForDecl(const Decl *D, SmallVectorImpl<char> &Buf); - -/// \brief Generate a USR fragment for an Objective-C class. -void generateUSRForObjCClass(StringRef Cls, raw_ostream &OS); - -/// \brief Generate a USR fragment for an Objective-C class category. -void generateUSRForObjCCategory(StringRef Cls, StringRef Cat, raw_ostream &OS); - -/// \brief Generate a USR fragment for an Objective-C instance variable. The -/// complete USR can be created by concatenating the USR for the -/// encompassing class with this USR fragment. -void generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS); - -/// \brief Generate a USR fragment for an Objective-C method. -void generateUSRForObjCMethod(StringRef Sel, bool IsInstanceMethod, - raw_ostream &OS); - -/// \brief Generate a USR fragment for an Objective-C property. -void generateUSRForObjCProperty(StringRef Prop, raw_ostream &OS); - -/// \brief Generate a USR fragment for an Objective-C protocol. -void generateUSRForObjCProtocol(StringRef Prot, raw_ostream &OS); - -/// \brief Generate a USR for a macro, including the USR prefix. -/// -/// \returns true on error, false on success. -bool generateUSRForMacro(const MacroDefinitionRecord *MD, - const SourceManager &SM, SmallVectorImpl<char> &Buf); - -} // namespace index -} // namespace clang - -#endif // LLVM_CLANG_IDE_USRGENERATION_H - |