[all-commits] [llvm/llvm-project] 463fa2: [clang][NFC] Adjust tests to not un/define predefi...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Tue Feb 14 06:03:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 463fa25c34d6e569862a9b74b24db3aa5522d84b
      https://github.com/llvm/llvm-project/commit/463fa25c34d6e569862a9b74b24db3aa5522d84b
  Author: John Brawn <john.brawn at arm.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M clang/test/Sema/thread-specifier.c
    M clang/test/SemaObjC/method-attributes.m
    M clang/test/SemaObjC/super-dealloc-attribute.m

  Log Message:
  -----------
  [clang][NFC] Adjust tests to not un/define predefined macros

An upcoming patch will be making all defining or undefining of
predefined macros to be warning (currently only some give a warning).
In preparation for this adjust some tests that would emit a warning:
 * In thread-specifier.c the undefine is done to avoid a different
   warning, but we get that warning just because __thread and
   __private_extern__ are the wrong way around so we can just swap
   them.
 * There are a couple of objective-c tests that redefine IBAction to
   what it's already defined as, so we can just remove the define.




More information about the All-commits mailing list