[all-commits] [llvm/llvm-project] c6d707: [clang][CodeGen] Emit annotations for function dec...

Brendan Dahl via All-commits all-commits at lists.llvm.org
Wed Nov 29 15:13:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6d70722b49db01914d5f64cc86ea5ed609ad9fd
      https://github.com/llvm/llvm-project/commit/c6d70722b49db01914d5f64cc86ea5ed609ad9fd
  Author: Brendan Dahl <brendan.dahl at gmail.com>
  Date:   2023-11-29 (Wed, 29 Nov 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    A clang/test/CodeGen/annotations-decl-use-decl.c
    A clang/test/CodeGen/annotations-decl-use-define.c
    A clang/test/CodeGen/annotations-declaration.c
    M clang/test/CodeGen/annotations-global.c
    A clang/test/CodeGenCXX/attr-annotate-constructor.cpp
    A clang/test/CodeGenCXX/attr-annotate-destructor.cpp
    M clang/test/CodeGenCXX/attr-annotate.cpp

  Log Message:
  -----------
  [clang][CodeGen] Emit annotations for function declarations. (#66716)

Previously, annotations were only emitted for function definitions. With
this change annotations are also emitted for declarations. Also,
emitting function annotations is now deferred until the end so that the
most up to date declaration is used which will have any inherited
annotations.




More information about the All-commits mailing list