[all-commits] [llvm/llvm-project] ef3800: Return false from __has_declspec_attribute() if no...

tbaederr via All-commits all-commits at lists.llvm.org
Tue Jan 12 10:25:21 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ef3800e82169c674219501d9ac09ef12b28e6359
      https://github.com/llvm/llvm-project/commit/ef3800e82169c674219501d9ac09ef12b28e6359
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M clang/lib/Lex/PPMacroExpansion.cpp

  Log Message:
  -----------
  Return false from __has_declspec_attribute() if not explicitly enabled

Currently, projects can check for __has_declspec_attribute() and use
it accordingly, but the check for __has_declspec_attribute will return
true even if declspec attributes are not enabled for the target.

This changes Clang to instead return false when declspec attributes are
not supported for the target.




More information about the All-commits mailing list