[all-commits] [llvm/llvm-project] 0436ec: Permit __VA_OPT__ in all language modes and allow ...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Jan 27 12:39:26 PST 2021

  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0436ec2128c9775ba13b0308937238fc79673fdd
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

  Changed paths:
    M clang/include/clang/Lex/Preprocessor.h
    M clang/include/clang/Lex/VariadicMacroSupport.h
    M clang/lib/Lex/PPDirectives.cpp
    M clang/lib/Lex/PPExpressions.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    M clang/lib/Lex/Preprocessor.cpp
    M clang/test/Preprocessor/macro_vaopt_check.cpp
    M clang/test/Preprocessor/macro_vaopt_expand.cpp

  Log Message:
  Permit __VA_OPT__ in all language modes and allow it to be detected with #ifdef.

These changes are intended to give code a path to move away from the GNU
,##__VA_ARGS__ extension, which is non-conforming in some situations and
which we'd like to disable in our conforming mode in those cases.

More information about the All-commits mailing list