diff options
| author | Akira Hatanaka <ahatanaka@apple.com> | 2019-12-06 11:51:58 -0800 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@apple.com> | 2019-12-06 12:29:21 -0800 |
| commit | a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e (patch) | |
| tree | fbcf33d37f099dd7e2cc317f4daa2528f29758f9 /clang-tools-extra/test/clang-tidy | |
| parent | 2eb30fafa5f95d60353909c7c676431f2a29a745 (diff) | |
| download | bcm5719-llvm-a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e.tar.gz bcm5719-llvm-a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e.zip | |
[clang-tidy] Pass -faligned-allocation on the compiler command line to
fix compile error
The test was failing when run on OSes older than MacOSX10.14 because
aligned deallocation functions are unavailable on older OSes.
rdar://problem/57706710
Diffstat (limited to 'clang-tools-extra/test/clang-tidy')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp b/clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp index f2c1cb48d9d..d393b229bda 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp @@ -1,6 +1,6 @@ // RUN: %check_clang_tidy %s -std=c++14 cert-mem57-cpp %t -// RUN: clang-tidy --extra-arg='-std=c++17' -checks='-*,cert-mem57-cpp' --warnings-as-errors='*' %s -// RUN: clang-tidy --extra-arg='-std=c++2a' -checks='-*,cert-mem57-cpp' --warnings-as-errors='*' %s +// RUN: clang-tidy --extra-arg='-std=c++17' --extra-arg='-faligned-allocation' -checks='-*,cert-mem57-cpp' --warnings-as-errors='*' %s +// RUN: clang-tidy --extra-arg='-std=c++2a' --extra-arg='-faligned-allocation' -checks='-*,cert-mem57-cpp' --warnings-as-errors='*' %s struct alignas(128) Vector { char Elems[128]; |

