[clang] [clang-tools-extra] [llvm] [clang-query] Remove support for srcloc output (PR #92442)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 12:00:23 PDT 2024
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 da928c6d6e0e2f619fdaef71cea8747d9aef188d 31d36983671e2386ec12f09ed5efe27434db42e0 -- clang-tools-extra/clang-query/Query.cpp clang-tools-extra/clang-query/Query.h clang-tools-extra/clang-query/QueryParser.cpp clang-tools-extra/clang-query/QuerySession.h clang-tools-extra/unittests/clang-query/QueryParserTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-query/QueryParser.cpp b/clang-tools-extra/clang-query/QueryParser.cpp
index 15fb11ef1f..e7e087cb8f 100644
--- a/clang-tools-extra/clang-query/QueryParser.cpp
+++ b/clang-tools-extra/clang-query/QueryParser.cpp
@@ -103,16 +103,16 @@ QueryRef QueryParser::parseSetBool(bool QuerySession::*Var) {
template <typename QueryType> QueryRef QueryParser::parseSetOutputKind() {
StringRef ValStr;
- unsigned OutKind =
- LexOrCompleteWord<unsigned>(this, ValStr)
- .Case("diag", OK_Diag)
- .Case("print", OK_Print)
- .Case("detailed-ast", OK_DetailedAST)
- .Case("dump", OK_DetailedAST)
- .Default(~0u);
+ unsigned OutKind = LexOrCompleteWord<unsigned>(this, ValStr)
+ .Case("diag", OK_Diag)
+ .Case("print", OK_Print)
+ .Case("detailed-ast", OK_DetailedAST)
+ .Case("dump", OK_DetailedAST)
+ .Default(~0u);
if (OutKind == ~0u) {
return new InvalidQuery("expected 'diag', 'print', 'detailed-ast'"
- " or 'dump', got '" + ValStr + "'");
+ " or 'dump', got '" +
+ ValStr + "'");
}
switch (OutKind) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/92442
More information about the cfe-commits
mailing list