]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
doxy: always print line (also when parse error)
authordberzano <dario.berzano@cern.ch>
Tue, 9 Dec 2014 11:24:07 +0000 (12:24 +0100)
committerdberzano <dario.berzano@cern.ch>
Fri, 9 Jan 2015 15:01:07 +0000 (16:01 +0100)
doxygen/thtml2doxy_clang.py

index 6c649a71c476fb30aee04355a20dd3db0a8f9840..b9de04c7a4cac9c5214cf42264b971485ad3c270 100755 (executable)
@@ -290,18 +290,18 @@ def traverse_ast(cursor, filename, comments, recursion=0):
   if cursor.kind == clang.cindex.CursorKind.CXX_METHOD or cursor.kind == clang.cindex.CursorKind.CONSTRUCTOR or cursor.kind == clang.cindex.CursorKind.DESTRUCTOR:
 
     # cursor ran into a C++ method
-    logging.debug( "%5d %s%s(%s)" % (cursor.extent.start.line, indent, Colt(kind).magenta(), Colt(text).blue()) )
+    logging.debug( "%5d %s%s(%s)" % (cursor.location.line, indent, Colt(kind).magenta(), Colt(text).blue()) )
     comment_method(cursor, comments)
 
   elif cursor.kind == clang.cindex.CursorKind.FIELD_DECL:
 
     # cursor ran into a data member declaration
-    logging.debug( "%5d %s%s(%s)" % (cursor.extent.start.line, indent, Colt(kind).magenta(), Colt(text).blue()) )
+    logging.debug( "%5d %s%s(%s)" % (cursor.location.line, indent, Colt(kind).magenta(), Colt(text).blue()) )
     comment_datamember(cursor, comments)
 
   else:
 
-    logging.debug( "%5d %s%s(%s)" % (cursor.extent.start.line, indent, kind, text) )
+    logging.debug( "%5d %s%s(%s)" % (cursor.location.line, indent, kind, text) )
 
   for child_cursor in cursor.get_children():
     traverse_ast(child_cursor, filename, comments, recursion+1)