Skip to content

Commit 2781192

Browse files
authored
Rename header guards (#186)
1 parent 1ac35a3 commit 2781192

22 files changed

Lines changed: 61 additions & 65 deletions

externals/abseil/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(ABSL_PROPAGATE_CXX_STD ON)
2+
set(ABSL_USE_SYSTEM_INCLUDES ON CACHE BOOL "Use system includes for Abseil" FORCE)
23

34
FetchContent_Declare(
45
cpp-abseil

lib/mpi_interceptor/InterceptorFunctions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef TEST_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H_
14-
#define TEST_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H_
13+
#ifndef TYPEART_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H
14+
#define TYPEART_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H
1515

1616
#include "RuntimeExport.h"
1717
#include "RuntimeInterface.h"
@@ -156,4 +156,4 @@ TYPEART_NO_EXPORT void ta_exit() {
156156
mcounter.null_count);
157157
}
158158

159-
#endif /* TEST_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H_ */
159+
#endif // TYPEART_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H

lib/passes/analysis/MemOpVisitor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef LIB_MEMOPVISITOR_H_
14-
#define LIB_MEMOPVISITOR_H_
13+
#ifndef TYPEART_MEMOPVISITOR_H
14+
#define TYPEART_MEMOPVISITOR_H
1515

1616
#include "MemOpData.h"
1717
#include "configuration/Configuration.h"
@@ -57,4 +57,4 @@ struct MemOpVisitor : public llvm::InstVisitor<MemOpVisitor> {
5757

5858
} // namespace typeart::analysis
5959

60-
#endif /* LIB_MEMOPVISITOR_H_ */
60+
#endif // TYPEART_MEMOPVISITOR_H

lib/passes/compat/CallSite.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
// In Clang 11 CallSite.h was removed, this is a small wrapper reimplementation
1414

15-
#ifndef COMPAT_LLVM_IR_CALLSITE_H
16-
#define COMPAT_LLVM_IR_CALLSITE_H
15+
#ifndef TYPEART_CALLSITE_H
16+
#define TYPEART_CALLSITE_H
1717

1818
#include "llvm/IR/Instruction.h"
1919

@@ -86,4 +86,4 @@ class CallSite {
8686
};
8787
} // namespace llvm
8888

89-
#endif
89+
#endif // TYPEART_CALLSITE_H

lib/passes/configuration/OptionsUtil.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef LIB_PASSES_CONFIGURATION_OPTIONSUTIL
14-
#define LIB_PASSES_CONFIGURATION_OPTIONSUTIL
13+
#ifndef TYPEART_CONFIGURATION_OPTIONS_UTIL_H
14+
#define TYPEART_CONFIGURATION_OPTIONS_UTIL_H
1515

1616
#include "analysis/MemInstFinder.h"
1717
#include "instrumentation/TypeIDProvider.h"
@@ -80,4 +80,4 @@ ClType make_opt(llvm::StringRef cl_value) {
8080
}
8181

8282
} // namespace typeart::config::util
83-
#endif /* LIB_PASSES_CONFIGURATION_OPTIONSUTIL */
83+
#endif // TYPEART_CONFIGURATION_OPTIONS_UTIL_H

lib/passes/configuration/TypeARTOptions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef LIB_PASSES_CONFIGURATION_TYPEARTOPTIONS
14-
#define LIB_PASSES_CONFIGURATION_TYPEARTOPTIONS
13+
#ifndef TYPEART_CONFIGURATION_OPTIONS_H
14+
#define TYPEART_CONFIGURATION_OPTIONS_H
1515

1616
#include "analysis/MemInstFinder.h"
1717
#include "configuration/Configuration.h"
@@ -82,4 +82,4 @@ llvm::raw_ostream& operator<<(llvm::raw_ostream& out_s, const TypeARTConfigOptio
8282

8383
} // namespace typeart::config
8484

85-
#endif /* LIB_PASSES_CONFIGURATION_TYPEARTOPTIONS */
85+
#endif // TYPEART_CONFIGURATION_OPTIONS_H

lib/passes/filter/CGInterface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef _LIB_TYPEART_CGINTERFACE_H
14-
#define _LIB_TYPEART_CGINTERFACE_H
13+
#ifndef TYPEART_CGINTERFACE_H
14+
#define TYPEART_CGINTERFACE_H
1515

1616
#include "llvm/Support/JSON.h"
1717

@@ -80,4 +80,4 @@ class JSONCG final : public CGInterface {
8080
};
8181

8282
} // namespace typeart::filter
83-
#endif
83+
#endif // TYPEART_CGINTERFACE_H

lib/passes/instrumentation/CallBackFunctionInserter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef LIB_PASSES_INSTRUMENTATION_CALLBACKFUNCTIONINSERTER
2-
#define LIB_PASSES_INSTRUMENTATION_CALLBACKFUNCTIONINSERTER
1+
#ifndef TYPEART_CALLBACKFUNCTIONINSERTER_H
2+
#define TYPEART_CALLBACKFUNCTIONINSERTER_H
33

44
#include "instrumentation/TypeARTFunctions.h"
55

@@ -51,4 +51,4 @@ std::unique_ptr<InstrumentationInserter> make_callback_inserter(const config::Co
5151

5252
} // namespace typeart
5353

54-
#endif /* LIB_PASSES_INSTRUMENTATION_CALLBACKFUNCTIONINSERTER */
54+
#endif // TYPEART_CALLBACKFUNCTIONINSERTER_H

lib/passes/instrumentation/InstrumentationHelper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef LIB_INSTRUMENTATIONHELPER_H_
14-
#define LIB_INSTRUMENTATIONHELPER_H_
13+
#ifndef TYPEART_INSTRUMENTATIONHELPER_H
14+
#define TYPEART_INSTRUMENTATIONHELPER_H
1515

1616
#include "llvm/ADT/ArrayRef.h"
1717
#include "llvm/ADT/SmallVector.h"
@@ -66,4 +66,4 @@ class InstrumentationHelper {
6666

6767
} // namespace typeart
6868

69-
#endif /* LIB_INSTRUMENTATIONHELPER_H_ */
69+
#endif // TYPEART_INSTRUMENTATIONHELPER_H

lib/passes/instrumentation/MemOpInstrumentation.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// SPDX-License-Identifier: BSD-3-Clause
1111
//
1212

13-
#ifndef LIB_PASSES_INSTRUMENTATION_MEMOPINSTRUMENTATION
14-
#define LIB_PASSES_INSTRUMENTATION_MEMOPINSTRUMENTATION
13+
#ifndef TYPEART_MEMOPINSTRUMENTATION_H
14+
#define TYPEART_MEMOPINSTRUMENTATION_H
1515

1616
#include "Instrumentation.h"
1717
#include "configuration/Configuration.h"
@@ -45,4 +45,4 @@ class MemOpInstrumentation final : public MemoryInstrument {
4545
};
4646

4747
} // namespace typeart
48-
#endif /* LIB_PASSES_INSTRUMENTATION_MEMOPINSTRUMENTATION */
48+
#endif // TYPEART_MEMOPINSTRUMENTATION_H

0 commit comments

Comments
 (0)