[llvm] [NFC] Fix dangling-else warning (PR #112817)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 00:37:58 PDT 2024
https://github.com/nikic commented:
Given that omit braces in such cases is part of LLVM's style guide, I wonder whether it may be better to use `-Wno-dangling-else` when compiling gtest based code using GCC?
As Clang doesn't have this false positive, this warning will creep back in over time.
https://github.com/llvm/llvm-project/pull/112817
More information about the llvm-commits
mailing list