[flang-commits] [flang] [flang][Frontend] Move LangOptions from Frontend to Common (PR #110012)
via flang-commits
flang-commits at lists.llvm.org
Wed Sep 25 09:50:11 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff cebb7c010854e39a77065cfd681db91a79e7ce15 027a0602fc3fc547ba89dd71b2c59304119f3bb5 --extensions h,cpp -- flang/include/flang/Frontend/CompilerInvocation.h flang/include/flang/Tools/CrossToolHelpers.h flang/lib/Frontend/CompilerInvocation.cpp flang/include/flang/Common/LangOptions.h flang/lib/Common/LangOptions.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Common/LangOptions.h b/flang/include/flang/Common/LangOptions.h
index c75229ae7f..52a45047de 100644
--- a/flang/include/flang/Common/LangOptions.h
+++ b/flang/include/flang/Common/LangOptions.h
@@ -52,8 +52,8 @@ class LangOptions : public LangOptionsBase {
public:
// Define accessors/mutators for code generation options of enumeration type.
#define LANGOPT(Name, Bits, Default)
-#define ENUM_LANGOPT(Name, Type, Bits, Default) \
- Type get##Name() const { return static_cast<Type>(Name); } \
+#define ENUM_LANGOPT(Name, Type, Bits, Default) \
+ Type get##Name() const { return static_cast<Type>(Name); } \
void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }
#include "flang/Common/LangOptions.def"
``````````
</details>
https://github.com/llvm/llvm-project/pull/110012
More information about the flang-commits
mailing list