[all-commits] [llvm/llvm-project] cf3614: [clang] Add missing header guard in <cpuid.h>

Roland McGrath via All-commits all-commits at lists.llvm.org
Tue Nov 10 19:34:48 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cf36142d342a46689007df3b508b2ef059d76e46
      https://github.com/llvm/llvm-project/commit/cf36142d342a46689007df3b508b2ef059d76e46
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M clang/lib/Headers/cpuid.h
    M clang/test/Headers/cpuid.c

  Log Message:
  -----------
  [clang] Add missing header guard in <cpuid.h>

This header has long lacked a standard multiple inclusion guard
like other headers have, for no apparent reason.  The GCC header
of the same name likewise lacks one up through release 10.1, but
trunk GCC (release 11, and perhaps future 10.x) has fixed it
(see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96238).

Reviewed By: phosek

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




More information about the All-commits mailing list