[all-commits] [llvm/llvm-project] 24037c: Add support for #pragma system_header with -fms-ex...

Hans via All-commits all-commits at lists.llvm.org
Wed Jun 23 04:31:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24037c37b6c4043faae7bf396b735e1ba36e46e0
      https://github.com/llvm/llvm-project/commit/24037c37b6c4043faae7bf396b735e1ba36e46e0
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M clang/lib/Lex/Pragma.cpp
    M clang/test/Lexer/pragma-operators.cpp
    A clang/test/Preprocessor/Inputs/pragma_sysheader.h
    M clang/test/Preprocessor/pragma_sysheader.c
    R clang/test/Preprocessor/pragma_sysheader.h

  Log Message:
  -----------
  Add support for #pragma system_header with -fms-extensions

Clang already supports the pragma prefixed by "GCC" or "clang".

MSVC has more recently added support for the pragma, but without any prefix; see
https://devblogs.microsoft.com/cppblog/broken-warnings-theory/#external-headers

Differential revision: https://reviews.llvm.org/D104770




More information about the All-commits mailing list