[all-commits] [llvm/llvm-project] 66c43f: Enable concatenation of predefined identifiers

Richard Dzenis via All-commits all-commits at lists.llvm.org
Wed Aug 9 10:57:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66c43fbd271a8231187bfcb73428ed663606585d
      https://github.com/llvm/llvm-project/commit/66c43fbd271a8231187bfcb73428ed663606585d
  Author: Richard Dzenis <dzenis at richard.lv>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Lex/LiteralSupport.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Lex/LiteralSupport.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Parse/ParseExpr.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/Sema/ms_predefined_expr.cpp
    R clang/test/Sema/ms_wide_predefined_expr.cpp

  Log Message:
  -----------
  Enable concatenation of predefined identifiers

Predefined identifiers like __FUNCTION__ are treated like string
literals in MSVC, which means they can be concatentated together with
an adjacent string literal. Clang now supports this behavior as well,
in Microsoft extensions mode.

Fixes https://github.com/llvm/llvm-project/issues/63563
Differential Revision: https://reviews.llvm.org/D153914




More information about the All-commits mailing list