summaryrefslogtreecommitdiff
path: root/src/binaryen-c.h
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-18 13:49:25 -0700
committerGitHub <noreply@github.com>2021-06-18 13:49:25 -0700
commit97e277c51218778d1d76fd59fed3b4ca7756382e (patch)
treefdbc9ded095e8e0165c8f48372531c02abd9e0cb /src/binaryen-c.h
parente1586984480daf475d0941d6b6b5640fbec80558 (diff)
downloadbinaryen-97e277c51218778d1d76fd59fed3b4ca7756382e.tar.gz
binaryen-97e277c51218778d1d76fd59fed3b4ca7756382e.tar.bz2
binaryen-97e277c51218778d1d76fd59fed3b4ca7756382e.zip
Rename wasm-delegations[-fields].h to def files (NFC) (#3941)
These files are special in that they use define symbols that are not defined within those files or other files included in those files; they are supposed to be defined in source files that include these headers. This has caused clang-tidy to fail every time these files have changed because they are not compilable per se. This PR solves the problem by changing their extension to `def`, which is also used in LLVM codebase. LLVM has dozens of files like this whose extension is `def`, which makes these not checked by clang-tidy.
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r--src/binaryen-c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index a4210a8db..79613bd65 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -130,7 +130,7 @@ BINARYEN_API BinaryenExpressionId BinaryenInvalidId(void);
#define DELEGATE(CLASS_TO_VISIT) \
BINARYEN_API BinaryenExpressionId Binaryen##CLASS_TO_VISIT##Id(void);
-#include "wasm-delegations.h"
+#include "wasm-delegations.def"
// External kinds (call to get the value of each; you can cache them)