aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-12 20:05:49 +0100
committerDavid Robillard <d@drobilla.net>2020-11-12 20:05:49 +0100
commitbeed84b63136603600528c0f48bcf93f6cb51de4 (patch)
treebd2ac711b6a812c02c4bceef7254bd64d7ec01d3
parenta815f33ec3de9a145a5846e46e6dd2f052dbfd7d (diff)
downloadserd-beed84b63136603600528c0f48bcf93f6cb51de4.tar.gz
serd-beed84b63136603600528c0f48bcf93f6cb51de4.tar.bz2
serd-beed84b63136603600528c0f48bcf93f6cb51de4.zip
Use C11 if possible
-rw-r--r--src/.clang-tidy1
-rw-r--r--test/.clang-tidy1
-rw-r--r--wscript4
3 files changed, 5 insertions, 1 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 4cd5fa58..eb43dcf2 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -4,6 +4,7 @@ Checks: >
-*-uppercase-literal-suffix,
-bugprone-branch-clone,
-bugprone-suspicious-string-compare,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-google-readability-todo,
-hicpp-signed-bitwise,
-llvm-header-guard,
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 51d3033a..88009c50 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -4,6 +4,7 @@ Checks: >
-*-uppercase-literal-suffix,
-android-cloexec-fopen,
-clang-analyzer-nullability.NullabilityBase,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-hicpp-signed-bitwise,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
diff --git a/wscript b/wscript
index 49f16660..cca050b5 100644
--- a/wscript
+++ b/wscript
@@ -42,7 +42,9 @@ def options(ctx):
def configure(conf):
conf.load('compiler_c', cache=True)
conf.load('autowaf', cache=True)
- autowaf.set_c_lang(conf, 'c99')
+
+ if not autowaf.set_c_lang(conf, 'c11', mandatory=False):
+ autowaf.set_c_lang(conf, 'c99')
if Options.options.strict:
# Check for programs used by lint target