[llvm-branch-commits] [clang] [BoundsSafety][NFC] Add late-parsed type attribute lists to declarators (PR #224559)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 20 16:01:14 PDT 2026
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 h,cpp -- clang/include/clang/Parse/Parser.h clang/include/clang/Sema/DeclSpec.h clang/lib/Parse/ParseDecl.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/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h
index 77f2bd67a..e25f1757f 100644
--- a/clang/include/clang/Sema/DeclSpec.h
+++ b/clang/include/clang/Sema/DeclSpec.h
@@ -250,15 +250,15 @@ namespace clang {
bool LateAttrParseTypeAttrOnly;
};
- /// The part of a late-parsed type attribute that Sema reads and fills in during
- /// type construction. The parser owns the attribute and its cached tokens and
- /// embeds this, so Sema never needs to see the parser's type.
+ /// The part of a late-parsed type attribute that Sema reads and fills in
+ /// during type construction. The parser owns the attribute and its cached
+ /// tokens and embeds this, so Sema never needs to see the parser's type.
struct LateParsedTypeAttrInfo {
ParsedAttr::Kind Kind;
SourceLocation NameLoc;
- /// The type built for this attribute during type construction, still missing
- /// the argument that hasn't been parsed yet. Filled in by
+ /// The type built for this attribute during type construction, still
+ /// missing the argument that hasn't been parsed yet. Filled in by
/// `Sema::ProcessLateParsedTypeAttr` and completed once the enclosing scope
/// makes the argument parseable. Null if type construction rejected the
/// attribute.
``````````
</details>
https://github.com/llvm/llvm-project/pull/224559
More information about the llvm-branch-commits
mailing list