Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 252 forks source link

"diagnose" command on an error-less file outputs a malformed XML #959

Closed dawagner closed 7 years ago

dawagner commented 7 years ago

Please mark appropriate

Problem description

--diagnose command on a file that doesn't contain any error produces a malformed XML.

Expected behavior

$ rc --absolute-path --diagnose /some/File.cpp --synchronous-diagnostics
<?xml version="1.0" encoding="utf-8"?>
  <checkstyle>
    <file name="/some/File.cpp">
    </file>
  </checkstyle>

Actual behavior

$ rc --absolute-path --diagnose someFile.cpp --synchronous-diagnostics
<?xml version="1.0" encoding="utf-8"?>
  <checkstyle>
    <file name="someFile.cpp">
    </file>
    </file>
  </checkstyle>

Environment

Andersbakken commented 7 years ago

Tnanks. Should work now.

dawagner commented 7 years ago

Yes, it does :)