]> granicus.if.org Git - clang/commitdiff
Remove the useless CommentOptions class.
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 31 Aug 2012 10:35:30 +0000 (10:35 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 31 Aug 2012 10:35:30 +0000 (10:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162986 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CommentLexer.h
lib/AST/CommentLexer.cpp
lib/AST/RawCommentList.cpp
unittests/AST/CommentLexer.cpp
unittests/AST/CommentParser.cpp

index 97e0d9674e37e210ea1a6e395a5b79ecd0cabd13..e72052191dbc80c5d793dab3970dd74fdb0c4463 100644 (file)
@@ -49,11 +49,6 @@ enum TokenKind {
 };
 } // end namespace tok
 
-class CommentOptions {
-public:
-  bool Markdown;
-};
-
 /// \brief Comment token.
 class Token {
   friend class Lexer;
@@ -221,7 +216,6 @@ private:
   const char *const BufferStart;
   const char *const BufferEnd;
   SourceLocation FileLoc;
-  CommentOptions CommOpts;
 
   const char *BufferPtr;
 
@@ -336,7 +330,7 @@ private:
 
 public:
   Lexer(llvm::BumpPtrAllocator &Allocator, const CommandTraits &Traits,
-        SourceLocation FileLoc, const CommentOptions &CommOpts,
+        SourceLocation FileLoc,
         const char *BufferStart, const char *BufferEnd);
 
   void lex(Token &T);
index eb0ac2472ada18c581c433fc3474cdd40adf69bd..53440c169fb2871c14480fc57577c93b9f98adcb 100644 (file)
@@ -695,11 +695,11 @@ void Lexer::lexHTMLEndTag(Token &T) {
 }
 
 Lexer::Lexer(llvm::BumpPtrAllocator &Allocator, const CommandTraits &Traits,
-             SourceLocation FileLoc, const CommentOptions &CommOpts,
+             SourceLocation FileLoc,
              const char *BufferStart, const char *BufferEnd):
     Allocator(Allocator), Traits(Traits),
     BufferStart(BufferStart), BufferEnd(BufferEnd),
-    FileLoc(FileLoc), CommOpts(CommOpts), BufferPtr(BufferStart),
+    FileLoc(FileLoc), BufferPtr(BufferStart),
     CommentState(LCS_BeforeComment), State(LS_Normal) {
 }
 
index d75d49aff0f48db9739127b9fa62656b92b4e3ba..1003140849b4dd7232c5b0ab09c3af1f494b12ec 100644 (file)
@@ -144,8 +144,7 @@ const char *RawComment::extractBriefText(const ASTContext &Context) const {
   llvm::BumpPtrAllocator Allocator;
 
   comments::CommandTraits Traits;
-  comments::Lexer L(Allocator, Traits,
-                    Range.getBegin(), comments::CommentOptions(),
+  comments::Lexer L(Allocator, Traits, Range.getBegin(),
                     RawText.begin(), RawText.end());
   comments::BriefParser P(L, Traits);
 
@@ -166,7 +165,7 @@ comments::FullComment *RawComment::parse(const ASTContext &Context,
 
   comments::CommandTraits Traits;
   comments::Lexer L(Context.getAllocator(), Traits,
-                    getSourceRange().getBegin(), comments::CommentOptions(),
+                    getSourceRange().getBegin(),
                     RawText.begin(), RawText.end());
   comments::Sema S(Context.getAllocator(), Context.getSourceManager(),
                    Context.getDiagnostics(), Traits);
index 1168d1d143b8b03b4de16e480dfb55b932f96476..b7bc0783926f0f1f35718ea59880e766690f46ef 100644 (file)
@@ -50,7 +50,7 @@ void CommentLexerTest::lexString(const char *Source,
   SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
 
   comments::CommandTraits Traits;
-  comments::Lexer L(Allocator, Traits, Begin, CommentOptions(),
+  comments::Lexer L(Allocator, Traits, Begin,
                     Source, Source + strlen(Source));
 
   while (1) {
index 7258a7ef576c6777e19d695eb7f5438b017ece27..f04cf197b68740cfcb5dcc160d9fd2e20f78d9aa 100644 (file)
@@ -56,7 +56,7 @@ FullComment *CommentParserTest::parseString(const char *Source) {
   SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
 
   comments::CommandTraits Traits;
-  comments::Lexer L(Allocator, Traits, Begin, CommentOptions(),
+  comments::Lexer L(Allocator, Traits, Begin,
                     Source, Source + strlen(Source));
 
   comments::Sema S(Allocator, SourceMgr, Diags, Traits);