[all-commits] [llvm/llvm-project] 856f38: [clang] Make predefined expressions string literal...

aeubanks via All-commits all-commits at lists.llvm.org
Sun May 7 11:46:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 856f384bf94513c89e754906b7d80fbe5377ab53
      https://github.com/llvm/llvm-project/commit/856f384bf94513c89e754906b7d80fbe5377ab53
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-05-07 (Sun, 07 May 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/Expr.h
    M clang/include/clang/AST/IgnoreExpr.h
    M clang/include/clang/AST/Stmt.h
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/AST/Expr.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Serialization/ASTReaderStmt.cpp
    M clang/lib/Serialization/ASTWriterStmt.cpp
    A clang/test/Modules/predefined.cpp
    A clang/test/Sema/ms_predefined_expr.cpp

  Log Message:
  -----------
  [clang] Make predefined expressions string literals under -fms-extensions

MSVC makes these string literals [1][2].

[1] https://godbolt.org/z/6vnTzbExx
[2] https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

Fixes #114

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D146764




More information about the All-commits mailing list