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 cpp,h --
clang/lib/Options/DriverOptions.cpp lld/MachO/DriverUtils.cpp
lld/MinGW/Driver.cpp lld/wasm/Driver.cpp llvm/include/llvm/Option/OptTable.h
llvm/include/llvm/Option/Option.h llvm/lib/Option/OptTable.cpp
llvm/unittests/Option/OptionParsingTest.cpp
llvm/utils/TableGen/OptionParserEmitter.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/llvm/include/llvm/Option/Option.h
b/llvm/include/llvm/Option/Option.h
index 442f98684..1233ca5a4 100644
--- a/llvm/include/llvm/Option/Option.h
+++ b/llvm/include/llvm/Option/Option.h
@@ -100,9 +100,7 @@ public:
}
/// Get the name of this option without any prefix.
- StringRef getName() const {
- return Owner->getOptionName(getID());
- }
+ StringRef getName() const { return Owner->getOptionName(getID()); }
const Option getGroup() const {
assert(Info && "Must have a valid info!");
@@ -130,9 +128,7 @@ public:
}
/// Get the default prefix for this option.
- StringRef getPrefix() const {
- return Owner->getOptionPrefix(getID());
- }
+ StringRef getPrefix() const { return Owner->getOptionPrefix(getID()); }
/// Get the name of this option with the default prefix.
StringRef getPrefixedName() const {
@@ -140,14 +136,10 @@ public:
}
/// Get the help text for this option.
- StringRef getHelpText() const {
- return Owner->getOptionHelpText(getID());
- }
+ StringRef getHelpText() const { return Owner->getOptionHelpText(getID()); }
/// Get the meta-variable list for this option.
- StringRef getMetaVar() const {
- return Owner->getOptionMetaVar(getID());
- }
+ StringRef getMetaVar() const { return Owner->getOptionMetaVar(getID()); }
unsigned getNumArgs() const { return Info->Param; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/224374
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits