Author: Akira Hatanaka Date: 2019-12-06T12:29:21-08:00 New Revision: a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e
URL: https://github.com/llvm/llvm-project/commit/a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e DIFF: https://github.com/llvm/llvm-project/commit/a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e.diff LOG: [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 Added: Modified: clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp Removed: ################################################################################ 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 f2c1cb48d9d3..d393b229bda1 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]; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits