[llvm] [NFC] Fix dangling-else warning (PR #112817)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 07:49:46 PDT 2024


================
@@ -14,6 +14,11 @@ function(add_llvm_target_unittest test_dir_name)
   add_llvm_unittest(${test_dir_name} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN})
 endfunction()
 
+# GCC may emit false positive warnings against LLVM's style guide.
----------------
teresajohnson wrote:

Can you expand the comment to note that this is because of the gtest macro expansion.

https://github.com/llvm/llvm-project/pull/112817


More information about the llvm-commits mailing list