Skip to content

Commit 753df0a

Browse files
authored
Merge pull request #7418 from NlightNFotis/fix_api_options
[HOTFIX] Add a pragma to silence warning for libcprover-cpp/options.h include
2 parents 8d6f87b + 1496828 commit 753df0a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/libcprover-cpp/api.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@
1010
// Forward declaration of API dependencies
1111
class goto_modelt;
1212
class message_handlert;
13-
class optionst;
1413

15-
#include "options.h"
14+
// There has been a design decision to allow users to include all of
15+
// the API headers by just including `api.h`, so we want to have an
16+
// include for all the API headers below. If we get any auxiliary
17+
// development tools complaining about the includes, please use
18+
// a pragma like below to silence the warning (at least as long
19+
// as the design principle is to be followed.)
20+
21+
#include "options.h" // IWYU pragma: keep
1622

1723
// An object in the pattern of Session Facade - owning all of the memory
1824
// the API is using and being responsible for the management of that.

0 commit comments

Comments
 (0)