[clang] [driver] Respect the mode the driver is in for autocomplete (PR #74770)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 7 13:59:22 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 58c2a4e806b2882c0622cbded923b32f94c5b47b 255c261df90bd15d3bcee7a212758c2de4c56e69 -- clang/lib/Driver/Driver.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 49e272f69d..0b8e957297 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1991,7 +1991,7 @@ void Driver::HandleAutocompletions(StringRef PassedFlags) const {
std::vector<std::string> SuggestedCompletions;
std::vector<std::string> Flags;
- llvm::opt::Visibility VisibilityMask = getOptionVisibilityMask();
+ llvm::opt::Visibility VisibilityMask = getOptionVisibilityMask();
// Distinguish "--autocomplete=-someflag" and "--autocomplete=-someflag,"
// because the latter indicates that the user put space before pushing tab
``````````
</details>
https://github.com/llvm/llvm-project/pull/74770
More information about the cfe-commits
mailing list