diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-06-18 13:49:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 13:49:25 -0700 |
commit | 97e277c51218778d1d76fd59fed3b4ca7756382e (patch) | |
tree | fdbc9ded095e8e0165c8f48372531c02abd9e0cb /src/ir/branch-utils.h | |
parent | e1586984480daf475d0941d6b6b5640fbec80558 (diff) | |
download | binaryen-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/ir/branch-utils.h')
-rw-r--r-- | src/ir/branch-utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/branch-utils.h b/src/ir/branch-utils.h index 87f7813e7..54a3f1c16 100644 --- a/src/ir/branch-utils.h +++ b/src/ir/branch-utils.h @@ -66,7 +66,7 @@ template<typename T> void operateOnScopeNameUses(Expression* expr, T func) { #define DELEGATE_FIELD_CHILD_VECTOR(id, name) #define DELEGATE_FIELD_INT_ARRAY(id, name) -#include "wasm-delegations-fields.h" +#include "wasm-delegations-fields.def" } // Similar to operateOnScopeNameUses, but also passes in the type that is sent @@ -131,7 +131,7 @@ template<typename T> void operateOnScopeNameDefs(Expression* expr, T func) { #define DELEGATE_FIELD_SCOPE_NAME_USE(id, name) #define DELEGATE_FIELD_SCOPE_NAME_USE_VECTOR(id, name) -#include "wasm-delegations-fields.h" +#include "wasm-delegations-fields.def" } using NameSet = std::set<Name>; |