Skip to content

Commit db61018

Browse files
tarunprabhuchencha3
authored andcommitted
[flang][NFC] Fix header guards
Some header guards conflicted with clang. Fix a few others to follow the convention in the rest of the headers in flang.
1 parent adfe14c commit db61018

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

flang/include/flang/Common/Version.h

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

15-
#ifndef LLVM_FLANG_COMMON_VERSION_H
16-
#define LLVM_FLANG_COMMON_VERSION_H
15+
#ifndef FORTRAN_COMMON_VERSION_H
16+
#define FORTRAN_COMMON_VERSION_H
1717

1818
#include "flang/Version.inc"
1919
#include "llvm/ADT/StringRef.h"
@@ -53,4 +53,4 @@ std::string getFlangFullVersion();
5353
std::string getFlangToolFullVersion(llvm::StringRef ToolName);
5454
} // namespace Fortran::common
5555

56-
#endif // LLVM_FLANG_COMMON_VERSION_H
56+
#endif // FORTRAN_COMMON_VERSION_H

flang/include/flang/Frontend/CodeGenOptions.h

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

15-
#ifndef LLVM_CLANG_BASIC_CODEGENOPTIONS_H
16-
#define LLVM_CLANG_BASIC_CODEGENOPTIONS_H
15+
#ifndef FORTRAN_FRONTEND_CODEGENOPTIONS_H
16+
#define FORTRAN_FRONTEND_CODEGENOPTIONS_H
1717

1818
#include "llvm/Frontend/Debug/Options.h"
1919
#include "llvm/Frontend/Driver/CodeGenOptions.h"
@@ -141,4 +141,4 @@ class CodeGenOptions : public CodeGenOptionsBase {
141141

142142
} // end namespace Fortran::frontend
143143

144-
#endif
144+
#endif // FORTRAN_FRONTEND_CODEGENOPTIONS_H

flang/include/flang/Frontend/LangOptions.h

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

15-
#ifndef LLVM_FLANG_FRONTEND_LANGOPTIONS_H
16-
#define LLVM_FLANG_FRONTEND_LANGOPTIONS_H
15+
#ifndef FORTRAN_FRONTEND_LANGOPTIONS_H
16+
#define FORTRAN_FRONTEND_LANGOPTIONS_H
1717

1818
#include <string>
1919

@@ -63,4 +63,4 @@ class LangOptions : public LangOptionsBase {
6363

6464
} // end namespace Fortran::frontend
6565

66-
#endif
66+
#endif // FORTRAN_FRONTEND_LANGOPTIONS_H

0 commit comments

Comments
 (0)