[all-commits] [llvm/llvm-project] c7aa35: [clang-tidy] Fix pr48613: "llvm-header-guard uses ...

Salman Javed via All-commits all-commits at lists.llvm.org
Mon Nov 29 15:44:20 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7aa358798e6330593fd5cc2ff4caf6bc15ba3c9
      https://github.com/llvm/llvm-project/commit/c7aa358798e6330593fd5cc2ff4caf6bc15ba3c9
  Author: Salman Javed <mail at salmanjaved.org>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/HeaderGuard.cpp
    M clang-tools-extra/clang-tidy/utils/HeaderGuard.h
    M clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp

  Log Message:
  -----------
  [clang-tidy] Fix pr48613: "llvm-header-guard uses a reserved identifier"

Fixes https://bugs.llvm.org/show_bug.cgi?id=48613.

llvm-header-guard is suggesting header guards with leading underscores
if the header file path begins with a '/' or similar special character.
Only reserved identifiers should begin with an underscore.

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




More information about the All-commits mailing list