File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 21
21
namespace clang {
22
22
namespace mrdox {
23
23
24
+ /* * The minimum version of LLVM required
25
+ */
26
+ #define MRDOX_MINIMUM_LLVM_VERSION 15
27
+
24
28
// ------------------------------------------------
25
29
//
26
30
// Shared Libraries
Original file line number Diff line number Diff line change 12
12
#include " ConfigImpl.hpp"
13
13
#include " Support/Path.hpp"
14
14
#include < mrdox/Error.hpp>
15
+
16
+ #include < llvm/Config/llvm-config.h>
15
17
#include < llvm/Support/FileSystem.h>
16
18
#include < llvm/Support/Path.h>
17
19
#include < llvm/Support/YAMLParser.h>
18
20
#include < llvm/Support/YAMLTraits.h>
19
21
22
+ // Check llvm version
23
+ #define STRINGIFY (Value ) #Value
24
+ static_assert (
25
+ LLVM_VERSION_MAJOR >= MRDOX_MINIMUM_LLVM_VERSION,
26
+ " MrDox requires at least clang " STRINGIFY(MRDOX_MINIMUM_LLVM_VERSION)
27
+ ", got " LLVM_VERSION_STRING " instead.");
28
+
20
29
namespace clang {
21
30
namespace mrdox {
22
31
You can’t perform that action at this time.
0 commit comments