Skip to content

[libc] remove header guard for assert.h #83334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions libc/src/assert/assert.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// NOLINT(llvm-header-guard) https://github.com/llvm/llvm-project/issues/83339
//===-- Internal header for assert ------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand All @@ -6,9 +7,6 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SRC_ASSERT_ASSERT_H
#define LLVM_LIBC_SRC_ASSERT_ASSERT_H

#include "src/assert/__assert_fail.h"

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

#endif // LLVM_LIBC_SRC_ASSERT_ASSERT_H