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 HEAD~1 HEAD --extensions cpp,h --
clang/docs/analyzer/checkers/storetoimmutable_example.cpp
clang/lib/StaticAnalyzer/Checkers/StoreToImmutableChecker.cpp
clang/test/Analysis/store-to-immutable-basic.cpp
clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
index 0f7bab683..f58474c20 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
@@ -819,7 +819,8 @@ class SymbolicRegion : public SubRegion {
s->getType()->isReferenceType() ||
s->getType()->isBlockPointerType());
assert(isa<UnknownSpaceRegion>(sreg) || isa<HeapSpaceRegion>(sreg) ||
- isa<GlobalSystemSpaceRegion>(sreg) ||
isa<GlobalImmutableSpaceRegion>(sreg));
+ isa<GlobalSystemSpaceRegion>(sreg) ||
+ isa<GlobalImmutableSpaceRegion>(sreg));
}
public:
``````````
</details>
https://github.com/llvm/llvm-project/pull/150417
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits