[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser

Ralf Habacker ralf.habacker at gmail.com
Wed Jan 18 14:26:19 UTC 2012


SVN commit 1274508 by habacker:

Limit FileAST generating to files where a comment is in the top of the file.

 M  +1 -1      parser.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser/parser.cpp #1274507:1274508
@@ -423,7 +423,7 @@
 
     // catch first comment
     Position ps = m_tokenIt->getStartPosition();
-    if (ps.line == 1 && ps.column == 1)
+    if (ps.line == 1 && ps.column == 1 && (*m_tokenIt) == Token_comment)
     {
         FileAST::Node ast = CreateNode<FileAST>();
         ast->setFileName(m_driver->currentFileName());




More information about the umbrello-devel mailing list