Mercurial > irccd
comparison extern/vera/src/plugins/Exclusions.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 EXCLUSIONS_H_INCLUDED | |
9 #define EXCLUSIONS_H_INCLUDED | |
10 | |
11 #include <string> | |
12 #include "../structures/SourceFiles.h" | |
13 #include "Rules.h" | |
14 #include <stdexcept> | |
15 | |
16 | |
17 namespace Vera | |
18 { | |
19 namespace Plugins | |
20 { | |
21 | |
22 class ExclusionError : public std::runtime_error | |
23 { | |
24 public: | |
25 ExclusionError(const std::string & msg) : std::runtime_error(msg) {} | |
26 }; | |
27 | |
28 class Exclusions | |
29 { | |
30 public: | |
31 typedef std::string ExclusionFileName; | |
32 | |
33 static void setExclusions(const ExclusionFileName & name); | |
34 static void setExclusionsTcl(const ExclusionFileName & name); | |
35 static void setExclusionsRegex(const ExclusionFileName & name); | |
36 | |
37 static bool isExcluded(const Structures::SourceFiles::FileName & name); | |
38 static bool isExcluded(const Structures::SourceFiles::FileName & name, | |
39 int lineNumber, const Rules::RuleName & currentRule, const std::string & msg); | |
40 }; | |
41 | |
42 } // namespace Plugins | |
43 | |
44 } // namespace Vera | |
45 | |
46 #endif // EXCLUSIONS_H_INCLUDED |