[llvm-branch-commits] [flang] [flang][Semantics] Add LangOptions to SemanticsContext (PR #110013)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 25 09:51:06 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 027a0602fc3fc547ba89dd71b2c59304119f3bb5 c04b0c4e26240e2c1a47b9af4974981ab4535305 --extensions cpp,h -- flang/include/flang/Semantics/semantics.h flang/lib/Frontend/CompilerInvocation.cpp flang/lib/Semantics/semantics.cpp flang/tools/bbc/bbc.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/include/flang/Semantics/semantics.h b/flang/include/flang/Semantics/semantics.h
index 4ea9f9e081..2a326074b3 100644
--- a/flang/include/flang/Semantics/semantics.h
+++ b/flang/include/flang/Semantics/semantics.h
@@ -76,9 +76,7 @@ public:
   const common::LanguageFeatureControl &languageFeatures() const {
     return languageFeatures_;
   }
-  const common::LangOptions &langOptions() const {
-    return langOpts_;
-  }
+  const common::LangOptions &langOptions() const { return langOpts_; }
   int GetDefaultKind(TypeCategory) const;
   int doublePrecisionKind() const {
     return defaultKinds_.doublePrecisionKind();

``````````

</details>


https://github.com/llvm/llvm-project/pull/110013


More information about the llvm-branch-commits mailing list