[clang] [APINotes] Upstream APINotesReader (PR #66769)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 10:22:13 PDT 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 4c43c1eeef434cf0b98ee9094c776d118da1faeb 4561ed86480e89d0e36560adab13f22a59627d81 -- clang/include/clang/APINotes/APINotesReader.h clang/lib/APINotes/APINotesReader.cpp clang/include/clang/APINotes/Types.h
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/APINotes/APINotesReader.h b/clang/include/clang/APINotes/APINotesReader.h
index 0bb3b3c5c225..1c5aab095955 100644
--- a/clang/include/clang/APINotes/APINotesReader.h
+++ b/clang/include/clang/APINotes/APINotesReader.h
@@ -68,9 +68,7 @@ public:
         llvm::SmallVector<std::pair<llvm::VersionTuple, T>, 1> Results);
 
     /// Retrieve the selected index in the result set.
-    std::optional<unsigned> getSelected() const {
-      return Selected;
-    }
+    std::optional<unsigned> getSelected() const { return Selected; }
 
     /// Return the number of versioned results we know about.
     unsigned size() const { return Results.size(); }

``````````

</details>


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


More information about the cfe-commits mailing list