[clang] [BoundsSafety][NFC] Introduce LateParsedTypeAttribute for late-parsed type attributes (PR #192799)

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 18 10:18:50 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Yeoul Na (rapidsna)

<details>
<summary>Changes</summary>

Preparatory refactoring for llvm/llvm-project#<!-- -->179612. The new late parsing approach needs a distinct data structure to carry type-attribute-specific information through the late parsing pipeline, separate from declaration-level late-parsed attributes.
- Add LateParsedTypeAttribute subtyping LateParsedAttribute
- Add LPA_Kind enum and LLVM-style RTTI to distinguish declaration vs type late-parsed attributes
- Add ParseLexedTypeAttribute and LateTypeAttrParserCallback to Parser
- Extract the shared token setup, parsing, and cleanup logic from ParseLexedCAttribute and ParseLexedTypeAttribute into a common ParseLexedCAttributeTokens helper.

---
Full diff: https://github.com/llvm/llvm-project/pull/192799.diff


4 Files Affected:

- (modified) clang/include/clang/Parse/Parser.h (+102-63) 
- (modified) clang/include/clang/Sema/DeclSpec.h (+27) 
- (modified) clang/lib/Parse/ParseCXXInlineMethods.cpp (+9-7) 
- (modified) clang/lib/Parse/ParseDecl.cpp (+37-10) 


``````````diff
<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

``````````

</details>


https://github.com/llvm/llvm-project/pull/192799


More information about the cfe-commits mailing list