Skip to content

Commit 47a2951

Browse files
committed
fix: Tell Clang that Parse_Mode is a flag enum
1 parent 5f52fa2 commit 47a2951

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/colvarparse.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,14 @@ class colvarparse : public colvarparams {
4949
return config_string;
5050
}
5151

52+
#ifdef __clang__
53+
#define PARSE_MODE_IS_FLAG [[clang::flag_enum]]
54+
#else
55+
#define PARSE_MODE_IS_FLAG
56+
#endif
57+
5258
/// How a keyword is parsed in a string
53-
enum Parse_Mode {
59+
enum PARSE_MODE_IS_FLAG Parse_Mode {
5460
/// Zero for all flags
5561
parse_null = 0,
5662
/// Print the value of a keyword if it is given

0 commit comments

Comments
 (0)