[all-commits] [llvm/llvm-project] 878e59: Reland [clang] Make predefined expressions string ...

aeubanks via All-commits all-commits at lists.llvm.org
Wed May 10 10:55:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 878e590503dff0d9097e91c2bec4409f14503b82
      https://github.com/llvm/llvm-project/commit/878e590503dff0d9097e91c2bec4409f14503b82
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-05-10 (Wed, 10 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
    A clang/test/SemaCXX/predefined-expr-msvc.cpp

  Log Message:
  -----------
  Reland [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

Initial commit didn't check if there was a function name when stepping through expressions ignoring parens.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list