Skip to content

Commit

Permalink
Suppress false-positive warning.
Browse files Browse the repository at this point in the history
export extern "C++" style is valid in Clang (https://clang.llvm.org/docs/StandardCPlusPlusModules.html#export-extern-c-style), but warning emitted. This commit disables it.
  • Loading branch information
stripe2933 authored May 11, 2024
1 parent eba16b3 commit df48de9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/argparse.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ import std;
import std.compat;

extern "C++" {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
#include <argparse/argparse.hpp>
#pragma clang diagnostic pop
}
#endif

Expand Down

0 comments on commit df48de9

Please sign in to comment.