Mercurial > irccd
comparison extern/vera/src/plugins/Reports.h @ 548:a7c0eb100760
CMake: import vera++ 1.3.0, closes #729
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 22 Nov 2017 20:10:03 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
547:a95954e53589 | 548:a7c0eb100760 |
---|---|
1 // | |
2 // Copyright (C) 2006-2007 Maciej Sobczak | |
3 // Distributed under the Boost Software License, Version 1.0. | |
4 // (See accompanying file LICENSE_1_0.txt or copy at | |
5 // http://www.boost.org/LICENSE_1_0.txt) | |
6 // | |
7 | |
8 #ifndef REPORTS_H_INCLUDED | |
9 #define REPORTS_H_INCLUDED | |
10 | |
11 #include "Reports.h" | |
12 #include <string> | |
13 #include <ostream> | |
14 | |
15 | |
16 namespace Vera | |
17 { | |
18 namespace Plugins | |
19 { | |
20 | |
21 | |
22 class Reports | |
23 { | |
24 public: | |
25 typedef std::string FileName; | |
26 typedef std::string Message; | |
27 | |
28 static void setShowRules(bool show); | |
29 static void setVCFormat(bool vc); | |
30 static void setXMLReport(bool xmlReport); | |
31 static void setPrefix(std::string prefix); | |
32 | |
33 static int count(); | |
34 | |
35 static void add(const FileName & name, int lineNumber, const Message & msg); | |
36 static void internal(const FileName & name, int lineNumber, | |
37 const Message & msg); | |
38 | |
39 static void dumpAll(std::ostream & os, bool omitDuplicates); | |
40 | |
41 static void writeStd(std::ostream & os, bool omitDuplicates); | |
42 static void writeVc(std::ostream & os, bool omitDuplicates); | |
43 static void writeXml(std::ostream & os, bool omitDuplicates); | |
44 static void writeCheckStyle(std::ostream & os, bool omitDuplicates); | |
45 | |
46 private: | |
47 static void dumpAllNormal(std::ostream & os, bool omitDuplicates); | |
48 static void dumpAllXML(std::ostream & os, bool omitDuplicates); | |
49 static std::string xmlEscape(const std::string & msg); | |
50 }; | |
51 | |
52 } // namespace Plugins | |
53 | |
54 } // namespace Vera | |
55 | |
56 #endif // REPORTS_H_INCLUDED |