diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-04-29 10:42:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 10:42:58 -0700 |
commit | 28e01f3e832498237d78a64aafc1ee2a26f92bb4 (patch) | |
tree | a4f4f1a4873a825ff081f6d2f234ce410d11e228 | |
parent | ba8cade3019758243ebda74c1a563e38687d4ba9 (diff) | |
download | binaryen-28e01f3e832498237d78a64aafc1ee2a26f92bb4.tar.gz binaryen-28e01f3e832498237d78a64aafc1ee2a26f92bb4.tar.bz2 binaryen-28e01f3e832498237d78a64aafc1ee2a26f92bb4.zip |
Add .clang-tidy (#2062)
We can add more checks later, but for now, this checks
- If the styles for variables, functions, and classes match what we
currently have
- If bodies of if/for/while/do_while are inside braces
- Some clang-tidy default checks that are related to possibly buggy code
-rw-r--r-- | .clang-tidy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 000000000..092bee1f3 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,16 @@ +Checks: 'readability-braces-around-statements' +CheckOptions: + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.EnumCase + value: CamelCase + - key: readability-identifier-naming.EnumConstantCase + value: CamelCase + - key: readability-identifier-naming.FunctionCase + value: camelBack + - key: readability-identifier-naming.MemberCase + value: camelBack + - key: readability-identifier-naming.ParameterCase + value: camelBack + - key: readability-identifier-naming.VariableCase + value: camelBack |