[all-commits] [llvm/llvm-project] 2e8513: [clang][NFC] Generalize getSpecificAttr for const ...

Balazs Benics via All-commits all-commits at lists.llvm.org
Wed Dec 4 06:18:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e85138c0d06c0cc17569d375ce7a75e60cc6dd0
      https://github.com/llvm/llvm-project/commit/2e85138c0d06c0cc17569d375ce7a75e60cc6dd0
  Author: Balazs Benics <benicsbalazs at gmail.com>
  Date:   2024-12-04 (Wed, 04 Dec 2024)

  Changed paths:
    M clang/include/clang/AST/AttrIterator.h
    M clang/lib/CodeGen/CGLoopInfo.cpp

  Log Message:
  -----------
  [clang][NFC] Generalize getSpecificAttr for const attributes (#116606)

This patch allows using `getSpecificAttr` for getting `const`
attributes. Previously, if users of this API would want to get a const
Attribute pointer, they had to pass `getSpecificAttr<const XYZ>()`, to
get it compile. It feels like an arbitrary limitation as the constness
was already encoded in the Attribute container's value type.



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