Skip to content

Commit

Permalink
[flang][NFC] Fix header guards
Browse files Browse the repository at this point in the history
Some header guards conflicted with clang. Fix a few others to follow the
convention in the rest of the headers in flang.
  • Loading branch information
tarunprabhu committed Mar 21, 2024
1 parent d8b0d8d commit d9f0d9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions flang/include/flang/Common/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
///
//===----------------------------------------------------------------------===//

#ifndef LLVM_FLANG_COMMON_VERSION_H
#define LLVM_FLANG_COMMON_VERSION_H
#ifndef FORTRAN_COMMON_VERSION_H
#define FORTRAN_COMMON_VERSION_H

#include "flang/Version.inc"
#include "llvm/ADT/StringRef.h"
Expand Down Expand Up @@ -53,4 +53,4 @@ std::string getFlangFullVersion();
std::string getFlangToolFullVersion(llvm::StringRef ToolName);
} // namespace Fortran::common

#endif // LLVM_FLANG_COMMON_VERSION_H
#endif // FORTRAN_COMMON_VERSION_H
6 changes: 3 additions & 3 deletions flang/include/flang/Frontend/CodeGenOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_BASIC_CODEGENOPTIONS_H
#define LLVM_CLANG_BASIC_CODEGENOPTIONS_H
#ifndef FORTRAN_FRONTEND_CODEGENOPTIONS_H
#define FORTRAN_FRONTEND_CODEGENOPTIONS_H

#include "llvm/Frontend/Debug/Options.h"
#include "llvm/Frontend/Driver/CodeGenOptions.h"
Expand Down Expand Up @@ -141,4 +141,4 @@ class CodeGenOptions : public CodeGenOptionsBase {

} // end namespace Fortran::frontend

#endif
#endif // FORTRAN_FRONTEND_CODEGENOPTIONS_H
6 changes: 3 additions & 3 deletions flang/include/flang/Frontend/LangOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_FLANG_FRONTEND_LANGOPTIONS_H
#define LLVM_FLANG_FRONTEND_LANGOPTIONS_H
#ifndef FORTRAN_FRONTEND_LANGOPTIONS_H
#define FORTRAN_FRONTEND_LANGOPTIONS_H

#include <string>

Expand Down Expand Up @@ -63,4 +63,4 @@ class LangOptions : public LangOptionsBase {

} // end namespace Fortran::frontend

#endif
#endif // FORTRAN_FRONTEND_LANGOPTIONS_H

0 comments on commit d9f0d9a

Please sign in to comment.