[all-commits] [llvm/llvm-project] d07362: Enable unguarded availability diagnostic on instan...

Helena Kotas via All-commits all-commits at lists.llvm.org
Fri May 24 10:43:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d07362f7a9fc06e2445f5c4bc62c10a339bf68a5
      https://github.com/llvm/llvm-project/commit/d07362f7a9fc06e2445f5c4bc62c10a339bf68a5
  Author: Helena Kotas <hekotas at microsoft.com>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M clang/lib/Sema/SemaAvailability.cpp
    M clang/test/SemaObjC/unguarded-availability.m

  Log Message:
  -----------
  Enable unguarded availability diagnostic on instantiated template functions (#91699)

Availability diagnostic in instantiated template functions was
intentionally skipped in the original
[commit](https://github.com/llvm/llvm-project/commit/5cd57177a51abc7b0bfe18f70566572dbccab9a0)
years ago with a FIXME note.

I ran into this when working on diagnostics for HLSL. When I remove the
skip, it seems to be working just fine outputting expected messages. So,
unless I am missing something, I would keep it enabled and use it for
checking availability in HLSL templates as well.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list