Rename '_const' attribute to 'CompileTimeLiteral'

To pave the way for the new experimental feature which will operate on '@const' attribute and expand the scope of what's currently handled by '_const' without breaking compatibility, for now.
This commit is contained in:
Artem Chikin
2025-03-03 11:44:10 -08:00
parent f0446d0271
commit de26e960e2
39 changed files with 119 additions and 119 deletions

View File

@@ -2439,7 +2439,7 @@ class ConstExtractor: public ASTWalker {
}
assert(ReferencedDecl);
if (auto *VAR = dyn_cast<VarDecl>(ReferencedDecl)) {
if (!VAR->getAttrs().hasAttribute<CompileTimeConstAttr>()) {
if (!VAR->getAttrs().hasAttribute<CompileTimeLiteralAttr>()) {
return false;
}
if (auto *PD = VAR->getParentPatternBinding()) {