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 origin/main HEAD --extensions h,cpp --
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
--diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git
a/clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
b/clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
index 57dfabaa1..af9421060 100644
--- a/clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
+++ b/clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
@@ -111,8 +111,8 @@ public:
SyntheticFieldCallback = CB;
}
- void setInitializerCallback(
- std::function<void(QualType, StorageLocation&)> CB) {
+ void
+ setInitializerCallback(std::function<void(QualType, StorageLocation &)> CB) {
assert(!RecordStorageLocationCreated);
InitializerCallback = CB;
}
@@ -338,7 +338,8 @@ private:
std::unique_ptr<Logger> LogOwner; // If created via flags.
std::function<llvm::StringMap<QualType>(QualType)> SyntheticFieldCallback;
- std::optional<std::function<void(QualType, StorageLocation&)>>
InitializerCallback;
+ std::optional<std::function<void(QualType, StorageLocation &)>>
+ InitializerCallback;
/// Has any `RecordStorageLocation` been created yet?
bool RecordStorageLocationCreated = false;
diff --git a/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
b/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
index 1b1b41f1f..e161f9689 100644
--- a/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
+++ b/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
@@ -76,7 +76,7 @@ StorageLocation
&DataflowAnalysisContext::createStorageLocation(QualType Type) {
&createStorageLocation(Entry.getValue().getNonReferenceType())});
S = &createRecordStorageLocation(Type, std::move(FieldLocs),
- std::move(SyntheticFields));
+ std::move(SyntheticFields));
} else {
S = &arena().create<ScalarStorageLocation>(Type);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/164675
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits