Skip to content

Commit 5c81659

Browse files
Remove defined value from header guards (#7758)
In llvm/llvm-project#137112 clang-format changed its behavior to only recognize header guards with empty defines, breaking our formatting. We solve that by removing the superfluous "1" value from our header guard defines. Fixes #7757
1 parent 08153b5 commit 5c81659

File tree

279 files changed

+453
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+453
-453
lines changed

api/docs/tutorial.dox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2012-2015 Google, Inc. All rights reserved.
2+
* Copyright (c) 2012-2025 Google, Inc. All rights reserved.
33
* Copyright (c) 2008-2009 VMware, Inc. All rights reserved.
44
* **********************************************************/
55

@@ -1191,7 +1191,7 @@ annotation. The first step is to copy the DynamoRIO souce file
11911191

11921192
\code
11931193
#ifndef _DYNAMORIO_ANNOTATIONS_H_
1194-
#define _DYNAMORIO_ANNOTATIONS_H_ 1
1194+
#define _DYNAMORIO_ANNOTATIONS_H_
11951195

11961196
#include "dr_annotations_asm.h"
11971197

clients/drcachesim/analysis_tool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535

3636
#ifndef _ANALYSIS_TOOL_H_
37-
#define _ANALYSIS_TOOL_H_ 1
37+
#define _ANALYSIS_TOOL_H_
3838

3939
/**
4040
* @file drmemtrace/analysis_tool.h

clients/drcachesim/analyzer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#ifndef _ANALYZER_H_
39-
#define _ANALYZER_H_ 1
39+
#define _ANALYZER_H_
4040

4141
/**
4242
* @file drmemtrace/analyzer.h

clients/drcachesim/analyzer_multi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636

3737
#ifndef _ANALYZER_MULTI_H_
38-
#define _ANALYZER_MULTI_H_ 1
38+
#define _ANALYZER_MULTI_H_
3939

4040
#include "analyzer.h"
4141
#include "archive_ostream.h"

clients/drcachesim/common/archive_istream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2023 Google, Inc. All rights reserved.
2+
* Copyright (c) 2023-2025 Google, Inc. All rights reserved.
33
* **********************************************************/
44

55
/*
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#ifndef _ARCHIVE_ISTREAM_H_
39-
#define _ARCHIVE_ISTREAM_H_ 1
39+
#define _ARCHIVE_ISTREAM_H_
4040

4141
#include <fstream>
4242

clients/drcachesim/common/archive_ostream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2022-2023 Google, Inc. All rights reserved.
2+
* Copyright (c) 2022-2025 Google, Inc. All rights reserved.
33
* **********************************************************/
44

55
/*
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#ifndef _ARCHIVE_OSTREAM_H_
39-
#define _ARCHIVE_OSTREAM_H_ 1
39+
#define _ARCHIVE_OSTREAM_H_
4040

4141
#include <fstream>
4242

clients/drcachesim/common/crc32c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2019-2023 Google, Inc. All rights reserved.
2+
* Copyright (c) 2019-2025 Google, Inc. All rights reserved.
33
* **********************************************************/
44

55
/*
@@ -31,7 +31,7 @@
3131
*/
3232

3333
#ifndef _CRC32_H_
34-
#define _CRC32_H_ 1
34+
#define _CRC32_H_
3535

3636
#include <cstdint>
3737

clients/drcachesim/common/directory_iterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2017-2023 Google, Inc. All rights reserved.
2+
* Copyright (c) 2017-2025 Google, Inc. All rights reserved.
33
* **********************************************************/
44

55
/*
@@ -34,7 +34,7 @@
3434
*/
3535

3636
#ifndef _DIRECTORY_ITERATOR_H_
37-
#define _DIRECTORY_ITERATOR_H_ 1
37+
#define _DIRECTORY_ITERATOR_H_
3838

3939
#include <assert.h>
4040

clients/drcachesim/common/gzip_istream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2018-2023 Google, Inc. All rights reserved.
2+
* Copyright (c) 2018-2025 Google, Inc. All rights reserved.
33
* **********************************************************/
44

55
/*
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#ifndef _GZIP_ISTREAM_H_
39-
#define _GZIP_ISTREAM_H_ 1
39+
#define _GZIP_ISTREAM_H_
4040

4141
#ifndef HAS_ZLIB
4242
# error HAS_ZLIB is required

clients/drcachesim/common/gzip_ostream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* **********************************************************
2-
* Copyright (c) 2018-2023 Google, Inc. All rights reserved.
2+
* Copyright (c) 2018-2025 Google, Inc. All rights reserved.
33
* **********************************************************/
44

55
/*
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#ifndef _GZIP_OSTREAM_H_
39-
#define _GZIP_OSTREAM_H_ 1
39+
#define _GZIP_OSTREAM_H_
4040

4141
#ifndef HAS_ZLIB
4242
# error HAS_ZLIB is required

0 commit comments

Comments
 (0)