Skip to content

Commit 4df364b

Browse files
[libc] remove header guard for assert.h (#83334)
It's meant to be included multiple times! Maybe use a NOLINT rule to suppress clang-tidy's llvm-header-guard lint warning.
1 parent 5b91647 commit 4df364b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libc/src/assert/assert.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// NOLINT(llvm-header-guard) https://github.com/llvm/llvm-project/issues/83339
12
//===-- Internal header for assert ------------------------------*- C++ -*-===//
23
//
34
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -6,9 +7,6 @@
67
//
78
//===----------------------------------------------------------------------===//
89

9-
#ifndef LLVM_LIBC_SRC_ASSERT_ASSERT_H
10-
#define LLVM_LIBC_SRC_ASSERT_ASSERT_H
11-
1210
#include "src/assert/__assert_fail.h"
1311

1412
// There is no header guard here since assert is intended to be capable of being
@@ -25,5 +23,3 @@
2523
: LIBC_NAMESPACE::__assert_fail(#e, __FILE__, __LINE__, \
2624
__PRETTY_FUNCTION__))
2725
#endif // NDEBUG
28-
29-
#endif // LLVM_LIBC_SRC_ASSERT_ASSERT_H

0 commit comments

Comments
 (0)