[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 13 00:06:49 PST 2023
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 6d30bc00858941043ea7d45938192adfd1020922 44b096810d88da1d1331be12802c68cdf8e1785b -- clang/test/Sema/PR69717.cpp clang/include/clang/Sema/Sema.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 1d61dc7ff0..d88c20e517 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -714,7 +714,7 @@ public:
class FpPragmaStackSaveRAII {
public:
FpPragmaStackSaveRAII(Sema &S)
- : S(S), SavedStack(std::move(S.FpPragmaStack)) {
+ : S(S), SavedStack(std::move(S.FpPragmaStack)) {
S.FpPragmaStack.Stack.clear();
}
~FpPragmaStackSaveRAII() { S.FpPragmaStack = std::move(SavedStack); }
``````````
</details>
https://github.com/llvm/llvm-project/pull/70646
More information about the cfe-commits
mailing list