[cfe-commits] r162986 - in /cfe/trunk: include/clang/AST/CommentLexer.h lib/AST/CommentLexer.cpp lib/AST/RawCommentList.cpp unittests/AST/CommentLexer.cpp unittests/AST/CommentParser.cpp

Dmitri Gribenko gribozavr at gmail.com
Fri Aug 31 03:35:30 PDT 2012


Author: gribozavr
Date: Fri Aug 31 05:35:30 2012
New Revision: 162986

URL: http://llvm.org/viewvc/llvm-project?rev=162986&view=rev
Log:
Remove the useless CommentOptions class.

Modified:
    cfe/trunk/include/clang/AST/CommentLexer.h
    cfe/trunk/lib/AST/CommentLexer.cpp
    cfe/trunk/lib/AST/RawCommentList.cpp
    cfe/trunk/unittests/AST/CommentLexer.cpp
    cfe/trunk/unittests/AST/CommentParser.cpp

Modified: cfe/trunk/include/clang/AST/CommentLexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CommentLexer.h?rev=162986&r1=162985&r2=162986&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/CommentLexer.h (original)
+++ cfe/trunk/include/clang/AST/CommentLexer.h Fri Aug 31 05:35:30 2012
@@ -49,11 +49,6 @@
 };
 } // end namespace tok
 
-class CommentOptions {
-public:
-  bool Markdown;
-};
-
 /// \brief Comment token.
 class Token {
   friend class Lexer;
@@ -221,7 +216,6 @@
   const char *const BufferStart;
   const char *const BufferEnd;
   SourceLocation FileLoc;
-  CommentOptions CommOpts;
 
   const char *BufferPtr;
 
@@ -336,7 +330,7 @@
 
 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);

Modified: cfe/trunk/lib/AST/CommentLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CommentLexer.cpp?rev=162986&r1=162985&r2=162986&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CommentLexer.cpp (original)
+++ cfe/trunk/lib/AST/CommentLexer.cpp Fri Aug 31 05:35:30 2012
@@ -695,11 +695,11 @@
 }
 
 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) {
 }
 

Modified: cfe/trunk/lib/AST/RawCommentList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RawCommentList.cpp?rev=162986&r1=162985&r2=162986&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RawCommentList.cpp (original)
+++ cfe/trunk/lib/AST/RawCommentList.cpp Fri Aug 31 05:35:30 2012
@@ -144,8 +144,7 @@
   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::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);

Modified: cfe/trunk/unittests/AST/CommentLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/CommentLexer.cpp?rev=162986&r1=162985&r2=162986&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/CommentLexer.cpp (original)
+++ cfe/trunk/unittests/AST/CommentLexer.cpp Fri Aug 31 05:35:30 2012
@@ -50,7 +50,7 @@
   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) {

Modified: cfe/trunk/unittests/AST/CommentParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/CommentParser.cpp?rev=162986&r1=162985&r2=162986&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/CommentParser.cpp (original)
+++ cfe/trunk/unittests/AST/CommentParser.cpp Fri Aug 31 05:35:30 2012
@@ -56,7 +56,7 @@
   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);





More information about the cfe-commits mailing list