[all-commits] [llvm/llvm-project] 8bb8d6: Move some attribute diagnostic helper functions; NFC.

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Mar 9 11:57:27 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bb8d65e167dceb659211468fd44df5da17e0785
      https://github.com/llvm/llvm-project/commit/8bb8d65e167dceb659211468fd44df5da17e0785
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2021-03-09 (Tue, 09 Mar 2021)

  Changed paths:
    M clang/include/clang/Sema/ParsedAttr.h
    M clang/lib/Sema/ParsedAttr.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp

  Log Message:
  -----------
  Move some attribute diagnostic helper functions; NFC.

These functions were local to SemaDeclAttr.cpp, but these functions are
useful in general (for instance, for statement or type attribute
processing). This refactoring is in advance of beginning to tablegen
diagnostic checks for statement attributes the way we already do for
declaration attributes.

There is one functional change in here as a drive-by. The
external_source_symbol attribute had one of its diagnostic checks
inside of an assert, which was corrected.




More information about the All-commits mailing list