[clang-tools-extra] [clang-tidy] Fix for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

Konstantin Romanov via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 24 09:14:54 PDT 2024


================
@@ -116,6 +116,10 @@ Changes in existing checks
   <clang-tidy/checks/readability/redundant-smartptr-get>` check to
   remove `->`, when redundant `get()` is removed.
 
+- Fixed :doc:`cppcoreguidelines-pro-type-union-access
+  <clang-tidy/checks/cppcoreguidelines/pro-type-union-access>` check to
+  report location even when member location is not valid.
----------------
ksromanov wrote:

Thanks! Articles will always be a problem for me. :-(

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


More information about the cfe-commits mailing list