This is needed after
https://reviews.llvm.org/rG9658d045926545e62cc3f963fe611d7c5d0c9d98
which introduced code that at least didn't compile clean with clang 8.
Differential D101288
Only ignore -Wdeprecated-copy if the used compiler supports the warning uabelho on Apr 26 2021, 5:37 AM. Authored by
Details This is needed after https://reviews.llvm.org/rG9658d045926545e62cc3f963fe611d7c5d0c9d98 which introduced code that at least didn't compile clean with clang 8.
Diff Detail Event TimelineComment Actions Hello, This patch seems to upset the PowerPC compilers: In file included from /home/buildbots/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:18: /home/buildbots/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/utils/unittest/googlemock/include/gmock/gmock.h:58:40: error: missing binary operator before token "(" #if defined(__clang__) && __has_warning("-Wdeprecated-copy") Buildbot in question: https://lab.llvm.org/buildbot/#/builders/36/builds/7742 Comment Actions This has issue (error: missing binary operator before token "(") on GCC, I trusted and thought you checked it if it builds fine. Try: #if defined(__clang__) #if __has_warning("-Wdeprecated-copy") #endif #endif I am not gonna spend my time on this deprecated-copy hell anymore. Public bots are ok, you use clang 8, so please try again & commit by yourself. Comment Actions This seems to have broken gcc builds - https://buildkite.com/mlir/mlir-core/builds/13292#e38ea533-d197-46bc-b5c2-d6a42da9110f Comment Actions Use Comment Actions I have no idea if this is the best fix but it works for me with clang 8 and gcc 9.3.0. Comment Actions If you don't want to review this fix of your patch https://reviews.llvm.org/rG9658d045926545e62cc3f963fe611d7c5d0c9d98 then please add someone who can. Thanks. Comment Actions Ok, pushed a new attempt to fix the problem in |
clang-format: please reformat the code