[clang] [Parser][NFC] Move the core parsing of an attribute into a separate method (PR #107300)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 4 13:14:03 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 34f2c9a9ce73a61b27d75dab7e1eed256491afcc c30c6c11686cc95ba20eb7000d210b17757fbfe3 --extensions cpp,h -- clang/include/clang/Parse/Parser.h clang/lib/Parse/ParseDecl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index 895f043607..bffe9919fd 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -2943,8 +2943,7 @@ private:
return false;
}
- bool ParseGNUSingleAttribute(ParsedAttributes &Attrs,
- SourceLocation &EndLoc,
+ bool ParseGNUSingleAttribute(ParsedAttributes &Attrs, SourceLocation &EndLoc,
LateParsedAttrList *LateAttrs = nullptr,
Declarator *D = nullptr);
void ParseGNUAttributes(ParsedAttributes &Attrs,
``````````
</details>
https://github.com/llvm/llvm-project/pull/107300
More information about the cfe-commits
mailing list